Fixed calls to old billing module

This commit is contained in:
Frank Harris 2025-11-24 09:42:03 -05:00
parent 6f4515dbec
commit b4f0e1edfe
6 changed files with 15 additions and 368 deletions

View file

@ -331,24 +331,7 @@ function ogpHome()
print_success( get_lang("logging_in") ."...");
$db->logger( get_lang("logging_in") ."...");
$db->query("DELETE FROM `OGP_DB_PREFIXban_list` WHERE client_ip='$client_ip';");
//find number of servers user has. if zero, then redirect to the shop page.
$result = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE user_id='".$_SESSION['user_id']."' AND status IN ('in-cart', 'unknown') ");
$servercount = 0;
foreach($result as $servers)
{
$servercount=$servercount + 1;
}
if ((!$isAdmin) && ($servercount == 0))
{
$view->refresh("home.php?m=billing&p=shop",2);
//send to shop page.
}
else
{
$view->refresh("home.php?$default_page",2);
}
$view->refresh("home.php?$default_page",2);