Exemplo n.º 1
0
 protected function restruct()
 {
     $smarty = $this->getSmarty();
     $ret['title'] = '逆リンクの再生成';
     if (isset(Vars::$post['password'])) {
         if (md5(Vars::$post['password']) == ADMINPASS) {
             BackLink::getinstance()->refreshall();
             $ret['body'] = $smarty->fetch('restruct.tpl.htm');
         } else {
             $smarty->assign('error', true);
             $ret['body'] = $smarty->fetch('password.tpl.htm');
         }
     } else {
         $ret['body'] = $smarty->fetch('password.tpl.htm');
     }
     return $ret;
 }