Example #1
0
</form>';
        echo '</div>';
        break;
        /** EDIT SUBSCRIBER */
    /** EDIT SUBSCRIBER */
    case 'editsub':
        if (!ab_to(array('subscribers' => 'edit'))) {
            die;
        }
        $csrf = \site\utils::str_random(10);
        echo '<div class="title">

<h2>' . $LANG['subscribers_edit_title'] . '</h2>

<div style="float:right; margin: 0 2px 0 0;">';
        if (isset($_GET['id']) && ($subscriber_exists = admin_query::subscriber_exists($_GET['id']))) {
            $info = admin_query::subscriber_infos($_GET['id']);
            echo '<div class="options">
<a href="#" class="btn">' . $LANG['options'] . '</a>
<ul>
<li><a href="?route=users.php&amp;action=subscribers&amp;type=delete&amp;id=' . $_GET['id'] . '&amp;token=' . $csrf . '" data-delete-msg="' . $LANG['delete_msg'] . '">' . $LANG['delete'] . '</a></li>
</ul>
</div>';
        }
        echo '<a href="?route=users.php&amp;action=subscribers" class="btn">' . $LANG['subscribers_view'] . '</a>
</div>';
        if (!empty($LANG['subscribers_edit_subtitle'])) {
            echo '<span>' . $LANG['subscribers_edit_subtitle'] . '</span>';
        }
        echo '</div>';
        if ($subscriber_exists) {