Файл: b.php
Строк: 21
<?
ini_set('display_errors', 'off');
header ("Content-type: text/html; charset=utf-8");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-relative");
$dbh=mysql_connect ("localhost", "....","....")
or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("....");
mysql_query ("select * from bannedib WHERE ci='$ci' AND (ip = '".htmlspecialchars(getenv(REMOTE_ADDR))."')and(browser = '".htmlspecialchars(getenv(HTTP_USER_AGENT))."')");
if(mysql_affected_rows()!=0){
print"<html><title>Упс</title><link rel="StyleSheet" type="text/css" href="style/default.css"></head><body>
<div class="smain">
<b>Вы забанены!</b><br/>
(IP+Browser)
<br/><a href="index.php?ci=$ci">OK</a></div><br/>
</body></html>";
exit();
}
mysql_close($dbh);
?>