Вход Регистрация
Файл: Space race/game.php
Строк: 105
<?php include_once('classes/check.class.php'); ?>
<?php 
include_once('header.php'); ?>
<?php 
if( protectThis("*") ) : ?>

<?php


    $viewer_id 
$_SESSION['starrace']['user_id'];
            
$sql=mysql_query("select `godmode`,`speed`, `thrust`, `bspeed`, `shielddamage`, `airbrake`, `angularspeed`, `bonus`, `score` from $dbName.login_users where `user_id`='$viewer_id'");
    
$result=mysql_fetch_array($sql);

$godmode $result[godmode];        
    
$speed $result[speed];        
    
$airbrake $result[airbrake];        
    
$shielddamage $result[shielddamage];        
    
$bspeed $result[bspeed];        
    
$angularspeed $result[angularspeed];        
    
$thrust $result[thrust];        
    
$bonus $result[bonus];        
    
$score $result[score];    

?>
    
   
    

  

  <div id="fs_section">
 <script>
       var viewer_id = "<?php echo $viewer_id?>";
       var auth_key = "<?php echo $auth_key?>";
       var ab = "<?php echo $airbrake?>";
       var bs = "<?php echo $bspeed?>";
       var sd = "<?php echo $shielddamage?>";
       var speed = "<?php echo $speed?>";
       var as = "<?php echo $angularspeed?>";
       var th = "<?php echo $thrust?>";
          
    </script>
    


    <div id="step-1">
      <div id="global"></div>
      <div id="title">
      </div>
      <div id="menucontainer">
        <div id="menu">
          <div id="start">Старт</div>
          
          <div id="s-controlType">Управление: Клавиатура</div>
          <div id="s-quality">Качество: Высокое</div>
          <div id="s-hud">Панель: Вкл</div>
           <div id="s-godmode" <?php if ($godmode != 1) echo 'style="display:none;"'?>>
           Повреждение: Вкл</div>
          <div id="s-credits" style="display:none;">Справка</div>
        </div>
      </div>
    </div>
    <div id="step-2" style="display: none">
      <div id="ctrl-help">Нажмите для продолжения.</div>
    </div>
    <div id="step-3" style="display: none">
      <div id="progressbar"></div>
    </div>
    <div id="step-4" style="display: none">
      <div id="overlay"></div>
      <div id="main"></div>
    </div>
    <div id="step-5" style="display: none">
      <div id="time"></div>
      <div id="ctrl-help">Нажмите для продолжения.</div>
      <div id="finish"></div>
      <div id="finish-state"></div>
      <div id="finish-hallmsg"></div>
      <div id="finish-msg"></div>
      <div id="finish-result"></div>
      <div id="finish-lap1"></div>
      <div id="finish-lap2"></div>
      <div id="finish-lap3"></div>
      <div id="finish-diff"></div>
      <div id="finish-twitter"></div>
      <div id="finish-fb"></div>
      <div id="finish-twitter"></div>
      <div id="finish-twitter"></div>
      
      
    </div>
    <div id="credits" style="display: none">
    
      <h3>Помощь</h3>

      

      <p><b>Concept and Development</b><br>Thibaut Despoulain (BKcore)</p>
      <p><b>Contributors</b><br>townxelliot<br>mahesh.kk</p>
      <p><b>Technologies</b><br>WebGL<br>JavaScript<br>CoffeeScript<br>Three.js<br>LeapMotion</p>
      <h3>Graphics</h3>
      <p><b>HexMKI base model</b><br>Charnel</p>
      <p><b>Track texture</b><br>Nobiax</p>
      <h4>Click anywhere to continue.</h4>
    </div>

    <div id="leapinfo" style="display: none"></div>

    <script src="libs/leap-0.4.1.min.js"></script>
    <script src="libs/Three.dev.js"></script>
    <script src="libs/ShaderExtras.js"></script>
    <script src="libs/postprocessing/EffectComposer.js"></script>
    <script src="libs/postprocessing/RenderPass.js"></script>
    <script src="libs/postprocessing/BloomPass.js"></script>
    <script src="libs/postprocessing/ShaderPass.js"></script>
    <script src="libs/postprocessing/MaskPass.js"></script>
    <script src="libs/Detector.js"></script>
    <script src="libs/Stats.js"></script>
    <script src="libs/DAT.GUI.min.js"></script>

        <script src="libs/fullscreen.js"></script>
    
    <script src="bkcore.coffee/controllers/TouchController.js"></script>
    <script src="bkcore.coffee/controllers/OrientationController.js"></script>
    <script src="bkcore.coffee/controllers/GamepadController.js"></script>

    <script src="bkcore.coffee/Timer.js"></script>
    <script src="bkcore.coffee/ImageData.js"></script>
    <script src="bkcore.coffee/Utils.js"></script>

    <script src="bkcore/threejs/RenderManager.js"></script>
    <script src="bkcore/threejs/Shaders.js"></script>
    <script src="bkcore/threejs/Particles.js"></script>
    <script src="bkcore/threejs/Loader.js"></script>

    <script src="bkcore/Audio.js"></script>

    <script src="bkcore/hexgl/HUD.js"></script>
    <script src="bkcore/hexgl/RaceData.js"></script>
    <script src="bkcore/hexgl/ShipControls.js"></script>
    <script src="bkcore/hexgl/ShipEffects.js"></script>
    <script src="bkcore/hexgl/CameraChase.js"></script>
    <script src="bkcore/hexgl/Gameplay.js"></script>

    <script src="bkcore/hexgl/tracks/Cityscape.js"></script>

    <script src="bkcore/hexgl/HexGL.js"></script>

    <script src="launch.js"></script>

    <button class="fullscreenbutton" onclick="enterFullscreen('fs_section')"></button>
<div class="bonus" ><img src="css/star.png"> 
        <?php if ($bonus 1){


 echo 
"<a href='pay.php' id='add_btn' >КУПИТЬ БОНУСЫ</a>";
}
else {
    echo 
$bonus
}
    
?>
        
        </div>
          <div id="callbacks" style="display:none;"></div>      
        
  </div>
  <?php else : ?>
        <div class="alert alert-warning">ДОСТУП К ИГРЕ ВОЗМОЖЕН ТОЛЬКО ДЛЯ ЗАРЕГИСТРИРОВАННЫХ ПОЛЬЗОВАТЕЛЕЙ.<br><br> <a href="login.php">ВОЙДИТЕ</a> или <a href="sign_up.php">ЗАРЕГИСТРИРУЙТЕСЬ</a></div>
    <?php endif; ?>

<?php include_once('footer.php'); ?>
Онлайн: 1
Реклама