Exemplo n.º 1
0
 function logOutAdmin()
 {
     parent::generateLog('successful logout', 'attempts', '200');
     Session::unsetSession('logged');
     Session::unsetSession('adminUser');
     Session::destroySession();
     FlashMessages::redirectFlashMessage('administration/index', 0);
 }
Exemplo n.º 2
0
 function sendFeedbackComment($sqlDataArray = array())
 {
     $this->dataArray = array('comment_name' => FormElements::getPostString('sendFeedbackName', true), 'comment_email' => FormElements::getPostString('sendFeedbackEmail', true), 'comment_content' => FormElements::getPostString('sendFeedbackContent', true), 'comment_date' => date('Y-m-d'));
     if (!in_array('errorRequiredField', $this->dataArray)) {
         $addComment = $this->db->insert('comment', $this->dataArray);
         if ($addComment > 0) {
             $this->dataArray = array('pirna_code' => $sqlDataArray['pirna_code'], 'comment_id' => $addComment);
             $addRel = $this->db->insert('rel_comment_pirna', $this->dataArray);
             echo 'success/Your comment will be checked soon.';
             parent::generateLog('sent a comment to pirna: ' . $sqlDataArray['pirna_code'], 'attempts', '220');
         } else {
             echo 'error/Please Check the Information Sent.';
             parent::generateLog('error sending a comment to pirna: ' . $sqlDataArray['pirna_code'], 'attempts', '221');
         }
     } else {
         echo 'error/Please Check the Information Sent.';
         parent::generateLog('error sending a comment to pirna: ' . $sqlDataArray['pirna_code'], 'attempts', '221');
     }
 }