本文整理汇总了PHP中game::set_planet方法的典型用法代码示例。如果您正苦于以下问题:PHP game::set_planet方法的具体用法?PHP game::set_planet怎么用?PHP game::set_planet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类game
的用法示例。
在下文中一共展示了game::set_planet方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: message
// 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';