当前位置: 首页>>代码示例>>PHP>>正文


PHP game::sprache方法代码示例

本文整理汇总了PHP中game::sprache方法的典型用法代码示例。如果您正苦于以下问题:PHP game::sprache方法的具体用法?PHP game::sprache怎么用?PHP game::sprache使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在game的用法示例。


在下文中一共展示了game::sprache方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: sql

$db = new sql($config['server'] . ":" . $config['port'], $config['game_database'], $config['user'], $config['password']);
// create sql-object for db-connection
$game = new game();
$game->load_config();
$ACTUAL_TICK = $NEXT_TICK = 0;
$ACTUAL_TICK = $game->config['tick_id'];
$NEXT_TICK = $game->config['tick_time'] - time();
//$game->TIME;
$LAST_TICK_TIME = $game->config['tick_time'] - TICK_DURATION * 60;
include '../include/session.php';
//$game->init_player();
echo '

<html>
<head>
  <title>Star Trek: Frontline Combat 2 - ' . constant($game->sprache("TEXT0")) . '</title>
</head>

<style type="text/css">
<!-- A:link {FONT-SIZE: 11px; COLOR: #c0c0c0; FONT-FAMILY: Arial, Luxi Sans; TEXT-DECORATION: none}
A:visited {FONT-SIZE: 11px; COLOR: #c0c0c0; FONT-FAMILY: Arial, Luxi Sans; TEXT-DECORATION: none}
A:hover {FONT-SIZE: 11px; COLOR: #ffd700; FONT-FAMILY: Arial, Luxi Sans; TEXT-DECORATION: none}
A:active {FONT-SIZE: 11px; COLOR: #ffd700; FONT-FAMILY: Arial, Luxi Sans; TEXT-DECORATION: none}
A.nav:link {FONT-WEIGHT: bold; FONT-SIZE: 10px}
A.nav:visited {FONT-WEIGHT: bold; FONT-SIZE: 10px}
A.nav:hover {FONT-WEIGHT: bold; FONT-SIZE: 10px}
A.nav:active {FONT-WEIGHT: bold; FONT-SIZE: 10px}
TD {FONT-SIZE: 11px; FONT-FAMILY: Arial, Luxi Sans; COLOR: #c0c0c0;  bgcolor=#cccccc}
input[type=checkbox] { border-style: none;}
INPUT[type=submit], INPUT[type=text], INPUT[type=password] {BORDER-RIGHT: #959595 1px solid; BORDER-TOP: #959595 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #959595 1px solid; COLOR: #959595; BORDER-BOTTOM: #959595 1px solid; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #000000}
TEXTAREA {BORDER-RIGHT: #959595 1px solid; BORDER-TOP: #959595 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #959595 1px solid; COLOR: #959595; BORDER-BOTTOM: #959595 1px solid; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #000000}
开发者ID:startrekfinalfrontier,项目名称:UI,代码行数:31,代码来源:auctions.popup.php

示例2: intval

// Session-System
include 'include/session.php';
$game->init_player();
$main_html = '';
if (!empty($_POST['change_skin']) || !empty($_GET['change_skin'])) {
    $skin_id = intval(!empty($_POST['change_skin']) ? $_POST['new_skin'] : $_GET['change_skin']);
    $sql = 'SELECT skin_id, skin_name, gfxpack_link, skin_html

            FROM skins

            WHERE skin_id = ' . $skin_id;
    if (($skin_data = $db->queryrow($sql)) === false) {
        message(DATABASE_ERROR, 'Could not query skin data');
    }
    if (empty($skin_data['skin_id'])) {
        message(GENERAL, constant($game->sprache("TEXT0")));
    }
    $sql = 'UPDATE user_templates

            SET user_template = "' . addslashes($skin_data['skin_html']) . '"

            WHERE user_id = ' . $game->player['user_id'];
    if (!$db->query($sql)) {
        message(DATABASE_ERROR, 'Could not update user template data');
    }
    $sql = 'UPDATE user

            SET user_skinpath = "skin' . $skin_id . '/",

                user_skin = ' . $skin_id . '
开发者ID:startrekfinalfrontier,项目名称:UI,代码行数:30,代码来源:template_manager.php

示例3: constant

      scrollbar-base-color:#000000;
      scrollbar-3dlight-color:#000000;
      scrollbar-arrow-color:#D8D8D8;
      scrollbar-darkshadow-color:#000000;
      scrollbar-face-color:#000000;
      scrollbar-highlight-color:#000000;
      scrollbar-shadow-color:#000000;
      scrollbar-track-color:#2C2C2C;
      margin: 0; padding: 0;
  }
  //-->
</style>

</head>
<body bgcolor="#727272" text="#FFFFFF" background="' . FIXED_GFX_PATH . 'template_bg.jpg">
<center><span style="font-family: Verdana; font-size: 18px;">' . constant($game->sprache("TEXT0")) . '<br></span>
<span style="font-family: Verdana; font-size: 12px;">
';
if ($game->player['content_secimage'] != "" && time() < $game->player['timeout_secimage']) {
    if (isset($_POST['click_x'])) {
        $arr = explode(":", $game->player['content_secimage']);
        if (sqrt(pow($_POST['click_x'] - $arr[0], 2) + pow($_POST['click_x'] - $arr[0], 2)) < 25) {
            echo constant($game->sprache("TEXT1")) . '<form><input type=button value="' . constant($game->sprache("TEXT6")) . '" class="button_nosize" onClick="JavaScript:self.close()"></form><script>self.close();</script>';
            $db->query('UPDATE user SET content_secimage="" WHERE user_id="' . $game->player['user_id'] . '" LIMIT 1');
        } else {
            echo constant($game->sprache("TEXT7")) . '<form><input type=button value="' . constant($game->sprache("TEXT6")) . '" class="button_nosize" onClick="JavaScript:self.close()"> </form>';
            $db->query('UPDATE user SET timeout_secimage="' . (time() - 1) . '" WHERE user_id="' . $game->player['user_id'] . '" LIMIT 1');
        }
    } else {
        echo constant($game->sprache("TEXT8")) . '<br>
<form name="secimage" method="post" action="secimage_popup.php">
开发者ID:startrekfinalfrontier,项目名称:UI,代码行数:31,代码来源:secimage_popup.php


注:本文中的game::sprache方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。