OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
sendy
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/28/2024 11:03:35 AM
rwxrwxr-x
📄
.htaccess
643 bytes
11/18/2021 09:43:15 AM
rw-r--r--
📄
_compatibility.php
3.83 KB
11/18/2021 09:43:14 AM
rwxr-xr-x
📄
_install.php
7.3 KB
11/18/2021 09:43:11 AM
rw-r--r--
📁
api
-
11/18/2021 09:42:34 AM
rwxr-xr-x
📄
app.php
33.77 KB
11/18/2021 09:43:11 AM
rw-r--r--
📄
autoresponders-create.php
23.29 KB
11/18/2021 09:43:12 AM
rw-r--r--
📄
autoresponders-edit.php
28.89 KB
11/18/2021 09:43:14 AM
rw-r--r--
📄
autoresponders-emails.php
26.81 KB
11/18/2021 09:43:14 AM
rw-r--r--
📄
autoresponders-list.php
15.85 KB
11/18/2021 09:43:12 AM
rw-r--r--
📄
autoresponders-report.php
40.18 KB
11/18/2021 09:43:14 AM
rw-r--r--
📄
autoresponders.php
77.28 KB
11/18/2021 09:43:12 AM
rw-r--r--
📄
blacklist-blocked-domains.php
13.39 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
blacklist-suppression.php
13.34 KB
11/18/2021 09:43:11 AM
rw-r--r--
📄
campaigns-rss.php
8.35 KB
11/18/2021 09:43:12 AM
rw-r--r--
📁
certs
-
11/18/2021 09:42:17 AM
rwxr-xr-x
📄
clear-queue.php
996 bytes
11/18/2021 09:43:14 AM
rw-r--r--
📄
confirm.php
9.34 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
create-template.php
3.99 KB
11/18/2021 09:43:11 AM
rw-r--r--
📄
create.php
15.92 KB
11/18/2021 09:43:12 AM
rw-r--r--
📁
css
-
11/18/2021 09:42:15 AM
rwxr-xr-x
📄
custom-fields.php
8.5 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
delete-from-list.php
5.29 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
detect-table-conflicts.php
2.47 KB
11/18/2021 09:43:11 AM
rw-r--r--
📄
edit-brand.php
57.32 KB
11/18/2021 09:43:14 AM
rw-r--r--
📄
edit-list.php
20.97 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
edit-template.php
4.65 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
edit.php
19.04 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
eula.txt
6.5 KB
11/18/2021 09:43:14 AM
rw-r--r--
📄
housekeeping-inactive.php
12.54 KB
11/18/2021 09:43:12 AM
rw-r--r--
📄
housekeeping-unconfirmed.php
14.01 KB
11/18/2021 09:43:11 AM
rw-r--r--
📁
img
-
11/18/2021 09:43:36 AM
rwxr-xr-x
📄
import-csv.php
18.68 KB
11/18/2021 09:43:12 AM
rw-r--r--
📁
includes
-
11/18/2021 10:11:21 AM
rwxr-xr-x
📄
index.php
18.77 KB
11/18/2021 09:43:12 AM
rw-r--r--
📁
js
-
11/18/2021 09:43:37 AM
rwxr-xr-x
📄
l.php
10.63 KB
11/18/2021 09:43:11 AM
rw-r--r--
📄
list.php
12.3 KB
11/18/2021 09:43:13 AM
rw-r--r--
📁
locale
-
11/18/2021 09:41:10 AM
rwxr-xr-x
📄
login.php
4.84 KB
11/18/2021 09:43:11 AM
rw-r--r--
📄
logout.php
133 bytes
11/18/2021 09:43:12 AM
rw-r--r--
📄
new-brand.php
46.35 KB
11/18/2021 09:43:14 AM
rw-r--r--
📄
new-list.php
1.98 KB
11/18/2021 09:43:15 AM
rw-r--r--
📄
payment.php
7.41 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
phpinfo.php
1.39 KB
11/18/2021 09:43:12 AM
rw-r--r--
📄
r.php
11 KB
11/18/2021 09:43:14 AM
rw-r--r--
📄
reconsent-success.php
3.91 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
remove-duplicates.php
2.94 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
report.php
48.79 KB
11/18/2021 09:43:14 AM
rw-r--r--
📄
reports.php
10.7 KB
11/18/2021 09:43:12 AM
rw-r--r--
📄
reset-cron.php
999 bytes
11/18/2021 09:43:12 AM
rw-r--r--
📄
rules.php
37.35 KB
11/18/2021 09:43:11 AM
rw-r--r--
📄
scheduled.php
39.51 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
search-all-brands.php
7.07 KB
11/18/2021 09:43:14 AM
rw-r--r--
📄
search-all-lists.php
10.68 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
search-campaigns.php
30.29 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
segment.php
45.8 KB
11/18/2021 09:43:11 AM
rw-r--r--
📄
segments-list.php
6.84 KB
11/18/2021 09:43:12 AM
rw-r--r--
📄
send-to.php
57.72 KB
11/18/2021 09:43:11 AM
rw-r--r--
📄
sending.php
8.9 KB
11/18/2021 09:43:12 AM
rw-r--r--
📄
settings.php
41.29 KB
11/18/2021 09:43:11 AM
rw-r--r--
📄
subscribe.php
29.26 KB
11/18/2021 09:43:12 AM
rw-r--r--
📄
subscribers.php
44.09 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
subscription.php
9.01 KB
11/18/2021 09:43:11 AM
rw-r--r--
📄
t.php
4.22 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
template-preview.php
4.55 KB
11/18/2021 09:43:12 AM
rw-r--r--
📄
templates.php
7.35 KB
11/18/2021 09:43:11 AM
rw-r--r--
📄
two-factor.php
4.33 KB
11/18/2021 09:43:11 AM
rw-r--r--
📄
unsubscribe-from-list.php
5.33 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
unsubscribe-success.php
3.9 KB
11/18/2021 09:43:11 AM
rw-r--r--
📄
unsubscribe.php
16.19 KB
11/18/2021 09:43:13 AM
rw-r--r--
📄
update-list.php
13.88 KB
11/18/2021 09:43:15 AM
rw-r--r--
📄
update-segments.php
3.09 KB
11/18/2021 09:43:12 AM
rw-r--r--
📁
uploads
-
10/25/2024 06:04:31 AM
rwxrwxrwx
📄
verification-status.php
3.63 KB
11/18/2021 09:43:12 AM
rw-r--r--
📄
w.php
17.76 KB
11/18/2021 09:43:14 AM
rw-r--r--
📄
webhooks-log.php
4.28 KB
11/18/2021 09:43:14 AM
rw-r--r--
Editing: housekeeping-inactive.php
Close
<?php include('includes/header.php');?> <?php include('includes/login/auth.php');?> <?php include('includes/subscribers/main.php');?> <?php include('includes/subscribers/housekeeping.php');?> <?php if(get_app_info('is_sub_user')) { if(get_app_info('app')!=get_app_info('restricted_to_app')) { echo '<script type="text/javascript">window.location="'.addslashes(get_app_info('path')).'/housekeeping-inactive?i='.get_app_info('restricted_to_app').'"</script>'; exit; } else if(get_app_info('campaigns_only')==1 && get_app_info('templates_only')==1 && get_app_info('lists_only')==1 && get_app_info('reports_only')==1) { echo '<script type="text/javascript">window.location="'.addslashes(get_app_info('path')).'/logout"</script>'; exit; } else if(get_app_info('lists_only')==1) { go_to_next_allowed_section(); } } //vars $p = isset($_GET['p']) && is_numeric($_GET['p']) ? $_GET['p'] : null; $loader = get_app_info('dark_mode') ? 'loader-dark.gif' : 'loader-light.gif'; ?> <div class="row-fluid"> <div class="span2"> <?php include('includes/sidebar.php');?> </div> <div class="span10"> <div class="row-fluid"> <div class="span12"> <div> <p class="lead"> <?php if(get_app_info('is_sub_user')):?> <?php echo get_app_data('app_name');?> <?php else:?> <a href="<?php echo get_app_info('path'); ?>/edit-brand?i=<?php echo get_app_info('app');?>" data-placement="right" title="<?php echo _('Edit brand settings');?>"><?php echo get_app_data('app_name');?> <span class="icon icon-pencil top-brand-pencil"></span></a> <?php endif;?> </p> </div> <h2><?php echo _('Housekeeping');?></h2> <br/> <div class="well"> <div class="btn-group" data-toggle="buttons-radio"> <a href="<?php echo get_app_info('path');?>/housekeeping-unconfirmed?i=<?php echo get_app_info('app');?>" title="" class="btn"><i class="icon icon-meh"></i> <?php echo _('Unconfirmed subscribers');?></a> <a href="javascript:void(0)" title="" class="btn active"><i class="icon icon-moon"></i> <?php echo _('Inactive subscribers');?></a> </div> </div> <div class="alert alert-info"> <p><i class="icon icon-info-sign"></i> <?php echo _('Housekeeping for \'Inactive subscribers\' allows you to bulk remove subscribers who did not open or click any campaigns that you have ever sent to them.');?></p> </div> </div> </div> <br/> <div class="row-fluid"> <div class="span12"> <h3><?php echo _('Inactive subscribers');?></h3><hr/> <table class="table table-striped responsive"> <thead> <tr> <?php $lists = ''; //Remove ONLY_FULL_GROUP_BY from sql_mode $q = 'SET SESSION sql_mode = ""'; $r = mysqli_query($mysqli, $q); if (!$r) error_log("[Unable to set sql_mode]".mysqli_error($mysqli).': in '.__FILE__.' on line '.__LINE__); //Get lists that all existing campaigns were sent to $q = 'SELECT to_send_lists FROM campaigns WHERE app = '.get_app_info('app').' AND to_send = recipients'; $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) > 0) { while($row = mysqli_fetch_array($r)) { $to_send_lists = $row['to_send_lists']; $lists .= $to_send_lists!='' ? $to_send_lists.',' : ''; } } //Get lists from segments that all existing campaigns were sent to $q = 'SELECT seg.list FROM seg LEFT JOIN campaigns ON (seg.id IN (campaigns.segs)) WHERE campaigns.app = '.get_app_info('app').' AND campaigns.segs!="" AND campaigns.to_send = campaigns.recipients'; $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) > 0) { while($row = mysqli_fetch_array($r)) { $seg_list = $row['list']; $lists .= $seg_list!='' ? $seg_list.',' : ''; } } $lists = substr($lists, 0, -1); $lists_explode = explode(',', $lists); $lists_array = array_unique($lists_explode); $lists_implode = implode(',', $lists_array); //Load lists $total_lists = 0; $q = ' SELECT lists.id, lists.name FROM lists LEFT JOIN campaigns ON (lists.id IN ('.$lists_implode.')) WHERE campaigns.app = '.get_app_info('app').' AND campaigns.to_send = campaigns.recipients GROUP BY lists.id ORDER BY name ASC'; $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) != 0): $total_lists = mysqli_num_rows($r); ?> <th><?php echo _('List');?></th> <th><?php echo _('Status');?></th> <th><?php echo _('Did not open');?></th> <th><?php echo _('Did not click');?></th> <?php endif;?> </tr> </thead> <tbody> <?php $limit = 10; $total_pages = ceil($total_lists/$limit); $offset = $p!=null ? ($p-1) * $limit : 0; $q = 'SELECT lists.id, lists.name FROM lists LEFT JOIN campaigns ON (lists.id IN ('.$lists_implode.')) WHERE campaigns.app = '.get_app_info('app').' AND campaigns.to_send = campaigns.recipients GROUP BY lists.id ORDER BY name ASC LIMIT '.$offset.','.$limit; $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) > 0) { while($row = mysqli_fetch_array($r)) { $lid = $row['id']; $list_name = $row['name']; $subscriber_count_notopened = '<span id="count-'.$lid.'-notopened"><img src="'.get_app_info('path').'/img/'.$loader.'" style="width:16px;"/></span>'; $subscriber_count_notclicked = '<span id="count-'.$lid.'-notclicked"><img src="'.get_app_info('path').'/img/'.$loader.'" style="width:16px;"/></span>'; echo ' <tr id="uc-'.$lid.'"> <td><a href="'.get_app_info('path').'/subscribers?i='.get_app_info('app').'&l='.$lid.'">'.$list_name.' <span class="badge badge-success" id="total-'.$lid.'">'.get_totals('a', '', $lid).'</span></a></td> <td><span class="label">'._('Inactive').'</span></td> <td> '.$subscriber_count_notopened.' </td> <td> '.$subscriber_count_notclicked.' </td> <script type="text/javascript"> $(document).ready(function() { //Get no opens and clicks figures $.post("'.get_app_info('path').'/includes/subscribers/housekeeping-no-opens.php", { lid: '.$lid.', app: '.get_app_info('app').' }, function(data) { if(data) { $("#count-'.$lid.'-notopened").text(data); if(data!=0) { $("#count-'.$lid.'-notopened").after("<a href=\"javascript:void(0)\" title=\"'._('Remove subscribers who did not open any campaign ever sent to them?').'\" id=\"delete-btn-'.$lid.'-notopened\" class=\"delete-list\" style=\"margin-left:10px;\"><i class=\"icon icon-trash\"></i></a> "); $("#count-'.$lid.'-notopened").after("<a href=\"'.get_app_info('path').'/includes/subscribers/export-csv.php?i='.get_app_info('app').'&l='.$lid.'&inactive-not-opened\" title=\"'._('Export subscribers who did not open any campaign ever sent to them?').'\" id=\"export-btn-'.$lid.'-notopened\" class=\"delete-list\" style=\"margin-left:10px;\"><i class=\"icon icon-download-alt\"></i></a> "); //Delete no opens $("#delete-btn-'.$lid.'-notopened").click(function(e){ c = "'._('Confirm permanently remove subscribers?').'" if(confirm(c)) { $("#count-'.$lid.'-notopened").html("<img src=\''.get_app_info('path').'/img/'.$loader.'\' style=\'width:16px;\'/>"); e.preventDefault(); $.post("includes/subscribers/delete-inactive.php", { lid: '.$lid.', app: '.get_app_info('app').', action: "1"}, function(data) { if(!data) alert("'._('Sorry, unable to remove subscribers. Please try again later!').'"); else { data_array = data.split(":"); $("#count-'.$lid.'-notopened").html("0"); $("#total-'.$lid.'").html(data_array[0]); $("#count-'.$lid.'-notclicked").html(data_array[1]); $("#delete-btn-'.$lid.'-notopened").remove(); if(data_array[1]==0) $("#delete-btn-'.$lid.'-notclicked").remove(); } } ); } }); } } }); $.post("'.get_app_info('path').'/includes/subscribers/housekeeping-no-clicks.php", { lid: '.$lid.', app: '.get_app_info('app').' }, function(data) { if(data) { $("#count-'.$lid.'-notclicked").text(data); if(data!=0) { $("#count-'.$lid.'-notclicked").after("<a href=\"javascript:void(0)\" title=\"'._('Remove subscribers who did not click any links from any campaign ever sent to them?').'\" id=\"delete-btn-'.$lid.'-notclicked\" class=\"delete-list\" style=\"margin-left:10px;\"><i class=\"icon icon-trash\"></i></a> "); $("#count-'.$lid.'-notclicked").after("<a href=\"'.get_app_info('path').'/includes/subscribers/export-csv.php?i='.get_app_info('app').'&l='.$lid.'&inactive-not-clicked\" title=\"'._('Export subscribers who did not click any links from any campaign ever sent to them?').'\" id=\"export-btn-'.$lid.'-notclicked\" class=\"delete-list\" style=\"margin-left:10px;\"><i class=\"icon icon-download-alt\"></i></a> "); //Delete no clicks $("#delete-btn-'.$lid.'-notclicked").click(function(e){ c = "'._('Confirm permanently remove subscribers?').'" if(confirm(c)) { $("#count-'.$lid.'-notclicked").html("<img src=\''.get_app_info('path').'/img/'.$loader.'\' style=\'width:16px;\'/>"); e.preventDefault(); $.post("includes/subscribers/delete-inactive.php", { lid: '.$lid.', app: '.get_app_info('app').', action: "2"}, function(data) { if(!data) alert("'._('Sorry, unable to remove subscribers. Please try again later!').'"); else { data_array = data.split(":"); $("#count-'.$lid.'-notclicked").html("0"); $("#total-'.$lid.'").html(data_array[0]); $("#count-'.$lid.'-notopened").html(data_array[1]); $("#delete-btn-'.$lid.'-notclicked").remove(); if(data_array[1]==0) $("#delete-btn-'.$lid.'-notopened").remove(); } } ); } }); } } }); }); </script> </tr> '; } } else { echo ' <tr> <td colspan="5">'._('No housekeeping needed as no campaigns were sent to any of your available lists yet.').'</td> </tr> '; } ?> </tbody> </table> <?php pagination_housekeeping('inactive', $total_lists, $limit, get_app_info('app'));?> </div> </div> </div> </div> <?php include('includes/footer.php');?>