View file waplend/gbs/ini.php

File size: 1.72Kb
<?php
$DB_HOST = "localhost";
$DB_USER = "d000000081_gbs";
$DB_PASS = "5463nhgdmrdhAA";
$DB_NAME = "d000000081_gbs";
mysql_connect($DB_HOST,$DB_USER,$DB_PASS) or die (mysql_error());
mysql_select_db($DB_NAME);
/////////////////////////////////
//­ бва®©ЄЁ
$px = "gbservice_";	//ЇаҐдЁЄб
$utable = "users";	//в Ў«Ёж  ஢
$mtable = "messages";
$btable = "banned";	//в Ў«Ёж  б б®®ЎйҐ­Ёп¬Ё
//////////////////////////////////
$reklama = "waplend.org";
$urls = "http://waplend.org/gbs/";
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;
}
//Транслит
$tran = array(
"A"=>"А","a"=>"а","B"=>"Б","b"=>"б","V"=>"В",
"v"=>"в","G"=>"Г","g"=>"г","D"=>"Д","d"=>"д",
"E"=>"Е","e"=>"е","yo"=>"ё","Zh"=>"Ж","zh"=>"ж",
"Z"=>"З","z"=>"з","I"=>"И","i"=>"и","J"=>"Й",
"j"=>"й","K"=>"К","k"=>"к","L"=>"Л","l"=>"л",
"M"=>"М","m"=>"м","N"=>"Н","n"=>"н","O"=>"О",
"o"=>"о","P"=>"П","p"=>"п","R"=>"Р","r"=>"р",
"S"=>"С","s"=>"с","T"=>"Т","t"=>"т","U"=>"У",
"u"=>"у","F"=>"Ф","f"=>"ф","H"=>"Х","h"=>"х",
"C"=>"Ц","c"=>"ц","Ch"=>"Ч","ch"=>"ч","Sh"=>"Ш",
"sh"=>"ш","Sch"=>"Щ","sch"=>"щ","''"=>"ъ",
"Y"=>"Ы","y"=>"ы","'"=>"ь","Ye"=>"Э",
"ye"=>"э","Yu"=>"Ю","yu"=>"ю","Ya"=>"Я","ya"=>"я",
"Yo"=>"Ё"
);

function translit($str) {
	global $tran;
	return strtr($str,$tran);
}
?>