public function process()
 {
     $gb = mGuestBook::getInstance();
     $newMsgs = $gb->getSince(array("n", "nick", "email", "date", "msg", "admin_answer", "admin_answer_date"), Request::getVarAsInteger("lastN", "POST"));
     Response::setContent($this->_view->compose($newMsgs));
     return true;
 }
Ejemplo n.º 2
0
 public function process()
 {
     $params = array();
     $params["title"] = array(array("title" => "Kirillka-after-party!"));
     $gb = mGuestBook::getInstance();
     $params["guestBookSite"] = $gb->getPage(array("n", "nick", "email", "date", "msg", "admin_answer", "admin_answer_date"), 1);
     $c = $this->_view->compose($params);
     Response::setContent($c);
     return true;
 }
Ejemplo n.º 3
0
 public function process()
 {
     $params = array();
     $params["title"] = array(array("title" => "Привет!"));
     $party = mParty::getInstance();
     $params["characterList"] = $party->getCharacters();
     $params["guestList"] = $party->getGuests();
     $gb = mGuestBook::getInstance();
     $params["guestBookSite"] = $gb->getPage(array("n", "nick", "email", "date", "msg", "admin_answer", "admin_answer_date"), 1);
     $vote = mVote::getInstance();
     $params["voteList"] = $vote->getAll();
     $c = $this->_view->compose($params);
     Response::setContent($c);
     return true;
 }
Ejemplo n.º 4
0
 public function process()
 {
     /*$resp = reCaptcha::recaptcha_check_answer ( Request::getVar( "recaptcha_challenge_field", "POST" ),
     		Request::getVar( "recaptcha_response_field", "POST" ) );*/
     $gb = mGuestBook::getInstance();
     if ($gb->add()) {
         //$res = 0;
         $res = $gb->getPage(array("nick", "email", "date", "msg", "admin_answer", "admin_answer_date"), 1);
     } else {
         $_SESSION["gb.msg.add"] = $gb->getLastError();
         $res = -1;
     }
     Response::setContent($this->_view->compose($res));
     return true;
 }