/** * Action Plugin Main Function */ function action() { set_time_limit(0); global $vars; if (sonots::is_admin($vars['pass'], $this->conf['use_session'], $this->conf['use_authlog']) && $vars['pcmd'] == 'clean') { $html = $this->clean_cache(); } else { $basehref = get_script_uri() . '?cmd=contentsx&pcmd=clean'; $html = sonots::display_password_form($basehref); } return array('msg' => 'Clean Contentsx Caches', 'body' => $html); }
/** * Action Plugin Main Funtion */ function action() { global $vars; if (sonots::is_admin($vars['pass'], $this->conf['use_session'], $this->conf['use_authlog'])) { $body = $this->clean_cache(); } else { $action = get_script_uri() . '?cmd=' . $this->plugin . '&pcmd=clean'; $body = sonots::display_password_form($action); } return array('msg' => 'Clean Tag Caches', 'body' => $body); }