1<?php
2
3require_once dirname(__FILE__).'/accesscheck.php';
4
5$spb = '<li>';
6$spe = '</li>';
7
8echo '<ul style="list-style:none" class="navigation_list">';
9
10echo $spb.PageLink2('bouncerules', s('List Bounce Rules')).$spe;
11echo $spb.PageLink2('bounces', s('View Bounces')).$spe;
12echo $spb.PageLink2('msgbounces', s('View Bounces per campaign')).$spe;
13echo $spb.PageLink2('listbounces', s('View Bounces per list')).$spe;
14echo $spb.PageLink2('checkbouncerules', s('Check Current Bounce Rules')).$spe;
15
16echo $spb.PageLink2('processbounces', s('Process Bounces')).$spe;
17
18echo '</ul><br />';
19
20$numrules = Sql_Fetch_Row_Query(sprintf('select count(*) from %s', $GLOBALS['tables']['bounceregex']));
21if (!$numrules[0]) {
22    echo '<p class="information text-info"><big>'.s('You currently have no rules defined.      You can click "Generate Bounce Rules" in order to auto-generate rules from your existing bounces.      This will results in a lot of rules which you will need to review and activate.      It will however, not catch every single bounce, so it will be necessary to add new rules over      time when new bounces come in.').'</big></p>';
23} else {
24    echo '<p class="information text-warning"><big>'.s('You have already defined bounce rules in your system.      Be careful with generating new ones, because these may interfere with the ones that exist.').'</big></p>';
25}
26echo '<br /><p class="button">'.PageLink2('generatebouncerules', s('Generate Bounce Rules')).'</p>';
27