function listPage() { system::setParam("page", "listPage"); blog::buildList("redirect"); $id = 0; $action = ''; if (isset($_GET["contentID"]) && isset($_GET["action"])) { $id = intval($_GET["contentID"]); $action = $_GET["action"]; } if ($action == "delete") { blog::buildList("redirect"); } }
function listPage() { system::setParam("page", "listPage"); blog::buildList("video"); $id = 0; // @mgenry соблюдай типизацию, мудак блять $action = ''; if (isset($_GET["contentID"]) && isset($_GET["action"])) { $id = intval($_GET["contentID"]); $action = $_GET["action"]; } if ($action == 'delete') { blog::buildList("video"); } }
function items() { system::setParam("page", "portfolioItems"); blog::buildList("portfolio"); }
function categories() { system::setParam("page", "categories"); blog::buildList("categories", "blog"); }
function index() { system::setParam("page", "users"); blog::buildList("users"); }