battles/podzem/connect.php
2018-01-28 18:40:49 +02:00

17 lines
489 B
PHP

<?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, "");
}
}
?>