<button class="btn">' . $LANG['banned_add_button'] . '</button> </form> </div>'; break; /** EDIT ENTRY */ /** EDIT ENTRY */ case 'edit': $csrf = \site\utils::str_random(10); echo '<div class="title"> <h2>' . $LANG['banned_edit_title'] . '</h2> <div style="float:right; margin: 0 2px 0 0;">'; if (isset($_GET['id']) && ($banned_exists = admin_query::banned_exists($_GET['id']))) { echo '<div class="options"> <a href="#" class="btn">' . $LANG['options'] . '</a> <ul> <li><a href="?route=banned.php&action=delete&id=' . $_GET['id'] . '&token=' . $csrf . '" data-delete-msg="' . $LANG['delete_msg'] . '">' . $LANG['delete'] . '</a></li> </ul> </div>'; } echo '<a href="?route=banned.php&action=list" class="btn">' . $LANG['banned_view'] . '</a> </div>'; if (!empty($LANG['banned_edit_subtitle'])) { echo '<span>' . $LANG['banned_edit_subtitle'] . '</span>'; } echo '</div>'; if ($banned_exists) { if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['csrf']) && check_csrf($_POST['csrf'], 'banned_csrf')) {