Salam, Qonaq
 Əsas Səhifə | GirişQeydiyyatDil seç: AZ  

Son Aktivlik

Master Forum | Skript / Komek | Komek Lazimdir
Axtarış
  Level De komek
1 2 >>
SeRi_KinG SeRi_KinG [Off] [#] (14.09.2011 / 16:42)
PuLLu KiSiNiN KaSiB oGLu
SAlam dostlar mende chatim http://chat.decelim.net di level 9 du admin redakte edirem girirem yazir bax bu olmaz nedendi?
SeRi_KinG SeRi_KinG [Off] [#] (14.09.2011 / 16:54)
PuLLu KiSiNiN KaSiB oGLu
bilen yoxdu/.
SeRi_KinG SeRi_KinG [Off] [#] (14.09.2011 / 17:39)
PuLLu KiSiNiN KaSiB oGLu
?
Firuz Firuz [Off] [#] (14.09.2011 / 17:57)
admin id1-di?yeqin id1 redakte etmek olmurda.men oz catimda ele elemisem
SeRi_KinG SeRi_KinG [Off] [#] (14.09.2011 / 23:08)
PuLLu KiSiNiN KaSiB oGLu
qaqa ferq etmire id 1 ve yaxuddaki hansi bawqasinda yaziram bax bu olmaz deyirde
OKTAY OKTAY [Off] [#] (14.09.2011 / 23:22)
I am Software Developer , Bitchs!
SeRi_KinG, Hmm admin phpni bura atda kodlarla deyim nededir sehv
SeRi_KinG SeRi_KinG [Off] [#] (14.09.2011 / 23:37)
PuLLu KiSiNiN KaSiB oGLu
OKTAY, qaqaw mende bawim cixir sehv yoxdur axi level 9 a qoymuwam elede olmaldi amma redakte et iwlemirde
Firuz Firuz [Off] [#] (15.09.2011 / 00:04)
Burda cetin ne varki.hansisa kod qoymurda redakte etmeye.gerek kodlari gorekki sebebini deyek
SeRi_KinG SeRi_KinG [Off] [#] (15.09.2011 / 00:06)
PuLLu KiSiNiN KaSiB oGLu
BUDA ADMIN.PHP ((<?php
header("Cache-Control: no-cache");
header("Content-type:text/vnd.wap.wml");
require("fghgfhgfhgfh.php");
$ref=rand(10000,1000000);
$link = connect_db();
list($row, $id, $ps, $fsize1, $fsize2) = check_login($link);

/*
AQILIN KODU:j7zh7Rcs
*/
if($row["level"]<=4) {
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">\n";
echo "<wml>\n";
echo "<card id=\"error\" title=\"Xeta\" ontimer=\"index.php?ref=$ref\"><timer value=\"15\"/>\n";
echo "<p align=\"center\">\n";
echo $fsize1;
echo "Sizin <u>Admin Panel</u>e giri&#351; icazeniz yoxdur\n";
echo $fsize2;
echo "</p>\n";
echo "</card>\n";
echo "</wml>\n";
mysql_close ($link);
exit;
}

$us=$row["user"];
$id=$row["id"];
$idmm=$row["id"];
$login=$row["user"];


$fi = fopen("inf/iz-admin.dat", "a+");
$dat = date ("(H:i)d F");
$lst = "$us IP-Adresi: $REMOTE_ADDR, ($dat)";
fwrite($fi, "$lst\n");
fflush($fi);
fclose($fi);


$levelselect0 = @mysql_query ("Select name from levels where level=0");
$levels0 = @mysql_fetch_array($levelselect0);
$lev0 = $levels0["name"];

$levelselect1 = @mysql_query ("Select name from levels where level=1");
$levels1 = @mysql_fetch_array($levelselect1);
$lev1 = $levels1["name"];

$levelselect2 = @mysql_query ("Select name from levels where level=2");
$levels2 = @mysql_fetch_array($levelselect2);
$lev2 = $levels2["name"];

$levelselect3 = @mysql_query ("Select name from levels where level=3");
$levels3 = @mysql_fetch_array($levelselect3);
$lev3 = $levels3["name"];

$levelselect4 = @mysql_query ("Select name from levels where level=4");
$levels4 = @mysql_fetch_array($levelselect4);
$lev4 = $levels4["name"];

$levelselect5 = @mysql_query ("Select name from levels where level=5");
$levels5 = @mysql_fetch_array($levelselect5);
$lev5 = $levels5["name"];

$levelselect6 = @mysql_query ("Select name from levels where level=6");
$levels6 = @mysql_fetch_array($levelselect6);
$lev6 = $levels6["name"];

$levelselect7 = @mysql_query ("Select name from levels where level=7");
$levels7 = @mysql_fetch_array($levelselect7);
$lev7 = $levels7["name"];

$levelselect8 = @mysql_query ("Select name from levels where level=8");
$levels8 = @mysql_fetch_array($levelselect8);
$lev8 = $levels8["name"];

$levelselect9 = @mysql_query ("Select name from levels where level=9");
$levels9 = @mysql_fetch_array($levelselect9);
$lev9 = $levels9["name"];

ob_start();
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">\n";
echo "<wml>\n";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>\n";
echo "<card id=\"apanel\" title=\"Admin Panel\">\n";
echo "<p mode=\"wrap\">\n";
switch($go) {

default:


echo $fsize1;
if ($row["level"] == 9) {
echo "<b>Rehberlik Paneli</b><br/>\n";
} else {
echo "Salam <b>$login:</b><br/>";
}

echo $divide;
echo "Nick ve ya ID:<br/>\n";
echo $fsize2;
echo "<input name=\"nick$ref\" title=\"nick\" emptyok=\"true\"/><br/>\n";

if ($row["level"] == 9) {
echo $fsize1;
echo "[<anchor title=\"go\">Redakte ET<go href=\"admin.php?go=edit&amp;id=$id&amp;ps=$ps&amp;ref=$ref\" method=\"post\">";
echo "<postfield name=\"nick\" value=\"$(nick$ref)\"/>";
echo "</go></anchor>]<br/>";
echo "[<anchor title=\"go\">Anketas&#305;<go href=\"admin.php?go=edit2&amp;id=$id&amp;ps=$ps&amp;ref=$ref\" method=\"post\">";
echo "<postfield name=\"nick\" value=\"$(nick$ref)\"/>";
echo "</go></anchor>]<br/>";
echo $fsize2;

}
echo $fsize1;
echo $divide;
echo "<b>Chatdan Xaric Et</b><br/>\n";
echo "Vaxt (deq)<br/>\n";
echo $fsize2;
echo "<input name=\"wtime$ref\" maxlength=\"3\" title=\"vremya\" format=\"*N\" emptyok=\"true\"/><br/>\n";
echo $fsize1;
echo "Sebeb<br/>\n";
echo $fsize2;
echo "<input name=\"whykik$ref\" maxlength=\"200\" title=\"whykik\" emptyok=\"true\"/><br/>\n";
echo $fsize1;
echo "<anchor title=\"go\">Xaric Et!<go href=\"kick.php?go=pni&amp;id=$id&amp;ps=$ps&amp;r=$ref\" method=\"post\">\n";
echo "<postfield name=\"nick\" value=\"$(nick$ref)\"/>\n";
echo "<postfield name=\"wtime\" value=\"$(wtime$ref)\"/>\n";
echo "<postfield name=\"whykik\" value=\"$(whykik$ref)\"/>\n";
echo "</go></anchor>\n";
echo $fsize2;
echo "<br/>\n";
if ($row["level"] >= 6) {
echo $fsize1;
echo $divide;
echo "<anchor title=\"go\">Ban &#304;stifade&#231;i ad&#305;<go href=\"bann.php?id=$id&amp;ps=$ps&amp;r=$ref\" method=\"post\">\n";
echo "<postfield name=\"nick\" value=\"$(nick$ref)\"/>\n";
echo "</go></anchor>\n";
echo $fsize2;
echo "<br/>\n";
}
if ($row["level"] >= 7) {
echo $fsize1;
echo "<anchor title=\"go\">Ban Telefon+IP<go href=\"bannaip.php?id=$id&amp;ps=$ps&amp;r=$ref\" method=\"post\">\n";
echo "<postfield name=\"nick\" value=\"$(nick$ref)\"/>\n";
echo "</go></anchor>\n";
echo $fsize2;
echo "<br/>\n";
}

if ($row["level"] == 9) {
echo $fsize1;
echo "<anchor title=\"go\">&#304;stifade&#231;i ad&#305;n&#305; sil<go href=\"deluser.php?id=$id&amp;ps=$ps&amp;r=$ref\" method=\"post\">\n";
echo "<postfield name=\"nick\" value=\"$(nick$ref)\"/>\n";
echo "</go></anchor>\n";
echo $fsize2;
echo "<br/>\n";
echo $fsize1;
echo "<anchor title=\"go\">Ban IP<go href=\"ipban.php?id=$id&amp;ps=$ps&amp;r=$ref\" method=\"post\">\n";
echo "<postfield name=\"nick\" value=\"$(nick$ref)\"/>\n";
echo "</go></anchor>\n";
echo $fsize2;
echo "<br/>\n";
}
echo $fsize1;

echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=msvadbi&amp;r=$ref\">Nigah Dairesi</a><br/>";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=dsvadbi&amp;r=$ref\">Evlilik Elan&#305;n&#305; sil</a><br/>";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=razvod&amp;r=$ref\">Ayr&#305;l&#305;q Meqam&#305;</a><br/>";
echo $divide;

if ($row["level"] ==9) {
echo $divide;
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=bots&amp;r=$ref\">&#220;mumi Qur&#287;ular</a><br/>\n";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=qeydiyyat&amp;r=$ref\">Qeydiyyat say&#305;</a><br/>\n";
echo '<a href="admin.php?id='.$id.'&amp;ps='.$ps.'&amp;go=reg">Qeydiyyat</a><br/>';
echo '<a href="admin.php?id='.$id.'&amp;ps='.$ps.'&amp;go=kompreg">Komp&#252;terle Qeydiyyat</a><br/>';

echo $divide;
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=addanek&amp;r=$ref\">Anekdot elave et</a><br/>\n";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=addvopr&amp;r=$ref\">Sual elave et</a><br/>\n";
}
if ($row["level"] >= 7) {
echo $divide;
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=unban&amp;r=$ref\">Leqebi Ban Edilib</a><br/>\n";
}
if ($row["level"] == 9) {
//Leqebi Bazadan Silinib
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=unpin&amp;r=$ref\">Xaric Edilib</a><br/>\n";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=clbanip&amp;r=$ref\">IP-den ban Edilib</a><br/>\n";
}
if ($row["level"] >= 7)echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=clbanip&amp;r=$ref\">Telefonu ban Edilib</a><br/>\n";
if ($row["level"] == 9) {
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=fullign&amp;r=$ref\">Tam Iqnor Edilib</a><br/>\n";
echo $divide;
}
if ($row["level"] == 9) {
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mmsdel&amp;r=$ref\">MMS Mektublar&#305; Temizle</a><br/>\n";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mmsdelin&amp;r=$ref\">MMS Mektublar&#305; Temizle Tecili</a><br/>\n";
//MMS Mektublar&#305; Sil(1 ay)
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=clearzap&amp;r=$ref\">Mektublar&#305; Sil(7g&#252;n)</a><br/>\n";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=clearzap&amp;r=$ref\">Mektublar&#305; Sil(3g&#252;n)</a><br/>\n";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=clearzap&amp;r=$ref\">Mektublar&#305; Sil(ham&#305;s&#305;n&#305;)</a><br/>\n";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=clallroom&amp;r=$ref\">Ota&#287;lar&#305; Sil</a><br/>\n";
echo '<a href="admin.php?id='.$id.'&amp;ps='.$ps.'&amp;go=clear_us">Deaktiv Userleri Sil</a><br/>';
echo '<a href="admin.php?id='.$id.'&amp;ps='.$ps.'&amp;go=100gun">Aktiv olmayan Userleri Sil</a><br/>';
echo $divide;
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mmeet&amp;r=$ref\">G&#246;r&#252;&#351; Teyin Et</a><br/>";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=dmeet&amp;r=$ref\">G&#246;r&#252;&#351;&#252; sil</a><br/>";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=tell&amp;r=$ref\">Ota&#287;lara Elan</a><br/>\n";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mobi&amp;r=$ref\">Elan elave et</a><br/>";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=dobi&amp;r=$ref\">Elani Sil</a><br/>";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=dobi_bal&amp;r=$ref\">Ball&#305; Elani Sil</a><br/>";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mnews&amp;r=$ref\">Xeber elave et</a><br/>";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=dnews&amp;r=$ref\">Xeberi Sil</a><br/>";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=delvopros&amp;ref=$ref\">Suallar&#305; Sil</a><br/>";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=delvoprose&amp;ref=$ref\">Suallar&#305; tek-tek Sil</a><br/>";
echo $divide;
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=editrooms&amp;r=$ref\">Ota&#287;&#305;n Ad&#305;n Deyi&#351;dir</a><br/>\n";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=editlevels&amp;r=$ref\">R&#252;tbenin Adlar&#305;</a><br/>\n";
echo $divide;
echo "[<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=online_bot&amp;r=$ref\">Online Bot</a>]<br/>";
echo "[<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=funk&amp;r=$ref\">Funksiyalar</a>]<br/>";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=r_p&amp;r=$ref\">Reytinq Paneli</a><br/>";
echo "<a href=\"forum/admin.php?id=$id&amp;ps=$ps&amp;go=user_ctr&amp;r=$ref\">Forum</a><br/>";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=user_ctr&amp;r=$ref\">Control Panel</a><br/>";
echo "<a href=\"admin.php?go=mesaj_panel&amp;id=$id&amp;ps=$ps&amp;r=$ref\">Mesaj Paneli</a><br/>";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mektub_outbox&amp;r=$ref\">Mektublar&#305; Oxu</a><br/>";
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mms_outbox&amp;r=$ref\">MMS Mektublar&#305; Oxu</a><br/>";
}
echo $fsize2;
break;

case 'online_bot':
echo $fsize1;
echo "<b>Online Bot Paneli</b><br/>";
echo $divide;
echo "Onlineye burax: <u>Ancaq</u><br/>";
echo "1) <a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=o1&amp;r=$ref\">Ham&#305;n&#305;</a><br/>";
echo "2) <a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=o2&amp;r=$ref\">Q&#305;zlar&#305;</a><br/>";
echo "3) <a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=o3&amp;r=$ref\">Oglanlar&#305;</a><br/>";
echo "4) <a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=o4&amp;r=$ref\">0 postu olanlar&#305;</a><br/>";
echo "5) <a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=o5&amp;r=$ref\">0 bali olanlar&#305;</a><br/>";
echo "6) <a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=o6&amp;r=$ref\">Postu olanlar&#305;</a><br/>";
echo "7) <a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=o7&amp;r=$ref\">Bali olanlar&#305;</a><br/>";
echo $fsize2;
break;

case 'o1':
echo $fsize1;
$EH = mysql_query("SELECT * FROM `users`;");
while($eyyub_hesenov_designer = mysql_fetch_array($EH))
{
$uid = $eyyub_hesenov_designer['id'];
$online = time() + $onvaxt;
mysql_query("UPDATE `users` SET `onl` = '".$online."', `room` = 28 WHERE `id` = '".$uid."';");
}
echo "Qeydiyyatda olan butun istifade&#231;iler &#231;atda <u>online</u> veziyyetine sal&#305;nd&#305;<br/>";
echo $fsize2;
break;

case 'o2':
echo $fsize1;
$EH = mysql_query("SELECT * FROM `users` WHERE `sex` = '0';");
while($eyyub_hesenov_designer = mysql_fetch_array($EH))
{
$uid = $eyyub_hesenov_designer['id'];
$online = time() + $onvaxt;
mysql_query("UPDATE `users` SET `onl` = '".$online."', `room` = 28 WHERE `id` = '".$uid."';");
}
echo "Qeydiyyatda olan butun q&#305;z istifade&#231;iler &#231;atda <u>online</u> veziyyetine sal&#305;nd&#305;<br/>";
echo $fsize2;
break;

case 'o3':
echo $fsize1;
$EH = mysql_query("SELECT * FROM `users` WHERE `sex` = '1';");
while($eyyub_hesenov_designer = mysql_fetch_array($EH))
{
$uid = $eyyub_hesenov_designer['id'];
$online = time() + $onvaxt;
mysql_query("UPDATE `users` SET `onl` = '".$online."', `room` = 28 WHERE `id` = '".$uid."';");
}
echo "Qeydiyyatda olan butun oglan istifade&#231;iler &#231;atda <u>online</u> veziyyetine sal&#305;nd&#305;<br/>";
echo $fsize2;
break;

case 'o4':
echo $fsize1;
$EH = mysql_query("SELECT * FROM `users` WHERE `posts` = '0';");
while($eyyub_hesenov_designer = mysql_fetch_array($EH))
{
$uid = $eyyub_hesenov_designer['id'];
$online = time() + $onvaxt;
mysql_query("UPDATE `users` SET `onl` = '".$online."', `room` = 28 WHERE `id` = '".$uid."';");
}
echo "Qeydiyyatda olan butun 0 postlu istifade&#231;iler &#231;atda <u>online</u> veziyyetine sal&#305;nd&#305;<br/>";
echo $fsize2;
break;

case 'o5':
echo $fsize1;
$EH = mysql_query("SELECT * FROM `users` WHERE `bal` = '0';");
while($eyyub_hesenov_designer = mysql_fetch_array($EH))
{
$uid = $eyyub_hesenov_designer['id'];
$online = time() + $onvaxt;
mysql_query("UPDATE `users` SET `onl` = '".$online."', `room` = 28 WHERE `id` = '".$uid."';");
}
echo "Qeydiyyatda olan butun 0 ball&#305; istifade&#231;iler &#231;atda <u>online</u> veziyyetine sal&#305;nd&#305;<br/>";
echo $fsize2;
break;

case 'o6':
echo $fsize1;
$EH = mysql_query("SELECT * FROM `users` WHERE `posts` != '0';");
while($eyyub_hesenov_designer = mysql_fetch_array($EH))
{
$uid = $eyyub_hesenov_designer['id'];
$online = time() + $onvaxt;
mysql_query("UPDATE `users` SET `onl` = '".$online."', `room` = 28 WHERE `id` = '".$uid."';");
}
echo "Qeydiyyatda olan butun postlu istifade&#231;iler &#231;atda <u>online</u> veziyyetine sal&#305;nd&#305;<br/>";
echo $fsize2;
break;

case 'o7':
echo $fsize1;
$EH = mysql_query("SELECT * FROM `users` WHERE `bal` != '0';");
while($eyyub_hesenov_designer = mysql_fetch_array($EH))
{
$uid = $eyyub_hesenov_designer['id'];
$online = time() + $onvaxt;
mysql_query("UPDATE `users` SET `onl` = '".$online."', `room` = 28 WHERE `id` = '".$uid."';");
}
echo "Qeydiyyatda olan butun ball&#305; istifade&#231;iler &#231;atda <u>online</u> veziyyetine sal&#305;nd&#305;<br/>";
echo $fsize2;
break;

case 'r_p':
echo $fsize1;
echo "<b>Reytinq Panel</b><br/>";
echo $divide;
echo "Reytinqin Veziyyeti:<br/>";
echo $fsize2;
echo "<select name=\"r_p$ref\">
<option value=\"0\">Aktiv A&#231;q</option>
<option value=\"1\">Sesverme STOP</option>
<option value=\"2\">Reytinq STOP </option>
</select><br/>";
echo $fsize1;
echo "<anchor title=\"go\">Deyi&#351;dir<go href=\"admin.php?go=r_p_up&amp;id=$id&amp;ps=$ps&amp;ref=$ref\" method=\"post\">";
echo "<postfield name=\"r_p\" value=\"$(r_p$ref)\"/>";
echo "</go></anchor><br/>";
echo $divide;
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=r_p_t&amp;r=$ref\">Reytinqi Temizle</a><br/>";
echo $fsize2;
break;

case 'r_p_up':
if ($r_p == 0)$r = 'open';
if ($r_p == 1)$r = 'blok';
if ($r_p == 2)$r = 'colse';
mysql_query ("Update setting set lid='".$r."' where klu4 ='1'");
if ($r_p == 0)echo "Reytinqin veziyyeti <u>Aktiv A&#231;q</u> oldu.<br/>";
if ($r_p == 2)echo "Reytinqin veziyyeti <u>Sesverme STOP</u> oldu.<br/>";
if ($r_p == 3)echo "Reytinqin veziyyeti <u>Reytinq STOP</u> oldu.<br/>";
break;

case 'r_p_t':
echo $fsize1;
echo "<b>Reytinq Panel</b><br/>";
echo $divide;
echo "<u>Reytinq Temizlendi</u><br/>";
echo $divide;
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=r_p&amp;r=$ref\">Geri Qay&#305;t</a><br/>";
echo $fsize2;
mysql_query ("DELETE from golos");
$EH = mysql_query("SELECT * FROM `users`;");
while($eyyub_hesenov_designer = mysql_fetch_array($EH))
{
$uid = $eyyub_hesenov_designer['id'];
$online = time() + $onvaxt;
mysql_query("UPDATE `users` SET `onl` = '".$online."', `room` = 28, `voteses` = 0 WHERE `id` = '".$uid."';");
}
break;

case 'funk':
echo $fsize1;
echo "<b>Funksiyalar Paneli</b><br/>";
echo $divide;
echo "Leqeb / ID:<br/>\n";
echo $fsize2;
echo "<input name=\"nick$ref\" title=\"nick\" emptyok=\"true\"/><br/>\n";
echo $fsize1;
echo "[<anchor title=\"go\">R&#252;tbe ver<go href=\"admin.php?go=rutbe&amp;id=$id&amp;ps=$ps&amp;ref=$ref\" method=\"post\">";
echo "<postfield name=\"nick\" value=\"$(nick$ref)\"/>";
echo "</go></anchor>]<br/>";
echo "[<anchor title=\"go\">Znak ver<go href=\"admin.php?go=znak&amp;id=$id&amp;ps=$ps&amp;ref=$ref\" method=\"post\">";
echo "<postfield name=\"nick\" value=\"$(nick$ref)\"/>";
echo "</go></anchor>]<br/>";
echo $fsize2;
break;

case 'rutbe':
$nick=trim($nick);
if($nick=="")$nick=0;
$latuser=strtolower($nick);
if (!ctype_digit($nick)) {
$result = mysql_query ("Select id,user,level,rutbe_vaxt,rutbe_admin from users where latuser = '".$latuser."'");
} else {
$result = mysql_query ("Select id,user,level,rutbe_vaxt,rutbe_admin from users where id = '".$latuser."'");
}
if (mysql_affected_rows() == 0) {
echo "Bele istifade&#231;i m&#246;vcud deyil!<br/>\n";
break;
}
$row = mysql_fetch_array ($result);
$usid = $row["id"];
if (($usid=="1")&&($id!=1)) { echo "Bax bu ujey olmaz<br/>";}else {
echo $fsize1;
echo "Leqeb: <b>".$row[user]."</b><br/>\n";
echo $divide;
echo "R&#252;tbe:<br/>\n";
echo $fsize2;
echo "<select name=\"uplevel$ref\">
<option value=\"4\">4-".$lev4."</option>
<option value=\"5\">5-".$lev5."</option>
<option value=\"6\">6-".$lev6."</option>
<option value=\"7\">7-".$lev7."</option>
<option value=\"8\">8-".$lev8."</option>
</select><br/>";
echo $fsize1;
echo "M&#252;ddet:<br/>\n";
echo $fsize2;
echo "<input name=\"upmuddet$ref\" value=\"\" title=\"muddet\"/><br/>\n";
echo $fsize1;
echo "N&#246;v: - : ";
echo $fsize2;
echo "<select name=\"mud$ref\">
<option value=\"0\">Deqiqelik</option>
<option value=\"1\">Saatl&#305;q</option>
<option value=\"2\">G&#252;nl&#252;k</option>
<option value=\"3\">Ayl&#305;q</option>
</select><br/>";
echo $fsize1;
echo "Otaqlara Elan:<br/>";
echo $fsize2;
echo "<select name=\"elan$ref\">
<option value=\"0\">Elans&#305;z</option>
<option value=\"1\">Vaxt bilinmesin</option>
<option value=\"2\">Oldu&#287;u kimi d&#252;&#351;s&#252;n</option>
</select><br/>";
echo $fsize1;
echo $divide;
echo "[<anchor title=\"go\">R&#252;tbe ver<go href=\"admin.php?go=upr&amp;id=$id&amp;ps=$ps\" method=\"post\">";
echo "<postfield name=\"upid\" value=\"$row[id]\"/>";
echo "<postfield name=\"upnick\" value=\"$row[user]\"/>";
echo "<postfield name=\"uplevel\" value=\"$(uplevel$ref)\"/>";
echo "<postfield name=\"upmuddet\" value=\"$(upmuddet$ref)\"/>";
echo "<postfield name=\"mud\" value=\"$(mud$ref)\"/>";
echo "<postfield name=\"elan\" value=\"$(elan$ref)\"/>";
echo "</go></anchor>]<br/>\n";
echo $fsize2;
}
break;

case 'upr':
$upid=trim($upid);
$upnick=trim($upnick);
$uplevel=trim($uplevel);
$upmuddet=trim($upmuddet);
$mud=trim($mud);
$elan=trim($elan);

if ($mud == 0) {
$m = 60;
} else if ($mud == 1) {
$m = 3600;
} else if ($mud == 2) {
$m = 86400;
} else {
$m = 2592000;
}

$eyyub = $upmuddet * $m;
$eh = $eyyub + time();
mysql_query ("Update users set level='".$uplevel."',rutbe_admin='1',rutbe_vaxt='".$eh."' where id ='".$upid."'");
echo "<b>Melumat yenilendi.</b><br/>";

if ($mud == 0) $v = 'Deqiqelik';
if ($mud == 1) $v = 'Saatl&#305;q<';
if ($mud == 2) $v = 'G&#252;nl&#252;k';
if ($mud == 3) $v = 'Ayl&#305;q';

if ($uplevel == 4) $s = $lev4;
if ($uplevel == 5) $s = $lev5;
if ($uplevel == 6) $s = $lev6;
if ($uplevel == 7) $s = $lev7;
if ($uplevel == 8) $s = $lev8;

if ($elan!=0) {
$levelselect = @mysql_query ("Select name from levels where level='".$level."'");
$levels = @mysql_fetch_array($levelselect);
$ur=$levels["name"];
for ($i=0; $i<=9; $i++){
$st = time();
$today=date ("H:i");
$levelselect = @mysql_query ("Select name from levels where level='".$prl."'");
$levels = @mysql_fetch_array($levelselect);
$lev=$levels["name"];

if ($elan == 1) $mes = "<b>Diqqet</b>! Rehberlik <b>$nick</b>, Nickine <u>$s</u> selahiyyetini teyin etdi!";
if ($elan == 2) $mes = "<b>Diqqet</b>! Rehberlik <b>$nick</b>, Nickine $upmuddet $v <u>$s</u> selahiyyetini teyin etdi!";

$rnd = rand(0,99999999);
mysql_query ("Insert into room{$i} set klu4= '".$rnd."', time='".$today."', who='Selahiyyet', message='".$mes."', id='".$st."', towhom='', hid='', usid='8'");
$online = time() + 90;
mysql_query("UPDATE `users` SET `time` = '".$online."', `place` = '0' WHERE `id` = '8';");
}}
@$fi = fopen("inf/rutbe.dat", "a+");
$data = date("d.m.y [H:i]", mktime(date ("H")+1));
$lst = "$us rutbe... [$upnick] Vezife: $s | Vaxt: $upmuddet $v<br/>\n";
@fwrite($fi, "$lst");
@fflush($fi);
@fclose($fi);
break;

case 'znak':
$nick=trim($nick);
if($nick=="")$nick=0;
$latuser=strtolower($nick);
if (!ctype_digit($nick)) {
$result = mysql_query ("Select id,user,zn from users where latuser = '".$latuser."'");
} else {
$result = mysql_query ("Select id,user,zn from users where id = '".$latuser."'");
}
if (mysql_affected_rows() == 0) {
echo "Bele istifade&#231;i m&#246;vcud deyil!<br/>\n";
break;
}
$row = mysql_fetch_array ($result);
$usid = $row["id"];
if (($usid=="1")&&($id!=1)) { echo "Bax bu ujey olmaz<br/>";}else {
if ($iko=="aktiv")echo "<img src=\"img/z1.gif\" alt=\".\"/> <img src=\"img/z2.gif\" alt=\".\"/> <img src=\"img/z3.gif\" alt=\".\"/> <img src=\"img/z4.gif\" alt=\".\"/> <img src=\"img/z5.gif\" alt=\".\"/> <img src=\"img/z6.gif\" alt=\".\"/> <img src=\"img/z7.gif\" alt=\".\"/> <img src=\"img/z8.gif\" alt=\".\"/> <img src=\"img/z9.gif\" alt=\".\"/> <img src=\"img/z10.gif\" alt=\".\"/> <br/>";
echo $fsize1;
echo "<u>Leqeb</u>: <b>".$row[user]."</b><br/>\n";
echo $divide;
echo "<u>ID N&#246;mresi</u>:\n";
echo $fsize2;
echo "<input name=\"upiid$ref\" size=\"5\" value=\"$row[id]\" title=\"muddet\"/><br/>\n";
echo $fsize1;
echo "Ikon (<u>Znak</u>):\n";
echo $fsize2;
echo "<select name=\"upznak$ref\">
<option value=\"0\">Deaktiv</option>
<option value=\"1\">level 9 k </option>
<option value=\"2\">level 8</option>
<option value=\"3\">moder +1</option>
<option value=\"4\">moder +2</option>
<option value=\"5\">moder +3</option>
<option value=\"6\">Alximik</option>
<option value=\"7\">Klass</option>
<option value=\"8\">Xaus</option>
<option value=\"9\">G&#246;r&#252;nmez</option>
<option value=\"10\">Kral</option>
</select>";
echo $fsize1;
echo " <anchor title=\"go\">?<go href=\"admin.php?go=znak&amp;id=$id&amp;ps=$ps\" method=\"post\">";
echo "<postfield name=\"nick\" value=\"$row[id]\"/>";
echo "<postfield name=\"iko\" value=\"aktiv\"/>";
echo "</go></anchor><br/>\n";
echo $divide;
echo "[<anchor title=\"go\">Yenile<go href=\"admin.php?go=upz&amp;id=$id&amp;ps=$ps\" method=\"post\">";
echo "<postfield name=\"upid\" value=\"$row[id]\"/>";
echo "<postfield name=\"upiid\" value=\"$(upiid$ref)\"/>";
echo "<postfield name=\"upznak\" value=\"$(upznak$ref)\"/>";
echo "</go></anchor>]<br/>\n";
echo $divide;
echo "<a href=\"admin.php?go=extra&amp;id=$id&amp;ps=$ps&amp;r=$ref\">Extra Panel</a><br/>";
echo $fsize2;
}
break;

case 'upz':
$upid=trim($upid);
$upiid=trim($upiid);
$upznak=trim($upznak);

if ($upznak == 0) {
mysql_query ("Update users set id ='".$upiid."',zn ='' where id ='".$upid."'");
} else {
mysql_query ("Update users set id ='".$upiid."',zn ='".$upznak."' where id ='".$upid."'");
}

echo $fsize1;
echo "<b>Melumat yenilendi.</b><br/>";
echo $divide;
echo "<a href=\"admin.php?go=extra&amp;id=$id&amp;ps=$ps&amp;r=$ref\">Extra Panel</a><br/>";
echo $fsize2;
@$fi = fopen("inf/znak.dat", "a+");
$data = date("d.m.y [H:i]", mktime(date ("H")+1));
$lst = "$us znak... [ID: $upid] Znak: $upznak<br/>\n";
@fwrite($fi, "$lst");
@fflush($fi);
@fclose($fi);
break;

case 'mesaj_panel':
echo $fsize1;
echo "<a href=\"admin.php?go=mesaj_index&amp;id=$id&amp;ps=$ps&amp;r=$ref\">Indexe Mesaj</a>(ba&#351;l&#305;qa)<br/>";
echo "<a href=\"admin.php?go=mesaj_indexla&amp;id=$id&amp;ps=$ps&amp;r=$ref\">Indexe Mesaj</a>(logonun alt&#305;na)<br/>";
echo "<a href=\"admin.php?go=mesaj_index_link&amp;id=$id&amp;ps=$ps&amp;r=$ref\">Indexe link</a>(logolar&#305;n alt&#305;na)<br/>";
echo "<a href=\"admin.php?go=mesaj_dehliz&amp;id=$id&amp;ps=$ps&amp;r=$ref\">Dehlize Mesaj</a><br/>";
echo $divide;
echo "*<a href=\"admin.php?go=mesaj_topr&amp;id=$id&amp;ps=$ps&amp;r=$ref\">Top reytinq</a><br/>";
echo $divide;
echo "<a href=\"admin.php?go=mesaj&amp;id=$id&amp;ps=$ps&amp;r=$ref\">&#304;stifade&#231;ilere Mesaj</a>(Mektubla)<br/>";
echo "<a href=\"admin.php?go=mesaj&amp;id=$id&amp;ps=$ps&amp;r=$ref\">&#304;stifade&#231;ilere Mesaj</a>(Metnle)<br/>";
echo $fsize2;
break;

case 'mesaj_index':
if(!isset($_POST['action']))
{
$file = file("inf/logo.dat");
$sekil = trim($file[0]);
$metn = trim($file[1]);
$sekill = trim($file[2]);
$metnn = trim($file[3]);
echo $fsize1;
echo "<b>Qeyd</b>: Yazacaq&#305;n&#305;z mesaj &#231;at&#305;n giri&#351;inde (index-de) lap yuxar&#305; hissesinde g&#246;r&#252;necek.<br/>";
echo "&#350;ekil:<br/>\n";
echo $fsize2;
echo "<input type=\"text\" name=\"sekil$ref\" maxlength=\"200\" value=\"$sekil\"/><br/>\n";
echo $fsize1;
echo "Mesaj:<br/>\n";
echo $fsize2;
echo "<input type=\"text\" name=\"metn$ref\" maxlength=\"200\" value=\"$metn\"/><br/>\n";
echo $fsize1;
echo "[<anchor>Elave Et<go href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mesaj_index&amp;ref=$ref\" method=\"post\">";
echo "<postfield name=\"sekil\" value=\"$(sekil$ref)\"/>";
echo "<postfield name=\"metn\" value=\"$(metn$ref)\"/>";
echo "<postfield name=\"action\" value=\"save\"/>";
echo "</go></anchor>]<br/>\n";
echo $fsize2;
}
else
{
$sekil = trim(htmlspecialchars($_POST['sekil']));
$sekil = str_replace('$', '$$', $sekil);
$metn = trim(htmlspecialchars($_POST['metn']));
$metn = str_replace('$', '$$', $metn);

$sekil = str_replace("\r\n", "", $sekil);
$sekil = str_replace("\n", "", $sekil);
$metn = str_replace("\r\n", "", $metn);
$metn = str_replace("\n", "", $metn);

$eh = file("inf/logo.dat");
$sekill = trim($eh[2]);
$metnn = trim($eh[3]);

$file = fopen("inf/logo.dat", "w");
$data .= "$sekil\n";
$data .= "$metn\n";
$data .= "$sekill\n";
$data .= "$metnn\n";
fwrite($file, $data);
fclose($file);
echo "Te&#351;ekk&#252;rler...<br/>";
}
break;

case 'mesaj_indexla':
if(!isset($_POST['action']))
{
$file = file("inf/logo.dat");
$sekil = trim($file[0]);
$metn = trim($file[1]);
$sekill = trim($file[2]);
$metnn = trim($file[3]);
echo $fsize1;
echo "<b>Qeyd</b>: Yazacaq&#305;n&#305;z mesaj &#231;at&#305;n giri&#351;inde (index-de) &#231;at&#305;n logo &#351;ekilinin alt&#305;nda g&#246;r&#252;necek.<br/>";
echo "&#350;ekil:<br/>\n";
echo $fsize2;
echo "<input type=\"text\" name=\"sekill$ref\" maxlength=\"200\" value=\"$sekill\"/><br/>\n";
echo $fsize1;
echo "Mesaj:<br/>\n";
echo $fsize2;
echo "<input type=\"text\" name=\"metnn$ref\" maxlength=\"200\" value=\"$metnn\"/><br/>\n";
echo $fsize1;
echo "[<anchor>Elave Et<go href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mesaj_indexla&amp;ref=$ref\" method=\"post\">";
echo "<postfield name=\"sekill\" value=\"$(sekill$ref)\"/>";
echo "<postfield name=\"metnn\" value=\"$(metnn$ref)\"/>";
echo "<postfield name=\"action\" value=\"save\"/>";
echo "</go></anchor>]<br/>\n";
echo $fsize2;
}
else
{
$sekill = trim(htmlspecialchars($_POST['sekill']));
$sekill = str_replace('$', '$$', $sekill);
$metnn = trim(htmlspecialchars($_POST['metnn']));
$metnn = str_replace('$', '$$', $metnn);

$sekill = str_replace("\r\n", "", $sekill);
$sekill = str_replace("\n", "", $sekill);
$metnn = str_replace("\r\n", "", $metnn);
$metnn = str_replace("\n", "", $metnn);

$eh = file("inf/logo.dat");
$sekil = trim($eh[0]);
$metn = trim($eh[1]);

$file = fopen("inf/logo.dat", "w");
$data .= "$sekil\n";
$data .= "$metn\n";
$data .= "$sekill\n";
$data .= "$metnn\n";
fwrite($file, $data);
fclose($file);
echo "Te&#351;ekk&#252;rler...<br/>";
}
break;

case 'mesaj_index_link':
if(!isset($_POST['action']))
{
$file = file("inf/link.dat");
$link1 = trim($file[0]);
$link2 = trim($file[1]);
$link3 = trim($file[2]);
$link4 = trim($file[3]);
$link5 = trim($file[4]);
$link6 = trim($file[5]);
$link7 = trim($file[6]);
$link8 = trim($file[7]);
echo $fsize1;
echo "<b>Qeyd</b>: Yazacaq&#305;n&#305;z linkler ve ya link &#231;at&#305;n giri&#351;inde (index-de) logolar&#305;n alt&#305;na g&#246;r&#252;necek.<br/><b>Qayda</b>: Link yaz&#305;lan yerlere linki, Ad&#305; yaz&#305;lan yerlere ise linkin ad&#305;n&#305; yaz&#305;n.<br/><u>Numune</u>: link1=".$sayt_unvan." | Ad&#305;=Super Sayt<br/>";
echo $divide;
echo "<b>1</b>) Link:\n";
echo $fsize2;
echo "<input type=\"text\" name=\"link1$ref\" maxlength=\"200\" value=\"$link1\"/> | \n";
echo $fsize1;
echo "Ad&#305;: \n";
echo $fsize2;
echo "<input type=\"text\" name=\"link2$ref\" maxlength=\"200\" value=\"$link2\"/><br/>\n";
echo $fsize1;
echo "<b>2</b>) Link:\n";
echo $fsize2;
echo "<input type=\"text\" name=\"link3$ref\" maxlength=\"200\" value=\"$link3\"/> | \n";
echo $fsize1;
echo "Ad&#305;: \n";
echo $fsize2;
echo "<input type=\"text\" name=\"link4$ref\" maxlength=\"200\" value=\"$link4\"/><br/>\n";
echo $fsize1;
echo "<b>3</b>) Link:\n";
echo $fsize2;
echo "<input type=\"text\" name=\"link5$ref\" maxlength=\"200\" value=\"$link5\"/> | \n";
echo $fsize1;
echo "Ad&#305;: \n";
echo $fsize2;
echo "<input type=\"text\" name=\"link6$ref\" maxlength=\"200\" value=\"$link6\"/><br/>\n";
echo $fsize1;
echo "<b>4</b>) Link:\n";
echo $fsize2;
echo "<input type=\"text\" name=\"link7$ref\" maxlength=\"200\" value=\"$link7\"/> | \n";
echo $fsize1;
echo "Ad&#305;: \n";
echo $fsize2;
echo "<input type=\"text\" name=\"link8$ref\" maxlength=\"200\" value=\"$link8\"/><br/>\n";

echo $fsize1;
echo $divide;
echo "[<anchor>Elave Et<go href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mesaj_index_link&amp;ref=$ref\" method=\"post\">";
echo "<postfield name=\"link1\" value=\"$(link1$ref)\"/>";
echo "<postfield name=\"link2\" value=\"$(link2$ref)\"/>";
echo "<postfield name=\"link3\" value=\"$(link3$ref)\"/>";
echo "<postfield name=\"link4\" value=\"$(link4$ref)\"/>";
echo "<postfield name=\"link5\" value=\"$(link5$ref)\"/>";
echo "<postfield name=\"link6\" value=\"$(link6$ref)\"/>";
echo "<postfield name=\"link7\" value=\"$(link7$ref)\"/>";
echo "<postfield name=\"link8\" value=\"$(link8$ref)\"/>";
echo "<postfield name=\"action\" value=\"save\"/>";
echo "</go></anchor>]<br/>\n";
echo $fsize2;
}
else
{
$link1 = trim(htmlspecialchars($_POST['link1']));
$link1 = str_replace('$', '$$', $link1);
$link2 = trim(htmlspecialchars($_POST['link2']));
$link2 = str_replace('$', '$$', $link2);
$link3 = trim(htmlspecialchars($_POST['link3']));
$link3 = str_replace('$', '$$', $link3);
$link4 = trim(htmlspecialchars($_POST['link4']));
$link4 = str_replace('$', '$$', $link4);
$link5 = trim(htmlspecialchars($_POST['link5']));
$link5 = str_replace('$', '$$', $link5);
$link6 = trim(htmlspecialchars($_POST['link6']));
$link6 = str_replace('$', '$$', $link6);
$link7 = trim(htmlspecialchars($_POST['link7']));
$link7 = str_replace('$', '$$', $link7);
$link8 = trim(htmlspecialchars($_POST['link8']));
$link8 = str_replace('$', '$$', $link8);

$link1 = str_replace("\r\n", "", $link1);
$link1 = str_replace("\n", "", $link1);
$link2 = str_replace("\r\n", "", $link2);
$link2 = str_replace("\n", "", $link2);
$link3 = str_replace("\r\n", "", $link3);
$link3 = str_replace("\n", "", $link3);
$link4 = str_replace("\r\n", "", $link4);
$link4 = str_replace("\n", "", $link4);
$link5 = str_replace("\r\n", "", $link5);
$link5 = str_replace("\n", "", $link5);
$link6 = str_replace("\r\n", "", $link6);
$link6 = str_replace("\n", "", $link6);
$link7 = str_replace("\r\n", "", $link7);
$link7 = str_replace("\n", "", $link7);
$link8 = str_replace("\r\n", "", $link8);
$link8 = str_replace("\n", "", $link8);

$file = fopen("inf/link.dat", "w");
$data .= "$link1\n";
$data .= "$link2\n";
$data .= "$link3\n";
$data .= "$link4\n";
$data .= "$link5\n";
$data .= "$link6\n";
$data .= "$link7\n";
$data .= "$link8\n";
fwrite($file, $data);
fclose($file);
echo "Te&#351;ekk&#252;rler...<br/>";
}
break;

case 'mesaj_dehliz':
break;

case 'mesaj_topr':
break;

case 'delvopros':
echo $fsize1;
echo "<b>Suallar&#305; Sil</b><br/>$divide\n";
echo "Bazada olan butun suallar&#305;n silinmesine raz&#305;s&#305;z?<br/><br/>";
echo "<a href=\"admin.php?go=delvopross&amp;id=$id&amp;ps=$ps&amp;ref=$ref\">Beli</a> | <a href=\"admin.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Xeyir</a><br/>";
echo $fsize2;
break;

case 'delvopross':
mysql_query ("delete from bots;");
echo $fsize1;
echo "<b>Suallar&#305; Sil</b><br/>$divide\n";
echo "Bazada olan butun suallar silindi.<br/><br/>";
break;

case 'delvoprose':
echo $fsize1;
echo "<b>Suallar&#305; tek-tek Sil</b><br/>$divide\n";
echo $fsize2;
$q = mysql_query("SELECT COUNT(*) FROM `bots`;");
$all = mysql_result($q, 0);

if(isset($_GET['page']))
{
$page = intval($_GET['page']);
}
else
{
$page = 0;
}

if($page < 0) $page = 0;
//if($page > intval($all/ONPAGE)) $page = intval($all/ONPAGE);

$limit = ($page * 10).", ".($page * 10 + 10);

$q = mysql_query("SELECT `number`,`vopros`,`answer`,`tran` FROM `bots` ORDER BY `number` DESC;");
echo $fsize1;
if ($start > 10) print "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=delvoprose&amp;start=0&amp;ref=$ref\">&lt;&lt;&lt;&lt;</a><br/>";
if ($start > 0) print "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=delvoprose&amp;start=".($start-10)."&amp;ref=$ref\">&lt;&lt;&lt;</a><br/>";
echo $fsize2;

if(mysql_num_rows($q) == 0)
{
echo $fsize1;
echo "Bazada sual yoxdur.<br/>\n";
echo $fsize2;
}

while($letter = mysql_fetch_array($q))
{
$number = $letter['number'];
$vopros = $letter['vopros'];
$answer = $letter['answer'];

echo $fsize1;
echo "<b>".$number.".</b> $vopros (<b>$answer</b>) | [<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=delvoprosee&amp;number=".$number."&amp;ref=$ref\">x</a>]<br/>\n";
echo $fsize2;
}
echo $fsize1;
if ($all > $start + 10) print "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=delvoprose&amp;start=".($start + 5)."&amp;mmr=$ref\">&gt;&gt;&gt;</a><br/>";
if ($all - $start > 20) print "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=delvoprose&amp;start=".($all - 5)."&amp;mmr=$ref\">&gt;&gt;&gt;&gt;</a><br/>";
echo $fsize2;
break;

case 'delvoprosee':
mysql_query ("delete from bots where number='$number';");
echo $fsize1;
echo "<b>Suallar&#305; tek-tek Sil</b><br/>$divide\n";
echo "Qeyd etdiyiniz sual silindi.<br/><br/>";
echo $fsize2;
break;

case 'mms_outbox':
echo $fsize1;
echo "<b>MMS Mektublar:</b><br/>$divide\n";
echo $fsize2;
$nomre=0+$start;
$q = mysql_query("SELECT COUNT(*) FROM `mms`;");
$all = mysql_result($q, 0);

if(isset($_GET['page']))
{
$page = intval($_GET['page']);
}
else
{
$page = 0;
}

if($page < 0) $page = 0;
//if($page > intval($all/ONPAGE)) $page = intval($all/ONPAGE);

$limit = ($page * 10).", ".($page * 10 + 10);

$q = mysql_query("SELECT `lid`,`read`,`kod`,`to`,`date`,`from`,`body` FROM `mms` ORDER BY `lid` DESC;");
echo $fsize1;
if ($start > 10) print "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mms_outbox&amp;start=0&amp;mmr=$ref\">&lt;&lt;&lt;&lt;</a><br/>";
if ($start > 0) print "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mms_outbox&amp;start=".($start-10)."&amp;mmr=$ref\">&lt;&lt;&lt;</a><br/>";
echo $fsize2;

if(mysql_num_rows($q) == 0)
{
echo $fsize1;
echo "G&#246;nderilenler qutusunda MMS yoxdur.<br/>\n";
echo $fsize2;
}

while($letter = mysql_fetch_array($q))
{
$nomre++;
$lid = $letter['lid'];
$title = $letter['kod'];
$read = $letter['read'];
$to = $letter['to'];
$date = $letter['date'];
$from = $letter['from'];
$text = $letter['body'];

$sql = mysql_query("SELECT `photo` FROM `mms` WHERE `lid` = '".$lid."';");
$adi = mysql_result($sql, 0);
$eh = mysql_query("SELECT `user` FROM `users` WHERE `id` = '".$from."';");
$kim = mysql_result($eh, 0);
$eh = mysql_query("SELECT `user` FROM `users` WHERE `id` = '".$to."';");
$kime = mysql_result($eh, 0);

echo $fsize1;
echo "<b>$nomre)-</b><a href=\"info.php?id=$id&amp;ps=$ps&amp;nk=$from&amp;ref=$ref\">$kim</a> &#187; <a href=\"info.php?id=$id&amp;ps=$ps&amp;nk=$to&amp;ref=$ref\">$kime</a><b>|&gt;</b>$text - <img src=\"anime.php?pic=".$adi."\" alt=\"img\"/> - [<a href=\"mms/".$adi."\">bax</a>]<br/>\n";
echo $fsize2;
}
echo $fsize1;
if ($all > $start + 10) print "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mms_outbox&amp;start=".($start + 5)."&amp;mmr=$ref\">&gt;&gt;&gt;</a><br/>";
if ($all - $start > 20) print "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mms_outbox&amp;start=".($all - 5)."&amp;mmr=$ref\">&gt;&gt;&gt;&gt;</a><br/>";
echo $fsize2;
break;

case 'mektub_outbox':
echo "<b>Mektublar:</b><br/>$divide";
if(!isset($s))$s=1;
$mx=round(($num/10)+0.45);
if($s>$mx)$s=$mx;
if($s==0)$s=1;
$q = mysql_query("SELECT COUNT(*) FROM `zapiski`;");
$a = mysql_result($q, 0);
$num = $a["num"];
$ot=(($s-1)*10)+1;
$do=$s*10;
if($do>$num)$do=$num;
$o=$ot-1;
$n=$ot;
if($do==0)$n=$o;
//echo "Sehife: $n-$do / Cemi: $num<br/>\n";
//echo $divide;
$r = mysql_query ("Select who,topic,date,klu4,idtowhom,message from zapiski order by time desc LIMIT $o,$do");
for ($i=$ot;$i<=$do;$i++){
$a = mysql_fetch_array($r);
$fromw = $a["who"];
$topic = $a["topic"];
$date = $a["date"];
$klu4 = $a["klu4"];
$idtowhom = $a["idtowhom"];
$message = $a["message"];

//$eh = mysql_query("SELECT `id` FROM `users` WHERE `user` = '".$fromw."';");
//$kim = mysql_result($eh, 0);
$eh = mysql_query("SELECT `user` FROM `users` WHERE `id` = '".$idtowhom."';");
$kime = mysql_result($eh, 0);

echo "<b>$s)-</b><u>".$fromw."</u> &#187; <a href=\"info.php?id=$id&amp;ps=$ps&amp;nk=".$idtowhom."&amp;ref=$ref\">".$kime."</a><b>|&gt;</b>".$message."[<a href=\"delmsg.php?s=$s&amp;id=$id&amp;ps=$ps&amp;im=$klu4&amp;sil\">x</a>]<br/>\n";
}
mysql_close($link);
$next=$s+1;
$prev=$s-1;
if ($num>$do) {
$ot=(($next-1)*10)+1;
$do=$next*10;
if($do>$num)$do=$num;
echo "-<br/><a href=\"gelen.php?id=$id&amp;ps=$ps&amp;s=$next&amp;ref=$ref\">&gt;&gt;$ot-$do&gt;&gt;</a><br/>\n";
}
if($s>1) {
$ot=(($prev-1)*10)+1;
$do=$prev*10;
echo "<a href=\"gelen.php?id=$id&amp;ps=$ps&amp;s=$prev&amp;ref=$ref\">&lt;&lt;$ot-$do&lt;&lt;</a><br/>\n";
}

break;

case 'qeydiyyat':
$adamlar = @mysql_query ("SELECT * FROM qeydiyyat;");
$set = mysql_fetch_array ($adamlar);
echo $fsize1;
echo "<b>&#199;at&#305;n Qur&#287;ular&#305;</b><br/>\n";
echo $divide;
echo "Q&#305;z:<br/>\n";
echo $fsize2;

echo "<input size=\"9\" name=\"qadin$ref\" maxlength=\"9\" value=\"$set[qadin]\"/><br/>\n";
echo $fsize1;
echo "Ki&#351;i:<br/>\n";
echo $fsize2;
echo "<input size=\"9\" name=\"kisi$ref\" maxlength=\"9\" value=\"$set[kisi]\"/><br/>\n";
echo $fsize1;
echo "Yeni User:<br/>\n";
echo $fsize2;
echo "<input name=\"son$ref\" maxlength=\"9\" value=\"$set[son]\"/><br/>\n";

echo $fsize1;
echo "<anchor title=\"go\">[Yadda Saxla]<go href=\"admin.php?id=$id&amp;ps=$ps&amp;go=upqeyd&amp;r=$ref\" method=\"post\">\n";
echo "<postfield name=\"qadin\" value=\"$(qadin$ref)\"/>\n";
echo "<postfield name=\"kisi\" value=\"$(kisi$ref)\"/>\n";
echo "<postfield name=\"son\" value=\"$(son$ref)\"/>\n";
echo "</go></anchor>\n";
echo $fsize2;
echo "<br/>\n";
break;

case 'upqeyd':
$qadin = trim(" $qadin ");
$kisi = trim(" $kisi ");
if (!isset($error)) {
$result = mysql_query ("Select * qeydiyyat where acar = 1");
if (mysql_affected_rows() == 0) {
$error = "Baza ile elaqe kesildi...";
} else {
mysql_query ("Update qeydiyyat set qadin='".$qadin."', kisi='".$kisi."', son='".$son."' where acar =1");
$msg = "Qeydiyyat say&#305; deyi&#351;dirildi!";
}
} else {
$error = " ".mysql_error()." ";
}
if (isset($error)) {
echo $fsize1;
echo "$error\n";
echo $fsize2;
}
echo $fsize1;
echo "<b>$msg</b><br/>\n";
echo $fsize2;
break;

case 'reg':
if (!$act){
$reg=file('inf/reg.dat');
echo '<small>Qeydiyyat:</small>';
echo '<select name="rg'.$ref.'" value="'.$reg[0].'">';
echo '<option value="0">Ba&#287;l&#305; </option>';
echo '<option value="1">A&#231;&#305;q </option>';
echo '</select><br/>';
echo "<small><a href=\"admin.php?id=$id&amp;ps=$ps&amp;reg=$(rg$ref)&amp;go=reg&amp;act=go\">Emri icra et</a></small><br/>";
break;};
$reg=intval($reg);
if ($reg!=0 and $reg!=1){$reg=1;};
$fp=fopen('inf/reg.dat','w');
fputs($fp,$reg);
fclose($fp);
echo '<small>Qeydiyyat Rejimi deyi&#351;dirildi!</small><br/>';
break;

case 'kompreg':
if (!$act){
$reg=file('inf/regkomp.dat');
echo '<small>Komp&#252;terle qeydiyyat:</small>';
echo '<select name="rg'.$ref.'" value="'.$reg[0].'">';
echo '<option value="0">Ba&#287;l&#305; </option>';
echo '<option value="1">A&#231;&#305;q </option>';
echo '</select><br/>';
echo "<small><a href=\"admin.php?id=$id&amp;ps=$ps&amp;reg=$(rg$ref)&amp;go=kompreg&amp;act=go\">Emri icra et</a></small><br/>";
break;};
$reg=intval($reg);
if ($reg!=0 and $reg!=1){$reg=1;};
$fp=fopen('inf/regkomp.dat','w');
fputs($fp,$reg);
fclose($fp);
echo '<small>Komp&#252;terle qeydiyyat Rejimi deyi&#351;dirildi!</small><br/>';
break;

case 'clear_us':
mysql_query ("delete from users where posts='0';");
echo '<small>Bazada 0 Postu olan istifade&#231;iler silindi!</small><br/>';
break;

case 'mnews':
$content=trim(htmlspecialchars(stripslashes($content)));
$date=date("j.m.Y");
if(empty($content)) $error=$error."<u>G&#246;ru&#351; teyin edilmeyib!</u><br/>";
if(empty($action)) {
print $fsize1;
print "Xeberler:<br/>";
print $fsize2;
print "<input name=\"content\"/><br/>";
print $fsize1;
print "<anchor>Elave et<go href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mnews\" method=\"post\">";
print "<postfield name=\"action\" value=\"add\"/>";
print "<postfield name=\"content\" value=\"$(content)\"/>";
print "<postfield name=\"date\" value=\"$date\"/>";
print "</go></anchor>";
print $fsize2;
print "<br/>";
} else {
if(empty($error)) {
if($content!=$last_news['content']) {
if(mysql_query("insert into news values(0,'$login','$content','$date');")) {
print $fsize1;
print "<b>Sizin yerle&#351;dirdiyiniz Xeber elave edildi!</b><br/>";
} else {
print $fsize1;
print "<b>Xeta var Xeber elave edilmedi...</b><br/>";
print $fsize2;
}
} else {
print $fsize1;
print "<b>Eyni ile bu formada artiq bir Xeber var!</b><br/>";
}
print $fsize2;
} else {
print $fsize1;
print $error;
print $fsize2;
}
}
break;

case 'msvadbi':
echo $fsize1;
echo "Beyin ad&#305;:<br/>";
echo $fsize2;
echo "<input name=\"zhenih\" maxlength=\"12\"/><br/>";
echo $fsize1;
echo "Gelinin ad&#305;:<br/>";
echo $fsize2;
echo "<input name=\"nevesta\" maxlength=\"12\"/><br/>";
echo $fsize1;
echo "Gelinin &#350;ahidi:<br/>";
echo $fsize2;
echo "<input name=\"frzhenih\"/><br/>";
echo $fsize1;
echo "Beyin &#350;ahidi:<br/>";
echo $fsize2;
echo "<input name=\"frnevesta\"/><br/>";
echo $fsize1;
echo "Toyun Tarixi:<br/>";
echo $fsize2;
echo "<input size=\"2\" name=\"day\" maxlength=\"2\" format=\"*N\"/>.<input size=\"2\" name=\"month\" maxlength=\"2\" format=\"*N\"/>.<input size=\"4\" name=\"year\" maxlength=\"4\" format=\"*N\"/><br/>";
echo $fsize1;
echo "Saat:<br/>";
echo $fsize2;
echo "<input size=\"2\" name=\"chs\" maxlength=\"2\" format=\"*N\"/>:<input size=\"2\" name=\"min\" maxlength=\"2\" format=\"*N\"/><br/>";
echo $fsize1;
echo "<anchor>[Qeyd Et]<go href=\"admin.php?id=$id&amp;ps=$ps&amp;go=updsvadbi$takep\" method=\"post\">";
echo "<postfield name=\"zhenih\" value=\"$(zhenih)\"/>";
echo "<postfield name=\"nevesta\" value=\"$(nevesta)\"/>";
echo "<postfield name=\"frzhenih\" value=\"$(frzhenih)\"/>";
echo "<postfield name=\"frnevesta\" value=\"$(frnevesta)\"/>";
echo "<postfield name=\"day\" value=\"$(day)\"/>";
echo "<postfield name=\"month\" value=\"$(month)\"/>";
echo "<postfield name=\"year\" value=\"$(year)\"/>";
echo "<postfield name=\"chs\" value=\"$(chs)\"/>";
echo "<postfield name=\"min\" value=\"$(min)\"/>";
echo "<postfield name=\"organizatory\" value=\"$us\"/>";
echo "</go></anchor>";
echo $fsize2;
echo "<br/>";
break;

case 'updsvadbi':
$zhenih=trim(htmlspecialchars(stripslashes($zhenih)));
$nevesta=trim(htmlspecialchars(stripslashes($nevesta)));
$frzhenih=trim(htmlspecialchars(stripslashes($frzhenih)));
$frnevesta=trim(htmlspecialchars(stripslashes($frnevesta)));
$day=trim(htmlspecialchars(stripslashes($day)));
$month=trim(htmlspecialchars(stripslashes($month)));
$year=trim(htmlspecialchars(stripslashes($year)));
$chs=trim(htmlspecialchars(stripslashes($chs)));
$min=trim(htmlspecialchars(stripslashes($min)));
if(empty($zhenih)) $error=$error."<u>Beysiz Gelin olmaz!</u><br/>";
if(empty($nevesta)) $error=$error."<u>Gelinsiz Bey olmaz!</u><br/>";
if(empty($frzhenih)) $error=$error."<u>Gelinin &#350;ahidi olmal&#305;d&#305;r!</u><br/>";
if(empty($frnevesta)) $error=$error."<u>Beyin &#350;ahidi olmal&#305;d&#305;r!</u><br/>";
if(empty($day)) $error=$error."<u>Toyun Tarixi Qeyd Edilmeyib!</u><br/>";
if(empty($month)) $error=$error."<u>Toyun Tarixi Qeyd Edilmeyib!</u><br/>";
if(empty($year)) $error=$error."<u>Toyun Tarixi Qeyd Edilmeyib!</u><br/>";
if(empty($chs)) $error=$error."<u>Toyun Tarixi Qeyd Edilmeyib!</u><br/>";
if(empty($min)) $error=$error."<u>Toyun Tarixi Qeyd Edilmeyib!</u><br/>";

$latuser=strtolower($zhenih);
$ruser = rus_to_k($zhenih);
if($ruser==$zhenih){
$latuser = mysql_escape_string($latuser);
$result = mysql_query ("Select id,user,para from users where latuser = '".$latuser."' and sex='1'");
} else {
$ruser = mysql_escape_string($ruser);
$result = mysql_query ("select id,user,para from users where ruser = '".$ruser."' and sex='1'");
}
$ki = mysql_fetch_array ($result);
$bey=$ki["user"];
$arvadi=$ki["para"];
if($arvadi!="") {
echo $fsize1;
echo "Bu Ki&#351;inin 1 arvad&#305; var 2-ci defe evlense <b>$arvadi</b>, ile <b>$nevesta</b>, yola getmeyecek)))<br/>";
echo $fsize2;
echo $fsize1;
echo "<br/>$divide";
echo $fsize2;
echo $fsize1;
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=msvadbi&amp;r=$ref\">Geri Qay&#305;t</a><br/>";
echo $fsize2;
echo "</p>\n";
echo "</card>\n";
echo "</wml>\n";
exit;
}

if (mysql_affected_rows() == 0) {
echo $fsize1;
echo "<u>&#199;atda <b>".$zhenih."</b>, Leqebli oglan yoxdur.</u><br/>";
echo $fsize2;
break;
}

$latuser2=strtolower($nevesta);
$result = mysql_query ("Select id,user,para from users where latuser = '".$latuser2."' and sex='0'");
$qi = mysql_fetch_array ($result);
$qadin=$qi["user"];
$eri=$qi["para"];
if($eri!="") {
echo $fsize1;
echo "Bu Xanim <b>$eri</b>, leqebli &#351;exsin arvad&#305;d&#305;r. Bir Xan&#305;m&#305;n 2 eri olmaz <br/>";
echo $fsize2;
echo $fsize1;
echo "<br/>$divide";
echo $fsize2;
echo $fsize1;
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;go=msvadbi&amp;r=$ref\">Geri Qay&#305;t</a><br/>";
echo $fsize2;
echo "</p>\n";
echo "</card>\n";
echo "</wml>\n";
exit;
break;

}

if (mysql_affected_rows() == 0) {
echo $fsize1;
echo "<u>&#199;atda <b>".$nevesta."</b>, Leqebli q&#305;z yoxdur.</u><br/>";
echo $fsize2;
break;
}

if(empty($error)) {
if($zhenih!=$last_svadbi['zhenih']) {
$days="$day.$month.$year";
$times="$chs:$min";
$nevesta=strtolower($nevesta);
$zhenih=strtolower($zhenih);

if(mysql_query("insert into svadbi values(0,'".$bey."','".$qadin."','".$frzhenih."','".$frnevesta."','".$days."','".$times."','".$organizatory."');")&&
mysql_query("Update users set para='".$qadin."' where latuser ='".$zhenih."'")&&mysql_query("Update users set para='".$bey."' where latuser ='".$nevesta."'")) {
echo $fsize1;
echo "<b>Meclis Quruldu Toy olacaq))</b><br/>";
echo $fsize2;

} else {
echo $fsize1;
echo $error;
echo $fsize2;
}
} else {
echo $fsize1;
echo "<b>Bucur evlilik movcutdur!</b><br/>";
echo $fsize2;
}
} else {
echo $fsize1;
echo $error;
echo $fsize2;
}
break;


case 'dsvadbi':
$q = mysql_query("select id,zhenih,nevesta,date from svadbi order by id desc;");
if (mysql_affected_rows() == 0) {
echo $fsize1;
echo "Toy teyin edilmeyib!!!<br/>\n";
echo $fsize2;
} else {
if(empty($action)) {
while($arr=mysql_fetch_array($q)) {
echo $fsize1;
echo "<a href=\"admin.php?id=$id&amp;ps=$ps&amp;action=del&amp;go=dsvadbi&amp;mid=".$arr['id']."$takep\">".$arr['zhenih']." ile ".$arr['nevesta'].". (".$arr['date'].") Tarixde evlenibler.</a><br/>";
echo $fsize2;
}
} else {
settype($mid, 'integer');
if(mysql_query("delete from svadbi where id='".$mid."' limit 1;")){
echo $fsize1;
echo "<b>Toy silindi!</b><br/>";
echo $fsize2;
}
}
}
break;



case 'razvod':
if ($ver=="xhtml") echo "<form method=\"POST\" action=\"admin.php?id=$id&amp;ps=$ps&amp;go=updrazvod$takep\" method=\"post\">\n";
echo $fsize1;
echo "Kishinin Nicki:<br/>";
echo $fsize2;
echo "<input name=\"zhenih\" maxlength=\"12\"/><br/>";
echo $fsize1;
echo "Qadinin Nicki:<br/>";
echo $fsize2;
echo "<input name=\"nevesta\" maxlength=\"12\"/><br/>";

echo $fsize1;
echo "<anchor>Ayir<go href=\"admin.php?id=$id&amp;ps=$ps&amp;go=updrazvod$takep\" method=\"post\">";
echo "<postfield name=\"zhenih\" value=\"$(zhenih)\"/>";
echo "<postfield name=\"nevesta\" value=\"$(nevesta)\"/>";
echo "</go></anchor>";
echo $fsize2;
echo "<br/>";
break;

case 'updrazvod':
$zhenih=trim(htmlspecialchars(stripslashes($zhenih)));
$nevesta=trim(htmlspecialchars(stripslashes($nevesta)));
if(empty($zhenih)) $error=$error."<u>Beyin bolmesi tamamlanmayib!</u><br/>";
if(empty($nevesta)) $error=$error."<u>Qizin bolmesi tamamlanmayib!</u><br/>";
$latuser=strtolower($zhenih);
$ruser = rus_to_k($zhenih);
if($ruser==$zhenih){
$latuser = mysql_escape_string($latuser);
$result = mysql_query ("Select * from users where latuser = '".$latuser."' and sex='1'");
} else {
$ruser = mysql_escape_string($ruser);
$result = mysql_query ("select * from users where ruser = '".$ruser."' and sex='1'");
}

if (mysql_affected_rows() == 0) {
echo $fsize1;
echo "<u>Bele nickli <b>".$zhenih."</b> oglan yoxdur.</u><br/>";
echo $fsize2;
break;
}
$raz=mysql_fetch_array($result);
$zhena=$raz['para'];
if ($zhena!=$nevesta){
echo $fsize1;
echo "<b>".$nevesta."</b> bu qiz nishanli deyil bu nicke <b>".$zhenih."</b>.<br/>";
echo $fsize2;
break;
}

$latuser2=strtolower($nevesta);
$ruser2 = rus_to_k($nevesta);
if($ruser2==$nevesta){
$latuser2 = mysql_escape_string($latruser2);
$result = mysql_query ("Select * from users where latuser = '".$latuser2."' and sex=''0'");
} else {
$ruser2 = mysql_escape_string($ruser2);
$result = mysql_query ("select * from users where ruser = '".$ruser2."' and sex=''0'");
}
$qiz = mysql_fetch_array ($select);
$qadin=$qiz["user"];
if (mysql_affected_rows() == 0) {
echo $fsize1;
echo "<u>Bele adli <b>".$nevesta."</b> qiz yoxdur</u><br/>";
echo $fsize2;
break;
}
$raz=mysql_fetch_array($result);
$muj=$raz['para'];
if ($muj==$zhenih){
echo $fsize1;
echo "<b>".$zhenih." </b> eri deyil bu qizin: <b>".$nevesta."</b>.<br/>";
echo $fsize2;
break;
}
if(empty($error)) {
if($zhenih!=$last_svadbi['zhenih']) {
$zhenih=strtolower($zhenih);
$nevesta=strtolower($nevesta);
if(mysql_query("Update users set para='' where latuser ='".$zhenih."'")&&mysql_query("Update users set para='' where latuser ='".$nevesta."'")) {
echo $fsize1;
echo "<b>Ayr&#305;ld&#305;lar!</b><br/>";
echo $fsize2;
} else {
echo $fsize1;
echo "<b>Ayrilmaq mumkun deyil.Problem var!</b><br/>";
echo $fsize2;
}
} else {
echo $fsize1;
echo "<b>Bu insanlar choxdan ayrilib!</b><br/>";
echo $fsize2;
}
} else {
echo $fsize1;
echo $error;
echo $fsize2;
}
break;


case 'dnews':
$q = mysql_query("select id,content from news order by id desc;");
if (mysql_affected_rows() == 0) {
print $fsize1;
print "Xeber Elave Edilmeyib.<br/>\n";
print $fsize2;
} else {
if(empty($action)) {
while($arr=mysql_fetch_array($q)) {
print $fsize1;
print "<a href=\"admin.php?action=del&amp;id=$id&amp;ps=$ps&amp;go=dnews&amp;mid=".$arr['id']."\">".$arr['id'].":</a> ".$arr['content']."<br/>";
print $fsize2;
}
} else {
if(mysql_query("delete from news where id='$mid' limit 1;")){
print $fsize1;
print "<b>Elave edildi!</b><br/>";
print $fsize2;
}
}
}
break;

case 'mmeet':
$title=trim(htmlspecialchars(stripslashes($title)));
$content=trim(htmlspecialchars(stripslashes($content)));
$organizatory=trim(htmlspecialchars(stripslashes($organizatory)));
if(empty($title)) $error=$error."<u>Ba&#351;l&#305;q yazmam&#305;s&#305;z!</u><br/>";
if(empty($content)) $error=$error."<u>Melumat tam ya&#305;lmay&#305;b!</u><br/>";
if(empty($organizatory)) $error=$error."<u>Melumat&#305; yerle&#351;diren yaz&#305;lmay&#305;b!</u><br/>";
if(empty($action)) {
print $fsize1;
print "Xeberin ba&#351;l&#305;&#287;&#305;:<br/>";
print $fsize2;
print "<input name=\"title\"/><br/>";
print $fsize1;
print "Metn:<br/>";
print $fsize2;
print "<input name=\"content\"/><br/>";
print $fsize1;
print "Te&#351;kilat&#231;&#305;lar:<br/>";
print $fsize2;
print "<input name=\"organizatory\"/><br/>";
print $fsize1;
print "<anchor>Elave et<go href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mmeet\" method=\"post\">";
print "<postfield name=\"action\" value=\"add\"/>";
print "<postfield name=\"title\" value=\"$(title)\"/>";
print "<postfield name=\"content\" value=\"$(content)\"/>";
print "<postfield name=\"organizatory\" value=\"$(organizatory)\"/>";
print "</go></anchor>";
print $fsize2;
print "<br/>";
} else {
if(empty($error)) {
if($title!=$last_meet['title']) {
if(mysql_query("insert into vstrechi values(0,'$login','$title','$content','$organizatory');")) {
print $fsize1;
print "<b>Sizin melumat&#305;n&#305;z m&#252;vefeqiyyetle elave edildi. Te&#351;ekk&#252;rler!</b><br/>";
print $fsize2;
} else {
print $fsize1;
print "<b>Bazada problem var Admine e xeber edin!</b><br/>";
print $fsize2;
}
} else {
print $fsize1;
print "<b>Eyni ile bu formada bir xeber art&#305;q m&#246;vcutdur!</b><br/>";
print $fsize2;
}
} else {
print $fsize1;
print $error;
print $fsize2;
}
}
break;

case 'dmeet':
$q = mysql_query("select id,title from vstrechi order by id desc;");
if (mysql_affected_rows() == 0) {
print $fsize1;
print "G&#246;r&#252;&#351; Teyn Edilmeyib!<br/>\n";
print $fsize2;
} else {
if(empty($action)) {
while($arr=mysql_fetch_array($q)) {
print $fsize1;
print "<a href=\"admin.php?action=del&amp;id=$id&amp;ps=$ps&amp;go=dmeet&amp;mid=".$arr['id']."\">".$arr['title']."</a><br/>";
print $fsize2;
}
} else {
if(mysql_query("delete from vstrechi where id='$mid' limit 1;")){
print $fsize1;
print "<b>Xeber silindi!</b><br/>";
print $fsize2;
}
}
}
break;

case 'mobi':
if(empty($title)) $error=$error."<u>Q&#305;sa ba&#351;l&#305;q yaz&#305;lmay&#305;b!</u><br/>";
if(empty($content)) $error=$error."<u>Metn yaz&#305;lmay&#305;b!</u><br/>";
if(empty($action)) {
print $fsize1;
print "Ad&#305;:<br/>";
print $fsize2;
print "<input name=\"title\"/><br/>";
print $fsize1;
print "Metn:<br/>";
print $fsize2;
print "<input name=\"content\"/><br/>";
print $fsize1;
print "<anchor>Elave et<go href=\"admin.php?id=$id&amp;ps=$ps&amp;go=mobi\" method=\"post\">";
print "<postfield name=\"action\" value=\"add\"/>";
print "<postfield name=\"title\" value=\"$(title)\"/>";
print "<postfield name=\"content\" value=\"$(content)\"/>";
print "</go></anchor>";
print $fsize2;
print "<br/>";
} else { if(empty($error)) {
if($title!=$last_obiav['title']) {
if(mysql_query("insert into obiav values(0,'$login','$title','$content');")) {
print $fsize1;
print "<b>Sizin Qeydiniz elave edildi. Te&#351;ekk&#252;rler!</b><br/>";
print $fsize2;
} else {
print $fsize1;
print "<b>Xeta 399 Admine nikine xeber et!</b><br/>";
print $fsize2;
}
} else {
print $fsize1;
print "<b>Eyni ile bu c&#252;r melumat art&#305;q m&#246;vcutdur.</b><br/>";
print $fsize2;
}
} else {
print $fsize1;
print $error;
print $fsize2;
}
}
break;

case 'dobi':
$q = mysql_query("select * from obiav order by id desc;");
if (mysql_affected_rows() == 0) {
print $fsize1;
print "Siz he&#231; ne yazmad&#305;z ax&#305;!!!<br/>\n";
print $fsize2;
} else {
if(empty($action)) {
while($arr=mysql_fetch_array($q)) {
print $fsize1;
print "<a href=\"admin.php?action=del&amp;id=$id&amp;ps=$ps&amp;go=dobi&amp;mid=".$arr['id']."\">".$arr['title']."</a><br/>";
print $fsize2;
}
} else {
if(mysql_query("delete from obiav where id='$mid' limit 1;")){
print $fsize1;
print "<b>Elan silindi!</b><br/>";
print $fsize2;
}
}
}
break;


case 'dobi_bal':
echo $fsize1;
echo "<b>Balli Elanlar:</b><br/>$divide";
echo $fsize2;
$q = mysql_query("select * from elan order by id desc;");
if (mysql_affected_rows() == 0) {
print $fsize1;
print "Siz he&#231; ne yazmad&#305;z ax&#305;!!!<br/>\n";
print $fsize2;
} else {
if(empty($action)) {
while($arr=mysql_fetch_array($q)) {
print $fsize1;
print "".$arr['metn']." (".$arr['nick'].")[<a href=\"admin.php?action=del&amp;id=$id&amp;ps=$ps&amp;go=dobi_bal&amp;mid=".$arr['id']."\">x</a>]<br/>";
print $fsize2;
}
} else {
if(mysql_query("delete from elan where id='$mid' limit 1;")){
print $fsize1;
print "<b>Elan silindi!</b><br/>";
print $fsize2;
}
}
}
break;

case 'edit':
if ($row["level"] == 9) {
$nick=trim($nick);
if($nick=="")$nick=0;
$latuser=strtolower($nick);
if (!ctype_digit($nick)) {
$result = mysql_query ("Select id,name,user,number,mail,voteses,votefoto,birth,gposts,sex,ceki,boy,pass,yazi,city,posts,status,level,credits,bal,byeotv,gizlilik,inv,tox,mexvi,user_ip,user_soft from users where latuser = '".$latuser."'");
} else {
$result = mysql_query ("Select id,name,user,number,mail,voteses,votefoto,birth,gposts,sex,ceki,boy,pass,yazi,city,posts,status,level,credits,bal,byeotv,gizlilik,inv,tox,mexvi,user_ip,user_soft from users where id = '".$latuser."'");
}
if (mysql_affected_rows() == 0) {
echo $fsize1;
echo "<b>&#304;stifade&#231;i Tap&#305;lmad&#305;.</b><br/>\n";
echo $fsize2;
break;
}
$row = mysql_fetch_array ($result);
$usid = $row["id"];

$upass = base64_decode($row['pass']);

if (($usid<"3")&&($id<3)) { echo "Bax bu ujey olmaz<br/>";}else {
echo $fsize1;
echo "ID N&#246;mresi: $usid<br/>\n";
echo "Leqebi:<br/>\n";
echo $fsize2;
echo "<input name=\"upnick$ref\" value=\"$row[user]\" title=\"nick\"/><br/>\n";
echo $fsize1;
echo "&#350;ifresi:<br/>\n";
echo $fsize2;
echo "<input name=\"upass$ref\" value=\"$upass\" title=\"upass\"/><br/>\n";
echo $fsize1;
echo "Postu:<br/>\n";
echo $fsize2;
echo "<input name=\"posts$ref\" value=\"$row[posts]\" format=\"*N\" title=\"posts\"/><br/>\n";
echo $fsize1;
echo "Oyun Balans&#305; Post:<br/>\n";
echo $fsize2;
echo "<input name=\"gposts$ref\" value=\"$row[gposts]\" format=\"*N\" title=\"gposts\"/><br/>\n";
echo $fsize1;
echo "Postla ald&#305;&#287;&#305; cavab:<br/>\n";
echo $fsize2;
echo "<input name=\"byeotv$ref\" value=\"$row[byeotv]\" format=\"*N\" title=\"byeotv\"/><br/>\n";
echo $fsize1;
echo "Do&#287;ru cavablar&#305;:<br/>\n";
echo $fsize2;
echo "<input name=\"credits$ref\" value=\"$row[credits]\" format=\"*N\" title=\"credits\"/><br/>\n";
if($id<"3") {
echo $fsize1;
echo "Bal Hesab&#305;:<br/>\n";
echo $fsize2;
echo "<input name=\"bal$ref\" value=\"$row[bal]\" format=\"*N\" title=\"bal\"/><br/>\n";
}
echo $fsize1;
echo "Ad&#305;:<br/>\n";
echo $fsize2;
echo "<input name=\"name$ref\" value=\"$row[name]\" title=\"name\"/><br/>\n";
echo $fsize1;
echo "Cinsi: 0=Q / 1=K:<br/>\n";
echo $fsize2;
echo "<input name=\"sex$ref\" value=\"$row[sex]\" format=\"*N\" title=\"sex\"/><br/>\n";
echo $fsize1;
echo "Foto sesler:<br/>\n";
echo $fsize2;
echo "<input name=\"votefoto$ref\" value=\"$row[votefoto]\" format=\"*N\" title=\"votefoto\"/><br/>\n";
echo $fsize1;
echo "Reytinq:<br/>\n";
echo $fsize2;
echo "<input name=\"voteses$ref\" value=\"$row[voteses]\" format=\"*N\" title=\"voteses\"/><br/>\n";
echo $fsize1;
echo "Tevell&#252;d&#252;:<br/>\n";
@list( $day, $month, $year ) = split( '-', $row["birth"] );
echo $fsize2;
echo "<input size=\"2\" name=\"days$ref\" value=\"$day\" maxlength=\"2\" format=\"*N\" emptyok=\"false\"/>-<input size=\"2\" name=\"months$ref\" value=\"$month\" maxlength=\"2\" format=\"*N\" emptyok=\"false\"/>-<input size=\"4\" name=\"years$ref\" value=\"$year\" maxlength=\"4\" format=\"*N\" emptyok=\"false\"/><br/>\n";
echo $fsize1;
echo "&#350;eher:<br/>\n";
echo $fsize2;
echo "<input name=\"city$ref\" value=\"$row[city]\" title=\"city\"/><br/>\n";
echo $fsize1;
echo "E-Mail:<br/>\n";
echo $fsize2;
echo "<input name=\"mail$ref\" value=\"$row[mail]\" title=\"mail\"/><br/>\n";
echo $fsize1;
echo "Tel N&#246;mresi:<br/>\n";
echo $fsize2;
echo "<input name=\"number$ref\" value=\"$row[number]\" format=\"*N\" title=\"number\"/><br/>\n";
echo $fsize1;
echo "&#199;ekisi:<br/>\n";
echo $fsize2;
echo "<input name=\"ceki$ref\" value=\"$row[ceki]\" format=\"*N\" title=\"ceki\"/><br/>\n";
echo $fsize1;
echo "Boyu:<br/>\n";
echo $fsize2;
echo "<input name=\"boy$ref\" value=\"$row[boy]\" format=\"*N\" title=\"boy\"/><br/>\n";
echo $fsize1;
echo "Status:<br/>\n";
echo $fsize2;
echo "<input name=\"status$ref\" value=\"$row[status]\" title=\"status\"/><br/>\n";

echo $fsize1;
echo "Leqebin veziyyeti:<br/>\n";
echo $fsize2;
echo "<select name=\"inv$ref\">\n";
if ($row["inv"] == 0)echo "<option value=\"0\">Normal</option>\n";
elseif ($row["inv"] == 1)echo "<option value=\"1\">G&#246;rsenmez</option>\n";
elseif ($row["inv"] == 2)echo "<option value=\"2\">Tam iqnor</option>\n";
if ($row["inv"]!=0) echo "<option value=\"0\">Normal</option>\n";
if ($row["inv"]!=1) echo "<option value=\"1\">G&#246;rsenmez</option>\n";
if ($row["inv"]!=2) echo "<option value=\"2\">Tam iqnor</option>\n";
echo "</select><br/>\n";

echo $fsize1;
echo "Mexvilik (bal):<br/>\n";
echo $fsize2;
echo "<select name=\"mexvi$ref\">\n";
if ($row["mexvi"]==0){
echo "<option value=\"0\">Deaktiv </option>\n";
echo "<option value=\"1\">Aktiv </option>\n";
}else {
echo "<option value=\"1\">Aktiv </option>\n";
echo "<option value=\"0\">Deaktiv </option>\n";
}
echo "</select><br/>\n";
echo $fsize1;
echo "Toxunulmazl&#305;q (bal):<br/>\n";
echo $fsize2;
echo "<select name=\"tox$ref\">\n";
if ($row["tox"]==0){
echo "<option value=\"0\">Deaktiv </option>\n";
echo "<option value=\"1\">Aktiv </option>\n";
}else {
echo "<option value=\"1\">Aktiv </option>\n";
echo "<option value=\"0\">Deaktiv </option>\n";
}
echo "</select><br/>\n";


echo $fsize1;
echo "&#350;riftin rengi:<br/>\n";
echo $fsize2;
echo "<select name=\"yazi$ref\">\n";
if($row["yazi"] === "")
{
echo "<option value=\"\">Qara</option>\n";
}
elseif($row["yazi"] === "blue")
{
echo "<option value=\"blue\">G&#246;y</option>\n";
}
elseif($row["yazi"] === "green")
{
echo "<option value=\"green\">Ya&#351;l</option>\n";
}

elseif($row["yazi"] === "Magenta")
{
echo "<option value=\"Magenta\">Nar&#305;nc&#305;</option>\n";
}
elseif($row["yazi"] === "Indigo")
{
echo "<option value=\"Indigo\">Cehray&#305;</option>\n";
}
elseif($row["yazi"] === "red")
{

echo "<option value=\"red\">Q&#305;rm&#305;z&#305;</option>\n";
}
elseif($row["yazi"] === "#990000")
{
echo "<option value=\"#990000\">T&#252;nd Q&#305;rm&#305;z&#305;</option>\n";
}
elseif($row["yazi"] ==="")
echo "<option value=\"\">Qara </option>\n";
echo "<option value=\"\">Qara </option>\n";
echo "<option value=\"blue\">G&#246;y</option>\n";
echo "<option value=\"green\">Ya&#351;&#305;l</option>\n";
echo "<option value=\"Magenta\">Nar&#305;nc&#305;</option>\n";
echo "<option value=\"Indigo\">Cehray&#305;</option>\n";
echo "<option value=\"red\">Q&#305;rm&#305;z&#305;</option>\n";
echo "<option value=\"#990000\">T&#252;nd Q&#305;rm&#305;z&#305;</option>\n";
echo "</select><br/>\n";

echo $fsize1;
echo "&#350;exside yaz&#305;lanlar&#305; g&#246;rs&#252;n?:<br/>\n";
echo $fsize2;
echo "<select name=\"gizlilik$ref\">\n";
if ($row["gizlilik"]==0){
echo "<option value=\"0\">Yox </option>\n";
echo "<option value=\"2\">He </option>\n";
}else {
echo "<option value=\"2\">He </option>\n";
echo "<option value=\"0\">Yox </option>\n";
}
echo "</select><br/>\n";
echo $fsize1;
echo "R&#252;tbesi:<br/>\n";
echo $fsize2;
echo "<select name=\"level$ref\">\n";
if($row["level"] === "0")echo "<option value=\"0\">0-".$lev0."</option>\n";
elseif($row["level"] === "1")echo "<option value=\"1\">1-".$lev1."</option>\n";
elseif($row["level"] === "2")echo "<option value=\"2\">2-".$lev2."</option>\n";
elseif($row["level"] === "3")echo "<option value=\"3\">3-".$lev3."</option>\n";
elseif($row["level"] === "4")echo "<option value=\"4\">4-".$lev4."</option>\n";
elseif($row["level"] === "5")echo "<option value=\"5\">5-".$lev5."</option>\n";
elseif($row["level"] === "6
OKTAY OKTAY [Off] [#] (15.09.2011 / 00:06)
I am Software Developer , Bitchs!
SeRi_KinG, qaqaw bawin cixdi cixmadi fakt komek isteyirsen phpni at kodlari bura men deyhm sehvliyi.
OKTAY OKTAY [Off] [#] (15.09.2011 / 00:09)
I am Software Developer , Bitchs!
Sehvi tapdim gozun aydin
SeRi_KinG SeRi_KinG [Off] [#] (15.09.2011 / 00:10)
PuLLu KiSiNiN KaSiB oGLu
OKTAY, harda qaqaw?
OKTAY OKTAY [Off] [#] (15.09.2011 / 00:12)
I am Software Developer , Bitchs!
SeRi_KinG, orda case editde qoyulubki usid<3 birde id<3 bulari et >545545454424445
SeRi_KinG SeRi_KinG [Off] [#] (15.09.2011 / 00:13)
PuLLu KiSiNiN KaSiB oGLu
OKTAY, komplasan?
SeRi_KinG SeRi_KinG [Off] [#] (15.09.2011 / 00:15)
PuLLu KiSiNiN KaSiB oGLu
OKTAY, qaqaw deqiq onu yazda bura ebele weyin icinde axtarmaq olmure
Firuz Firuz [Off] [#] (15.09.2011 / 00:15)
if (($usid<"3")&&($id<3))
eger redakte edenin ve redakte edenin id-si 3den kicikdise ele yazir
Firuz Firuz [Off] [#] (15.09.2011 / 00:17)
sen bele yaz
if (($usid<"2"))
bele olsa id1-i redakte etmek olmayacaq
OKTAY OKTAY [Off] [#] (15.09.2011 / 00:17)
I am Software Developer , Bitchs!
SeRi_KinG, qaqaw firuz niki yazdi. Yox telde operadayam.
SeRi_KinG SeRi_KinG [Off] [#] (15.09.2011 / 00:18)
PuLLu KiSiNiN KaSiB oGLu
Firuz, qaqaw o 3 lerin evezine ne qoyumki?
Firuz Firuz [Off] [#] (15.09.2011 / 00:20)
Sen onu deyiw bele ele
if($usid==1)
  Cemi: 31
1 2 >>

Mövzuya Baxanlar (0 nəfər)
Müellife göre filtreleme
Mövzunu YükleForuma Keç
Üst Yenilikler
 Əsas Səhifə  Onlayn: 1 / 20 nəfər

WapUsta.Net - Wap Ustaların Mekanı

© WapUsta.Net