Example #1
0
        $table .= "\n\t\t<tr>\n\t\t <td>MailScanner: Configuration Number</td>\n\t\t <td><font color='red'>Fail</font></td>\n\t\t</tr>\n\t\t";
        $tablerows++;
    }
    // add changed_ruleset_value
    if (add_ruleset("ruleset_changed", "true", "confserialnumber", $mysqli)) {
        // success, update table
        $table .= "\n\t\t<tr>\n\t\t <td>MailScanner: Configuration Change Check</td>\n\t\t <td><font color='green'>Success</font></td>\n\t\t</tr>\n\t\t";
        $tablerows++;
    } else {
        // failed!
        $table .= "\n\t\t<tr>\n\t\t <td>MailScanner: Configuration Change Check</td>\n\t\t <td><font color='red'>Fail</font></td>\n\t\t</tr>\n\t\t";
        $tablerows++;
    }
    foreach ($rulesets as $option => $valuename) {
        $value = $valuename . ".customize";
        if (add_ruleset($option, $value, "default", $mysqli)) {
            // create table row for each result
            $table .= "\n\t\t\t<tr>\n\t\t\t <td>Ruleset: " . $option . "</td>\n\t\t\t <td><font color='green'>Success</font></td>\n\t\t\t</tr>\n\t\t\t";
            $tablerows++;
        } else {
            // create table row for each result
            $table .= "\n\t\t\t<tr>\n\t\t\t <td>Ruleset: " . $option . "</td>\n\t\t\t <td><font color='red'>Fail</font></td>\n\t\t\t</tr>\n\t\t\t";
            $tablerows++;
        }
    }
    // close table
    $table .= "\n\t</table>\n\t<!-- End viewtable Division -->\n\t</div>";
    if ($tablerows > 0) {
        echo "\n\t\t<!-- Begin Content Division -->\n\t\t<div id='content'>\n\t\t<h2>Setup Process</h2>\n\t\t" . $table . "\n\t\t<!-- End Content Division -->\n\t\t</div>\n\t\t";
    }
}
Example #2
0
     // Delete Rule Set
     check_admin_authorization();
     delete_ruleset_rules();
     header("Location: index.php?editor=server&action=27");
     exit;
 case 30:
     // Add Ruleset
     check_admin_authorization();
     $breadcrumbs .= " >> " . "<a href='index.php?editor=server&action=16'>" . "Rules</a> >> Add Ruleset";
     $body = new Template("templates/server/ruleset.add.tmpl.php");
     $body->set('suggestruleid', suggest_ruleset_id());
     break;
 case 31:
     // Add Ruleset
     check_admin_authorization();
     add_ruleset();
     header("Location: index.php?editor=server&action=27");
     exit;
 case 32:
     // View Zones
     check_admin_authorization();
     $breadcrumbs .= " >> Zone Launcher Setup";
     $body = new Template("templates/server/zones.tmpl.php");
     $zones = get_zones();
     if ($zones) {
         foreach ($zones as $key => $value) {
             $body->set($key, $value);
         }
     }
     $launchers = get_launchers();
     if ($launchers) {