I am one of the creators of FreeTSP.
Which we based of the TBDev 08.
We made loads of changes and brought the code up to date.
I do remember we had the same issue with the modtask.php
That was almost 6 yrs ago now, and I cannot remember the exact issue.
I do remember we changed the modtask.php.
To the
Updated modtask.php MOD by
Retro
And we have made many changes to it since then.
I have attached the FreeTSP modtask.php.
Make changes to it, pick it apart.
Do what ever you need to do, to make it work for you.
You may only need to changes all the includes and function names
EXAMPLE
FreeTSP
Code:
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'functions'.DIRECTORY_SEPARATOR.'function_main.php');
require_once(FUNC_DIR.'function_user.php');
require_once(FUNC_DIR.'function_vfunctions.php');
require_once(FUNC_DIR.'function_page_verify.php');
db_connect(false);
logged_in();
$newpage = new page_verify();
$newpage->check('_modtask_');
if ($CURUSER['class'] < UC_MODERATOR)
{
die();
}
TBDev
Code:
require "include/bittorrent.php";
dbconn(false);
loggedinorreturn();
function puke($text = "w00t")
{
stderr("w00t", $text);
}
if (get_user_class() < UC_MODERATOR)
puke();
Hope this helps you out.