<? define("DATA_MAIN", true); ?>
<?
Error_Reporting(E_ALL & ~E_NOTICE);
header("Content-type: text/vnd.wap.wml;charset=utf-8");
include ("inc.php");
/*Скрипт пидарской гостевой ### Скрипт спизжен у лоха и кидаль витали пидора венфорума. Сайт пидора http://wapfon.net ### ебите эту шлюху и будут вам скрипты! ### Благодарим всех кто засрёт сайты педофилов: http://wapfon.net http://bestwap.us http://52r.us - САЙТЫ ПИДАРАСОВ И КИДАЛ! ### нам похуй! ### Ждите обновлений! made by СПИЗЖЕНО */
list($msec,$sec)=explode(chr(32),microtime());$HeadTime=$sec+$msec;
$currHour=date("H");
$currDate=date("d F Y", time());
$currTime=date("$currHour:i", time());
$currDate = str_replace("January","Января",$currDate);
$currDate = str_replace("February","Февраля",$currDate);
$currDate = str_replace("March","Марта",$currDate);
$currDate = str_replace("April","Апреля",$currDate);
$currDate = str_replace("May","Мая",$currDate);
$currDate = str_replace("June","Июня",$currDate);
$currDate = str_replace("July","Июля",$currDate);
$currDate = str_replace("August","Августа",$currDate);
$currDate = str_replace("September","Сентября",$currDate);
$currDate = str_replace("October","Октября",$currDate);
$currDate = str_replace("November","Ноября",$currDate);
$currDate = str_replace("December","Декабря",$currDate);
$currDate = str_replace("2006","2006г.",$currDate);
$currDate = str_replace("2007","07",$currDate);
$currDate = str_replace("2008","08",$currDate);
$currDate = str_replace("2009","09",$currDate);
$currDate = str_replace("2010","10",$currDate);
$soft=$HTTP_USER_AGENT;
$soft=check($soft);
$ip=$REMOTE_ADDR;
mysql_query("select * from ban_ip where ip='$ip' and soft='$soft';");
if(mysql_affected_rows()!=0){
header("Content-type: text/vnd.wap.wml;charset=utf-8");
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
print "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">";
print "<wml>";
print "<card id=\"index\" title=\"Гocтeвая\">";
print "<p align=\"center\">\n<small>\n";
echo '<b>Вы забанены по IP+SOFT!!!</b>';
print "</small></p></card>";
break;}
switch($mod) {
default:
if ($nick and $mess){
$nick=check($nick);
$mess=check($mess);
$mail=check($mail);
$site=check($site);
if (eregi ("[а-я]",$nick,$arr)){$nick=rus_to_k($nick);};
if ($trans=="on"){$mess=trun_to_rus($mess);};
include ("anti_mat.php");
$lmess=mysql_fetch_row(mysql_query("select mess from gb order by id desc;"));
if ($mess==$lmess[0]){$error="Вы пишете предыдущее сообщение!";};
$ltime=mysql_fetch_row(mysql_query("select tm from gb where soft='$soft' and ip='$ip' order by id desc;"));
if ($ltime[0]>time()){$df=$ltime[0]-time();
$error="Подождите $df сек. и обновите страницу";};
if (!$error){
include ("smile.php");
if (eregi ("[а-я]",$site,$arr)){$site="";};
if (!preg_match("/[0-9a-z_]+@[0-9a-z_^\.]+\.[a-z]{2,3}/i", $mail)){$mail="";};
$site=str_replace("http://","",$site);
$date=date("d.m.Y");
$time=date("H:i");
$tm=time()+60;
mysql_query("insert into gb values ('0', '$nick','$mess','$mail','$date','$time','$site','$soft','$ip','$tm');");
};};
$time=date("H:i:s");
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
print "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">";
print "<wml>";
print "<card id=\"index\" title=\"Гocтeвая\">";
print "<p align=\"center\"><small>";
print"<b>$time</b><br/>$currDate<br/>Доброго времени суток!<br/>";
print '</small></p><p align="left"><small>';
if ($error){echo "<b>$error</b><br/>";};
if ($ps){echo "»<a href=\"index.php?mod=write&ps=$ps\">Написать</a><br/>";}
else {echo '»<a href="index.php?mod=write">Написать</a><br/>';};
echo "»<a href=\"index.php?&ps=$ps\">Обновить</a><br/>- - -<br/>";
$all=mysql_num_rows(mysql_query("select * from gb;"));
if (!$s){$s=0;};
$sel=mysql_query("select * from gb order by id desc limit $s,$msgs;");
while ($res=mysql_fetch_row($sel)){
echo "[<a href=\"index.php?mod=write&to=$res[1]&ps=$ps\">$res[1]</a>]<br/>";
//echo "</go></anchor><br/>";
echo "($res[4] | $res[5])<br/>";
echo "$res[2]<br/>";
if ($res[3]){echo "Мыло: $res[3]<br/>";};
if ($res[6]){echo "Сайт: http://$res[6]<br/>";};
$mob=strtok($res[7],'/');
echo "Агрегат: [$mob]<br/>";
if ($ps==$pw){echo "[<a href=\"admin.php?ps=$ps&mod=del&id=$res[0]\">DEL</a>] ";
echo "[<a href=\"admin.php?ps=$ps&mod=make_ban_ip&id=$res[0]\">IP</a>]<br/>";};
echo "- - -<br/>";
};
$soft=check($HTTP_USER_AGENT);
$time=time();
$time_off=time()+120;
$cl_onl=mysql_query("delete from online where time<'$time';");
$onl=mysql_query("select * from online");
while ($res=mysql_fetch_row($onl)){
if ($res[0]==$soft){$on=1;};};
if ($on!=1){mysql_query("insert into online values ('$soft','$time_off');");};
if ($on==1){mysql_query("update online set time='$time_off' where soft='$soft';");};
$online=mysql_query("select * from online");
$onl=mysql_num_rows($online);
$part=ceil($all/$msgs);
for($i=1;$i<=$part;$i++){
$beg=($i-1)*$msgs;
if ($beg==$s){if ($i!=$part)
{
echo "<b>$i1</b>-";}
else {
echo "<b>$i1</b>";};}
else {if ($i!=$part){
echo "<a href=\"index.php?s=$beg\">$i</a>-";}
else {
echo "<a href=\"index.php?s=$beg\">$i</a>";};};};
echo "OnLine: [<a href=\"online.php\">$onl</a>]<br/>";
if ($link_site and $title_site and $align_site){
$link_site=htmlspecialchars(stripslashes($link_site));
$title_site=htmlspecialchars(stripslashes($title_site));
$align_site=htmlspecialchars(stripslashes($align_site));
echo "<a href=\"$link_site\">На главную</a><br/>";};
list($msec,$sec)=explode(chr(32),microtime());
echo "[".round(($sec+$msec)-$HeadTime,4)." cek]";
echo '</small></p></card></wml>';
break;
case 'smile':
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
print "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">";
print "<wml>";
print "<card id=\"index\" title=\"Смайлы\">";
print "<p><small>";
echo '<img src="smile/smile.gif" alt=":)"/> :)<br/>';
echo '<img src="smile/wink.gif" alt=";)"/> ;)<br/>';
echo '<img src="smile/frown.gif" alt=":|"/> :|<br/>';
echo '<img src="smile/sad.gif" alt=":("/> :(<br/>';
echo '<img src="smile/shock.gif" alt=":o"/> :o<br/>';
echo '<img src="smile/pfft.gif" alt=":p"/> :p<br/>';
echo '<img src="smile/cool.gif" alt="B)"/> B)<br/>';
echo '<img src="smile/grin.gif" alt=":D"/> :D<br/>';
echo '<img src="smile/angry.gif" alt=":@"/> :@<br/>';
echo "»<a href=\"index.php?mod=write\"> Написать</a><br/>";
echo '»<a href="index.php"> В гостевую</a>';
echo '</small></p></card></wml>';
break;
case 'trans':
header("Content-type: text/vnd.wap.wml;charset=utf-8");
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
print "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">";
print "<wml>";
print "<card id=\"index\" title=\"Правила\"><p><small>";
?>
<b>Прaвилa трaнcлитa</b><br/>
a(A)-a(A)<br/>
б(Б)-b(B)<br/>
в(B)-v(V)<br/>
г(Г)-g(G)<br/>
д(Д)-d(D)<br/>
e(E)-e(E)<br/>
ж(Ж)-j(J)<br/>
з(З)-z(Z)<br/>
и(И)-i(I)<br/>
й(Й)-y(Y)<br/>
к(K)-k(K)<br/>
л(Л)-l(L)<br/>
м(M)-m(M)<br/>
н(H)-n(N)<br/>
o(O)-o(O)<br/>
п(П)-p(P)<br/>
р(P)-r(R)<br/>
c(C)-s(S)<br/>
т(T)-t(T)<br/>
у(У)-u(U)<br/>
ф(Ф)-f(F)<br/>
x(X)-h(H)<br/>
ц(Ц)-c(C)<br/>
ч(Ч)-ch(CH)<br/>
ш(Ш)-w(W)<br/>
щ(Щ)-sc(SC)<br/>
ъ(Ъ)-"("")<br/>
ы(Ы)-x(X)<br/>
ь(Ь)-'('')<br/>
э(Э)-ye(YE)<br/>
ю(Ю)-yu(YU)<br/>
я(Я)-ya(YA)<br/>
<?
echo "- - -<br/>»<a href=\"index.php?mod=write\">Написать</a><br/>";
echo "»<a href=\"index.php\">В гостевую</a>";
echo '</small></p></card></wml>';
break;
case 'write':
header("Content-type: text/html;charset=utf-8");
echo '<!doctype html public "-//w3c//dtd html 4.0 transitional//en">';
echo '<html><head><title>Написать</title>';
echo '<meta http-equiv="content-type" content="text/html; charset=utf-8">';
echo '<link href="styles.css" type=text/css rel=stylesheet>';
echo '</head><body>';
echo '<form name="FormName" action="index.php" method="post">';
echo "<div class=scapmain>Ник: *<br/>";
echo "<input name=\"nick\" maxlength=\"20\" title=\"Ник\"/></div>";
echo "<div class=scapmain>Сообщение: *<br/>";
if ($to){echo "<input name=\"mess\" title=\"Сообщение\" value=\"$to, \"/></div>";};
if (!$to){echo "<input name=\"mess\" title=\"Сообщение\"/></div>";};
echo "<div class=scapmain>Мыло:<br/>";
echo "<input name=\"mail\" maxlength=\"20\" title=\"Мыло\"/></div>";
echo "<div class=scapmain>Сайт (без http://):<br/>";
echo "<input name=\"site\" maxlength=\"40\" title=\"Сайт\"/></div>";
echo '<div class=scapmain><input name="trans" type="checkbox" value="on"> Транслит</div>';
echo '<div class=scapmain><a href="index.php?mod=trans">Правила транслита</a><br/>';
echo '<a href="index.php?mod=smile">Смайлы</a></div>';
echo '<div class=scapmain><input class="button" type="submit" value="Написать"></div>';
echo "<div class=scapmain><a href=\"index.php\">В гостевую</a></div>";
echo '</form></body></html>';
break;};
?>