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"]; } if( isset($settings['welcome_title']) && $settings['welcome_title'] == "1" ) { if( isset($settings['welcome_title_message']) && !empty($settings['welcome_title_message'] )) { echo "
" . $settings['welcome_title_message'] . "
"; } } require_once("includes/refreshed.php"); $refresh = new refreshed(); $OnlineServers .= "

Recent updates and changes

"; ?>
listing[$lastnews]->title; //$href[2] = 'home.php?m=news&p=news'; // Notifications $title[3] = "Notifications"; // get_lang('orders'); $content[3] = 'View all your notifications. '; $href[3] = 'home.php?m=circular&p=show_circular&list=true'; // Support Resources quick link $title[4] = 'Support Resources'; $content[4] ='Need help? Visit the support section to open tickets or review documentation.'; $href[4] = 'home.php?m=tickets'; // Support $title[5] = (isset($settings['support_widget_title']) && $settings['support_widget_title'] != "") ? $settings['support_widget_title'] : get_lang('support'); $content[5] = ' Submit a SUPPORT TICKET or use our Discord Chat at the bottom right. Click this box to JOIN our Discord'; $href[5] = 'https://discord.gg/cWHAbav'; $widgets = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXwidgets_users WHERE user_id='".$_SESSION['user_id']."' ORDER BY sort_no"); if(!$widgets) { if($db->createUserWidgets($_SESSION['user_id'])) $widgets = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXwidgets_users WHERE user_id='".$_SESSION['user_id']."' ORDER BY sort_no"); } if($widgets) { $colhtml[1] = '
'; $colhtml[2] = '
'; $colhtml[3] = '
'; foreach($widgets as $widget) { if(array_key_exists($widget["widget_id"], $title)){ if( (!isset($settings['old_dashboard_behavior']) or $settings['old_dashboard_behavior'] == 0) AND $widget['widget_id'] == "3" ) continue; $colhtml[$widget['column_id']] .= '
'. '

'; if(!is_null($title[$widget['widget_id']])) $colhtml[$widget['column_id']] .= $title[$widget['widget_id']]; $colhtml[$widget['column_id']] .= '

'; } // Server Status Link - Available to all users echo "

Server Status

View the status of all game servers

🖥️ View Server Status
Opens in a new window
"; if( $isAdmin AND $db->isModuleInstalled('status') ) { echo "".get_lang('server_status')."
"; $servers = $db->getRemoteServers(); echo "

".get_lang('select_remote_server')."




\n"; if( isset($_GET['remote_server_id']) AND ( $_GET['remote_server_id'] == "webhost" or $_GET['remote_server_id'] == "" ) ) unset($_GET['remote_server_id']); if( isset($_GET['remote_server_id']) ) $remote_server = "&remote_server_id=".$_GET['remote_server_id']; else $remote_server = ""; if( isset($_GET['remote_server_id']) OR function_exists('exec') ) echo $refresh->getdiv($refresh->add("home.php?m=status&type=cleared".$remote_server)); } ?>