File size: 551B
<?
error_reporting(0);
$DB_HOST = "localhost";
$DB_USER = "waplogi_click";
$DB_PASS = "1234";
$DB_NAME = "waplogi_click";
mysql_connect($DB_HOST,$DB_USER,$DB_PASS) or die (mysql_error());
mysql_select_db($DB_NAME);
function preobraz($value){
$value1=array("&","$","'","\"","<",">");
$value2=array("&","$$","'",""","<",">");
$value=str_replace($value1,$value2,$value);
if(get_magic_quotes_gpc()){
$value = stripslashes($value);}
$value = mysql_real_escape_string($value);
return $value;}
?>