// Game-Object $game = new game(); // ############################################################################# // Config load and evaluate $game->load_config(); $ACTUAL_TICK = $NEXT_TICK = 0; $ACTUAL_TICK = $game->config['tick_id']; $NEXT_TICK = $game->config['tick_time'] - $game->TIME; $LAST_TICK_TIME = $game->config['tick_time'] - 5 * 60; // ############################################################################# // Session-System include 'include/session.php'; if ($game->config['game_stopped'] == 1 && $game->player['user_auth_level'] != STGC_DEVELOPER) { message(GENERAL, $game->config['stop_message']); } $game->init_player(); if (isset($_POST['user_notepad'])) { $sql = 'UPDATE user SET user_notepad = "' . $db->escape_string($_POST['user_notepad']) . '" WHERE user_id = ' . $game->player['user_id']; if (!$db->query($sql)) { message(DATABASE_ERROR, 'Could not update notepad data'); } switch ($game->player['language']) { case 'GER': $title = 'Submitted new notepad data:'; $button = 'Fenster schlieβen'; break; case 'ENG': $title = 'Submitted new notepad data:'; $button = 'Close window';