OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
sendy
/
includes
/
subscribers
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/18/2021 10:11:21 AM
rwxr-xr-x
📄
custom-fields.php
2.13 KB
11/18/2021 09:43:10 AM
rw-r--r--
📄
delete-blocked-domain.php
500 bytes
11/18/2021 09:43:09 AM
rw-r--r--
📄
delete-inactive.php
1.53 KB
11/18/2021 09:43:09 AM
rw-r--r--
📄
delete-suppressed-email.php
496 bytes
11/18/2021 09:43:09 AM
rw-r--r--
📄
delete-unconfirmed.php
2.17 KB
11/18/2021 09:43:09 AM
rw-r--r--
📄
delete.php
1.38 KB
11/18/2021 09:43:10 AM
rw-r--r--
📄
edit.php
4.93 KB
11/18/2021 09:43:10 AM
rw-r--r--
📄
export-blocked-domains.php
1.75 KB
11/18/2021 09:43:09 AM
rw-r--r--
📄
export-csv.php
7.22 KB
11/18/2021 09:43:09 AM
rw-r--r--
📄
export-suppression-list.php
1.75 KB
11/18/2021 09:43:09 AM
rw-r--r--
📄
housekeeping-no-clicks.php
407 bytes
11/18/2021 09:43:09 AM
rw-r--r--
📄
housekeeping-no-opens.php
406 bytes
11/18/2021 09:43:09 AM
rw-r--r--
📄
housekeeping.php
12.14 KB
11/18/2021 09:43:09 AM
rw-r--r--
📄
import-add.php
1.06 KB
11/18/2021 09:43:10 AM
rw-r--r--
📄
import-blocked-domain-list.php
2.91 KB
11/18/2021 09:43:09 AM
rw-r--r--
📄
import-blocked-domain-list2.php
1.91 KB
11/18/2021 09:43:09 AM
rw-r--r--
📄
import-delete.php
1.98 KB
11/18/2021 09:43:09 AM
rw-r--r--
📄
import-suppression-list.php
2.88 KB
11/18/2021 09:43:10 AM
rw-r--r--
📄
import-suppression-list2.php
1.89 KB
11/18/2021 09:43:09 AM
rw-r--r--
📄
import-unsubscribe.php
2.01 KB
11/18/2021 09:43:10 AM
rw-r--r--
📄
import-update.php
13.07 KB
11/18/2021 09:43:10 AM
rw-r--r--
📄
line-delete.php
1.02 KB
11/18/2021 09:43:09 AM
rw-r--r--
📄
line-unsubscribe.php
1.04 KB
11/18/2021 09:43:10 AM
rw-r--r--
📄
line-update.php
5.34 KB
11/18/2021 09:43:09 AM
rw-r--r--
📄
main.php
8.13 KB
11/18/2021 09:43:09 AM
rw-r--r--
📄
sample-csv.php
1.2 KB
11/18/2021 09:43:10 AM
rw-r--r--
📄
save-gdpr.php
1.15 KB
11/18/2021 09:43:09 AM
rw-r--r--
📄
subscribe-form.php
4.09 KB
11/18/2021 09:43:09 AM
rw-r--r--
📄
subscriber-info.php
17.55 KB
11/18/2021 09:43:10 AM
rw-r--r--
📄
unsubscribe.php
881 bytes
11/18/2021 09:43:10 AM
rw-r--r--
Editing: main.php
Close
<?php //------------------------------------------------------// // FUNCTIONS // //------------------------------------------------------// //------------------------------------------------------// function get_app_data($val) //------------------------------------------------------// { global $mysqli; $q = 'SELECT '.$val.' FROM apps WHERE id = "'.get_app_info('app').'" AND userID = '.get_app_info('main_userID'); $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) > 0) { while($row = mysqli_fetch_array($r)) { return $row[$val]; } } } //------------------------------------------------------// function get_list_data($val) //------------------------------------------------------// { global $mysqli; $q = 'SELECT '.$val.' FROM lists WHERE id = '.mysqli_real_escape_string($mysqli, (int)$_GET['l']).' AND userID = '.get_app_info('main_userID'); $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) > 0) { while($row = mysqli_fetch_array($r)) { return $row[$val]; } } } //------------------------------------------------------// function get_list_name($val) //------------------------------------------------------// { global $mysqli; $q = 'SELECT name FROM lists WHERE id = '.$val.' AND userID = '.get_app_info('main_userID'); $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) > 0) { while($row = mysqli_fetch_array($r)) { return $row['name']; } } } //------------------------------------------------------// function get_seg_data($val, $sid) //------------------------------------------------------// { global $mysqli; $q = 'SELECT '.$val.' FROM seg WHERE id = '.$sid; $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) > 0) { while($row = mysqli_fetch_array($r)) { return $row[$val]; } } } //------------------------------------------------------// function get_totals_in_seg($val) //------------------------------------------------------// { global $mysqli; $q2 = 'SELECT COUNT(*) AS subscriber_count FROM subscribers_seg WHERE seg_id = '.$val; $r2 = mysqli_query($mysqli, $q2); if ($r2 && mysqli_num_rows($r2) > 0) while($row = mysqli_fetch_array($r2)) return number_format($row['subscriber_count']); } //------------------------------------------------------// function totals($list) //------------------------------------------------------// { global $mysqli; global $s; global $c; global $p; global $a; global $u; global $b; global $cp; if($s!='') $s_more = 'AND (name LIKE "%'.$s.'%" OR email LIKE "%'.$s.'%")'; else $s_more = ''; $more = ''; if($a!='') $more = 'AND confirmed = 1 AND unsubscribed = 0 AND bounced = 0 AND complaint = 0'; else if($c!='') $more = 'AND confirmed = '.$c; else if($u!='') $more = 'AND unsubscribed = '.$u.' AND bounced = 0'; if($b!='') $more = 'AND bounced = '.$b; if($cp!='') $more = 'AND complaint = '.$cp; $q = 'SELECT COUNT(*) FROM subscribers WHERE list = '.$list.' '.$s_more.' '.$more; $r = mysqli_query($mysqli, $q); if ($r) while($row = mysqli_fetch_array($r)) return $row['COUNT(*)']; } //------------------------------------------------------// function get_totals($val1, $val2, $val3='') //------------------------------------------------------// { global $mysqli; $lid = $val3=='' ? mysqli_real_escape_string($mysqli, (int)$_GET['l']) : $val3; if($val1=='' && $val2=='') $s_more = ''; else if($val1=='a') $s_more = 'AND unsubscribed = 0 AND bounced = 0 AND complaint = 0 AND confirmed = 1'; else if($val1=='unsubscribed') $s_more = 'AND '.$val1.' = '.$val2.' AND bounced = 0'; else if($val1=='gdpr') $s_more = 'AND unsubscribed = 0 AND bounced = 0 AND complaint = 0 AND confirmed = 1 AND '.$val1.' = '.$val2; else if($val1=='confirmed') $s_more = 'AND bounced = 0 AND complaint = 0 AND '.$val1.' = '.$val2; else $s_more = 'AND '.$val1.' = '.$val2; $q = 'SELECT COUNT(*) FROM subscribers use index (s_list) WHERE list = '.$lid.' '.$s_more; $r = mysqli_query($mysqli, $q); if ($r) while($row = mysqli_fetch_array($r)) return number_format($row['COUNT(*)']); } //------------------------------------------------------// function get_lists_data($val, $lid) //------------------------------------------------------// { global $mysqli; $q = 'SELECT '.$val.' FROM lists WHERE app = "'.get_app_info('app').'" AND id = '.$lid; $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) > 0) { while($row = mysqli_fetch_array($r)) { return $row[$val]; } } } //------------------------------------------------------// function get_autoresponder_count() //------------------------------------------------------// { global $mysqli; $q = 'SELECT COUNT(*) FROM ares WHERE list = '.mysqli_real_escape_string($mysqli, (int)$_GET['l']); $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) > 0) { while($row = mysqli_fetch_array($r)) { return $row['COUNT(*)']; } } } //------------------------------------------------------// function get_segments_count() //------------------------------------------------------// { global $mysqli; $q = 'SELECT COUNT(*) FROM seg WHERE list = '.mysqli_real_escape_string($mysqli, (int)$_GET['l']); $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) > 0) { while($row = mysqli_fetch_array($r)) { return $row['COUNT(*)']; } } } //------------------------------------------------------// function get_custom_fields_count() //------------------------------------------------------// { global $mysqli; $q = 'SELECT custom_fields FROM lists WHERE app = "'.get_app_info('app').'" AND id = '.mysqli_real_escape_string($mysqli, (int)$_GET['l']); $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) > 0) { while($row = mysqli_fetch_array($r)) { $custom_fields = $row['custom_fields']; $custom_fields_array = explode('%s%', $custom_fields); if($custom_fields == '') return 0; else return count($custom_fields_array); } } } //------------------------------------------------------// function pagination($limit) //------------------------------------------------------// { global $s; global $c; global $p; global $a; global $u; global $b; global $cp; global $g; $curpage = $p; $next_page_num = 0; $prev_page_num = 0; $total_subs = totals($_GET['l']); $total_pages = @ceil($total_subs/$limit); if($s!='') $s_more = '&s='.$s; else $s_more = ''; $more = ''; if($a!='') $more = '&a='.$a; else if($c!='') $more = '&c='.$c; else if($u!='') $more = '&u='.$u; else if($b!='') $more = '&b='.$b; else if($cp!='') $more = '&cp='.$cp; else if($g!='') $more = '&g='.$g; if($total_subs > $limit) { if($curpage>=2) { $next_page_num = $curpage+1; $prev_page_num = $curpage-1; } else { $next_page_num = 2; } echo '<div class="btn-group" id="pagination">'; //Prev btn if($curpage>=2) if($prev_page_num==1) echo '<button class="btn" onclick="window.location=\''.get_app_info('path').'/subscribers?i='.get_app_info('app').'&l='.$_GET['l'].$s_more.$more.'\'"><span class="icon icon icon-arrow-left"></span></button>'; else echo '<button class="btn" onclick="window.location=\''.get_app_info('path').'/subscribers?i='.get_app_info('app').'&l='.$_GET['l'].$s_more.$more.'&p='.$prev_page_num.'\'"><span class="icon icon icon-arrow-left"></span></button>'; else echo '<button class="btn disabled"><span class="icon icon icon-arrow-left"></span></button>'; //Next btn if($curpage==$total_pages) echo '<button class="btn disabled"><span class="icon icon icon-arrow-right"></span></button>'; else echo '<button class="btn" onclick="window.location=\''.get_app_info('path').'/subscribers?i='.get_app_info('app').'&l='.$_GET['l'].$s_more.$more.'&p='.$next_page_num.'\'"><span class="icon icon icon-arrow-right"></span></button>'; echo '</div>'; } } ?>