Heaplink
Developer & Designer
I recently installed the fix, that was supplied somewhere on the forum. It worked, and I could see all the bans. Now I just have the problem, that the Unban-link (which links to ase/banlist?url=banlist&unban=<id>) doesn't work.
I investigated the issue further more, and saw that it didn't even recognize other GET queries other than url. I looked inside class.core.php and it looked like this:
So at the last if check, it checks wether the page is banlist, and also tries to check wether 'unban' is set in GET queries - Then sets $user to a secure value of 'unban' and do the query to delete the exact ban with that id, locate to the page again (without queries) and stops.
Looks fine for me, but dosen't work. Not even using print_r($GET); could see the 'unban' query.
Hope anyone have a fix for this, I try to see if I can fix it too - If I do, I'll of course post it here
I investigated the issue further more, and saw that it didn't even recognize other GET queries other than url. I looked inside class.core.php and it looked like this:
PHP:
final public function handleCallHK($k)
{
global $users, $engine, $_CONFIG;
if($_SESSION["in_hk"] != true)
{
if(isset($_SESSION['user']['id']))
{
if($k == 'login')
{
$users->loginHK();
}
else
{
header("Location:".$_CONFIG['hotel']['url']."/ase/login");
exit;
}
}
else
{
header("Location:".$_CONFIG['hotel']['url']."/index");
exit;
}
}
else
{
if(!isset($k))
{
header("Location:".$_CONFIG['hotel']['url']."/ase/dash");
exit;
}
else
{
if($k == 'banlist')
{
if(isset($_GET["unban"]))
{
$user = $engine->secure($_GET["unban"]);
$engine->query("DELETE FROM bans WHERE id = '" . $user . "'");
header("Location: ".$_CONFIG['hotel']['url']."/ase/banlist");
exit;
}
}
}
}
}
So at the last if check, it checks wether the page is banlist, and also tries to check wether 'unban' is set in GET queries - Then sets $user to a secure value of 'unban' and do the query to delete the exact ban with that id, locate to the page again (without queries) and stops.
Looks fine for me, but dosen't work. Not even using print_r($GET); could see the 'unban' query.
Hope anyone have a fix for this, I try to see if I can fix it too - If I do, I'll of course post it here