Класс-заглушка users_row.php удалён. Спасибо за два года службы.
This commit is contained in:
parent
9e1611161c
commit
4d98acb9f9
@ -1,32 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* Copyright (c) 2018.
|
|
||||||
* Author: Igor Barkov <lopar.4ever@gmail.com>
|
|
||||||
* Project name: Battles-Game
|
|
||||||
*/
|
|
||||||
|
|
||||||
class users_row
|
|
||||||
{
|
|
||||||
private $row;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* users_row constructor.
|
|
||||||
* @param $playerId
|
|
||||||
*/
|
|
||||||
public function __construct($playerId)
|
|
||||||
{
|
|
||||||
if (!$this->row) {
|
|
||||||
$this->row = db::c()->query('SELECT * FROM `users` WHERE `id` = ?i', $playerId)->fetch_assoc();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function result()
|
|
||||||
{
|
|
||||||
return $this->row;
|
|
||||||
}
|
|
||||||
}
|
|
2
dig.php
2
dig.php
@ -3,7 +3,7 @@ session_start();
|
|||||||
if (!($_SESSION['uid'] > 0)) header("Location: index.php");
|
if (!($_SESSION['uid'] > 0)) header("Location: index.php");
|
||||||
require_once 'config.php';
|
require_once 'config.php';
|
||||||
|
|
||||||
$user = (new users_row($_SESSION['uid']))->result();
|
$user = db::c()->query('SELECT * FROM `users` WHERE `id` = ?i', $playerId)->fetch_assoc();
|
||||||
$can_go_ch = 0;
|
$can_go_ch = 0;
|
||||||
|
|
||||||
/*if($user['id']==1258)
|
/*if($user['id']==1258)
|
||||||
|
Loading…
Reference in New Issue
Block a user