Esempio n. 1
0
 public function pre_exec()
 {
     global $lang, $game_config;
     parent::lang_txt('reciclador');
 }
Esempio n. 2
0
        // OR fleet_end_time <= ".time()
        while ($row = mysql_fetch_array($_fleets)) {
            $array = array();
            $array['galaxy'] = $row['fleet_end_galaxy'];
            $array['system'] = $row['fleet_end_system'];
            $array['planet'] = $row['fleet_end_planet'];
            $array['planet_type'] = $row['fleet_end_type'];
            $temp = new FlyingFleetHandler($array);
        }
        mysql_free_result($_fleets);
        unset($_fleets);
        if (defined('IN_ADMIN')) {
            includeLang('ADMIN');
            include '../adm/AdminFunctions/Autorization.' . $phpEx;
            $dpath = "../" . DEFAULT_SKINPATH;
        } else {
            $dpath = !$user["dpath"] ? DEFAULT_SKINPATH : $user["dpath"];
        }
        include $xgp_root . 'includes/functions/SetSelectedPlanet.' . $phpEx;
        SetSelectedPlanet($user);
        $planetrow = doquery("SELECT * FROM `{{table}}` WHERE `id` = '" . $user['current_planet'] . "';", "planets", true);
        include $xgp_root . 'includes/functions/CheckPlanetUsedFields.' . $phpEx;
        CheckPlanetUsedFields($planetrow);
        include $xgp_root . 'includes/mod_plug.' . $phpEx;
        $mod_plug = new modPl();
        $mod_plug->run();
        $mod_plug->run('SettingsPage', 'page');
    }
} else {
    $dpath = "../" . DEFAULT_SKINPATH;
}