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

Son Aktivlik

Master Forum | Skript / Komek | Komek Lazimdir
Axtarış
  Rengli nik gorunmur
[iL[Q]AR] [iL[Q]AR] [Off] [#] (11.05.2014 / 09:43)
<?php
header( "Cache-Control: no-cache" );
header( "Content-type:text/vnd.wap.wml; charset=utf-8" );
require( "inc.php" );
$link = connect_db( );
list($row, $id, $ps, $fsize1, $fsize2) = check_login($link);
$time = time()+$vaxt;
mysql_query ("Update users set time='".$time."', room='51' where id ='".$id."'");
$nnnn = $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
$nnn = explode("/",$nnnn);
$nn = count($nnn)-1;
$thesite = str_replace("$nnn[$nn]","",$nnnn);
$bal = $row['bal'];
$user = $row['user'];
ob_start( );
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
echo "<wml>\n<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/>\n";
echo "<meta http-equiv=\"{$site}\" content=\"no-cache\"/></head>\n";
if ( !file_exists( "file/bal_bot/0.dat" ) )
{
echo "<card id=\"temir\" title=\"Temir\">\n";
echo "<p>\n";
echo $fsize1;
echo "<b>Bal xidmetleri</b>, 2-3 saatliq temir ile elaqedar fasile edir.<br/>";
echo $divide;
print "<a href=\"enter.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Dehliz</a><br/>";
echo $fsize2;
echo "</p></card></wml>";
ob_end_flush( );
exit( );
}
//global $bolme;
switch ( $bolme )
{
case "nik" :
$bals = file( "file/bal_bot/0.dat" );
$r_nik_1 = trim( $bals[2] );
$r_nik_2 = trim( $bals[3] );
$c_nick = mysql_query( "select time from `c_nick` where `to` = '".$id."'" );
$nikc = mysql_fetch_array( $c_nick );
$niktime = $nikc['time'];
echo "<card id=\"bal_xidmet\" title=\"Rengli nik Sifrari&#351;\">\n";
echo "<p>\n";
if ( !isset( $_POST['action'] ) )
{
echo $fsize1;
echo "<b>Rengli nik Sifrari&#351;</b><br/>*****<br/>\n";
echo "Rengli nick 2 formadad&#305;r (<i>Hereketli ve hereketsiz</i>).<br/>\r\nHereketsiz nick 1 ayl&#305;&#287;&#305; <b>".$r_nik_1."</b>. bal,<br/>\r\nHereketli nickin, ise 1 ayl&#305;q <b>".$r_nik_2."</b>, bal deyerindedir.<br/>";
echo "----<br/><i>Nickler Sizin istediyiniz qrafikada haz&#305;rlan&#305;r.</i><br/>\r\n<i>Sifari&#351; edildikden 24 saat erzinde haz&#305;r olur.</i><br/>----<br/>\n";
echo "Sizin balans&#305;n&#305;zda <b>{$bal}</b>, bal var<br/>\n";
echo "----<br/>\n";
$q = mysql_query( "SELECT * FROM `c_nick` WHERE `to` = '".$id."';" );
if ( mysql_num_rows( $q ) != 0 )
{
if ( file_exists( "i/".$id.".gif" ) )
{
$tkick = $niktime - time( );
if ( $tkick < 60 && 0 < $tkick )
{
$vaxt = "saniyye\n";
}
else if ( $tkick < 3600 && 60 < $tkick )
{
$new = $tkick;
$tkick = $new / 60;
$vaxt = "deqiqe\n";
}
else if ( $tkick < 86400 && 3600 < $tkick )
{
$new = $tkick;
$tkick = $new / 3600;
$vaxt = "saat\n";
}
else if ( 86400 < $tkick )
{
$new = $tkick;
$tkick = $new / 86400;
$vaxt = "g&#252;n\n";
}
$tkick = round( $tkick );
echo "<u>Rengli nickiniz var ve aktivdir</u>:<br/><b>Nickin g&#246;r&#252;nt&#252;s&#252;</b>: <img src=\"i/{$id}.gif\" alt=\"{$user}\" /><br/>";
echo "<i>Nickin vaxt&#305;n&#305;n tamam olmas&#305;na <b>{$tkick} {$vaxt}</b> qal&#305;b</i>...<br/>";
echo "----<br/>\n";
echo $fsize2;
break;
}
echo "<i>Rengli Nikiniz FTP-den silinib</i>... <b>Admine M&#252;raciet edin!</b><br/>";
echo "----<br/>\n";
echo $fsize2;
break;
}
if ( $bal < $r_nik_1 )
{
echo "<i>Rengli Nick sifari&#351; etmek &#252;&#231;&#252;n hesab&#305;n&#305;zda en az&#305; <b>{$r_nik_1}</b> bal olmal&#305;d&#305;r...</i><br/>";
echo "<a href=\"hesab.php?bolme=bal&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal Y&#252;kleme Qaydas&#305;</a><br/>\n";
}
else
{
echo "<b>Nickin N&#246;v&#252;</b>:<br/>";
echo $fsize2;
echo "<select name=\"niks\">\n";
echo "<option value=\"1\">Hereketsiz - {$r_nik_1} bal</option>\n";
echo "<option value=\"2\">Hereketli - {$r_nik_2} bal</option>\n";
echo "</select><br/>\n";
echo $fsize1;
echo "<b>Qeydiniz</b>:<br/>\n";
echo $fsize2;
echo "<input name=\"qeyd\" maxlength=\"9000\" title=\"Rengli nikin g&#246;r&#252;n&#252;&#351;&#252; barede yaz&#305;n\" emptyok=\"true\"/><br/>\n";
echo $fsize1;
echo "<anchor title=\"go\">Sifari&#351; et<go href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;bolme=nik&amp;ref={$ref}\" method=\"post\">\n";
echo "<postfield name=\"niks\" value=\"$(niks)\"/>\n";
echo "<postfield name=\"qeyd\" value=\"$(qeyd)\"/>\n";
echo "<postfield name=\"action\" value=\"save\"/>\n";
echo "</go></anchor><br/>\n";
}
echo "----<br/>\n";
echo $fsize2;
break;
}
echo $fsize1;
$q = mysql_query( "SELECT * FROM `sifarish` WHERE `to` = '".$id."';" );
if ( mysql_num_rows( $q ) != 0 )
{
if ( !file_exists( "i/".$id.".gif" ) )
{
echo "H&#246;rmetli <b>{$user}</b>.<br/> Siz <u>Rengli Nik</u>, Sifari&#351; edibsiz...<br/>Zehmet olmasa Sifrai&#351;in yoxlan&#305;lmas&#305;n&#305; g&#246;zleyin.<br/>\n";
}
else
{
echo "<u>Rengli nikiniz var ve aktivdir</u>: <img src=\"i/".$id.".gif?".rand( 100, 999 )."\" alt=\"{$user}\" /><br/>";
}
echo "----<br/>\n";
echo $fsize2;
break;
}
if ( $niks == "1" && $bal < "{$r_nik_1}" )
{
echo "<b>1 ayl&#305;q hereketsiz nik almaq &#252;&#231;&#252;n hesab&#305;n&#305;zda <b>{$r_nik_1}</b>, bal olmal&#305;d&#305;r!</b><br/>----<br/>\n";
echo "<a href=\"hesab.php?bolme=bal&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal Y&#252;kleme Qaydas&#305;</a><br/>\n";
echo "<a href=\"hesab.php?bolme=nik&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Geri Qay&#305;t</a><br/>\n";
echo "*****<br/>\n";
echo $fsize2;
break;
}
if ( $niks == "2" && $bal < "{$r_nik_2}" )
{
echo "<b>1 ayl&#305;q hereketli nik almaq &#252;&#231;&#252;n hesab&#305;n&#305;zda <b>{$r_nik_2}</b>, bal olmal&#305;d&#305;r!</b><br/>----<br/>\n";
echo "<a href=\"hesab.php?bolme=bal&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal Y&#252;kleme Qaydas&#305;</a><br/>\n";
echo "<a href=\"hesab.php?bolme=nik&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Geri Qay&#305;t</a><br/>\n";
echo "*****<br/>\n";
echo $fsize2;
break;
}
require( "file/require/sh_files" );
$qeyd = narmobil( $qeyd );
if ( empty( $niks ) )
{
echo "<b>Hereketli ve ya hereketsiz bir nik se&#231;in!</b><br/>\n";
echo "*****<br/>\n";
echo $fsize2;
break;
}
if ( empty( $qeyd ) )
{
echo "Rengli nikiniz g&#246;r&#252;n&#252;&#351;&#252; haqq&#305;nda qeyd yazmal&#305;s&#305;z. <br/>Rengli nikin g&#246;r&#252;n&#252;&#351;&#252; barede etrafl&#305; qeyd yaz&#305;n ki, rengli nikiniz &#252;reyinizce olsun!<br/>\n";
echo "*****<br/>\n";
echo $fsize2;
break;
}
$date = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
if ( $niks == 1 )
{
$newbal = $bal - $r_nik_1;
$qr_nik = $r_nik_1;
$nikss = "1 Ayl&#305;q Hereketsiz (sade) Nik Sifari&#351; etdi";
}
else
{
$newbal = $bal - $r_nik_2;
$qr_nik = $r_nik_2;
$nikss = "1 Ayl&#305;q Hereketli Nik Sifari&#351; etdi";
}
$time = time( );
$sql = mysql_query( "insert into `sifarish` values(0,'1','{$id}','{$date}','{$time}','".$niks."','{$qeyd}');" );
if ( $sql )
{
echo "<b>Sifari&#351;iniz Qeyd edildi.</b><br/>*****<br/>";
echo "Tezlikle Sizin Rengli nikiniz Aktiv edilecek<br/>----<br/><i>Bal Xidmetinden istifade etdiyiniz &#252;&#231;&#252;n,</i><br/><b>Te&#351;ekk&#252;rler</b>\n";
echo "<br/>----<br/>\n";
echo "Hesab&#305;n&#305;zda <b>{$newbal}</b>. bal qald&#305;\n";
echo "<br/>*****<br/>\n";
$update = mysql_query( "UPDATE `users` SET `bal` = '".$newbal."' WHERE `id` = '".$id."';" );
$date = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
$user = $row['user'];
@$save = @fopen( "file/bal_bot/4.dat", "a+" );
$qeyd = "".base64_encode( "<b>{$user}</b>: - {$nikss} (<u>{$bal}-{$qr_nik}=<b>{$newbal}</b></u>)-({$date})" )."\n";
@fwrite( @$save, @"{$qeyd}" );
@fflush( @$save );
@fclose( @$save );
$xerc = @mysql_query( "Select `xerc` from `setting` where `klu4` = '1';" );
$mp = mysql_fetch_array( $xerc );
$satish = $mp['xerc'];
$satish = $satish + $qr_nik;
mysql_query( "UPDATE `setting` SET `xerc` = '".$satish."' where klu4='1' limit 1;" );
$data = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
$b_user = trim( $bals[0] );
$user_bot = trim( $bals[1] );
$message = "<b>{$user}</b> - {$nikss}.<br/> {$bal} - {$qr_nik} = {$newbal} bal qald&#305;.<br/> Bankda <b>{$satish}</b> bal var...";
mysql_query( "insert into zapiski values(0,'".$b_user."','0','".$message."','','1','".time( )."','0','Rengli nik ".$qr_nik."','".$data."','1','1');" );
$message = "H&#246;rmetli <b>{$user}</b>. Siz Bal Sisteminden &#304;stifade ederek <b>".$nikss."niz</b>:<br/>Hesab&#305;n&#305;zda {$bal} - {$qr_nik} = {$newbal} bal qald&#305;.<br/>Tezlikle Rengli nikiniz haz&#305;rlanacaq<br/><i>Bal Sisteminden &#304;stifade etdiyiniz &#252;&#231;&#252;n Te&#351;ekk&#252;rler!</i>";
mysql_query( "insert into zapiski values(0,'".$user_bot."','0','".$message."','".$user."','".$id."','".time( )."','0','Melumat','".$data."','1','1');" );
}
echo $fsize2;
break;
case "sendbal" :
$bals = file( "file/bal_bot/0.dat" );
$send_bal = trim( $bals[4] );
$b_user = trim( $bals[0] );
$user_bot = trim( $bals[1] );
unset( $bals );
if ( $send_bal == "x" )
{
echo "<card id=\"xeta\" title=\"Xeta\">\n";
echo "<p>\n";
echo $fsize1;
echo "Bele xidmet yoxdur<br/>\n";
echo $divide;
if ( $bolme )
{
print "<a href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal Xidmetleri</a><br/>\n";
}
print "<a href=\"enter.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Dehliz</a><br/>\n";
echo $fsize2;
echo "</p></card></wml>";
ob_end_flush( );
exit( );
}
echo "<card id=\"bal_xidmet\" title=\"Bal g&#246;nder\">\n";
echo "<p>\n";
if ( !isset( $_POST['action'] ) )
{
$file = fopen( "file/bal_bot/ref.dat", "w" );
fwrite( $file, $ref );
fclose( $file );
echo $fsize1;
echo "<b>Bal g&#246;nder</b><br/>\n";
echo "*****<br/>\n";
echo "<b>Qeyd</b>: Bal ko&#231;&#252;rmelerinde -{$send_bal}% komissiya haqq&#305; tutulur.<br/>----<br/>\n";
echo "Hesab&#305;n&#305;zda <b>{$bal}</b>. bal var<br/>----<br/>\n";
echo "<b>Kime ?</b> (Leqeb / &#304;D)<br/>";
echo $fsize2;
echo "<input name=\"kime\" maxlength=\"300\" value=\"\"/><br/>\n";
echo $fsize1;
echo "<b>Ne Qeder ?</b><br/>";
echo $fsize2;
echo "<input size=\"6\" name=\"send\" maxlength=\"6\" format=\"*N\"/>";
echo $fsize1;
echo " Bal<br/>\n";
echo "<anchor>K&#246;&#231;&#252;r<go href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;bolme=sendbal&amp;ref={$ref}\" method=\"post\">\n";
echo "<postfield name=\"kime\" value=\"$(kime)\"/>\n";
echo "<postfield name=\"send\" value=\"$(send)\"/>\n";
echo "<postfield name=\"action\" value=\"save\"/>\n";
echo "</go></anchor><br/>\n";
echo "*****<br/>\n";
echo $fsize2;
}
else
{
echo $fsize1;
if ( $send < 1 )
{
echo "<i>0 bal g&#246;ndermek olmur!</i><br/>*****<br/>";
echo "<a href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;bolme=sendbal&amp;ref={$ref}\">Geri qay&#305;t</a><br/>---<br/>\n";
echo $fsize2;
break;
}
$kode = file( "file/bal_bot/ref.dat" );
$kode = trim( $kode[0] );
$cixilan = $send * $send_bal / 100;
$setbal = $bal - $send - $cixilan;
$cixilan = round( $cixilan, 2 );
if ( $setbal <= 0 )
{
echo "<i>G&#246;ndermek istediyiniz meble&#287; hesab&#305;n&#305;zda yoxdur!</i><br/>";
echo "*****<br/>";
echo "<b>Qeyd</b>: Kimese g&#246;ndermek istediyinizse evvala &#246;z hesab&#305;n&#305;za bal y&#252;kleyin!<br/>----<br/>";
echo "<a href=\"hesab.php?bolme=bal&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal y&#252;leme qaydas&#305;</a><br/>\n";
echo "*****<br/>";
echo $fsize2;
break;
}
if ( !ctype_digit( $kime ) )
{
$kime = trim( $kime );
if ( $kime == "" )
{
$kime = 0;
}
$latuser = strtolower( $kime );
$sel = mysql_query( "select id,user,bal from users where latuser = '".$latuser."'" );
}
else
{
$sel = mysql_query( "select id,user,bal from users where id = '".$kime."'" );
}
$row2 = mysql_fetch_array( $sel );
$uuser = $row2['user'];
$kbal = $row2['bal'];
$uuid = $row2['id'];
if ( $uuser == "" )
{
echo "<i>Axdard&#305;q&#305;n&#305;z istifade&#231;i tap&#305;lmad&#305; yeniden ceht edin.</i><br/>----<br/>";
echo "<a href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;bolme=sendbal&amp;ref={$ref}\">Geri qay&#305;t</a><br/>*****<br/>\n";
echo $fsize2;
break;
}
if ( $uuid == "{$id}" )
{
echo "<i>&#214;z-&#246;z&#252;n&#252;ze bal g&#246;ndere bilmersiz...</i><br/>----<br/>";
echo "<a href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;bolme=sendbal&amp;ref={$ref}\">Geri qay&#305;t</a><br/>*****<br/>\n";
echo $fsize2;
break;
}
if ( $kode != 0 )
{
$setbal = round( $setbal, 2 );
$uubal = round( $uubal, 2 );
$gobal = "Update `users` set `bal` = '".$setbal."' where `id` ='".$id."'";
mysql_query( $gobal );
$uubal = $kbal + $send;
$colse = "Update `users` set `bal` = '".$uubal."' where `id` = '".$uuid."'";
mysql_query( $colse );
echo "<b>Bal G&#246;nderildi!</b><br/>*****<br/>";
echo "Siz &#246;z hesab&#305;n&#305;zdan <b>{$uuser}</b>, leqebli istifade&#231;iye {$send} bal g&#246;nderdiz.<br/> Elave olaraq sizin hesab&#305;n&#305;zdan {$send_bal}% ({$cixilan} bal) Komisiyya haqq&#305; c&#305;x&#305;ld&#305;.<br/>----<br/>";
echo "Hesab&#305;n&#305;zda <b>{$setbal}</b>, bal qald&#305;...<br/>*****<br/>\n";
echo $fsize2;
$date = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
$user = $row['user'];
$miqdar = $send + $cixilan;
@$save = @fopen( "file/bal_bot/5.dat", "a+" );
$qeyd = "".base64_encode( "<b>{$user}</b> - <u>{$uuser}</u> <b>{$send}</b> bal. Komissiya ".$send_bal."%ile-(<b>{$cixilan}</b>) (<u>{$bal} - {$miqdar}=<b>{$setbal}</b></u>)-({$date})" )."\n";
@fwrite( @$save, @"{$qeyd}" );
@fflush( @$save );
@fclose( @$save );
$xerc = @mysql_query( "Select `xerc` from `setting` where `klu4` = '1';" );
$mp = mysql_fetch_array( $xerc );
$satish = $mp['xerc'];
$satish = $satish + $cixilan;
mysql_query( "UPDATE `setting` SET `xerc` = '".$satish."' where `klu4` = '1';" );
$data = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
$message = "{$user} - {$uuser} leqebine {$send} bal g&#246;nderdi: komissiya haqq&#305;-(<b>{$cixilan}</b>) {$bal} - {$send} = {$setbal} bal qald&#305;<br/> Bankda <b>{$satish}</b> bal var =";
mysql_query( "insert into zapiski values(0,'".$b_user."','0','".$message."','','1','".time( )."','0','send bal {$acixilan}','".$data."','1','1');" );
$message = "<b>Diqqet</b>!!! <u>{$user}</u>, leqebli &#351;exs sizin hesab&#305;n&#305;za {$send} bal g&#246;nderdi.";
mysql_query( "insert into zapiski values(0,'".$user_bot."','0','".$message."','".$uuser."','".$uuid."','".time( )."','0','Size {$send} bal g&#246;nderdiler','".$data."','1','1');" );
$message = "H&#246;rmetli <u>{$user}</u>, Siz &#214;z Hesab&#305;n&#305;zdan {$send} bal <u>{$uuser}</u>. leqebli &#350;exse g&#246;nderdiz. Komissiya haqq&#305; <b>{$cixilan}</b> bal:<br/> Hesab&#305;n&#305;zda {$bal} - {$miqdar} = {$setbal} bal qald&#305;.<br/> <i>Bal Sisteminden &#304;stifade etdiyiniz &#252;&#231;&#252;n Te&#351;ekk&#252;rler!</i>";
mysql_query( "insert into zapiski values(0,'".$user_bot."','0','".$message."','".$user."','".$id."','".time( )."','0','Melumat','".$data."','1','1');" );
$i = 0;
while ( $i <= 9 )
{
$st = time( );
$today = date( "H:i", mktime( date( "H" ) + $xsat ) );
$mes = "<b>".$user."</b>, - <b>".$uuser."</b>. leqebli istifade&#231;iye <b>".$send."</b>, bal g&#246;nderdi...";
$rnd = rand( 0, 99999999 );
mysql_query( "Insert into room{$i} set klu4= '".$rnd."', time='".$today."', who='{$user_bot}', message='".$mes."', id='".$st."', towhom='', hid='0', usid='10'" );
++$i;
}
$rnd = rand( 0, 9 );
$online = time( ) + $vaxt;
mysql_query( "UPDATE `users` SET `time` = '".$online."', `room` = '".$rnd."' WHERE `id` = '10';" );
}
else
{
echo "Siz &#246;z hesab&#305;n&#305;zdan <b>{$uuser}</b>, nikli istifade&#231;iye {$send} bal g&#246;nderdiz....<br/>*****<br/>\n";
echo $fsize2;
break;
}
$file = fopen( "file/bal_bot/ref.dat", "w" );
fwrite( $file, 0 );
fclose( $file );
}
break;
case "yeninik" :
$bals = file( "file/bal_bot/0.dat" );
$leqeb_d = trim( $bals[5] );
$b_user = trim( $bals[0] );
$user_bot = trim( $bals[1] );
unset( $bals );
if ( $leqeb_d == "x" )
{
echo "<card id=\"xeta\" title=\"Xeta\">\n";
echo "<p>\n";
echo $fsize1;
echo "Bele xidmet yoxdur<br/>\n";
echo $divide;
if ( $bolme )
{
print "<a href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal Xidmetleri</a><br/>\n";
}
print "<a href=\"enter.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Dehliz</a><br/>\n";
echo $fsize2;
echo "</p></card></wml>";
ob_end_flush( );
exit( );
}
echo "<card id=\"bal_xidmet\" title=\"Yeni &#304;stifade&#231;i ad&#305;\">\n";
echo "<p>\n";
echo $fsize1;
if ( !isset( $_POST['action'] ) )
{
echo "<b>Yeni &#304;stifade&#231;i ad&#305;</b><br/>*****<br/>\n";
echo "&#304;stifade&#231;i ad&#305;n&#305; deyi&#351;mek, <b>{$leqeb_d}</b>, bal deyerindedir.<br/>\n";
if ( $leqeb_d <= $bal )
{
echo "Hesab&#305;n&#305;zda <b>{$bal}</b>. bal var<br/>\n";
echo "----<br/>";
echo "<b>Yeni &#304;stifade&#231;i ad&#305;n&#305;z:</b><br/>\n";
echo $fsize2;
echo "<input name=\"yeninik\" maxlength=\"20\" value=\"{$user}\" title=\"yeninik\" emptyok=\"true\"/><br/>\n";
echo $fsize1;
echo "<anchor title=\"go\">Deyi&#351;dir<go href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;bolme=yeninik&amp;ref={$ref}\" method=\"post\">\n";
echo "<postfield name=\"yeninik\" value=\"$(yeninik)\"/>\n";
echo "<postfield name=\"action\" value=\"save\"/>\n";
echo "</go></anchor><br/>\n";
}
else
{
echo "Hesab&#305;n&#305;zda <b>{$bal}</b>. bal var<br/>----<br/>\n";
echo "<b>Qeyd</b>: Leqebinizi deyi&#351;dirmek &#252;&#231;&#252;n hesab&#305;n&#305;za bal y&#252;kleyin!<br/>\n";
echo "----<br/>";
echo "<a href=\"hesab.php?bolme=bal&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal y&#252;leme qaydas&#305;</a><br/>\n";
}
echo "*****<br/>";
}
else
{
if ( 15 < strlen( $yeninik ) || strlen( $yeninik ) < 3 )
{
echo "<i>Se&#231;mek istediyiniz leqebin simvolu 3-den 15-e qeder ola biler.</i><br/>----<br/>\n";
echo "<a href=\"hesab.php?bolme=yeninik&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Geri Qay&#305;t</a><br/>*****<br/>\n";
echo $fsize2;
break;
}
if ( preg_match( "/[^A-Za-z\\@\\*\\(\\)\\!\\-\\~\\_\\[\\]\\=]+/", $yeninik ) )
{
echo "Se&#231;mek istediyiniz leqebde qada&#287;an olunmu&#351; simvol var.<br/>----<br/>\n";
echo "<a href=\"hesab.php?bolme=yeninik&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Geri Qay&#305;t</a><br/>*****<br/>\n";
echo $fsize2;
break;
}
if ( $bal < $leqeb_d )
{
echo "<i>&#304;stifade&#231;i ad&#305;n&#305; deyi&#351;dirmek &#252;&#231;&#252;n hesab&#305;n&#305;zda <b>{$leqeb_d}</b>, bal olmal&#305;d&#305;r!</i><br/>";
echo $divide;
echo "Hesab&#305;n&#305;zda <b>{$bal}</b>, bal var.<br/>";
echo "*****<br/>";
}
else
{
$newbal = $bal - $leqeb_d;
$yeninik = trim( $yeninik );
$lowernick = strtolower( $yeninik );
$q = mysql_query( "SELECT * FROM `users` WHERE `latuser` = '".$lowernick."';" );
if ( mysql_affected_rows( ) != 0 )
{
echo "<i>Se&#231;mek istediyiniz &#304;stifade&#231;i ad&#305; m&#246;vcutdur!</i>\n";
echo "<br/>*****<br/>\n";
echo $fsize2;
break;
}
$sql = mysql_query( "UPDATE `users` SET `bal` = '".$newbal."', `latuser` = '".$lowernick."', `user` = '".$yeninik."' WHERE `id` = '".$id."';" );
$date = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
@$save = @fopen( "file/bal_bot/3.dat", "a+" );
$qeyd = "".base64_encode( "<b>{$user}</b>: - <u>{$yeninik}</u> (<u>{$bal}-{$leqeb_d}=<b>{$newbal}</b></u>)-({$date})" )."\n";
@fwrite( @$save, @"{$qeyd}" );
@fflush( @$save );
@fclose( @$save );
$xerc = @mysql_query( "Select `xerc` from `setting` where `klu4` = '1';" );
$mp = mysql_fetch_array( $xerc );
$satish = $mp['xerc'];
$satish = $satish + $leqeb_d;
mysql_query( "UPDATE `setting` SET `xerc` = '".$satish."' where `klu4` = '1';" );
$data = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
$message = "<u>{$user}</u> - Leqebini deyi&#351;ib <b>{$yeninik}</b>, etdi: <br/>Hesab&#305;nda {$bal} - {$leqeb_d} = {$newbal} bal qald&#305;<br/> Bankda <b>{$satish}</b> bal var =";
mysql_query( "insert into zapiski values(0,'".$b_user."','0','".$message."','','1','".time( )."','0','Leqeb ".$leqeb_d." bal','".$data."','1','1');" );
$message = "H&#246;rmetli <u>{$user}</u>, Siz Bal Xidmetinden istifade ederek, &#246;z leqebinizi deyi&#351;ib <b>{$yeninik}</b> etdiniz! <br/> Hesab&#305;n&#305;zda {$bal} - {$leqeb_d} = {$newbal} bal qald&#305;.<br/> <i>Bal Sisteminden &#304;stifade etdiyiniz &#252;&#231;&#252;n Te&#351;ekk&#252;rler!</i>";
mysql_query( "insert into zapiski values(0,'".$user_bot."','0','".$message."','".$yeninik."','".$id."','".time( )."','0','Melumat','".$data."','1','1');" );
if ( $sql )
{
echo "<b>Tebrikler.</b><br/> Siz u&#287;urla &#246;z &#304;stifade&#231;i ad&#305;n&#305;z&#305; (Leqebinizi), deyi&#351;dirdiniz!<br/>----<br/>Yeni &#304;stifade&#231;i Ad&#305;n&#305;z:<br/><b>{$yeninik}</b>\n";
echo "<br/>----<br/>\n";
echo "Hesab&#305;n&#305;zda <b>{$newbal}</b>. bal qald&#305;\n";
echo "<br/>*****<br/>\n";
}
}
}
echo $fsize2;
break;
case "status" :
$bals = file( "file/bal_bot/0.dat" );
$status_d = trim( $bals[6] );
$b_user = trim( $bals[0] );
$user_bot = trim( $bals[1] );
unset( $bals );
if ( $status_d == "x" )
{
echo "<card id=\"xeta\" title=\"Xeta\">\n";
echo "<p>\n";
echo $fsize1;
echo "Bele xidmet yoxdur<br/>\n";
echo $divide;
if ( $bolme )
{
print "<a href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal Xidmetleri</a><br/>\n";
}
print "<a href=\"enter.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Dehliz</a><br/>\n";
echo $fsize2;
echo "</p></card></wml>";
ob_end_flush( );
exit( );
}
echo "<card id=\"bal_xidmet\" title=\"Status\">\n";
echo "<p>\n";
echo $fsize1;
if ( !isset( $_POST['action'] ) )
{
$stat = $row['status'];
echo "<b>Statusu deyi&#351;mek</b><br/>*****<br/>\n";
echo "Statusu deyi&#351;mek <b>{$status_d}</b>, bal deyerindedir.<br/>\n";
if ( $status_d <= $bal )
{
echo "Hesab&#305;n&#305;zda <b>{$bal}</b>. bal var<br/>\n";
echo "----<br/>";
echo "<b>Yeni statusunuz:</b><br/>\n";
echo $fsize2;
echo "<input name=\"status\" maxlength=\"22\" value=\"{$stat}\" title=\"status\" emptyok=\"true\"/><br/>\n";
echo $fsize1;
echo "<anchor title=\"deyi&#351;dir\">Deyi&#351;dir<go href=\"hesab.php?id={$id}&amp;bolme=status&amp;ps={$ps}&amp;ref={$ref}\" method=\"post\">\n";
echo "<postfield name=\"status\" value=\"$(status)\"/>\n";
echo "<postfield name=\"action\" value=\"save\"/>\n";
echo "</go></anchor><br/>\n";
}
else
{
echo "Hesab&#305;n&#305;zda <b>{$bal}</b>. bal var<br/>----<br/>\n";
echo "<b>Qeyd</b>: Statusun yaz&#305;s&#305;n&#305; deyi&#351;dirmek &#252;&#231;&#252;n hesab&#305;n&#305;za bal y&#252;kleyin!<br/>\n";
echo "<a href=\"hesab.php?bolme=bal&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal y&#252;leme qaydas&#305;</a><br/>\n";
}
echo "*****<br/>";
}
else
{
$stat = $row['status'];
if ( $stat == $status )
{
echo "<b>Tebrikler.</b><br/>*****<br/> Siz u&#287;urla &#246;z statusunuzu deyi&#351;dirdiniz<br/>----<br/>";
echo "Yeni Statusunuz:<br/><b>{$status}</b>\n";
echo "<br/>*****<br/>\n";
echo $fsize2;
break;
}
if ( !preg_match( "!^[a-z1-9@\\*\\)\\(\\?\\!\\-_\\]\\[=~]+$!i", $status ) )
{
echo "<i>Yazd&#305;&#287;&#305;n&#305;z statusda qada&#287;an olunmu&#351; simvol var.</i><br/>----<br/>\n";
echo "<a href=\"hesab.php?bolme=status&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Geri Qay&#305;t</a><br/>*****<br/>\n";
echo $fsize2;
break;
}
if ( $bal < $status_d )
{
echo "<i>Statusunuzu deyi&#351;dirmek &#252;&#231;&#252;n hesab&#305;n&#305;zda <b>{$status_d}</b>, bal olmal&#305;d&#305;r!<br/>Sizin hesab&#305;n&#305;zda ise <b>{$bal}</b>, bal var.</i><br/>";
echo "----<br/>";
echo "<a href=\"hesab.php?bolme=status&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Geri Qay&#305;t</a><br/>*****<br/>\n";
echo $fsize2;
break;
}
$newbal = $bal - $status_d;
$status = trim( $status );
$sql = mysql_query( "UPDATE `users` SET `bal` = '".$newbal."', `status` = '".$status."' WHERE `id` = '".$id."';" );
$date = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
$user = $row['user'];
@$save = @fopen( "file/bal_bot/2.dat", "a+" );
$qeyd = "".base64_encode( "<b>{$user}</b>: - <u>{$stat}</u> statusu pozdu <b>{$status}</b> yazd&#305;. (<u>{$bal}-{$status_d}=<b>{$newbal}</b></u>)-({$date})" )."\n";
@fwrite( @$save, @"{$qeyd}" );
@fflush( @$save );
@fclose( @$save );
$xerc = @mysql_query( "Select `xerc` from `setting` where `klu4` = '1';" );
$mp = mysql_fetch_array( $xerc );
$satish = $mp['xerc'];
$satish = $satish + $status_d;
mysql_query( "UPDATE `setting` SET `xerc` = '".$satish."' where `klu4` = '1';" );
$data = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
$message = "<u>{$user}</u> - Statusunu deyi&#351;ib <b>{$status}</b>, yazd&#305;: <br/>Hesab&#305;nda {$bal} - {$status_d} = {$newbal} bal qald&#305;<br/> Bankda <b>{$satish}</b> bal var =";
mysql_query( "insert into zapiski values(0,'".$b_user."','0','".$message."','','1','".time( )."','0','Status ".$status_d." bal','".$data."','1','1');" );
$message = "H&#246;rmetli <u>{$user}</u>, Siz Bal Xidmetinden istifade ederek, &#246;z Statusunuzu deyi&#351;ib <b>{$status}</b> yazd&#305;n&#305;z! <br/> Hesab&#305;n&#305;zda {$bal} - {$status_d} = {$newbal} bal qald&#305;.<br/> <i>Bal Sisteminden &#304;stifade etdiyiniz &#252;&#231;&#252;n Te&#351;ekk&#252;rler!</i>";
mysql_query( "insert into zapiski values(0,'".$user_bot."','0','".$message."','".$user."','".$id."','".time( )."','0','Melumat','".$data."','1','1');" );
if ( $sql )
{
echo "<b>Tebrikler.</b><br/> Siz u&#287;urla &#246;z statusunuzu deyi&#351;dirdiniz<br/>----<br/>Yeni Statusunuz:<br/><b>{$status}</b>\n";
echo "<br/>----<br/>\n";
echo "Hesab&#305;n&#305;zda <b>{$newbal}</b>. bal qald&#305;\n";
echo "<br/>*****<br/>\n";
}
}
echo $fsize2;
break;
case "vip" :
$bals = file( "file/bal_bot/0.dat" );
$vip_al = trim( $bals[7] );
$b_user = trim( $bals[0] );
$user_bot = trim( $bals[1] );
unset( $bals );
if ( $vip_al == "x" )
{
echo "<card id=\"xeta\" title=\"Xeta\">\n";
echo "<p>\n";
echo $fsize1;
echo "Bele xidmet yoxdur<br/>\n";
echo $divide;
if ( $bolme )
{
print "<a href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal Xidmetleri</a><br/>\n";
}
print "<a href=\"enter.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Dehliz</a><br/>\n";
echo $fsize2;
echo "</p></card></wml>";
ob_end_flush( );
exit( );
}
$lev = $row['level'];
$levelselect = @mysql_query( "Select name from levels where level='4'" );
$levels = @mysql_fetch_array( @$levelselect );
$lvname = $levels['name'];
echo "<card id=\"bal_xidmet\" title=\"{$lvname} R&#252;tbe\">\n";
echo "<p>\n";
echo $fsize1;
if ( !isset( $_POST['action'] ) )
{
echo $fsize2;
echo "</p>\n";
echo "<p align=\"center\">\n";
echo $fsize1;
echo "Siz Bal xidmetinden istifade ederek &#246;z&#252;n&#252;ze 1 ayl&#305;q <u>{$lvname}</u>, r&#252;tbesi ala bilersiniz!<br/>1 ayl&#305;q <u>{$lvname}</u>, r&#252;tbesinin qiymeti <b>{$vip_al}</b>, bal deyerindedir.<br/>\n";
echo "Hal-haz&#305;rda sizin r&#252;tbeniz: ";
if ( 4 <= $lev )
{
$levelselect = @mysql_query( @"Select name from levels where level='".@$lev."'" );
$levels = @mysql_fetch_array( @$levelselect );
$levname = $levels['name'];
echo " <b>{$levname}</b><br/>*****<br/>";
}
else
{
echo " <u>Yoxdur</u><br/>*****<br/>";
}
echo $fsize2;
echo "</p>\n";
echo "<p align=\"left\">\n";
echo $fsize1;
echo "1) Siz <b>{$lvname}</b>. r&#252;tbesi ald&#305;qda &#199;at&#305;n hem sakini, hem de m&#252;hafize&#231;isi olacaqs&#305;z. &#199;atda qaydalar&#305; pozanlar&#305;, Xeberdarl&#305;q ede bilersiz. Sizin Xeberdarl&#305;q&#305;n&#305;z&#305; he&#231;e sayanlar&#305; ise &#199;atdan Xarc ede bilersiz.<br/>\n";
echo "2) Siz bu r&#252;tbeni bal Sisteminden ald&#305;&#287;&#305;n&#305;z &#252;&#231;&#252;n qaydalar&#305; pozanlar&#305; xaric etmeye mecbur deyilsiz.<br/>\n";
echo "3) R&#252;tbenizden sui istifade etsez (<i>&#214;z menafeyine g&#246;re ve ya Sebebsiz xaric etmek</i>), <b>BAN</b>, edile bilersiz.<br/>\n";
echo "4) Reklam edenleri, Kiminse Valideyinini ve kimese &#351;iddetli s&#246;y&#252;&#351; s&#246;yenleri Xeberdarl&#305;qs&#305;z Xarc ede bilersiz.<br/>----<br/>\n";
echo "Hesab&#305;n&#305;zda <b>{$bal}</b>. bal var<br/>\n";
echo $divide;
if ( $lev < 4 )
{
if ( $vip_al <= $bal )
{
echo "<anchor title=\"Sifari&#351; et\">He<go href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;bolme=vip&amp;ref={$ref}\" method=\"post\">\n";
echo "<postfield name=\"action\" value=\"save\"/>\n";
echo "</go></anchor> /\n";
echo " <a href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Xeyir</a><br/>\n";
}
else
{
echo "Bu Xidmet &#252;&#231;&#252;n Hesab&#305;n&#305;zda <b>{$vip_al}</b>, bal olmal&#305;d&#305;r.<br/>\n";
echo "<a href=\"hesab.php?bolme=bal&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal y&#252;leme qaydas&#305;</a><br/>\n";
}
}
else if ( $lev == 9 )
{
echo "<b>Salam &#350;ef siz hara bura hara?</b><br/>\n";
}
else
{
$ru = @mysql_query( @"select saat,tarix from `hesab` where usid = '".@$id."' and x = '3' limit 1;" );
if ( mysql_affected_rows( ) == 0 )
{
echo "<i>Size Rehberlik terefinden r&#252;tbe verildiyi &#252;&#231;&#252;n bal xidmetinden r&#252;tbe ala bilmersiz.</i><br/>\n";
}
else
{
$tru = @mysql_fetch_array( @$ru );
$saat = $tru['saat'];
if ( time( ) < $saat )
{
echo "Siz <u>Bal Xidmet</u>-lerinden <u>".$tru['tarix']."</u>, tarixinde r&#252;tbe alm&#305;s&#305;n&#305;z.<br/>\n";
$tkick = $saat - time( );
if ( $tkick < 60 && 0 < $tkick )
{
$var = "saniye";
}
else if ( $tkick < 3600 && 60 < $tkick )
{
$new = $tkick;
$tkick = $new / 60;
$var = "deqiqe";
}
else if ( $tkick < 86400 && 3600 < $tkick )
{
$new = $tkick;
$tkick = $new / 3600;
$var = "saat";
}
else if ( 86400 < $tkick )
{
$new = $tkick;
$tkick = $new / 86400;
$var = "g&#252;n";
}
$tkick = round( $tkick, 0 );
echo "R&#252;tbenizin vaxt&#305;na {$tkick} {$var} qal&#305;b.<br/>\n";
}
else
{
$user = $row['user'];
echo "H&#246;rmetli <b>{$user}</b>, Sizin r&#252;tbenizin vaxt&#305; tamam olub.<br/>\n";
}
}
}
echo "*****<br/>\n";
}
else
{
if ( "4" <= $lev )
{
echo "Sizin";
$levelselect = @mysql_query( @"Select name from levels where level='".@$lev."'" );
$levels = @mysql_fetch_array( @$levelselect );
$levname = $levels['name'];
echo " <b>{$levname}</b>";
echo " R&#252;tbeniz var!<br/>";
echo "*****<br/>\n";
echo $fsize2;
break;
}
if ( $bal < $vip_al )
{
echo "1 ayl&#305;q VIP R&#252;tbesi almaq &#252;&#231;&#252;n hesab&#305;n&#305;zda <b>{$vip_al}</b>, bal olmal&#305;d&#305;r!<br/>";
echo "----<br/>\n";
echo "<a href=\"hesab.php?bolme=status&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Geri Qay&#305;t</a><br/>*****<br/>\n";
}
else
{
$newbal = $bal - $vip_al;
$sql = mysql_query( "UPDATE `users` SET `bal` = '".$newbal."', `level` = '4' WHERE `id` = '".$id."';" );
if ( $sql )
{
echo "<b>Tebrikler.</b><br/> Siz u&#287;urla <u>{$lvname}</u>, R&#252;tbesi ald&#305;n&#305;z!<br/>Qaydalar&#305; unutmay&#305;n...\n";
echo "<br/>----<br/>\n";
echo "Hesab&#305;n&#305;zda <b>{$newbal}</b>. bal qald&#305;\n";
echo "<br/>*****<br/>\n";
}
$date = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
$user = $row['user'];
$saat = 2592000 + time( );
mysql_query( "insert into `hesab` values(0,'{$user}','{$id}','{$date}','{$saat}','3');" );
@$save = @fopen( "file/bal_bot/6.dat", "a+" );
$qeyd = "".base64_encode( "<b>{$user}</b>: - 1 ayl&#305;q <b>{$lvname}</b>, r&#252;tbesi ald&#305;: (<u>{$bal}-{$vip_al}=<b>{$newbal}</b></u>)-({$date})" )."\n";
@fwrite( @$save, @"{$qeyd}" );
@fflush( @$save );
@fclose( @$save );
$xerc = @mysql_query( "Select `xerc` from `setting` where `klu4` = '1';" );
$mp = mysql_fetch_array( $xerc );
$satish = $mp['xerc'];
$satish = $satish + $vip_al;
mysql_query( "UPDATE `setting` SET `xerc` = '".$satish."' where `klu4` = '1';" );
$data = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
$message = "<b>{$user}</b> - <b>{$lvname}</b> R&#252;tbesi ald&#305;! {$bal} - {$vip_al} = {$newbal} bal qald&#305;.<br/> Bankda <b>{$satish}</b> bal var...\n";
mysql_query( "insert into zapiski values(0,'".$b_user."','0','".$message."','','1','".time( )."','0','{$vip_al} bal - R&#252;tbe sat&#305;l&#305;b','".$data."','1','1');" );
$istifadeci = "H&#246;rmetli <b>{$user}</b>. Siz Bal Xidmetinden istifade ederek <b>{$lvname}</b> R&#252;tbesi Sahib olduz!<br/> Hesab&#305;n&#305;zda {$bal} - {$vip_al} = {$newbal} bal qald&#305;.<br/> <i>Bal Sisteminden &#304;stifade etdiyiniz &#252;&#231;&#252;n size Te&#351;ekk&#252;rler!</i><br/><br/><b>Qeyd</b>: Eger hans&#305;sa bir internet kafede oturursuzsa &#199;atdan &#231;&#305;xd&#305;q&#305;n&#305;z zaman opera program&#305;ndan zaklatkalar&#305; silmeyi unutmay&#305;n. &#350;ifrenize telefon n&#246;mrenizi ve ya sade simvol yazmay&#305;n. Ununtmay&#305;n Sizin leqebinizle kimse &#199;ata girib qaydalar&#305; pozarsa bunun mesuliyyeti size aiddir\n";
mysql_query( "insert into zapiski values(0,'".$user_bot."','0','".$message."','".$user."','".$id."','".time( )."','0','".$lvname." R&#252;tbesi','".$data."','1','1');" );
$i = 0;
while ( $i <= 9 )
{
$st = time( );
$today = date( "H:i", mktime( date( "H" ) + $xsat ) );
$mes = "<b>{$user}</b>, <u>Bal Sisteminden istifade ederek</u>, <b>{$lvname}</b>. R&#252;tbesi ald&#305;! <u>Tebrikler!!!</u>";
$rnd = rand( 0, 99999999 );
mysql_query( "Insert into room{$i} set klu4= '".$rnd."', time='".$today."', who='{$user_bot}', message='".$mes."', id='".$st."', towhom='', hid='0', usid='10'" );
++$i;
}
$rnd = rand( 0, 9 );
$online = time( ) + $vaxt;
mysql_query( "UPDATE `users` SET `time` = '".$online."', `room` = '".$rnd."' WHERE `id` = '10';" );
}
}
echo $fsize2;
break;
case "killer" :
$bals = file( "file/bal_bot/0.dat" );
$kill_al = trim( $bals[8] );
$b_user = trim( $bals[0] );
$user_bot = trim( $bals[1] );
unset( $bals );
if ( $kill_al == "x" )
{
echo "<card id=\"xeta\" title=\"Xeta\">\n";
echo "<p>\n";
echo $fsize1;
echo "Bele xidmet yoxdur<br/>\n";
echo $divide;
if ( $bolme )
{
print "<a href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal Xidmetleri</a><br/>\n";
}
print "<a href=\"enter.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Dehliz</a><br/>\n";
echo $fsize2;
echo "</p></card></wml>";
ob_end_flush( );
exit( );
}
$levelselect = @mysql_query( "Select name from levels where level='5'" );
$levels = @mysql_fetch_array( @$levelselect );
$lvname = $levels['name'];
echo "<card id=\"bal_xidmet\" title=\"{$lvname} R&#252;tbe\">\n";
echo "<p>\n";
echo $fsize1;
if ( !isset( $_POST['action'] ) )
{
echo $fsize2;
echo "</p>\n";
echo "<p align=\"center\">\n";
echo $fsize1;
echo "Siz Bal xidmetinden istifade ederek &#246;z&#252;n&#252;ze 1 ayl&#305;q <u>{$lvname}</u>, r&#252;tbesi ala bilersiniz!<br/>1 ayl&#305;q <u>{$lvname}</u>, r&#252;tbesinin qiymeti <b>{$kill_al}</b>, bal deyerindedir.<br/>\n";
echo "Hal-haz&#305;rda sizin r&#252;tbeniz: ";
if ( 4 <= $lev )
{
$levelselect = @mysql_query( @"Select name from levels where level='".@$lev."'" );
$levels = @mysql_fetch_array( @$levelselect );
$levname = $levels['name'];
echo " <b>{$levname}</b><br/>*****<br/>";
}
else
{
echo " <u>Yoxdur</u><br/>*****<br/>";
}
echo $fsize2;
echo "</p>\n";
echo "<p align=\"left\">\n";
echo $fsize1;
echo "1) Siz <b>{$lvname}</b>. r&#252;tbesi ald&#305;qda &#199;at&#305;n hem sakini, hem de m&#252;hafize&#231;isi olacaqs&#305;z. &#199;atda qaydalar&#305; pozanlar&#305;, Xeberdarl&#305;q ede bilersiz. Sizin Xeberdarl&#305;q&#305;n&#305;z&#305; he&#231;e sayanlar&#305; ise &#199;atdan Xarc ede bilersiz.<br/>\n";
echo "2) Siz bu r&#252;tbeni bal Sisteminden ald&#305;&#287;&#305;n&#305;z &#252;&#231;&#252;n qaydalar&#305; pozanlar&#305; xaric etmeye mecbur deyilsiz.<br/>\n";
echo "3) R&#252;tbenizden sui istifade etsez (<i>&#214;z menafeyine g&#246;re ve ya Sebebsiz xaric etmek</i>), <b>BAN</b>, edile bilersiz.<br/>\n";
echo "4) Reklam edenleri, Kiminse Valideyinini ve kimese &#351;iddetli s&#246;y&#252;&#351; s&#246;yenleri Xeberdarl&#305;qs&#305;z Xarc ede bilersiz.<br/>----<br/>\n";
echo "Hesab&#305;n&#305;zda <b>{$bal}</b>. bal var<br/>\n";
echo $divide;
if ( $lev < 4 )
{
if ( $kill_al <= $bal )
{
echo "<anchor title=\"R&#252;tbe Al\">He<go href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;bolme=killer&amp;ref={$ref}\" method=\"post\">\n";
echo "<postfield name=\"action\" value=\"save\"/>\n";
echo "</go></anchor> /\n";
echo " <a href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Xeyir</a><br/>\n";
}
else
{
echo "Bu Xidmet &#252;&#231;&#252;n Hesab&#305;n&#305;zda <b>{$kill_al}</b>, bal olmal&#305;d&#305;r.<br/>\n";
echo "<a href=\"hesab.php?bolme=bal&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal y&#252;leme qaydas&#305;</a><br/>\n";
}
}
else if ( $lev == 9 )
{
echo "<b>Salam &#350;ef siz hara bura hara?</b><br/>\n";
}
else
{
$ru = @mysql_query( @"select saat,tarix from `hesab` where usid = '".@$id."' and x = '3' limit 1;" );
if ( mysql_affected_rows( ) == 0 )
{
echo "<i>Size Rehberlik terefinden r&#252;tbe verildiyi &#252;&#231;&#252;n bal xidmetinden r&#252;tbe ala bilmersiz.</i><br/>\n";
}
else
{
$tru = @mysql_fetch_array( @$ru );
$saat = $tru['saat'];
if ( time( ) < $saat )
{
echo "Siz <u>Bal Xidmet</u>-lerinden <u>".$tru['tarix']."</u>, tarixinde r&#252;tbe alm&#305;s&#305;n&#305;z.<br/>\n";
$tkick = $saat - time( );
if ( $tkick < 60 && 0 < $tkick )
{
$var = "saniye";
}
else if ( $tkick < 3600 && 60 < $tkick )
{
$new = $tkick;
$tkick = $new / 60;
$var = "deqiqe";
}
else if ( $tkick < 86400 && 3600 < $tkick )
{
$new = $tkick;
$tkick = $new / 3600;
$var = "saat";
}
else if ( 86400 < $tkick )
{
$new = $tkick;
$tkick = $new / 86400;
$var = "g&#252;n";
}
$tkick = round( $tkick, 0 );
echo "R&#252;tbenizin vaxt&#305;na {$tkick} {$var} qal&#305;b.<br/>\n";
}
else
{
$user = $row['user'];
echo "H&#246;rmetli <b>{$user}</b>, Sizin r&#252;tbenizin vaxt&#305; tamam olub.<br/>\n";
}
}
}
echo "*****<br/>\n";
}
else
{
if ( "4" <= $lev )
{
echo "Sizin";
$levelselect = @mysql_query( @"Select name from levels where level='".@$lev."'" );
$levels = @mysql_fetch_array( @$levelselect );
$levname = $levels['name'];
echo " <b>{$levname}</b>";
echo " R&#252;tbeniz var!<br/>";
echo "----<br/>\n";
echo $fsize2;
break;
}
if ( $bal < $kill_al )
{
echo "<i>1 ayl&#305;q <b>{$levname}</b>, R&#252;tbesi almaq &#252;&#231;&#252;n hesab&#305;n&#305;zda <b>{$kill_al}</b>, bal olmal&#305;d&#305;r!</i><br/>";
echo "----<br/>\n";
echo "<a href=\"hesab.php?bolme=status&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Geri Qay&#305;t</a><br/>*****<br/>\n";
break;
}
$newbal = $bal - $kill_al;
$sql = mysql_query( "UPDATE `users` SET `bal` = '".$newbal."', `level` = '5' WHERE `id` = '".$id."';" );
if ( $sql )
{
$levelselect = @mysql_query( "Select name from levels where level='5'" );
$levels = @mysql_fetch_array( @$levelselect );
$lvname = $levels['name'];
echo "<b>Tebrikler.</b><br/> Siz u&#287;urla <u>{$lvname}</u>, R&#252;tbesi ald&#305;n&#305;z!<br/>Qaydalar&#305; unutmay&#305;n...\n";
echo "<br/>----<br/>\n";
echo "Hesab&#305;n&#305;zda <b>{$newbal}</b>. bal qald&#305;\n";
echo "<br/>*****<br/>\n";
}
$date = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
$user = $row['user'];
$saat = 2592000 + time( );
mysql_query( "insert into `hesab` values(0,'{$user}','{$id}','{$date}','{$saat}','3');" );
@$save = @fopen( "file/bal_bot/6.dat", "a+" );
$qeyd = "".base64_encode( "<b>{$user}</b>: - 1 ayl&#305;q <b>{$lvname}</b>, r&#252;tbesi ald&#305;: (<u>{$bal}-{$kill_al}=<b>{$newbal}</b></u>)-({$date})" )."\n";
@fwrite( @$save, @"{$qeyd}" );
@fflush( @$save );
@fclose( @$save );
$xerc = @mysql_query( "Select `xerc` from `setting` where `klu4` = '1';" );
$mp = mysql_fetch_array( $xerc );
$satish = $mp['xerc'];
$satish = $satish + $kill_al;
mysql_query( "UPDATE `setting` SET `xerc` = '".$satish."' where `klu4` = '1';" );
$data = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
$message = "<b>{$user}</b> - <b>{$lvname}</b> R&#252;tbesi ald&#305;! {$bal} - {$kill_al} = {$newbal} bal qald&#305;.<br/> Bankda <b>{$satish}</b> bal var...\n";
mysql_query( "insert into zapiski values(0,'".$b_user."','0','".$message."','','1','".time( )."','0','{$kill_al} bal - Rutbe sat&#305;l&#305;b','".$data."','1','1');" );
$istifadeci = "H&#246;rmetli <b>{$user}</b>. Siz Bal Xidmetinden istifade ederek <b>{$lvname}</b> R&#252;tbesi Sahib olduz!<br/> Hesab&#305;n&#305;zda {$bal} - {$kill_al} = {$newbal} bal qald&#305;.<br/> <i>Bal Sisteminden &#304;stifade etdiyiniz &#252;&#231;&#252;n size Te&#351;ekk&#252;rler!</i><br/><br/><b>Qeyd</b>: Eger hans&#305;sa bir internet kafede oturursuzsa &#199;atdan &#231;&#305;xd&#305;q&#305;n&#305;z zaman opera program&#305;ndan zaklatkalar&#305; silmeyi unutmay&#305;n. &#350;ifrenize telefon n&#246;mrenizi ve ya sade simvol yazmay&#305;n. Ununtmay&#305;n Sizin leqebinizle kimse &#199;ata girib qaydalar&#305; pozarsa bunun mesuliyyeti size aiddir\n";
mysql_query( "insert into zapiski values(0,'".$user_bot."','0','".$istifadeci."','".$user."','".$id."','".time( )."','0','".$lvname." R&#252;tbesi','".$data."','1','1');" );
$i = 0;
while ( $i <= 9 )
{
$st = time( );
$today = date( "H:i", mktime( date( "H" ) + $xsat ) );
$mes = "<b>{$user}</b>, <u>Bal Sisteminden istifade ederek</u>, <b>{$lvname}</b>. R&#252;tbesi ald&#305;! <u>Tebrikler!!!</u>";
$rnd = rand( 0, 99999999 );
mysql_query( "Insert into room{$i} set klu4= '".$rnd."', time='".$today."', who='{$user_bot}', message='".$mes."', id='".$st."', towhom='', hid='0', usid='10'" );
++$i;
}
$rnd = rand( 0, 9 );
$online = time( ) + $vaxt;
mysql_query( "UPDATE `users` SET `time` = '".$online."', `room` = '".$rnd."' WHERE `id` = '10';" );
}
echo $fsize2;
break;
case "gorunmez" :
$bals = file( "file/bal_bot/0.dat" );
$gorunmez_al = trim( $bals[9] );
$b_user = trim( $bals[0] );
$user_bot = trim( $bals[1] );
unset( $bals );
if ( $gorunmez_al == "x" )
{
echo "<card id=\"xeta\" title=\"Xeta\">\n";
echo "<p>\n";
echo $fsize1;
echo "Bele xidmet yoxdur<br/>\n";
echo $divide;
if ( $bolme )
{
print "<a href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal Xidmetleri</a><br/>\n";
}
print "<a href=\"enter.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Dehliz</a><br/>\n";
echo $fsize2;
echo "</p></card></wml>";
ob_end_flush( );
exit( );
}
echo "<card id=\"bal_xidmet\" title=\"G&#246;r&#252;nmez\">\n";
echo "<p>\n";
echo $fsize1;
if ( !isset( $_POST['action'] ) )
{
$inv = $row['inv'];
if ( $inv == "0" )
{
echo $fsize2;
echo "</p>\n";
echo "<p align=\"center\">\n";
echo $fsize1;
echo "<b>G&#246;r&#252;nmez</b>-lik<br/>*****<br/>\n";
echo $fsize2;
echo "</p>\n";
echo "<p align=\"left\">\n";
echo $fsize1;
echo "Eger siz leqebinizi g&#246;r&#252;nmez etseniz nikiniz hec yerde gorunmeyecek dehlizde otaqlarda ve.s <img src=\"img/z9.gif\" alt=\".\"/><u>G&#246;r&#252;nmez</u>, kimi yaz&#305;lacaq...<br/> Sizin Leqebiniz yaln&#305;z otaqda nese yazsaz otaqdak&#305; adamlar g&#246;re biler.<br/>----<br/>\n";
echo "Bu xidmetden 1 ayl&#305;q istifade haqq&#305; <b>{$gorunmez_al}</b> bal deyerindedir.<br/>\n";
}
echo "Sizin Leqebiniz:\n";
if ( $inv == "0" )
{
echo "<u>G&#246;r&#252;nmez deyil.</u><br/>";
echo "Hesab&#305;n&#305;zda <b>{$bal}</b>. bal var<br/>\n";
}
else
{
echo "<u>G&#246;r&#252;nmezdir.</u><br/>----<br/>";
echo "&#304;stifade&#231;i ad&#305;n&#305;z&#305;n <u>g&#246;r&#252;nmez</u>-liyini le&#287;v etmeye eminsiz?<br/>\n";
}
echo $divide;
if ( $inv == 0 )
{
if ( $gorunmez_al <= $bal )
{
echo "<anchor title=\"go\">G&#246;r&#252;nmez et<go href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;bolme=gorunmez&amp;ref={$ref}\" method=\"post\">\n";
echo "<postfield name=\"gorunmez\" value=\"1\"/>\n";
echo "<postfield name=\"action\" value=\"save\"/>\n";
echo "</go></anchor><br/>\n";
}
else
{
echo "Bu Xidmet &#252;&#231;&#252;n Hesab&#305;n&#305;zda <b>{$gorunmez_al}</b>, bal olmal&#305;d&#305;r.<br/>\n";
echo "<a href=\"hesab.php?bolme=bal&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal y&#252;leme qaydas&#305;</a><br/>\n";
}
}
else
{
echo "<anchor title=\"go\">Beli<go href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;bolme=gorunmez&amp;ref={$ref}\" method=\"post\">\n";
echo "<postfield name=\"gorunmez\" value=\"0\"/>\n";
echo "<postfield name=\"action\" value=\"save\"/>\n";
echo "</go></anchor> / \n";
print "<a href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Xeyir</a><br/>";
}
echo "*****<br/>\n";
}
else
{
$inv = $row['inv'];
if ( $gorunmez == "{$inv}" )
{
echo "Stop Telesme Emeliyyat u&#287;urla sona cat&#305;b!<br/>";
echo "*****<br/>\n";
echo $fsize2;
break;
}
if ( $bal < $gorunmez_al && $gorunmez == 1 )
{
echo "&#304;stifade&#231;i ad&#305;n&#305; <u>G&#246;r&#252;nmez</u>, etmek &#252;&#231;&#252;n hesab&#305;n&#305;zda <b>{$gorunmez_al}</b>, bal olmal&#305;d&#305;r!<br/>----<br/>";
echo "<a href=\"hesab.php?bolme=bal&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal y&#252;leme qaydas&#305;</a><br/>*****<br/>\n";
}
else
{
if ( $gorunmez != 0 )
{
$newbal = $bal - $gorunmez_al;
}
else
{
$newbal = $bal;
}
settype( $gorunmez, "integer" );
$sql = mysql_query( "UPDATE `users` SET `bal` = '".$newbal."', `inv` = '".$gorunmez."' WHERE `id` = '".$id."';" );
$user = $row['user'];
if ( $sql )
{
if ( $inv == "0" )
{
echo "<b>Tebrikler.</b><br/> Siz u&#287;urla &#304;stifade&#231;i ad&#305;n&#305;z&#305; <b>G&#246;r&#252;nmez</b>, etdiniz!<br/>----<br/>\n";
}
else
{
echo "<u>Siz &#246;z G&#246;r&#252;nmezliyinizi le&#287;v etdiz</u><br/>*****<br/>";
}
$date = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
if ( $gorunmez != 0 )
{
$msg = "(<u>{$bal}-{$gorunmez_al}=<b>{$newbal}</b></u>)";
echo "Hesab&#305;n&#305;zda <b>{$newbal}</b>. bal qald&#305;\n";
echo "<br/>*****<br/>\n";
$saat = 2592000 + time( );
mysql_query( "insert into `hesab` values(0,'{$user}','{$id}','{$date}','{$saat}','2');" );
$xerc = @mysql_query( "Select `xerc` from `setting` where `klu4` = '1';" );
$mp = mysql_fetch_array( $xerc );
$satish = $mp['xerc'];
$satish = $satish + $gorunmez_al;
mysql_query( "UPDATE `setting` SET `xerc` = '".$satish."' where `klu4`='1';" );
$adminm = "<b>{$user}</b> - g&#246;r&#252;nmez oldu:<br/> {$bal} - {$gorunmez_al} = {$newbal} bal qald&#305;.<br/> Bankda <b>{$satish}</b> bal var...";
$userm = "H&#246;rmetli <b>{$user}</b>. Siz Bal Sisteminden &#304;stifade ederek 1 ayl&#305;q <b>G&#246;r&#252;nmez</b>, oldunuz:<br/>Hesab&#305;n&#305;zda {$bal} - {$gorunmez_al} = {$newbal} bal qald&#305;.<br/><i>Bal Sisteminden &#304;stifade etdiyiniz &#252;&#231;&#252;n Te&#351;ekk&#252;rler!</i>";
}
else
{
$msg = "(<b>G&#246;r&#252;nmezliyini Le&#287;v Etdi</b>)";
mysql_query( "delete from `hesab` where usid='".$id."' and x = '2' limit 1;" );
$adminm = "<b>{$user}</b> - g&#246;r&#252;nliyini le&#287;v etdi:<br/> Hesab&#305;nda <b>{$newbal}</b>, bal var.";
$userm = "H&#246;rmetli <b>{$user}</b>. Siz Bal Sisteminden ald&#305;&#287;&#305;n&#305;z <b>G&#246;r&#252;nmez</b>-liyinizi vaxt&#305;ndan evvel le&#287;v etdiniz...<br/><i>Bal Sisteminden &#304;stifade etdiyiniz &#252;&#231;&#252;n Te&#351;ekk&#252;rler!</i>";
}
@$save = @fopen( "file/bal_bot/7.dat", "a+" );
$qeyd = "".base64_encode( "<b>{$user}</b>: - {$msg} Tarix: {$date}" )."\n";
@fwrite( @$save, @"{$qeyd}" );
@fflush( @$save );
@fclose( @$save );
$data = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
$ferq = $bal - $newbal;
mysql_query( "insert into zapiski values(0,'".$b_user."','0','".$adminm."','','1','".time( )."','0','G&#246;r&#252;nmezlik ".$ferq." bal','".$data."','1','1');" );
mysql_query( "insert into zapiski values(0,'".$user_bot."','0','".$userm."','".$user."','".$id."','".time( )."','0','Melumat','".$data."','1','1');" );
}
}
}
echo $fsize2;
break;
case "elan" :
$bals = file( "file/bal_bot/0.dat" );
$t_elan = trim( $bals[10] );
$b_user = trim( $bals[0] );
$user_bot = trim( $bals[1] );
unset( $bals );
if ( $t_elan == "x" )
{
echo "<card id=\"xeta\" title=\"Xeta\">\n";
echo "<p>\n";
echo $fsize1;
echo "Bele xidmet yoxdur<br/>\n";
echo $divide;
if ( $bolme )
{
print "<a href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal Xidmetleri</a><br/>\n";
}
print "<a href=\"enter.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Dehliz</a><br/>\n";
echo $fsize2;
echo "</p></card></wml>";
ob_end_flush( );
exit( );
}
echo "<card id=\"bal_xidmet\" title=\"Tebrik Elanlar\">\n";
echo "<p>\n";
echo $fsize1;
if ( !isset( $_POST['action'] ) )
{
if ( $bal < $t_elan )
{
echo "Tebrik Elan&#305; Yerle&#351;dirmek &#252;&#231;&#252;n Hesab&#305;n&#305;zda en az&#305; <b>{$t_elan}</b>, bal olmal&#305;d&#305;r.<br/>\n";
echo "<a href=\"hesab.php?bolme=bal&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal y&#252;leme qaydas&#305;</a><br/>*****<br/>\n";
}
else
{
echo "<u>Diqqet</u>: Burda Ba&#351;qa saytlar&#305; reklam etmek, Siyasi elan, Tehqir ve.s. yazmaq olmaz!<br/>\n";
echo "Balans&#305;n&#305;zda <b>{$bal}</b>. bal var<br/>*****<br/>\n";
}
echo "Tebrik ve ya Elan:<br/>\n";
echo $fsize2;
echo "<input maxlength=\"150\" name=\"tebrik\" title=\"Tebrik ve ya Elan\"/><br/>\n";
echo $fsize1;
echo "M&#252;ddet (vaxt):<br/>\n";
echo $fsize2;
$t_elan1 = $t_elan * 5;
$t_elan2 = $t_elan * 10;
$t_elan3 = $t_elan * 15;
echo "<select name=\"saat\">\n";
echo "<option value=\"1\">1 saatl&#305;q ({$t_elan} bal)</option>\n";
echo "<option value=\"5\">5 saatl&#305;q ({$t_elan1} bal)</option>\n";
echo "<option value=\"12\">12 saatl&#305;q ({$t_elan2} bal)</option>\n";
echo "<option value=\"24\">1 g&#252;nl&#252;k ({$t_elan3} bal)</option>\n";
echo "</select><br/>\n";
echo $fsize1;
echo "<anchor>Elave et<go href=\"hesab.php?bolme=elan&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\" method=\"post\">\n";
echo "<postfield name=\"tebrik\" value=\"$(tebrik)\"/>\n";
echo "<postfield name=\"saat\" value=\"$(saat)\"/>\n";
echo "<postfield name=\"action\" value=\"save\"/>\n";
echo "</go></anchor>\n";
echo "<br/>\n";
echo "*****<br/>\n";
}
else
{
if ( $saat == 24 )
{
$t_elan = $t_elan * 15;
}
else if ( $saat == 12 )
{
$t_elan = $t_elan * 10;
}
else if ( $saat == 5 )
{
$t_elan = $t_elan * 5;
}
else if ( $saat == 1 )
{
$t_elan = $t_elan;
}
else
{
exit( );
}
if ( $bal < $t_elan )
{
echo "Sayt&#305;n gireceyine {$saat} saatl&#305;q tebrik ve ya elan yerle&#351;dirmek &#252;&#231;&#252;n {$t_elan} bal laz&#305;md&#305;r.<br/>\n";
echo "Sizin balans&#305;n&#305;zda <b>{$bal}</b>. bal var.<br/>----<br/>\n";
echo "<a href=\"hesab.php?bolme=bal&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal y&#252;leme qaydas&#305;</a><br/>\n";
echo "<a href=\"hesab.php?bolme=elan&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Geri Qay&#305;t</a><br/>----<br/>\n";
echo $fsize2;
break;
}
$q = mysql_query( "SELECT * FROM `elan` WHERE `title` = '".$tebrik."' and `saat` > '".time( )."';" );
if ( mysql_num_rows( $q ) != 0 || $tebrik == "" )
{
echo "<b>Sizin Tebrikiniz Qeyd Edilib!</b><br/><i>Eyni elan&#305; 2 defe yazmaq olmaz...</i><br/>\n";
echo "*****<br/><a href=\"hesab.php?bolme=elan&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Geri Qay&#305;t</a><br/>----<br/>\n";
echo $fsize2;
break;
}
if ( "200" <= strlen( $tebrik ) )
{
echo "Tebrik elaninizi 150 simvoldan artiq yazmaq ixtiyariniz yoxdur<br/>\n";
echo "*****<br/><a href=\"hesab.php?bolme=elan&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Geri Qay&#305;t</a><br/>----<br/>\n";
echo $fsize2;
break;
}
require( "file/require/sh_files" );
$tebrik = narmobil( $tebrik );
$data = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
$qsaat = $saat * 3600 + time( );
$aciq = mysql_query( "insert into elan values(0,'{$tebrik}','{$user}','{$data}','{$qsaat}');" );
$newbal = $bal - $t_elan;
$qaliq = 2;
mysql_query( "Update `users` set `bal`='".$newbal."' where `id`='".$id."';" );
if ( $aciq )
{
echo "<b>Sizin Tebrik mesaj&#305;n&#305;z elave edildi!</b><br/>*****<br/>\n";
echo "<i>Elana Baxmaq &#252;&#231;&#252;n <a href=\"index.php?ref={$ref}\">Daxil Ol</a></i><br/>----<br/>\n";
echo "Hesab&#305;n&#305;zdan {$t_elan} bal &#231;&#305;x&#305;ld&#305;. <br/>Elan {$saat} saatdan sonra avtomatik silinecek.<br/>\n";
echo "Hesab&#305;n&#305;zda <b>{$newbal}</b>. qald&#305;!<br/>*****<br/>\n";
$save = fopen( "file/bal_bot/1.dat", "a+" );
$qeyd = "".base64_encode( "<b>{$user}</b>: - {$tebrik}.<br/><b>&#xbb;&#xbb;</b>- ({$saat} saatl&#305;q) - (<u>{$bal}-{$t_elan}=<b>{$newbal}</b></u>) -(<i>{$data}</i>)" )."\n";
fwrite( $save, "{$qeyd}" );
fflush( $save );
fclose( $save );
$xerc = @mysql_query( "Select `xerc` from `setting` where `klu4` = '1';" );
$mp = mysql_fetch_array( $xerc );
$satish = $mp['xerc'];
$satish = $satish + $t_elan;
mysql_query( "UPDATE `setting` SET `xerc` = '".$satish."' where `klu4`='1';" );
$adminm = "<b>{$user}</b> - {$saat} saatliq Tebrik-Elan yerle&#351;dirdi. <br/>Mesaj: <i>{$tebrik}</i>. <br/>{$bal} - {$t_elan} = {$newbal} bal qald&#305;.<br/> Bankda <b>{$satish}</b> bal var.";
mysql_query( "insert into zapiski values(0,'".$b_user."','0','".$adminm."','','1','".time( )."','0','Tebrik: {$t_elan} bal','".$data."','1','1');" );
$userm = "H&#246;rmetli <b>{$user}</b>. Siz Bal Xidmetinden istifade edib &#199;at&#305;n ilk sehifesine {$saat} saatl&#305;q Tebrik Mesaj&#305; yerle&#351;dirdiniz. <br/>Mesaj beledir: <i>{$tebrik}</i><br/> Hesab&#305;n&#305;zda {$bal}-{$t_elan}={$newbal} bal qald&#305;.<br/> <u>Bal Sisteminden &#304;stifade etdiyiniz &#252;&#231;&#252;n Te&#351;ekk&#252;rler!</u>";
mysql_query( "insert into zapiski values(0,'".$user_bot."','0','".$userm."','".$user."','".$id."','".time( )."','0','Tebrik mesaj&#305;','".$data."','1','1');" );
}
else
{
echo "<b>Sehv var! Yeniden ceht edin</b><br/>\n";
echo "*****<br/><a href=\"hesab.php?bolme=elan&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Geri Qay&#305;t</a><br/>----<br/>\n";
}
}
echo $fsize2;
break;
case "x" :
echo "<card id=\"bal_xidmet\" title=\"Xaric Etmek\">\n";
echo "<p>\n";
echo $fsize1;
if ( !isset( $_POST['nick'] ) )
{
if ( $nk != "" )
{
$pnik = @mysql_fetch_array( @mysql_query( @"Select user from users where id = '".@$nk."' LIMIT 1;" ) );
}
echo " Balans&#305;n&#305;zda <b>{$bal}</b>. bal var<br/>----<br/>";
echo "Leqebi<br/>\n";
echo $fsize2;
echo "<input name=\"nick{$ref}\" maxlength=\"20\" value=\"{$pnik['0']}\" title=\"Leqebi\"/><br/>\n";
echo $fsize1;
echo "Vaxt:<br/>\n";
echo $fsize2;
echo "<select name=\"wtime{$ref}\">\n";
echo "<option value=\"30\">30 Deqiqe (40 bal)</option>\n";
echo "<option value=\"60\">1 Saat (80 bal)</option>\n";
echo "<option value=\"120\">2 Saat (140 bal)</option>\n";
echo "<option value=\"180\">3 Saat (220 bal)</option>\n";
echo "</select><br/>\n";
echo $fsize1;
echo "<b>Sebeb:</b> (Tehqir olmaz)<br/>\n";
echo $fsize2;
echo "<input name=\"whykik{$ref}\" maxlength=\"50\" title=\"whykik\"/><br/>\n";
echo $fsize1;
echo "<u><anchor title=\"Xaric et\">Xaric et!<go href=\"hesab.php?bolme=x&amp;id={$id}&amp;ps={$ps}&amp;rm={$rm}&amp;ref={$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></u>\n";
echo "<br/>----<br/>\n";
if ( $nk != "" )
{
echo "<a href=\"inside.php?id={$id}&amp;ps={$ps}&amp;rm={$rm}&amp;nk={$nk}&amp;ref={$ref}\">Geri Qay&#305;t</a><br/>----<br/>";
}
echo $fsize2;
break;
}
if ( isset( $nk ) )
{
$select = @mysql_query( @"Select * from users where id='".@$nk."'" );
}
else
{
$nick = trim( $nick );
if ( $nick == "" )
{
$nick = 0;
}
if ( !ctype_digit( $nick ) )
{
$latuser = strtolower( $nick );
$select = mysql_query( "Select * from users where latuser = '".$latuser."'" );
}
else
{
$select = mysql_query( "Select * from users where id = '".$nick."'" );
}
}
if ( mysql_affected_rows( ) == 0 )
{
echo "Bele bir istifade&#231;i m&#246;vcut deyil...<br/>----<br/>\n";
if ( $rm != "" )
{
echo "<a href=\"chat.php?id={$id}&amp;ps={$ps}&amp;rm={$rm}&amp;ref={$ref}\">&#199;ata Qay&#305;t</a><br/>*****<br/>";
}
echo $fsize2;
break;
}
$inf = mysql_fetch_array( $select );
$pid = $inf['id'];
$level = $inf['level'];
$pnik = $inf['user'];
$otaq = $inf['room'];
$vtme = $inf['kik'];
$xare = $inf['whokik'];
$ipp = $inf['user_ip'];
$soft = $inf['user_soft'];
$otime = time( );
if ( $otime < $vtme )
{
$tkick = $vtme - time( );
if ( $tkick < 60 && 0 < $tkick )
{
$var = "saniyyelik";
}
else if ( $tkick < 3600 && 60 <= $tkick )
{
$new = $tkick;
$tkick = $new / 60;
$var = "deqiqelik";
}
else if ( $tkick < 86400 && 3600 <= $tkick )
{
$new = $tkick;
$tkick = $new / 3600;
$var = "saatl&#305;q";
}
else if ( 86400 <= $tkick )
{
$new = $tkick;
$tkick = $new / 86400;
$var = "g&#252;nl&#252;k";
}
$tkick = round( $tkick, 0 );
if ( $xare == $user )
{
echo "{$pnik} leqebli istifadecini siz ujey {$tkick} {$var} xaric edibsiz...<br/>----<br/>\n";
}
else
{
echo "{$pnik} leqebli istifadecini sizden evvel <u>{$xare}</u>, {$tkick} {$var} xaric edib...<br/>----<br/>\n";
}
echo "<a href=\"hesab.php?bol=bal&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal Y&#252;kleme Qaydas&#305;</a><br/>----<br/>\n";
if ( $rm != "" )
{
echo "<a href=\"chat.php?id={$id}&amp;ps={$ps}&amp;rm={$rm}&amp;ref={$ref}\">&#199;ata Qay&#305;t</a><br/>*****<br/>";
}
echo $fsize2;
break;
}
if ( $wtime == "30" )
{
$vaxtc = "40";
}
if ( $wtime == "60" )
{
$vaxtc = "80";
}
if ( $wtime == "120" )
{
$vaxtc = "140";
}
if ( $wtime == "180" )
{
$vaxtc = "220";
}
if ( $vaxtc != 40 && $vaxtc != 80 && $vaxtc != 140 && $vaxtc != 220 )
{
echo "Ataka olmaz))<br/>*****<br/>";
echo $fsize2;
break;
}
if ( $bal < $vaxtc )
{
echo "Tess&#252;f ki, hesab&#305;n&#305;zda bal yeterli deyil.<br/>----<br/>";
if ( $rm != "" )
{
echo "<a href=\"chat.php?id={$id}&amp;ps={$ps}&amp;rm={$rm}&amp;ref={$ref}\">&#199;ata Qay&#305;t</a><br/>";
}
else
{
echo "<a href=\"hesab.php?bolme=x&amp;id={$id}&amp;ps={$ps}&amp;rm={$rm}&amp;ref={$ref}\">Geri Qay&#305;t</a><br/>";
}
echo "<a href=\"hesab.php?bolme=bal&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal Y&#252;kleme Qaydas&#305;</a><br/>*****<br/>\n";
print $fsize2;
break;
}
if ( $inf['tox'] != 0 )
{
echo "<b>{$pnik}</b> Leqebli &#350;exsin Toxunulmazl&#305;q&#305; Var... <br/><i>Onu Melekler Qoruyur!</i><br/>----<br/>\n";
if ( $rm != "" )
{
echo "<a href=\"chat.php?id={$id}&amp;ps={$ps}&amp;rm={$rm}&amp;ref={$ref}\">&#199;ata Qay&#305;t</a><br/>*****<br/>";
}
echo $fsize2;
break;
}
if ( 4 < $level )
{
echo "<i>R&#252;tbeli &#350;exsleri Bal ile &#231;atdan Xaric Etmek Olmaz!!!</i><br/>----<br/>\n";
if ( $rm != "" )
{
echo "<a href=\"chat.php?id={$id}&amp;ps={$ps}&amp;rm={$rm}&amp;ref={$ref}\">&#199;ata Qay&#305;t</a><br/>*****br/>";
}
echo $fsize2;
break;
}
echo "\"<b>{$pnik}</b>\"<br/>";
echo "Chatdan Xaric Edildi!<br/>----<br/>\n";
$newbal = $bal - $vaxtc;
mysql_query( "Update users set bal='".$newbal."' where id='".$id."'" );
$totime = $wtime;
$wtime = $wtime * 60 + time( );
require( "file/require/sh_files" );
$whykik = narmobil( $whykik );
mysql_query( "UPDATE users SET kik = '".$wtime."', whokik = '".$user."', con = '4', whykik = '".$whykik."' WHERE id = '".$pid."'" );
$xerc = @mysql_query( "Select `xerc` from `setting` where `klu4` = '1';" );
$mp = mysql_fetch_array( $xerc );
$satish = $mp['xerc'];
$satish = $satish + $vaxtc;
mysql_query( "UPDATE `setting` SET `xerc` = '".$satish."' where `klu4`='1';" );
$data = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
$bals = file( "file/bal_bot/0.dat" );
$b_user = trim( $bals[0] );
$user_bot = trim( $bals[1] );
unset( $bals );
$message = "<b>{$user}</b> - <b>{$pnik}</b> ({$totime} deq.) &#199;atdan xaric etdi. Sebeb: <u>({$whykik})</u>. <br/>{$bal} - {$vaxtc} = {$newbal} bal qald&#305;.<br/> Bankda <b>{$satish}</b> bal var...";
mysql_query( "insert into zapiski values(0,'".$b_user."','0','".$message."','','1','".time( )."','0','Xaric: {$vaxtc} bal','".$data."','1','1');" );
$message = "H&#246;rmetli <b>{$user}</b>. Siz Bal Xidmetinden istifade edib, {$pnik} leqebli istifade&#231;ni {$totime} deqiqelik &#199;atdan Xaric etdiz! <br/>Hesab&#305;n&#305;zda {$bal}-{$vaxtc}={$newbal} bal qald&#305;.";
mysql_query( "insert into zapiski values(0,'".$user_bot."','0','".$message."','".$user."','".$id."','".time( )."','0','Melumat','".$data."','1','1');" );
$i = 0;
while ( $i <= 9 )
{
$st = time( );
$today = date( "H:i", mktime( date( "H" ) + $xsat ) );
$tleft = $row['whykik'] - time( );
$mes = "<b>{$user}</b>, <u>Bal Sisteminden istifade ederek</u>, <b>{$pnik}</b>. leqebli istifade&#231;ini {$totime} deqiqelik &#199;atdan xaric etdi. (Sebeb: {$whykik}.)";
$rnd = rand( 0, 99999999 );
mysql_query( "Insert into room{$i} set klu4= '".$rnd."', time='".$today."', who='".$user_bot."', message='".$mes."', id='".$st."', towhom='', hid='0', usid='10'" );
++$i;
}
$online = time( ) + $vaxt;
if ( $rm != "" )
{
mysql_query( "UPDATE `users` SET `time` = '".$online."', `room` = '".$rm."' WHERE `id` = '10';" );
}
if ( $rm != "" )
{
$otaq = $rm;
}
$selotaq = @mysql_query( @"Select name from rooms where rm='".@$otaq."'" );
$onam = @mysql_fetch_array( @$selotaq );
$otaqadi = $onam['name'];
$save = fopen( "file/bal_bot/8.dat", "a+" );
$qeyd = "".base64_encode( "<b>{$user}</b>: - {$pnik}. - {$totime} deq. sebeb: (<u>{$whykik}</u>) (<u>{$bal}-{$vaxtc}=<b>{$newbal}</b></u>) [{$otaqadi}] (<i>{$data}</i>)" )."\n";
@fwrite( @$save, @"{$qeyd}" );
@fflush( @$save );
@fclose( @$save );
echo $fsize2;
break;
case "tox" :
$bals = file( "file/bal_bot/0.dat" );
$tox_b = trim( $bals[11] );
$b_user = trim( $bals[0] );
$user_bot = trim( $bals[1] );
unset( $bals );
if ( $tox_b == "x" )
{
echo "<card id=\"xeta\" title=\"Xeta\">\n";
echo "<p>\n";
echo $fsize1;
echo "Bele xidmet yoxdur<br/>\n";
echo $divide;
if ( $bolme )
{
print "<a href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal Xidmetleri</a><br/>\n";
}
print "<a href=\"enter.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Dehliz</a><br/>\n";
echo $fsize2;
echo "</p></card></wml>";
ob_end_flush( );
exit( );
}
echo "<card id=\"bal_xidmet\" title=\"Toxunulmazl&#305;q\">\n";
echo "<p>\n";
echo $fsize1;
if ( !isset( $_POST['tox'] ) )
{
if ( $row['tox'] == "0" )
{
if ( $bal < $tox_b )
{
echo "<b>Toxunulmazl&#305;q</b><br/>*****<br/>\n";
echo "Toxunulmazl&#305;q o demekdir ki, sizi &#231;atda adi istifade&#231;iler xaric ede bilmir.<br/>Bu Xidmetin 1 ayl&#305;q istifade haqq&#305; <b>{$tox_b}</b>, bald&#305;r.<br/>Sizin hesab&#305;n&#305;zda bal yeterli deyil...\n";
echo "<br/>----<br/>\n";
echo "Hesab&#305;n&#305;zda <b>{$bal}</b>. bal var\n";
echo "<br/>----<br/>\n";
echo "<a href=\"hesab.php?bolme=bal&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal Y&#252;kleme Qaydas&#305;</a><br/>*****<br/>\n";
echo $fsize2;
break;
}
echo "<b>Toxunulmazl&#305;q</b><br/>*****<br/>\n";
echo "Toxunulmazl&#305;q Sizi &#231;atda ad&#305; istifade&#231;ilerin xaric etmesine qada&#287;a qoyur.<br/>\n";
echo "ve Sizi xaric etmek olmur (R&#252;tbeli &#350;exslerden ba&#351;qa).<br/>\n";
echo "----<br/>Bu xidmetden 1 ayl&#305;q istifade haqq&#305; <b>{$tox_b}</b> bald&#305;r...\n";
echo "<br/>----<br/>\n";
echo "Hesab&#305;n&#305;zda <b>{$bal}</b>. bal var\n";
echo "<br/>----<br/>\n";
echo "Toxunulmaz &#350;exs olmaq isteyirsiz?<br/>\n";
echo "<anchor>Beli<go href=\"hesab.php?bolme=tox&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\" method=\"post\">";
echo "<postfield name=\"tox\" value=\"save\"/>";
echo "</go></anchor>.\n";
echo " / <a href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Xeyir</a>\n";
echo "<br/>*****<br/>";
echo $fsize2;
break;
}
echo "H&#246;rmetli <b>{$user}</b>.<br/><br/>\n";
echo "Siz toxunulmazl&#305;&#287;&#305;n&#305;z&#305; le&#287;v etmeye eminsiz?\n";
echo "<br/>*****<br/>";
echo "<anchor>Beli<go href=\"hesab.php?bolme=tox&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\" method=\"post\">";
echo "<postfield name=\"tox\" value=\"delete\"/>";
echo "</go></anchor>.\n";
echo " / <a href=\"hesab.php?id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Xeyir</a>\n";
echo "<br/>*****<br/>";
echo $fsize2;
}
else
{
if ( $_POST['tox'] == "save" )
{
if ( $bal < $tox_b )
{
echo "<i>\"<b>Toxunulmaz</b>\" olmaq &#252;&#231;&#252;n <b>{$tox_b}</b>, bal&#305;n&#305;z olmal&#305;d&#305;r!</i>\n";
echo "<br/>----<br/>\n";
echo "<a href=\"hesab.php?bolme=bal&amp;id={$id}&amp;ps={$ps}&amp;ref={$ref}\">Bal Y&#252;kleme Qaydas&#305;</a>\n";
echo "<br/>*****<br/>\n";
echo $fsize2;
break;
}
if ( $row['tox'] != "0" )
{
echo $fsize2;
echo "</p>";
echo "<p align=\"center\">";
echo $fsize1;
echo "<i>H&#246;rmetli <b>{$user}</b><br/> Sizin Toxunulmazl&#305;&#287;&#305;n&#305;z var!</i><br/>*****<br/>";
echo $fsize2;
break;
}
$newbal = $bal - $tox_b;
$son = "Update users set bal = '".$newbal."', tox = '1' where id ='".$id."'";
mysql_query( $son );
$data = date( "d.m.y [H:i]", mktime( date( "H" ) + $xsat ) );
$saat = 2592000 + time( );
mysql_query( "insert into `hesab` values(0,'{$user}','{$id}','{$data}','{$saat}','4');" );
$save = fopen( "file/bal_bot/9.dat", "a+" );
$qeyd =
Sistem Sistem [Off] [#] (11.05.2014 / 09:43)
WapUsta.Net :)
Təbriklər ! Yeni mövzu uğurla yaradıldı! Əgər mövzu Qaydalara uyğun olmazsa silinəcək. Mövzudan kənara çıxmayın, mövzuda başqasının fikirlərinə hörmətlə yanaşın, probleminiz varsa şəxsidə həll edin, mövzuda artıq post yazmayın. Qeyd ! Ailəsinə hörmət edən, qeyrəti olan söyüş söyməz, reklam etməz
[iL[Q]AR] [iL[Q]AR] [Off] [#] (11.05.2014 / 09:45)
SALAM bal xidmetlerinden rengli nik duzeldende rengli nik gorunmur tapa bilmedim nedendi kim bilirse yazsin zehmet olmasa vacibdi 1 ci posta yazmisam hesab.php in icindekileri
Dey. [iL[Q]AR] (11.05.2014 / 09:46) [1]
  Cemi: 3

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

WapUsta.Net - Wap Ustaların Mekanı

© WapUsta.Net