コード例 #1
0
 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();
     }
 }
コード例 #2
0
 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();
     }
 }