View file sea/moduls/connect.php

File size: 1.12Kb
<?
#-----------------------------------------------------#
#     ============ЗАГРУЗ-ЦЕНТР=============           #
#             	 Автор  :  Sea                   	  #
#               E-mail  :  [email protected]              #
#                  ICQ  :  355152215                   #
#   Вы не имеете права распространять данный скрипт.  #
#   		По всем вопросам пишите в ICQ.            #
#-----------------------------------------------------#
include 'moduls/config.php';
$link = mysql_connect($SERVERmysql, $DB_USER, $DB_PASS) or die("Could not connect");
$db_id = mysql_select_db($DB, $link) or die("Could not db");
$charset = mysql_query("SET NAMES utf8");
if ($_SERVER['HTTP_X_FORWARDED_FOR']) $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
else if($_SERVER['HTTP_CLIENT_IP']) $ip=$_SERVER['HTTP_CLIENT_IP'];
else if($_SERVER['REMOTE_ADDR']) $ip=$_SERVER['REMOTE_ADDR'];
$time = time();
$setting = mysql_query('SELECT * FROM `setting`;');
while($set = mysql_fetch_array($setting)) $setup[$set['name']] = $set['value'];
$hackmess = $setup['hackmess'];
?>