function request_check() { parent::request_check(); if (isset($_POST['action']) && $_POST['action'] == 'save-custom-code') { if (isset($_POST['file']) && $_POST['file'] == 'global_announcement') { require_once TEMPLATEPATH . '/app/customcode.php'; writeto($_POST['code'], "global_announcement.php"); } } }
function request_check() { parent::request_check(); require_once TEMPLATEPATH . '/app/customcode.php'; if (isset($_POST['save-custom-code'])) { writeto($_POST['code'], 'homesidebar.php'); } elseif (isset($_POST['clear-custom-code'])) { unlink(CUSTOMPATH . '/homesidebar.php'); } }
function request_check() { parent::request_check(); if (isset($_POST['action']) && $_POST['action'] == 'reset') { check_admin_referer('wicketpixie-settings'); foreach ($GLOBALS['theme_options'] as $value) { if (get_option($this->{$value}['id'])) { delete_option($this->{$value}['id']); } } wp_redirect($_SERVER['PHP_SELF'] . "?page=" . $this->filename . "&reset=true"); } }