Ejemplo n.º 1
0
    $blacklist->process($words);
}
if (isset($_GET['page'])) {
    $db->admin_confirm();
    switch ($_GET['page']) {
        case 'add':
            echo "<div id='page-title' class='row'>";
            echo "<div class='col-xs-12 col-sm-6'>";
            $html->title("blacklist", "add words", "left");
            echo "</div>";
            echo "<div class='col-xs-12 col-md-6 text-right'>";
            $html->button("blacklist.php", "back", "default");
            $form->button("save", "md", "blacklist_form");
            echo "</div>";
            echo "</div>";
            $blacklist->form();
            break;
        case 'manage':
            echo "<div id='page-title' class='row'>";
            echo "<div class='col-xs-12 col-sm-6'>";
            $html->title("blacklist", "management", "left");
            echo "</div>";
            echo "<div class='col-xs-12 col-md-6 text-right'>";
            $html->button("blacklist.php", "back", "default");
            echo "</div>";
            echo "</div>";
            $blacklist->manage();
            break;
    }
} else {
    if (isset($_GET['d'])) {