-
Notifications
You must be signed in to change notification settings - Fork 0
/
clear-queue.php
30 lines (28 loc) · 996 Bytes
/
clear-queue.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php include('includes/header.php');?>
<?php include('includes/login/auth.php');?>
<div class="row-fluid">
<div class="span12">
<h2><?php echo _('Clear queue table');?></h2><br/>
<?php
$confirm = $_POST['c'];
if(count($_POST)!=0 && $confirm==1)
{
$q = 'TRUNCATE table queue';
$r = mysqli_query($mysqli, $q);
if ($r)
echo _('The queue table has been cleared successfully!');
else
echo _('Failed to clear the queue table.');
}
else
{
echo '<form action="" method="post">';
echo _('Please make sure all currently sending campaigns are completed first before doing this.').'<br/><br/>'._('Do you want to clear the queue table?');
echo '<input type="hidden" name="c" value="1"/>
<br/><br/><input type="submit" name="submit" class="btn" value="'._('Yes, clear the queue table').'"/>
</form>';
}
?>
</div>
</div>
<?php include('includes/footer.php');?>