getElements(), Array( "getId", "getPluginName", "getPluginInfo", "getUpdateInfo" ), Array( "id", "plugin_name", "plugin_info", "update_info" ) ); $pageResult['links'] = $pagination -> getLinks( 5 ); $pageResult['lastPage'] = $pagination -> getLast(); $pageResult['currentPage'] = $pagination -> getCurrent(); global $INGAME_WEBPATH; $pageResult['ingame_webpath'] = $INGAME_WEBPATH; // check if shard is online try { $dbs = new DBLayer( "shard" ); $pageResult['shard'] = "online"; } catch( PDOException $e ) { $pageResult['shard'] = "offline"; } return( $pageResult ); } else { // ERROR: No access! $_SESSION['error_code'] = "403"; header("Cache-Control: max-age=1"); header( "Location: index.php?page=error" ); throw new SystemExit(); } }