| @version 0.1.2 [0.1.0] - Alpha | | @website https://github.com/pytesNET/snicker | @license X11 / MIT License | @copyright Copyright © 2019 SamBrishes, pytesNET */ if(!defined("BLUDIT")){ die("Go directly to Jail. Do not pass Go. Do not collect 200 Cookies!"); } global $L, $Snicker; // Pending Counter $count = count($Snicker->getIndex("pending")); $count = ($count > 99)? "99+": $count; $spam = count($Snicker->getIndex("spam")); // Tab Strings $strings = array( "pending" => sn__("Pending"), "approved" => sn__("Approved"), "rejected" => sn__("Rejected"), "spam" => sn__("Spam"), "search" => sn__("Search Comments"), "single" => sn__("Single Comment"), "uuid" => sn__("Page Comments"), "user" => sn__("User Comments") ); // Current Tab $view = "index"; if(isset($_GET["view"]) && in_array($_GET["view"], array("search", "single", "uuid", "user"))){ $view = $current = $_GET["view"]; $tabs = array($view); } else { $current = isset($_GET["tab"])? $_GET["tab"]: "pending"; $tabs = array("pending", "approved", "rejected", "spam"); } ?>

Snicker