Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function page_login($username,$password) {
- $username1 = validate_username($username);
- $password1 = validate_password($password);
- if($username1 && $password1) {
- if($username == 'qwizie' && $password =='password') $error = 'Successful';
- else $error = 'not valid creditals';
- }elseif($username1 && !$password1) {
- $error = 'Error: We need a Password';
- }elseif(!$username1 && $password1) {
- $error = 'Error: We need a Username';
- }else{
- $error = 'no form submit';
- }
- $smarty = new Smarty;
- $smarty->assign('error',$error);
- $smarty->assign('title', SITE_NAME.' - Login');
- $smarty->assign('static_url', STATIC_URL);
- $smarty->assign('language', mylanguage('sv'));
- $smarty->display('login.tpl');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement