ak47suk1

Untitled

May 26th, 2011
167
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.     public function email_check($email) {
  3.         $this->load->model('eloki_model');
  4.         $check = $this->eloki_model->email_check($email);
  5.  
  6.         if ($check) {
  7.             $this->form_validation->set_message('email_check', 'The email "' . $email . '" already exists.');
  8.             return false;
  9.         } else {
  10.             return true;
  11.         }
  12.     }
  13.  
  14.     public function username_check($username) {
  15.         $this->load->model('eloki_model');
  16.         $check = $this->eloki_model->username_check($username);
  17.  
  18.         if ($check) {
  19.             $this->form_validation->set_message('username_check', 'The username "' . $username . '" already exists.');
  20.             return false;
  21.         } else {
  22.             return true;
  23.         }
  24.     }
RAW Paste Data