Просмотр файла gbserv/ini.php

Размер файла: 783B
<?php
$DB_HOST = "localhost";
$DB_USER = "";
$DB_PASS = "";
$DB_NAME = ""; 
mysql_connect($DB_HOST,$DB_USER,$DB_PASS) or die (mysql_error());
mysql_select_db($DB_NAME);
/////////////////////////////////
//­ бва®©ЄЁ
$px = "gbservice_";	//ЇаҐдЁЄб
$utable = "users";	//в Ў«Ёж  ஢
$mtable = "messages";	//в Ў«Ёж  б б®®ЎйҐ­Ёп¬Ё
//////////////////////////////////
function autorize() {
global $login, $px, $utable;
$q = @mysql_query("select * from `".$px.$utable."` where login = '$login' limit 1;");
$udata = @mysql_fetch_array($q);
return $udata;
}
function enter() {
global $login, $px, $utable, $pass;
$q = @mysql_query("select * from `".$px.$utable."` where login = '$login' and pass = '$pass' limit 1;");
$udata = @mysql_fetch_array($q);
return $udata;
}
?>