Guest User

Untitled

a guest
Jan 13th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <?php
  2. if(!function_exists('username_check'))
  3. {
  4. function username_check($str='')
  5. {
  6. if(!VMH::$CI->ion_auth->username_check($str))
  7. {
  8. VMH::$CI->form_validation->set_message('username_check', 'Username Already Used or Invalid.');
  9. return FALSE;//return
  10. }
  11. else
  12. return true;
  13. }
  14.  
  15. function email_check($str='')
  16. {
  17. if(!VMH::$CI->ion_auth->email_check($str))
  18. {
  19. VMH::$CI->form_validation->set_message('email_check', 'Email Already Used or Invalid.');
  20. return false;//return
  21. }
  22. else
  23. return true;
  24. }
  25. }
Add Comment
Please, Sign In to add comment