Пример #1
0
     break;
     // ----------------------------------------------------------------------------------------------------------------------------------------------//
 // ----------------------------------------------------------------------------------------------------------------------------------------------//
 case 'support':
     $query = doquery("SELECT estado FROM {{table}} where modulo='Support'", 'modulos', true);
     if ($query[0] == "0") {
         message("Modul inaktiv.", "game.php?page=overview");
     }
     include_once $xnova_root . 'includes/pages/ShowSupportPage.' . $phpEx;
     ShowSupportPage($user);
     break;
     // ----------------------------------------------------------------------------------------------------------------------------------------------//
 // ----------------------------------------------------------------------------------------------------------------------------------------------//
 case 'loteria':
     include_once $xgp_root . 'includes/pages/ShowLoteriaPage.' . $phpEx;
     Loteria($CurrentUser, $CurrentPlanet);
     break;
     // ----------------------------------------------------------------------------------------------------------------------------------------------//
 // ----------------------------------------------------------------------------------------------------------------------------------------------//
 case 'logout':
     $QryUpdateUser = "UPDATE {{table}} SET ";
     $QryUpdateUser .= "`current_planet` = `id_planet` ";
     $QryUpdateUser .= "WHERE ";
     $QryUpdateUser .= "`id` = '" . $user['id'] . "' LIMIT 1";
     doquery($QryUpdateUser, "users");
     setcookie($game_config['COOKIE_NAME'], "", time() - 100000, "/", "", 0);
     $parse['dpath'] = !$user["dpath"] ? DEFAULT_SKINPATH : $user["dpath"];
     $page = parsetemplate(gettemplate('logout_body'), $parse);
     echo $page;
     break;
     // ----------------------------------------------------------------------------------------------------------------------------------------------//
Пример #2
0
 // ----------------------------------------------------------------------------------------------------------------------------------------------//
 case 'banco':
     include_once $xgp_root . 'includes/pages/Banco.' . $phpEx;
     Banco($user, $planetrow);
     break;
     // ----------------------------------------------------------------------------------------------------------------------------------------------//
 // ----------------------------------------------------------------------------------------------------------------------------------------------//
 case 'motrader':
     include_once $xgp_root . 'includes/pages/ShowMOTraderPage.' . $phpEx;
     ShowMOTraderPage($user, $planetrow);
     break;
     // ----------------------------------------------------------------------------------------------------------------------------------------------//
 // ----------------------------------------------------------------------------------------------------------------------------------------------//
 case 'loteria':
     include_once $xgp_root . 'includes/pages/ShowLoteriaPage.' . $phpEx;
     Loteria($user, $planetrow);
     break;
     // ----------------------------------------------------------------------------------------------------------------------------------------------//
 // ----------------------------------------------------------------------------------------------------------------------------------------------//
 case 'annonce':
     include_once $xgp_root . 'includes/pages/annonce.' . $phpEx;
     annonce($user, $planetrow);
     break;
     // ----------------------------------------------------------------------------------------------------------------------------------------------//
 // ----------------------------------------------------------------------------------------------------------------------------------------------//
 case 'tutorial':
     include_once $xgp_root . 'includes/pages/ShowTutorialPage.' . $phpEx;
     ShowTutorialPage($user, $planetrow);
     break;
     // ----------------------------------------------------------------------------------------------------------------------------------------------//
 // ----------------------------------------------------------------------------------------------------------------------------------------------//