// Nach PHP/Perl-UserAgent suchen if (stristr($_SERVER['HTTP_USER_AGENT'], 'php') || stristr($_SERVER['HTTP_USER_AGENT'], 'perl')) { stgc_log('illegal_user_agent', 'I don\'t like the user agent ' . $_SERVER['HTTP_USER_AGENT'] . ' of ' . $game->player['user_name']); } // ############################################################################# // Notepad-Actions if (isset($_GET['show_notepad'])) { $db->query('UPDATE user SET user_hidenotepad = 0 WHERE user_id = ' . $game->player['user_id']); $game->player['user_hidenotepad'] = 0; } if (isset($_GET['hide_notepad'])) { $db->query('UPDATE user SET user_hidenotepad = 1 WHERE user_id = ' . $game->player['user_id']); $game->player['user_hidenotepad'] = 1; } if (isset($_POST['set_planet'])) { $game->set_planet((int) $_POST['quadrant'], $_POST['type']); } // ############################################################################# // Security Code if ($game->TIME - $game->player['last_secimage'] > 3600 * 1.5 && $game->player['content_secimage'] == '') { if ($game->player['user_auth_level'] == STGC_DEVELOPER) { $sql = 'UPDATE user SET last_secimage = ' . $game->TIME . ', content_secimage = "" WHERE user_id = ' . $game->player['user_id']; if (!$db->query($sql)) { message(DATABASE_ERROR, 'Could not update dev content_secimage data'); } echo 'I filled in the security code for you, master'; } else { include 'include/libs/secimage.php';