| Code: |
| $result2 = $db->sql_query("SELECT pwd FROM ".$prefix."_authors WHERE aid='$aid'"); |
| Code: |
//Query added. Used for fix in 'admin.php'&'mainfile.php'.
//Fix by Quake
$result2 = $db->sql_query("SELECT name, pwd FROM ".$prefix."_authors WHERE aid='$aid'"); |
| Code: |
| if(!isset($op)) { $op = "adminMain"; } |
| Code: |
//Only 'god' user can 'Edit Admins' in 'Administration Menu' now.
//Fix by Quake & Chatserv
if(isset($op) AND ($op=="mod_authors" OR $op=="modifyadmin" OR $op=="UpdateAuthor" OR $op=="AddAuthor" OR $op=="deladmin2" OR $op=="deladmin" OR $op=="assignstories" OR $op=="deladminconf") AND ($row2['name'] != "God")) {
die("Illegal Operation");
} |
| Code: |
foreach ($_POST as $secvalue) {
if ((eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) || (eregi("<[^>]script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*body*\"?[^>]*>", $secvalue)) || (eregi("<[^>]style*\"?[^>]*>", $secvalue))) {
die ($htmltags);
}
}
} |
| Code: |
//Posting from other servers not allowed now.
//Bug found by PeNdEjO
//Fix by Quake
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (strlen($_SERVER["HTTP_REFERER"]) > 0) {
if (!ereg("(http://$_SERVER[HTTP_HOST])", $_SERVER["HTTP_REFERER"]) && !ereg("(https://$_SERVER[HTTP_HOST])", $_SERVER["HTTP_REFERER"])) {
die('Posting from another server not allowed!');
}
}
} |