battles/podzem/connect.php

17 lines
487 B
PHP
Raw Normal View History

2018-01-28 16:40:49 +00:00
<?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, "");
}
}