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(); }
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/'); } }
function logout() { session_destroy(); setcookie(md5(SERVER), "", time() - 3600, "/"); headers::url('/?logouted'); }