Крупная уборка неиспользуемых файлов. Шаблонизатор заведёт во все файлы. Куча мелких правок.

This commit is contained in:
Igor Barkov (iwork)
2020-10-01 01:12:53 +03:00
parent c181c8eb1e
commit 6305bcef8c
1132 changed files with 988 additions and 9077 deletions
-16
View File
@@ -1,16 +0,0 @@
<?php
$mysql = mysql_connect('localhost','old-dark','7VnpeGCEeBV4f6zF');
mysql_select_db ('ccombat', $mysql);
mysql_query('SET NAMES CP1251');
if (!$google) {
foreach ($_POST as $k=>$v) {
$_POST[$k] = htmlspecialchars(mysql_real_escape_string($v), NULL, "");
}
foreach ($_GET as $k=>$v) {
$_GET[$k] = htmlspecialchars(mysql_real_escape_string($v), NULL, "");
}
foreach ($_REQUEST as $k=>$v) {
$_REQUEST[$k] = htmlspecialchars(mysql_real_escape_string($v), NULL, "");
}
}
-18
View File
@@ -1,18 +0,0 @@
<?php
session_start();
if ($user->battle) { header('location: fbattle.php'); exit; }
include "../config.php";
?>
<form action="" method="post">
<input name="ddd" type="submit" value="Удалить">
</form>
<?
if($_POST['ddd']){
mysql_query("UPDATE `inventory` SET present='',podzem='1' WHERE name='Гайка'");
mysql_query("UPDATE `inventory` SET present='',podzem='1',name='Вентиль' WHERE name='Винтель'");
mysql_query("UPDATE `inventory` SET present='',podzem='1' WHERE name='Ключиик'");
mysql_query("UPDATE `inventory` SET present='',podzem='1' WHERE name='Болт'");
mysql_query("UPDATE `inventory` SET present='',podzem='1',cost='0',massa='1',name='Жетон' WHERE name='Житон'");
print"Удалено!";
}
?>