Класс-заглушка users_row.php удалён. Спасибо за два года службы.

This commit is contained in:
lopar 2020-08-30 03:16:27 +03:00
parent 9e1611161c
commit 4d98acb9f9
2 changed files with 1 additions and 33 deletions

View File

@ -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;
}
}

View File

@ -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)