isAdmin($_SESSION['user_id']); $user_id = $_SESSION['user_id']; $page_user = (isset($_GET['page']) && (int)$_GET['page'] > 0) ? (int)$_GET['page'] : 1; // thanks for Adjokip $limit_user = isset($_GET['limit']) ? $_GET['limit'] : 10; if(hasValue($loggedInUserInfo) && is_array($loggedInUserInfo) && $loggedInUserInfo["users_page_limit"] && !(isset($_GET['limit']) and !empty($_GET['limit']))){ $limit_user = $loggedInUserInfo["users_page_limit"]; } //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 = 'renew'"); $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'] )) { echo "Recent updates and changes
"; ?>