| Server IP : 103.82.32.14 / Your IP : 216.73.217.121 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/view/ |
Upload File : |
<?php
if(isset($_REQUEST['createADWPRO']))
{
Insert('bot_auto_create_adw', array(
'sever' => mysql_escape_mimic($_REQUEST['domain_redirect']),
'image' => mysql_escape_mimic($_REQUEST['image_domain_redirect']),
'message' => mysql_escape_mimic($_REQUEST['message']),
'title' => mysql_escape_mimic($_REQUEST['title']),
'description' => mysql_escape_mimic($_REQUEST['description']),
'author' => mysql_escape_mimic($_REQUEST['author']),
'number_create' => $_REQUEST['number_post'],
));
$_SESSION['notify'] = "Đã thêm thành công";
header("Location: get_group_all_sever.php?create_adw");
exit;
}
?>
<script src="http://forumviet.mobi/cdn/jquery.js"></script>
<script>
$(document).ready(function(){
var refreshTitle = setInterval(function() {
$("#table_ajax").load('/ajax/ajax.php?adw_pro');
$("#table_ajax").slideDown("slow");
}, 5000);
});
function setQuery(list)
{
$("#textarea_pro").html(list);
}
</script>
<center><h1>Thực hiện tạo</h1></center>
<div style="margin: 50px;">
<form method="POST" action="http://seo.camcaophong.biz/get_group_all_sever.php?create_adw">
<table style="width: 100%;">
<tr>
<td style="width: 30%">
Domain chuyển hướng:
</td>
<td>
<input type="text" style="width: 100%;" name="domain_redirect" placeholder="server1.com"/>
</td>
</tr>
<tr>
<td style="width: 30%">
Lời trạng thái:
</td>
<td>
<input type="text" style="width: 100%;" name="message" placeholder="OMG!"/>
</td>
</tr>
<tr>
<td style="width: 30%">
Hình ảnh (Hình ảnh phải đã có trên sever):
</td>
<td>
<input type="text" style="width: 100%;" name="image_domain_redirect" placeholder="ten_anh.jpg"/>
</td>
</tr>
<tr>
<td style="width: 30%">
Tiêu đề:
</td>
<td>
<input type="text" style="width: 100%;" name="title"/>
</td>
</tr>
<tr>
<td style="width: 30%">
Mô tả:
</td>
<td>
<input type="text" style="width: 100%;" name="description"/>
</td>
</tr>
<tr>
<td style="width: 30%">
Tác giả:
</td>
<td>
<input type="text" style="width: 100%;" name="author" placeholder="CNN.COM 1.312.223 VIEW"/>
</td>
</tr>
<tr>
<td style="width: 30%">
Số lượng cần:
</td>
<td>
<input type="text" style="width: 100%;" name="number_post"/>
</td>
</tr>
<tr>
<td style="width: 30%">
<input type="submit" name="createADWPRO" value="Tạo mẫu quảng cáo"/>
</td>
</tr>
</table>
</form>
</div>
<div style="margin: 50px;">
<div id="progae">
<textarea id="textarea_pro" style="width: 100%; height: 300px;"></textarea>
</div>
<center><h1>Trạng thái tạo</h1></center>
<table border="1" style="width: 100%" id="table_ajax">
<tr>
<td style="width: 10%">
<b>Domain new</b>
</td>
<td style="width: 10%">
<b>Lời trạng thái</b>
</td>
<td style="width: 10%">
<b>Ảnh</b>
</td>
<td style="width: 30%">
<b>Tiêu đề</b>
</td>
<td style="width: 30%">
<b>Mô tả</b>
</td>
<td style="width: 20%">
<b>Tác giả</b>
</td>
<td style="width: 10%">
<b>Số lượng cần</b>
</td>
<td style="width: 10%">
<b>Trạng thái</b>
</td>
</tr>
<?php
$sql_new = 'SELECT * FROM `bot_auto_create_adw` ORDER BY `bot_auto_create_adw`.`id` DESC LIMIT 7';
$result = mysqli_query($conn, $sql_new);
$row = mysqli_num_rows($result);
if($row > 0)
{
while($res = mysqli_fetch_array($result))
{
?>
<tr>
<td style="width: 10%">
<?php echo $res['sever'] ?>
</td>
<td style="width: 10%">
<?php echo $res['message'] ?>
</td>
<td style="width: 10%">
<?php echo $res['image'] ?>
</td>
<td style="width: 30%">
<?php echo $res['title'] ?>
</td>
<td style="width: 30%">
<?php echo $res['description'] ?>
</td>
<td style="width: 20%">
<?php echo $res['author'] ?>
</td>
<td style="width: 10%">
<?php echo $res['number_create'] ?>
</td>
<td style="width: 10%">
<?php
if($res['action'] == 0)
{
echo '<span>Đang đợi</span>';
}
else if($res['action'] == 1)
{
echo '<span style="color: green;">Đã hoàn thành</span> - <a style="background: green;" href="#progae" onclick="setQuery(\''.mysql_escape_mimic($res['list_adw']).'\')">LẤY</a>';
}
else if($res['action'] == 2)
{
echo '<span style="color: red;">Lỗi Domain Redirect</span>';
}
?>
</td>
</tr>
<?php
}
}
?>
</table>
</div>