PHP Code:
<?php
//This file has been edited by Wizkid. All rights reserved.
//Fixed 2 exploits in this.
//Once again, a SESSION can be spoofed.
if($_SESSION['UGradeID'] == 253){
$res = mssql_query("SELECT * FROM AccountBan WHERE AID = '" . antisql($_SESSION['AID']) . "' AND Opened = '1'");
$data = mssql_fetch_assoc($res);
$hoy = date("dmY");
if($hoy >= $data['BanFinish']){
//We remove the ban if it has expired
mssql_query("UPDATE Account SET UGradeID = '0' WHERE AID = '" . antisql($_SESSION['AID']) . "'");
mssql_query("UPDATE AccountBan SET Opened = '0' WHERE ABID = '".$data['ABID']."'");
$_SESSION['UGradeID'] = 0;
//Redirect to the index
re_dir("index.php");
}
TO
PHP Code:
<?php
//This file has been edited by Wizkid. All rights reserved.
//Fixed 2 exploits in this.
//Once again, a SESSION can be spoofed.
if($_SESSION['UGradeID'] == 253){
$res = mssql_query("SELECT * FROM AccountBan WHERE AID = '" . antisql($_SESSION['AID']) . "' AND Opened = '1'");
$data = mssql_fetch_assoc($res);
$hoy = date("dmY");
if($hoy >= $data['BanFinish']){
//We remove the ban if it has expired
mssql_query("UPDATE Account SET UGradeID = '253' WHERE AID = '" . antisql($_SESSION['AID']) . "'");
mssql_query("UPDATE AccountBan SET Opened = '253' WHERE ABID = '".$data['ABID']."'");
$_SESSION['UGradeID'] = 0;
//Redirect to the index
re_dir("index.php");
}
Change 0 to 253 :D