Вход Регистрация
Файл: public_html/start.php
Строк: 10
<?php
    
    
include './dev/db.php';
    include 
'./dev/functions.php';
    include 
'./dev/user.php';
    
     if(
$user) {
     
header('location: /game.php');
     exit;
     }
  
$password bldslsblds;
  if(
mysql_query('INSERT INTO `users` (`login`,
                                    `password`, `reg_time`, `exp`, `gold`, `race`) VALUEs ("Воин",
                                               "'
.$password.'", "'.time().'", "0", "100", "0")')) {
    
    
$id mysql_insert_id();

  
$user mysql_query('SELECT * FROM `users` WHERE `id` = "'.$id.'"');

  
$user mysql_fetch_array($user);
  
     
   
setCookie('id'$user['id'], time() + 86400 365);
   
setCookie('password'$passwordtime() + 86400 365);
    
    
      
header('location: /game.php');

  }

?>
Онлайн: 0
Реклама