Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(!function_exists('username_check'))
- {
- function username_check($str='')
- {
- if(!VMH::$CI->ion_auth->username_check($str))
- {
- VMH::$CI->form_validation->set_message('username_check', 'Username Already Used or Invalid.');
- return FALSE;//return
- }
- else
- return true;
- }
- function email_check($str='')
- {
- if(!VMH::$CI->ion_auth->email_check($str))
- {
- VMH::$CI->form_validation->set_message('email_check', 'Email Already Used or Invalid.');
- return false;//return
- }
- else
- return true;
- }
- }
Add Comment
Please, Sign In to add comment