Exemplo n.º 1
0
 private function onUnSubscribe($boardid)
 {
     if (false !== ($error = $this->sanitize($boardid))) {
         return $error;
     }
     $userid = GWF_Session::getUserID();
     if (false === GWF_ForumSubscrBoard::unsubscribe($userid, $boardid)) {
         return GWF_HTML::err('ERR_DATABASE', array(__FILE__, __LINE__));
     }
     $href = htmlspecialchars($this->module->getMethodURL('Subscriptions'));
     return $this->module->message('msg_unsubscrboard', array($href));
 }
Exemplo n.º 2
0
 public function canUnSubscribe()
 {
     return GWF_ForumSubscrBoard::hasSubscribed(GWF_Session::getUserID(), $this->getID());
 }