<?php
/********************************************************
* File Tool - 1.0 *
* by HeadHodge Copyright (c) 2015 *
* *
* Liscensed under the MIT License (MIT-LICENSE.txt) *
* http://www.opensource.org/licenses/mit-license.php *
********************************************************/
class CustomPages_FileTool_Controller
{
/******************
** isAuthorized **
******************/
protected static function isAuthorized()
{
//**Add the following line to disable authorization**//
return true; //Remove this line to enable security check
//Add any security check you like here
$visitor = XenForo_Visitor::getInstance();
if($visitor->username != 'HeadHodge') return false;
return true;
}