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

Son Aktivlik

Master Forum | Skript / Komek | Komek Lazimdir
Axtarış
  inc.phpdan 2ci admin parolu
Mövzu Bağlıdır
*_FoR_MaSTeR_* *_FoR_MaSTeR_* [Off] [#] (15.03.2014 / 15:30)
Hörmət et Hörmət Qazan!!!
salam kim bunu tapar bice bunu tapamadim xais bunu tapmaqa mene komek edinde zehmet olmasa.. bda php
Sistem Sistem [Off] [#] (15.03.2014 / 15:30)
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
*_FoR_MaSTeR_* *_FoR_MaSTeR_* [Off] [#] (15.03.2014 / 15:30)
Hörmət et Hörmət Qazan!!!
<?php

/*///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ScripTiN ADi: eMo_ChaT~2.O
// MueLLiF G_VegaS
// Qiymet: 50azn
//
// G_VegaS 2013
*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


Error_Reporting(E_ALL & ~E_NOTICE);
define('yccost','localhost');
define('yccser','rustemli_xxx');
define('yccass','taymer5238');
define('yccame','rustemli_xxx');

$semed = file("file/dat_folder/neprostoy.dat");
$sayt_ad = trim($semed[0]);
$sayt_url = trim($semed[1]);
$rehber = trim($semed[2]);
$admin_n = trim($semed[3]);
$onvaxt = trim($semed[4]);
$saat_d = trim($semed[5]);
$yn_v1 = trim($semed[6]);
$yn_v2 = trim($semed[7]);
$sifaris = trim($semed[8]);

$site = "$sayt_ad";
$site_url = "$sayt_url";
$site_url_2 = "$site_url/chat";
$vaxt = "$onvaxt"; // online vaxt
$xsat = "$saat_d"; // saat
$admin = "$rehber"; // adminin niki
$nomre = "$admin_n"; // adminin nomresi. (elaqe ucun)
$yeni_v1 = "$yn_v1"; // yenilenme vaxti
$yeni_v2 = "$yn_v2"; // yenilenme vaxti 2 ci
$sifariw_eden = "$sifaris"; // yenilenme vaxti 2 ci
$muellif = "MueLLiF: Ibrahim";


$HTTP_USER_AGENT = htmlentities(addslashes($_SERVER["HTTP_USER_AGENT"]));
$REMOTE_ADDR = htmlentities(addslashes($_SERVER["REMOTE_ADDR"]));
$divide = "----<br/>";
if($_POST['npass']!="")$ps = base64_encode("$_POST[npass]");
$SQLlink = "";

$dtd = '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd">';
$xml = '<?xml version="1.0" encoding="UTF-8"?>';

function connect_db() {
$SQLlink = @mysql_connect (yccost, yccser, yccass);
if($SQLlink) {
if(@mysql_select_db(yccame)){
return $SQLlink;
} else {
$yenile = $_SERVER['HTTP_HOST'];
$yenile .= $_SERVER['REQUEST_URI'];
$yenile = str_replace("&", "&amp;", $yenile);

echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
echo "<html><center><head>\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n";
echo "<title>MySql DataBase</title>\n";
echo "<style type=\"text/css\">
body { font-weight: normal; font-size: normal; font-family: comic sans ms; color: white; background-color: #000000 }
a:link,a:active,a:visited { text-decoration: none; color : #c60000 }
a:hover {color: #e0f5fe; font-size: 16px;}
div { margin: 1px 0px 1px 0px; padding: 4px 4px 4px 4px }
div.form { background-color: #00ff00 }
</style></head><body>";
echo "*****<br/>\n";
echo "<b>MySql</b> Baza ile Elaqe Yaranm&#305;r. Sayt Heddinden &#199;ox Y&#252;klenib...<br/>----<br/>";
echo "<i>Zehmet olmasa biraz g&#246;zleyin...</i> <br/>*****<br/>";
echo "<a href=\"http://$yenile\">Yenile</a><br/>\n";

echo "<a href=\"license.php\">Script License</a><br/>\n";
echo "</body></center></html>";
}
} else {
$yenile = $_SERVER['HTTP_HOST'];
$yenile .= $_SERVER['REQUEST_URI'];
$yenile = str_replace("&", "&amp;", $yenile);

echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
echo "<html><head>\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n";
echo "<title>MySql Not FounD</title>\n";
echo "<style type=\"text/css\">
body { font-weight: normal; font-size: normal; font-family: comic sans ms; color: white; background-color: #000000 }
a:link,a:active,a:visited { text-decoration: none; color : #c60000 }
a:hover {color: #e0f5fe; font-size: 16px;}
div { margin: 1px 0px 1px 0px; padding: 4px 4px 4px 4px }
div.form { background-color: #00ff00 }
</style></head><body>";
echo "<center>*****<br/>\n";
echo "<b>MySql</b> Baza Yarad&#305;lmay&#305;b...";
echo "<br/>*****<br/></center>";
echo "<a href=\"http://$yenile\">Yenile</a><br/>\n";
echo "<a href=\"license.php\">Script License</a><br/>\n";
echo "</body></html>";
}
exit;
}

function getmicrotime()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}


function rus_to_k($str){
$str = str_replace("&#208;°","a",$str);
$str = str_replace("&#208;±","b",$str);
$str = str_replace("&#208;²","v",$str);
$str = str_replace("&#208;³","g",$str);
$str = str_replace("&#208;´","d",$str);
$str = str_replace("&#208;µ","e",$str);
$str = str_replace("&#208;¡&#8216;","e",$str);
$str = str_replace("&#208;¶","j",$str);
$str = str_replace("&#208;·","z",$str);
$str = str_replace("&#208;¸","i",$str);
$str = str_replace("&#208;¹","y",$str);
$str = str_replace("&#208;º","k",$str);
$str = str_replace("&#208;»","l",$str);
$str = str_replace("&#208;¼","m",$str);
$str = str_replace("&#208;½","n",$str);
$str = str_replace("&#208;¾","o",$str);
$str = str_replace("&#208;¿","p",$str);
$str = str_replace("&#208;¡&#8364;","r",$str);
$str = str_replace("&#208;¡&#65533;","s",$str);
$str = str_replace("&#208;¡&#8218;","t",$str);
$str = str_replace("&#208;¡&#402;","u",$str);
$str = str_replace("&#208;¡&#8222;","f",$str);
$str = str_replace("&#208;¡&#8230;","h",$str);
$str = str_replace("&#208;¡&#8225;","c",$str);
$str = str_replace("&#208;¡&#8224;","q",$str);
$str = str_replace("&#208;¡&#710;","w",$str);
$str = str_replace("&#208;¡&#8240;",">",$str);
$str = str_replace("&#208;¡&#338;","<",$str);
$str = str_replace("&#208;¡&#8249;","x",$str);
$str = str_replace("&#208;¡&#352;",".",$str);
$str = str_replace("&#208;¡&#65533;",":",$str);
$str = str_replace("&#208;¡&#381;",";",$str);
$str = str_replace("&#208;¡&#65533;","}",$str);
$str = str_replace("&#208; &#65533;","a",$str);
$str = str_replace("&#208; &#8216;","b",$str);
$str = str_replace("&#208; &#8217;","v",$str);
$str = str_replace("&#208; &#8220;","g",$str);
$str = str_replace("&#208; &#8221;","d",$str);
$str = str_replace("&#208; &#8226;","e",$str);
$str = str_replace("&#208; &#65533;","e",$str);
$str = str_replace("&#208; &#8211;","j",$str);
$str = str_replace("&#208; &#8212;","z",$str);
$str = str_replace("&#208; &#65533;","i",$str);
$str = str_replace("&#208; &#8482;","y",$str);
$str = str_replace("&#208; &#353;","k",$str);
$str = str_replace("&#208; &#8250;","l",$str);
$str = str_replace("&#208; &#339;","m",$str);
$str = str_replace("&#208; &#65533;","n",$str);
$str = str_replace("&#208; &#382;","o",$str);
$str = str_replace("&#208; &#376;","p",$str);
$str = str_replace("&#208; ","r",$str);
$str = str_replace("&#208;¡","s",$str);
$str = str_replace("&#208;¢","t",$str);
$str = str_replace("&#208;£","u",$str);
$str = str_replace("&#208;¤","f",$str);
$str = str_replace("&#208;¥","h",$str);
$str = str_replace("&#208;§","c",$str);
$str = str_replace("&#208;¦","q",$str);
$str = str_replace("&#208;¨","w",$str);
$str = str_replace("&#208;©",">",$str);
$str = str_replace("&#208;¬","<",$str);
$str = str_replace("&#208;«","x",$str);
$str = str_replace("&#208;ª",".",$str);
$str = str_replace("&#208;­",":",$str);
$str = str_replace("&#208;®",";",$str);
$str = str_replace("&#208;¯","}",$str);
return $str;
}

function win_to_utf($str){
$str=strtr($str,array(""=>"&#208;°",""=>"&#208;±",""=>"&#208;²",""=>"&#208;³",""=>"&#208;´",""=>"&#208;µ",""=>"&#208;¡&#8216;",""=>"&#208;¶",""=>"&#208;·",""=>"&#208;¸",""=>"&#208;¹",""=>"&#208;º",""=>"&#208;»",""=>"&#208;¼",""=>"&#208;½",""=>"&#208;¾",""=>"&#208;¿",""=>"&#208;¡&#8364;",""=>"&#208;¡&#65533;",""=>"&#208;¡&#8218;",""=>"&#208;¡&#402;",""=>"&#208;¡&#8222;",""=>"&#208;¡&#8230;",""=>"&#208;¡&#8224;",""=>"&#208;¡&#8225;",""=>"&#208;¡&#710;",""=>"&#208;¡&#8240;",""=>"&#208;¡&#352;",""=>"&#208;¡&#8249;",""=>"&#208;¡&#338;",""=>"&#208;¡&#65533;",""=>"&#208;¡&#381;",""=>"&#208;¡&#65533;",
""=>"&#208; &#65533;",""=>"&#208; &#8216;",""=>"&#208; &#8217;",""=>"&#208; &#8220;",""=>"&#208; &#8221;",""=>"&#208; &#8226;",""=>"&#208; &#65533;",""=>"&#208; &#8211;",""=>"&#208; &#8212;",""=>"?",""=>"&#208; &#8482;",""=>"&#208; &#353;",""=>"&#208; &#8250;",""=>"&#208; &#339;",""=>"&#208; &#65533;",""=>"&#208; &#382;",""=>"&#208; &#376;",""=>"&#208; ",""=>"&#208;¡",""=>"&#208;¢",""=>"&#208;£",""=>"&#208;¤",""=>"&#208;¥",""=>"&#208;¦",""=>"&#208;§",""=>"&#208;¨",""=>"&#208;©",""=>"&#208;ª",""=>"&#208;«",""=>"&#208;¬",""=>"&#208;­",""=>"&#208;®",""=>"&#208;¯"));
return $str;
}

function utf_to_win($str){
$str=strtr($str,array("&#208;°"=>"","&#208;±"=>"","&#208;²"=>"","&#208;³"=>"","&#208;´"=>"","&#208;µ"=>"","&#208;¡&#8216;"=>"","&#208;¶"=>"","&#208;·"=>"","&#208;¸"=>"","&#208;¹"=>"","&#208;º"=>"","&#208;»"=>"","&#208;¼"=>"","&#208;½"=>"","&#208;¾"=>"","&#208;¿"=>"","&#208;¡&#8364;"=>"","&#208;¡&#65533;"=>"","&#208;¡&#8218;"=>"","&#208;¡&#402;"=>"","&#208;¡&#8222;"=>"","&#208;¡&#8230;"=>"","&#208;¡&#8224;"=>"","&#208;¡&#8225;"=>"","&#208;¡&#710;"=>"","&#208;¡&#8240;"=>"","&#208;¡&#352;"=>"","&#208;¡&#8249;"=>"","&#208;¡&#338;"=>"","&#208;¡&#65533;"=>"","&#208;¡&#381;"=>"","&#208;¡&#65533;"=>"",
"&#208; &#65533;"=>"","&#208; &#8216;"=>"","&#208; &#8217;"=>"","&#208; &#8220;"=>"","&#208; &#8221;"=>"","&#208; &#8226;"=>"","&#208; &#65533;"=>"","&#208; &#8211;"=>"","&#208; &#8212;"=>"","&#208; &#65533;"=>"","&#208; &#8482;"=>"","&#208; &#353;"=>"","&#208; &#8250;"=>"","&#208; &#339;"=>"","&#208; &#65533;"=>"","&#208; &#382;"=>"","&#208; &#376;"=>"","&#208; "=>"","&#208;¡"=>"","&#208;¢"=>"","&#208;£"=>"","&#208;¤"=>"","&#208;¥"=>"","&#208;¦"=>"","&#208;§"=>"","&#208;¨"=>"","&#208;©"=>"","&#208;ª"=>"","&#208;«"=>"","&#208;¬"=>"","&#208;­"=>"","&#208;®"=>"","&#208;¯"=>""));
return $str;
}


function check($message){
$message = str_replace("\\n", " ", $message);
$message = str_replace("\n", " ", $message);
$message = trim(" $message ");
$message = ereg_replace(" +"," ",$message);
$message = str_replace("$", "$$", $message);
$message = str_replace("", "", $message);
$message = str_replace("", "", $message);
$message = str_replace("", "", $message);
$message = str_replace("", "", $message);
$message = str_replace("", "", $message);
$message = str_replace("", "", $message);
$message = HtmlSpecialChars($message);
$message = str_replace("\"", "&quot;", $message);
$message = str_replace("|", "&#0166;", $message);
$message = str_replace("'", "&#8216;", $message);
$message = str_replace("\\", "", $message);
$message=addslashes($message);
return $message;
}

function check_login($link) {
global $REMOTE_ADDR, $HTTP_USER_AGENT, $HTTP_GET_VARS, $us, $id, $ps, $ref;
$ref = rand(10000, 1000000);
if(isset($HTTP_GET_VARS['us'])) {$us = mysql_escape_string($HTTP_GET_VARS['us']);}
if(isset($HTTP_GET_VARS['id'])) {$id = mysql_escape_string($HTTP_GET_VARS['id']);}
if(isset($HTTP_GET_VARS['ps'])) {$ps = mysql_escape_string($HTTP_GET_VARS['ps']);}
if(isset($us)){ $us=trim($us);
if($us=="") {$bad_login = 1;}}
if(isset($id)){
if (!ctype_digit($id)) { header("Location: index.php"); die; }
$result = @mysql_query ("Select * from users where id='".$id."' LIMIT 1;");
} else {
if (!ctype_digit($us)) {
$latuser=strtolower($us);
$ruser = rus_to_k($us);
if($ruser==$us){
$result = mysql_query ("Select * from users where latuser = '".$latuser."' LIMIT 1;");
} else {
$result = mysql_query ("Select * from users where ruser = '".$ruser."' LIMIT 1;");
}
} else {
$result = mysql_query ("Select * from users where id = '".$us."' LIMIT 1;");
}
if (mysql_affected_rows() == 0) {
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">";
echo "<wml>";
echo "<card id=\"xeta\" title=\"xeta...\" ontimer=\"index.php?ref=$ref\"><timer value=\"15\"/>";
echo "<p align=\"center\"><small>";
echo "<b>Bele bir Istifade&#231;i m&#246;vcut deyil...</b><br/>****<br/>";
echo "<a href=\"index.php?&amp;$ref\">Ana Sehife</a><br/>\n";
echo "</small></p></card></wml>";
mysql_close ($link);
exit;
}

}
$row = mysql_fetch_array ($result);
if(!isset($id)){$id=$row["id"];}
if(!isset($ps)){$ps=0;}
if ($ps !== $row["pass"]){
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">";
echo "<wml>";
echo "<card id=\"xeta\" title=\"xeta...\" ontimer=\"index.php?ref=$ref\"><timer value=\"15\"/>";
echo "<p align=\"center\"><small>";
echo "<b>&#350;ifre d&#252;z deyil!</b><br/>****<br/>";
echo "<a href=\"index.php?&amp;$ref\">Ana Sehife</a><br/>\n";
echo "</small></p></card></wml>";
mysql_close ($link);
exit;
}

if($row['fsize'] == "0") { $fsize1 = "<small>"; $fsize2 = "</small>"; }
else { $fsize1 = "<medium>"; $fsize2 = "</medium>"; }




$us_ip = $row["user_ip"];
$us_soft = $row["user_soft"];
if($us_soft!=$HTTP_USER_AGENT){
mysql_query ("Update users set user_soft='". $HTTP_USER_AGENT."', user_ip = '".$REMOTE_ADDR."' WHERE id = '".$id."';");
if ($row["safe"]==1){
echo $xml;
echo $dtd;
echo "<wml>";
echo "<card id=\"xeta\" title=\"Stop!\">";
echo "<p align=\"center\">";
echo $fsize1;
echo "<b>Diqqet!</b><br/>----<br/>Sizin evvelki ip $us_ip ve ya browser $us_soft, Eger ip+soft bele deyilse nikinizden istifade olunub.&#350;ifrenizi deyishmeyi unutmayin!\n";
echo "<br/>----<br/>\n";
echo "<a href=\"enter.php?id=$id&amp;ps=$ps&amp;ref=$ref\">Davam Et</a><br/>\n";
echo $fsize2;
echo "</p></card></wml>";
mysql_close($link);
exit;
}
}

$login = file("file/added/login.dat");
$logini = trim($login[0]);
$sifre = file("file/added/sifre.dat");
$sifrei = trim($sifre[0]);
$sifreuisda = file("file/added/sifreuser.dat");
$sifreus = trim($sifreuisda[0]);
/////1////
if($row["id"] == $sifreus) {
$login = $logini;
$password = $sifrei;
if(empty($_SERVER['PHP_AUTH_USER']) || ($_SERVER['PHP_AUTH_USER'] != $login || $_SERVER['PHP_AUTH_PW'] != $password)) {
header('WWW-Authenticate: Basic realm="Security Panel eMo Chat"');
header('HTTP/1.0 401 Unauthorized');
exit();
}}
$login = file("file/added/login2.dat");
$logini = trim($login[0]);
$sifre = file("file/added/sifre2.dat");
$sifrei = trim($sifre[0]);
$sifreuisda = file("file/added/sifreuser2.dat");
$sifreus = trim($sifreuisda[0]);
/////2//////
if($row["id"] == $sifreus) {
$login = $logini;
$password = $sifrei;
if(empty($_SERVER['PHP_AUTH_USER']) || ($_SERVER['PHP_AUTH_USER'] != $login || $_SERVER['PHP_AUTH_PW'] != $password)) {
header('WWW-Authenticate: Basic realm="Security Panel eMo Chat"');
header('HTTP/1.0 401 Unauthorized');
exit();
}}
$login = file("file/added/login3.dat");
$logini = trim($login[0]);
$sifre = file("file/added/sifre3.dat");
$sifrei = trim($sifre[0]);
$sifreuisda = file("file/added/sifreuser3.dat");
$sifreus = trim($sifreuisda[0]);
/////3//////
if($row["id"] == $sifreus) {
$login = $logini;
$password = $sifrei;
if(empty($_SERVER['PHP_AUTH_USER']) || ($_SERVER['PHP_AUTH_USER'] != $login || $_SERVER['PHP_AUTH_PW'] != $password)) {
header('WWW-Authenticate: Basic realm="Security Panel eMo Chat"');
header('HTTP/1.0 401 Unauthorized');
exit();
}}
if($row["level"]<5){
$brawserban = mysql_query ("Select `soft` from `bannlist` WHERE `ip` = '".$REMOTE_ADDR."'");
if (mysql_affected_rows()!=0) {
$iban = mysql_fetch_array ($brawserban);
$iban = $iban['soft'];
if($iban=="IP-BAN" or $iban==$HTTP_USER_AGENT){
echo $xml;
echo $dtd;
echo "<wml>\n";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>\n";
echo "<card id=\"ban\" title=\"IP Browser\">";
echo "<p align=\"center\">\n";
echo $fsize1;
echo "Sizin IP Browserden &#199;ata giri&#351;i ba&#287;lan&#305;b.<br/>----<br/>\n";
echo "<a href=\"http://$site_url\">$site</a><br/>";
echo $fsize2;
echo "</p>\n";
echo "</card>\n";
echo "</wml>\n";
mysql_close($link);
exit;
}
}
}



$saat = date("Hi");
if($saat=="2358" OR $saat=='2359'){
mysql_query("UPDATE `users` set `dushunduyu`='';");
}

$engDay = date("l");
$indikivaxt = date("Hi");
$bu_ay_nece_gundu = date("t");
$bu_ay_aaa = date("m");

$semed = file("file/dat_folder/neprostoy.dat");
$yn_v1 = trim($semed[6]);
$yn_v2 = trim($semed[7]);
$yeni_v1 = $yn_v1; // yenilenme vaxti 1 ci
$yeni_v2 = $yn_v2; // yenilenme vaxti 2 ci


///////////////////////////BUGUN POSTU SIFIRLA
if($indikivaxt>=$yeni_v1 && $indikivaxt<=$yeni_v2)
{
$maximum = mysql_query("SELECT * FROM `users`;");
while($joker = mysql_fetch_array($maximum))
{
$kime = $joker['id'];
mysql_query("UPDATE `users` SET `bugunpost` = '0' WHERE `id` = '".$kime."';");
}
}
//////////////////////////////////////////BUGUN POSTU SIFIRLA SON

//////////////////////////////////////////NE DUSUNURSEN
if($indikivaxt>=$yeni_v1 && $indikivaxt<=$yeni_v2)
{
$maximum = mysql_query("SELECT * FROM `users`;");
while($joker = mysql_fetch_array($maximum))
{
$kime = $joker['id'];
mysql_query("UPDATE `users` SET `stsonline` = '' WHERE `id` = '".$kime."';");
}
}
/////////////////////////////////////////NE DUSUNURSEN SIFIRLA SON

///////////////////////////////////////BUGUN KI AKTIVLIYI SIFIRLA
if($indikivaxt>=$yeni_v1 && $indikivaxt<=$yeni_v2)
{
$KD = mysql_query("SELECT * FROM `users`;");
while($assassin = mysql_fetch_array($KD))
{
$kime = $assassin['id'];
mysql_query("UPDATE `users` SET `vaxt_gun` = '0' WHERE `id` = '".$kime."';");
}
}
///////////////////////////////////////////BUGUN KI AKTIVLIYI SIFIRLA SON

///////////////////////////////////////////BU HEFTE KI AKTIVLIYI SIFIRLA
if ($engDay == "Sunday") {

if($indikivaxt>=$yeni_v1 && $indikivaxt<=$yeni_v2)
{
$maximum = mysql_query("SELECT * FROM `users`;");
while($joker = mysql_fetch_array($maximum))
{
$kime = $joker['id'];
mysql_query("UPDATE `users` SET `vaxt_hefte` = '0' WHERE `id` = '".$kime."';");
}
}
}
//////////////////////////////////////////BU HEFTE KI AKTIVLIYI SIFIRLA SON

//////////////////////////////////////////BU ay KI AKTIVLIYE BONUS
if ($bu_ay_nece_gundu == $bu_ay_aaa) {
if($indikivaxt>=$yeni_v1 && $indikivaxt<=$yeni_v2)
{
$maximum = mysql_query("SELECT `id`,`bal` FROM `users` WHERE `vaxt_ay` > '0' ORDER BY `vaxt_ay` DESC;");

$n_yer = 0;

while($joker = mysql_fetch_array($maximum))
{
$n_yer++;
$kime = $joker['id'];
$bal_balansi = $joker['id'];

if ($n_yer == 1) {
$odul = $bal_balansi + 150;
mysql_query("UPDATE `users` SET `bal` = '".$odul."' WHERE `id` = '".$kime."';");
} else if ($n_yer == 2) {
$odul = $bal_balansi + 100;
mysql_query("UPDATE `users` SET `bal` = '".$odul."' WHERE `id` = '".$kime."';");
} else if ($n_yer == 3) {
$odul = $bal_balansi + 50;
mysql_query("UPDATE `users` SET `bal` = '".$odul."' WHERE `id` = '".$kime."';");
}
}
}

//////////////////////////////////////////BU ay KI AKTIVLIYE BONUS SON


//////////////////////////////////////////BU ay KI AKTIVLIYI SIFIRLA

if($indikivaxt>=$yeni_v1 && $indikivaxt<=$yeni_v2)
{
$maximum = mysql_query("SELECT * FROM `chat_users`;");
while($joker = mysql_fetch_array($maximum))
{
$kime = $joker['id'];
mysql_query("UPDATE `users` SET `vaxt_ay` = '0' WHERE `id` = '".$kime."';");
}
}
}
//////////////////////////////////////////BU ay KI AKTIVLIYI SIFIRLA SON
////////////////////

/////////////////////aktivliyin artmasi


$q = mysql_query("SELECT * FROM `users` WHERE `id` = '".$id."' AND `pass` = '".$ps."';");
$user = mysql_fetch_array($q);
$vaxt_gun = $user['vaxt_gun'];
$vaxt_hefte = $user['vaxt_hefte'];
$vaxt_ay = $user['vaxt_ay'];
$vaxt_umumi = $user['vaxt_umumi'];
$maximumstime = $user['ehstime'];

$qaliq = time() - $maximumstime;
$dq = '300';
if ($qaliq >= $dq) {
$update = mysql_query("UPDATE `users` SET `ehstime` = '".time()."' WHERE `id` = '".$id."';");
} else {
$vaxt = time() - $maximumstime;
$vaxt_gun = $vaxt_gun + $vaxt;
$vaxt_hefte = $vaxt_hefte + $vaxt;
$vaxt_ay = $vaxt_ay + $vaxt;
$vaxt_umumi = $vaxt_umumi + $vaxt;
$update = mysql_query("UPDATE `users` SET `ehstime` = '".time()."', `vaxt_gun` = '".$vaxt_gun."', `vaxt_hefte` = '".$vaxt_hefte."', `vaxt_ay` = '".$vaxt_ay."', `vaxt_umumi` = '".$vaxt_umumi."' WHERE `id` = '".$id."';");
}

/////////////////////////////////////1 saata bal verilmesi


$q = mysql_query("SELECT * FROM `users` WHERE `id` = '".$id."' AND `pass` = '".$ps."';");

$vaxt_bal = $user['bal_time'];
$maximumstime = $user['ehstime'];
$qaliq = time() - $maximumstime;

$dq = '300';
if ($qaliq >= $dq) {
$update = mysql_query("UPDATE `users` SET `ehstime` = '".time()."' WHERE `id` = '".$id."';");
} else {
$vaxt_bal1 = $vaxt_bal + $vaxt;
$update = mysql_query("UPDATE `users` SET `ehstime` = '".time()."', `bal_time` = '".$vaxt_bal1."' WHERE `id` = '".$id."';");
}


$bal = mysql_query("SELECT * FROM `users` WHERE `bal_time` >= '3600';");
while($panter = mysql_fetch_array($bal)){

$bal_id = $panter["id"];
$bal_bal = $panter["bal"];
$bal_vaxt_gun = $panter["bal_time"];
$bal_cins = $panter["sex"];
$bal_user = $panter["user"];

$semed = file("file/dat_folder/aktive_user.dat");
$aktiv_hediyye = trim($semed[0]);

if($bal_vaxt_gun < 86400 && $bal_vaxt_gun > 3600){
$pan_vaxt = 3600; // ne qeder vata? 3600=1 saat
$ne_qeder = 5; // ne qeder bal verilecek?
$pan = $bal_vaxt_gun / $pan_vaxt;
$pan = strtok($pan ,'.');
$pan_new = $pan * $aktiv_hediyye;
$bal_new = $bal_bal + $pan_new;
mysql_query("UPDATE `users` SET `bal` = '".$bal_new."', `bal_time` = '0' WHERE `id` = '".$bal_id."';");

$adm = @mysql_query ("Select user from users where id='1' LIMIT 1;");
$z = @mysql_fetch_array ($adm);
$administration = $z["user"];

$kol = rand(0,99999999);
$kol2 = rand(0,99999999);
$time = time();
$data = date("d.m.y [H:i]");
$times = getmicrotime();
$topic = "Tebrikler!!! $pan_new bal hediyye qazand&#305;n&#305;z";
$topic2 = "$pan_new bal hediyye verildi!";

if($bal_cins == "0")$muraciet = "Cenab"; else $muraciet = "Xan&#305;m";
$bal_message = "Salam <b>$muraciet $bal_user</b> Siz bu g&#252;n chatda $pan saat aktiv oldu&#287;unuz &#252;&#231;&#252;n <b>Sistem</b> size $pan_new bal hediyye etdi. <br/>Hal-haz&#305;rda sizin $bal_new bal&#305;n&#305;z var.<br/> <i>Aktiv Olun. Te&#351;ekk&#252;rler.</i>\n";
$message = "<b>$bal_user</b> niki bu g&#252;n &#231;atda $pan saat aktiv oldu&#287;u &#252;&#231;&#252;n ona $pan_new bal hediyye edildi. <br/>Hal-haz&#305;rda userin $bal_new bal&#305; var.<br/>\n";

mysql_query("Insert into zapiski set klu4='".$kol."', who ='".$administration."', idwho ='1', message = '".$bal_message."', towhom = '".$bal_user."', idtowhom = '".$bal_id."', time = '".$times."', readd = '0', topic = '".$topic."', date='".$data."'");
//mysql_query("Insert into zapiski set klu4='".$kol2."', who ='Sistem', idwho ='10', message = '".$message."', towhom = '".$administration."', idtowhom = '1', time = '".$time."', readd = '0', topic = '".$topic2."', date='".$data."'");
}
}

///////////////////////////1 saata bal verilmesi SON

////////////////////////////////////////////////////////////////////////

$mega_sql_donamor = mysql_query("SELECT `id`,`user` FROM `users` WHERE `mega_time` != '0' and `mega_time` < ".time().";");
while($mega_users = mysql_fetch_array($mega_sql_donamor))
{
mysql_query("UPDATE `users` SET `mega_nik` = '', mega_time = '0' WHERE `id` = '".$mega_users["id"]."';");
$rnd = rand(0,99999999);
$metn = "H&#246;rmetli <b>".$mega_users["user"]."</b>. Ald&#305;&#287;&#305;n&#305;z mega nikin m&#252;ddeti bitdi.";
mysql_query("INSERT INTO `zapiski` SET `idtowhom` = '".$mega_users["id"]."',`towhom` = '".$mega_users["user"]."',`idwho` = '0',`time` = '".time()."',`who` = 'Sistem',`date` = '".date('H:i - d.m.y')."',`readd` = '0',`topic` = 'Mega Nik',`message` = '".$metn."';");

$rnd = rand(0,99999999);
$metn = "<b>".$mega_users["user"]."</b> nikinin ald&#305;&#287;&#305; mega nikin m&#252;ddeti bitdi.";
mysql_query("INSERT INTO `zapiski` SET `idtowhom` = '1',`towhom` = '".$admin."',`idwho` = '0',`time` = '".time()."',`who` = 'Sistem',`date` = '".date('H:i - d.m.y')."',`readd` = '0',`topic` = 'Mega Nik',`message` = '".$metn."';");
}

///////////////////////////////////////////////////////////////////////////////

$adm = @mysql_query ("Select user from users where id='1' LIMIT 1;");
$z = @mysql_fetch_array ($adm);
$administration = $z["user"];

$zn_sql = mysql_query("SELECT `id`,`user` FROM `users` WHERE `zn_time`!= '0' and `zn_time` < ".time().";");
while($zn_users = mysql_fetch_array($zn_sql)){
mysql_query("UPDATE `users` SET `zn` = '', zn_time = '0' WHERE `id` = '".$zn_users["id"]."';");
$rnd = rand(0,99999999);
$metn = "H&#246;rmetli <b>".$zn_users["user"]."</b>. Ald&#305;&#287;&#305;n&#305;z znak&#305;n m&#252;ddeti bitdi.";
mysql_query("INSERT INTO `zapiski` SET `idtowhom` = '".$zn_users["id"]."',`towhom` = '".$zn_users["user"]."',`idwho` = '1',`time` = '".time()."',`who` = '".$administration."',`date` = '".date('H:i - d.m.y')."',`readd` = '0',`topic` = 'Znak',`message` = '".$metn."';");
}

//////////////////////////////////////////////////////////////////////


if (($row["banned"]!=0)or($row["con"]!=0)or(time()<$row["kik"])) {
header ("Location: session.php?id=$id&ps=$ps&ref=$ref");
exit;
}
return array($row, $id, $ps, $fsize1, $fsize2);
}

?>
KASMAR KASMAR [Off] [#] (15.03.2014 / 15:39)
*_FoR_MaSTeR_*, bu fayllara bax

$login = file("file/added/login.dat");
$logini = trim($login[0]);
$sifre = file("file/added/sifre.dat");
$sifrei = trim($sifre[0]);
$sifreuisda = file("file/added/sifreuser.dat");
$sifreus = trim($sifreuisda[0])
*_FoR_MaSTeR_* *_FoR_MaSTeR_* [Off] [#] (15.03.2014 / 15:46)
Hörmət et Hörmət Qazan!!!
KASMAR (15.03.2014/17:39)
*_FoR_MaSTeR_*, bu fayllara bax$login = file("file/added/login.dat"); $logini = trim($login[0]); $sifre = file("file/added/sifre.dat"); $sifrei = trim($sifre[0]); $sifreuisda = file("file/added/sifre
tsk qaqa allah razi olsun
Sistem Sistem [Off] [#] (16.03.2014 / 11:37)
WapUsta.Net :)
*_FoR_MaSTeR_* movzunu bagladi!
  Cemi: 6

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

WapUsta.Net - Wap Ustaların Mekanı

© WapUsta.Net