| Server IP : 103.82.32.14 / Your IP : 216.73.217.55 Web Server : Apache/2.2.32 (Unix) mod_ssl/2.2.32 OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 System : Linux cloud.lonmanhoabinh.com 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : lonmakmf ( 524) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/seocabra/public_html/ |
Upload File : |
<?php
$conn = mysqli_connect('localhost', 'seocabra_m', 'seocabra_m', 'trinhlam') or die ('DIE');
if(isset($_GET['url']))
{
$sql = 'SELECT * FROM `bot_sever_facebook_sevice` WHERE `die` = 0';
$result = mysqli_query($conn, $sql);
$row = mysqli_num_rows($result);
if($row > 0)
{
$list = "";
while($res = mysqli_fetch_array($result))
{
$list .= $res['url_site'] . ";";
}
echo trim($list, ";");
}
else
{
echo 'false';
}
}
else if(isset($_GET['get_acount']))
{
$sql = 'SELECT * FROM `bot_sever_facebook_sevice` WHERE `url_site` = "'.$_GET['url_new'].'" AND `type_use` = 0 AND `die` = 0';
$result = mysqli_query($conn, $sql);
$row = mysqli_num_rows($result);
if($row > 0)
{
$res = mysqli_fetch_assoc($result);
echo $res['facebook_accout'] . ',' . $res['facebook_pass'];
}
else
{
echo 'false';
}
}
else if(isset($_GET['url_group']))
{
$sql = 'SELECT * FROM `bot_sever_facebook_sevice` WHERE `block_action` = "none" AND `type_use` = 0 AND `die` = 0';
$result = mysqli_query($conn, $sql);
$row = mysqli_num_rows($result);
if($row > 0)
{
while($res = mysqli_fetch_array($result))
{
if($res['time_update'] != 0)
{
$time_current = time();
$time_action = $time_current - $res['time_update'];
if($time_action > 86400)
{
$time_day = floor($time_action/86400);
$group_total_join = 0;
if($time_day >= 1)
{
$group_total_join = 5;
}
if($time_day >= 3)
{
$group_total_join = 20;
}
if($time_day >= 7)
{
$group_total_join = 30;
}
if($time_day >= 14)
{
$group_total_join = 40;
}
$res['join_group_number'] = $group_total_join;
}
else
{
$res['join_group_number'] = 0;
}
}
$list[] = $res;
}
echo json_encode($list);
}
else
{
echo 'false';
}
}
else if(isset($_GET['url_group_nick_phu']))
{
$sql = 'SELECT * FROM `bot_sever_facebook_sevice` WHERE `block_action` = "none" AND `type_use` = 1 AND `die` = 0';
$result = mysqli_query($conn, $sql);
$row = mysqli_num_rows($result);
if($row > 0)
{
while($res = mysqli_fetch_array($result))
{
if($res['time_update'] != 0)
{
$time_current = time();
$time_action = $time_current - $res['time_update'];
if($time_action > 86400)
{
$time_day = floor($time_action/86400);
$group_total_join = 0;
if($time_day >= 1)
{
$group_total_join = 5;
}
if($time_day >= 3)
{
$group_total_join = 20;
}
if($time_day >= 7)
{
$group_total_join = 30;
}
if($time_day >= 14)
{
$group_total_join = 40;
}
$res['join_group_number'] = $group_total_join;
}
else
{
$res['join_group_number'] = 0;
}
}
$list[] = $res;
}
echo json_encode($list);
}
else
{
echo 'false';
}
}
else if(isset($_GET['url_group_nick_phu']))
{
$sql = 'SELECT * FROM `bot_sever_facebook_sevice` WHERE `block_action` = "none" AND `type_use` = 1 AND `die` = 0';
$result = mysqli_query($conn, $sql);
$row = mysqli_num_rows($result);
if($row > 0)
{
while($res = mysqli_fetch_array($result))
{
if($res['time_update'] != 0)
{
$time_current = time();
$time_action = $time_current - $res['time_update'];
if($time_action > 86400)
{
$time_day = floor($time_action/86400);
$group_total_join = 0;
if($time_day >= 1)
{
$group_total_join = 5;
}
if($time_day >= 3)
{
$group_total_join = 20;
}
if($time_day >= 7)
{
$group_total_join = 30;
}
if($time_day >= 14)
{
$group_total_join = 40;
}
$res['join_group_number'] = $group_total_join;
}
else
{
$res['join_group_number'] = 0;
}
}
$list[] = $res;
}
echo json_encode($list);
}
else
{
echo 'false';
}
}
else
{
$sql = 'SELECT * FROM `bot_sever_facebook_sevice` WHERE `type_use` = 0 AND `die` = 0';
$result = mysqli_query($conn, $sql);
$row = mysqli_num_rows($result);
if($row > 0)
{
while($res = mysqli_fetch_array($result))
{
$list[] = $res;
}
echo json_encode($list);
}
else
{
echo 'false';
}
}
?>