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"]; } $RecentNews = "Are you ready to get your own server? Click on the SHOP menu"; $RecentNewsTitle = "Rent a GameServer"; $result = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE user_id='".$_SESSION['user_id']."' AND end_date IN (0, -1 , -2) "); $invoicesDue=0; foreach($result as $res){ $invoicesDue=$invoicesDue + 1; } 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
"; $RecentNews .= "
Invoices Due : '. $invoicesDue . '