diff --git a/.vscode/settings.json b/.vscode/settings.json index 3b664107..a8ca8320 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ -{ - "git.ignoreLimitWarning": true -} \ No newline at end of file +{ + "git.ignoreLimitWarning": true +} diff --git a/includes/config.inc.php b/includes/config.inc.php index 1abb9f1a..f88bcb56 100644 --- a/includes/config.inc.php +++ b/includes/config.inc.php @@ -2,8 +2,8 @@ ############################################### # Site configuration ############################################### -$db_host="localhost"; -$db_user="localuser"; +$db_host="mysql.iaregamer.com"; +$db_user="remoteuser"; $db_pass="Pkloyn7yvpht!"; $db_name="panel"; $table_prefix="gsp_"; diff --git a/index.php b/index.php index 7334f59c..0072a9cc 100644 --- a/index.php +++ b/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); diff --git a/modules/dashboard/dashboard.php b/modules/dashboard/dashboard.php index cd2d25f4..6a3202a5 100644 --- a/modules/dashboard/dashboard.php +++ b/modules/dashboard/dashboard.php @@ -46,66 +46,6 @@ function exec_ogp_module() } - //show if new server created - $cartresult = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE user_id='".$_SESSION['user_id']."' AND status = 'paid'"); - $newServices=0; - foreach($cartresult as $res){ - $newServices=$newServices + 1; - } - //Popup notification - if($newServices > 0) { - echo'
'; - } - //Invoice is due. - $orderresult = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE user_id='".$_SESSION['user_id']."' AND status = 'invoiced'"); - $invoicesDue=0; - foreach($orderresult as $res){ - $invoicesDue=$invoicesDue + 1; - } - //Popup notification WARNING - if($invoicesDue > 0) { - echo''; - } - //Server is suspended DANGER - $orderresult = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE user_id='".$_SESSION['user_id']."' AND status = 'suspended'"); - $invoicesDue=0; - foreach($orderresult as $res){ - $invoicesDue=$invoicesDue + 1; - } - //Popup notification - if($invoicesDue > 0) { - echo''; - } - if( isset($settings['welcome_title']) && $settings['welcome_title'] == "1" ) { if( isset($settings['welcome_title_message']) && !empty($settings['welcome_title_message'] )) @@ -126,10 +66,10 @@ function exec_ogp_module() $title = array(); $content = array(); $href = array(); - // Order History - $title[1] = "Order History"; // get_lang('orders'); - $content[1] = 'View all your orders, invoices and expiration dates. '; - $href[1] = 'home.php?m=billing&p=orders'; + // Account Overview + $title[1] = "Account Overview"; + $content[1] = 'Review your assigned servers and jump straight into the Game Monitor.'; + $href[1] = 'home.php?m=gamemanager&p=game_monitor'; // Recent News //$xml=simplexml_load_file("modules/news/data/listings.xml"); @@ -143,10 +83,10 @@ function exec_ogp_module() $content[3] = 'View all your notifications. '; $href[3] = 'home.php?m=circular&p=show_circular&list=true'; - // Invoices - $title[4] = 'Current Invoices'; - $content[4] ='An Invoice will be created before your server expires. Click here to view current invoices.Recent updates and changes
"; - $RecentNews .= "
Invoices Due : '. $invoicesDue . '