Example #1
0
 function replace()
 {
     $page_id = params::get('page_id');
     db::table('pages');
     db::limit(1);
     db::where('page_id', $page_id);
     $page_folder = db::get('page_folder');
     headers::url($page_folder);
     //self::loadPage();
 }
Example #2
0
 function sendFeedback()
 {
     $mail_content = params::get('message');
     $email = params::get('email');
     if (!empty($mail_content) && !empty($email)) {
         mail::from($email);
         mail::html($mail_content);
         mail::subject(settings::get('feedback', 'feedback_subject'));
         mail::send(settings::get('feedback', 'feedback_email'));
         headers::url('/contacts/success/');
     }
 }
Example #3
0
 function logout()
 {
     session_destroy();
     setcookie(md5(SERVER), "", time() - 3600, "/");
     headers::url('/?logouted');
 }