THT Community

Full Version: How do I disable csrf-magic?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This has been a constant pain in various different servers I have been THT Admin on.

How do I disable includes/csrf-magic.php ?

It keeps giving False Warnings:
Quote:Possible CSRF attack detected. Please make sure cookies are enabled.
They are enabled.
See:
http://thehostingtool.com/forum/thread-1...l#pid11249
http://thehostingtool.com/forum/thread-2043.html

I need to be able to disable it while I complete some tasks, then re-enable it again.

Many thanks in anticipation of a solution!

THT Version: THT v1.3.5
Server's Operating System: CentOS 5
Control Panel Type: Kloxo
In includes/compiler.php:

FIND:
PHP Code:
require_once("csrf-magic.php"); 

CHANGE IT TO:
PHP Code:
//require_once("csrf-magic.php"); 
@LightworkerNaven
ThanksSmile