Fixed calls to old billing module
This commit is contained in:
parent
6f4515dbec
commit
b4f0e1edfe
6 changed files with 15 additions and 368 deletions
19
index.php
19
index.php
|
|
@ -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);
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue