protected function _unsubscribe() { $cid = Utils::pg("cid", 0); $category = new Category($cid); $category->removeSubscription($this->_session->_uid); header("Location: {$this->_ref}"); exit; }
function action_unsubscribe() { global $ref; $session = Session::singletone(); $cid = Utils::pg("cid", 0); $category = new Category($cid); $category->removeSubscription($session->_uid); header("Location: {$ref}"); exit; }