public function execute() { $task = WDWLibrary::get('task'); $id = WDWLibrary::get('current_id', 0); $message = WDWLibrary::get('message'); echo WDWLibrary::message_id($message); if (method_exists($this, $task)) { $this->{$task}($id); } else { $this->display(); } }
public function execute() { $task = WDWLibrary::get('task'); $id = WDWLibrary::get('current_id', 0); $message = WDWLibrary::get('message'); if ($task != '') { if (!WDWLibrary::verify_nonce('themes_bwg')) { die('Sorry, your nonce did not verify.'); } } echo WDWLibrary::message_id($message); if (method_exists($this, $task)) { $this->{$task}($id); } else { $this->display(); } }