<?PHP
//index.php
//part of the DarkBot v.6 admin panel
//designed for Alliance Net Hosting
//by Ti, 2003
//(C) Alliance Net Hosting
//(C) Ti
//All Rights Reserved.
//get mode from the url
$mode = $_GET['mode'];
//require and include the setting.conf file.
if ($mode == "") {
include('login.inc.php');
} elseif ($mode == "val" && $password == "[a pass here]" && $username == "admin") {
include('admin.home.inc.php');
} elseif ($mode == "kill" && $log == "10") {
$cd = "cd ../darkbot6f6/scripts/";
$process = "kill.darkbot";
shell_exec($cd);
shell_exec($process);
exit();
echo "bot killed. <a href='?mode=val&password=[a pass here]&username=admin'>back</a>";
} elseif ($mode == "start" && $log == "9") {
$cd = "../darkbot6f6/";
$process = "./darkbot";
shell_exec($cd);
shell_exec($process);
exit();
echo "bot started. <a href='?mode=val&password=[a pass here]&username=admin'>back</a>";
} elseif ($mode == "info" && $log == "7") {
include('admin.info.inc.php');
} else {
include('invalid.parse.str.inc.php');
}
?>
This doesn't seem to be working, any ideas? I don't get any error messages 🙁