// All rights reserved. This script is part of PHPWCMS. The PHPWCMS web content management system is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html A copy is found in the textfile GPL.txt and important notices to the license from the author is found in LICENSE.txt distributed with these scripts. This script is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. This copyright notice MUST APPEAR in all copies of the script! *************************************************************************************/ // ---------------------------------------------------------------- // obligate check for phpwcms constants if (!defined('PHPWCMS_ROOT')) { die("You Cannot Access This Script Directly, Have a Nice Day."); } // ---------------------------------------------------------------- $_userInfo = array(); // delete all duplicate addresses if(isset($_GET['duplicate']) && $_GET['duplicate'] == 'remove') { $data = _dbQuery('SELECT COUNT(*) AS address_count, address_email FROM '.DB_PREPEND.'phpwcms_address GROUP BY address_email'); if($data) { foreach($data as $value) { // check for multiple entries if($value['address_count'] > 1) { $sql = 'SELECT address_id FROM '.DB_PREPEND.'phpwcms_address '; $sql .= "WHERE address_email='".aporeplace($value['address_email'])."' "; $sql .= 'ORDER BY address_verified DESC, address_name DESC LIMIT 1'; $dataID = _dbQuery($sql); if(!empty($dataID[0]['address_id'])) { $sql = 'DELETE FROM '.DB_PREPEND.'phpwcms_address '; $sql .= "WHERE address_email='".aporeplace($value['address_email'])."' "; $sql .= "AND address_id != ".intval($dataID[0]['address_id']); @_dbQuery($sql, 'DELETE'); } } } } headerRedirect(PHPWCMS_URL.'phpwcms.php?do=messages&p=4'); } // delete susbcriber if(isset($_GET["del"]) && isset($_GET["s"]) && $_GET["del"] == $_GET["s"]) { _dbQuery("DELETE FROM ".DB_PREPEND."phpwcms_address WHERE address_id=".intval($_GET["del"])." LIMIT 1", 'DELETE'); } // change verification if(isset($_GET["verify"]) && isset($_GET["s"])) { $sql = "UPDATE ".DB_PREPEND."phpwcms_address SET address_verified="; $sql .= intval($_GET["verify"]) ? 1 : 0; $sql .= " WHERE address_id=".intval($_GET["s"])." LIMIT 1"; _dbQuery($sql, 'UPDATE'); } echo '
'.$BL['be_subnav_msg_subscribers'].'
'; ?> $_userInfo['pages_total']) { $_SESSION['subscriber_page'] = empty($_userInfo['pages_total']) ? 1 : $_userInfo['pages_total']; } ?>
> /> > 1) { echo ''; echo ''; echo ''; echo ''; echo ''; } else { echo ''; } ?>
/> /> '; if($_SESSION['subscriber_page'] > 1) { echo ''; echo ''; } else { echo ''; } echo '/'.$_userInfo['pages_total'].' '; if($_SESSION['subscriber_page'] < $_userInfo['pages_total']) { echo ''; echo ''; } else { echo ''; } echo ' | 
10 25 50 100 250
'. html_specialchars($value['subscription_name']). ' '; } if($_userInfo['select_subscr']) { echo '
'.LF; echo ''.LF; echo $_userInfo['select_subscr']; echo '
'.LF; //echo ''; echo '
'; } } } ?>
\n'."\n"; echo '\n"; echo '\n"; echo '\n\n"; $row_count++; } if($row_count) { echo ''; } ?>
"; echo 'Recipient '.$row["address_email"]." '.html_specialchars($row["address_name"])."'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo "