Günlük Bonus
24 Saatte Bir Kez Faydalanabilirsiniz.
Günlük Bonusumuzda 50 ile 150 Arasında Gümüş Kazanabilirsiniz |
|
$ddel = time() + 60*60*24;
$dadd = time();
$db->Query("SELECT COUNT(*) FROM db_bonus_list5 WHERE user_id = '$usid' AND date_del > '$dadd'");
$hide_form = false;
if($db->FetchRow() == 0){
# Выдача бонуса
if(isset($_POST["bonus"])){
$sum = rand($bonus_min, rand($bonus_min, $bonus_max) );
# Зачилсяем юзверю
$db->Query("UPDATE db_users_b SET money_b = money_b + '$sum' WHERE id = '$usid'");
# Вносим запись в список бонусов
$db->Query("INSERT INTO db_bonus_list5 (user, user_id, sum, date_add, date_del) VALUES ('$uname','$usid','$sum','$dadd','$ddel')");
# Случайная очистка устаревших записей
$db->Query("DELETE FROM db_bonus_list5 WHERE date_del < '$dadd'");
echo "Tebrikler ! {$sum} Gümüş Bonus Kazandınız ";
$hide_form = true;
}
# Показывать или нет форму
if(!$hide_form){
?>
|
}
}else
{
$db->Query("SELECT * FROM db_bonus_list5 WHERE user_id = '$usid' order by ID DESC limit 1");
$u_data = $db->FetchArray();
$time = $u_data['date_del'] - $dadd;
$hours = floor($time/3600);
floor($minutes =($time/3600 - $hours)*60);
$seconds = ceil(($minutes - floor($minutes))*60);
$min=ceil($minutes)-1;
//echo $data['sec'] - time().' сек.';
//echo "$hours:$min:$seconds";
echo json_encode($hours);echo ' saat ';echo json_encode($min);echo ' dakika '; echo json_encode($seconds);echo ' saniye ';
echo ' ';
}
?>
<script>setInterval(function(){
$("#bonus").load("# #bonus"); }, 1000); </script>
|
|
$_OPTIMIZATION["title"] = "";
$usid = $_SESSION["user_id"];
$uname = $_SESSION["user"];
# Настройки бонусов
$bonus_min = 10;
$bonus_max = 35;
?>
Saatlik Bonus
Saatte Bir Kez Faydalanabilirsiniz.
Saatlik Bonusumuzdan Saatte 10 ile 35 Arasında Gümüş Kazanabilirsiniz |
|
$ddel = time() + 60*60;
$dadd = time();
$db->Query("SELECT COUNT(*) FROM db_bonus_list6 WHERE user_id = '$usid' AND date_del > '$dadd'");
$hide_form = false;
if($db->FetchRow() == 0){
# Выдача бонуса
if(isset($_POST["bonus_2"])){
$sum = rand($bonus_min, rand($bonus_min, $bonus_max) );
# Зачилсяем юзверю
$db->Query("UPDATE db_users_b SET money_b = money_b + '$sum' WHERE id = '$usid'");
# Вносим запись в список бонусов
$db->Query("INSERT INTO db_bonus_list6 (user, user_id, sum, date_add, date_del) VALUES ('$uname','$usid','$sum','$dadd','$ddel')");
# Случайная очистка устаревших записей
$db->Query("DELETE FROM db_bonus_list6 WHERE date_del < '$dadd'");
echo "Tebrikler ! Saatlik Bonusumuzdan {$sum} Gümüş Kazandınız! ";
$hide_form = true;
}
# Показывать или нет форму
if(!$hide_form){
?>
|
}
}else
{
$db->Query("SELECT * FROM db_bonus_list6 WHERE user_id = '$usid' order by ID DESC limit 1");
$u_data = $db->FetchArray();
$time = $u_data['date_del'] - $dadd;
$hours = floor($time/3600);
floor($minutes =($time/3600 - $hours)*60);
$seconds = ceil(($minutes - floor($minutes))*60);
$min=ceil($minutes)-1;
//echo $data['sec'] - time().' сек.';
//echo "$hours:$min:$seconds";
echo json_encode($hours);echo ' saat ';echo json_encode($min);echo ' dakika '; echo json_encode($seconds);echo ' saniye ';
echo ' ';
}
?>
|
|
$_OPTIMIZATION["title"] = "";
$usid = $_SESSION["user_id"];
$uname = $_SESSION["user"];
# Настройки бонусов
$bonus_min = 5;
$bonus_max = 15;
?>
Dakikalık Bonus
Bonusumuzdan Her 10 Dakikada Bir Kez Faydalanabilirsiniz.
Dakikalık Bonusumuzdan 5 ile 15 Arasında Gümüş Kazanabilirsiniz |
|
$ddel = time() + 60*10;
$dadd = time();
$db->Query("SELECT COUNT(*) FROM db_bonus_list4 WHERE user_id = '$usid' AND date_del > '$dadd'");
$hide_form = false;
if($db->FetchRow() == 0){
# Выдача бонуса
if(isset($_POST["bonus_3"])){
$sum = rand($bonus_min, rand($bonus_min, $bonus_max) );
# Зачилсяем юзверю
$db->Query("UPDATE db_users_b SET money_b = money_b + '$sum' WHERE id = '$usid'");
# Вносим запись в список бонусов
$db->Query("INSERT INTO db_bonus_list4 (user, user_id, sum, date_add, date_del) VALUES ('$uname','$usid','$sum','$dadd','$ddel')");
# Случайная очистка устаревших записей
$db->Query("DELETE FROM db_bonus_list4 WHERE date_del < '$dadd'");
echo "Tebrikler ! Dakikalık Bonusumuzdan {$sum} Gümüş Kazandınız ";
$hide_form = true;
}
# Показывать или нет форму
if(!$hide_form){
?>
|
}
}else
{
$db->Query("SELECT * FROM db_bonus_list4 WHERE user_id = '$usid' order by ID DESC limit 1");
$u_data = $db->FetchArray();
$time = $u_data['date_del'] - $dadd;
$hours = floor($time/600);
floor($minutes =($time/600 - $hours)*10);
$seconds = ceil(($minutes - floor($minutes))*10);
$min=ceil($minutes)-1;
//echo $data['sec'] - time().' сек.';
//echo "$hours:$min:$seconds";
echo json_encode($hours);echo ' sa ';echo json_encode($min);echo ' dakika '; echo json_encode($seconds);echo ' saniye ';
echo ' ';
}
?>
|
|