Exemple #1
0
        } else {
            $login = login($username, $password);
            if ($login == false) {
                $errors[] = 'Either the username or the password entered is wrong.';
            } else {
                $_SESSION['user_id'] = $login;
                header('Location:home.php');
                exit;
            }
        }
    }
} else {
    $errors[] = 'Please enter your username and password';
}
if (empty($errors) === false) {
    $arr = output_errors($errors);
    echo "<br/>";
    echo "<font color=#fed136>" . $arr . "</font>";
}
?>
</p>
		<form action=" " method="post" enctype="multipart/form-data">
	

               <input type="text" name="username" placeholder="Username" >
      
         
               <input type="password" name="password" placeholder="Password" >
       
            <input type="submit" class="btn btn-success" value="Login" >
          </form>
$uname = $_REQUEST['uname'];
$pass = $_REQUEST['pass'];
$hid = $_REQUEST['hid'];
$pass = md5($pass);
if (!empty($_POST)) {
    if (empty($uname) || empty($pass)) {
        $errors[] = 'You need to enter a user name and a password!<br />';
    } else {
        if (!user_exists($uname)) {
            $errors[] = 'Sorry user not found!<br />';
        } else {
            if (!user_active($uname)) {
                $errors[] = 'Have you activated your Account?<br />Account Not Active!';
            } else {
                $login = login($uname, $pass);
                if (!$login) {
                    $errors[] = 'That username/password combination is incorrect<br />';
                } else {
                    $_SESSION['serial'] = $login;
                    header("Location: index.php");
                    exit;
                }
            }
        }
    }
    echo "<div class='user_entry'>";
    $errors = output_errors($errors);
    echo "Could not log in because {$errors}";
    echo "</div>";
}
include 'includes/overall/overallfoot.php';
Exemple #3
0
?>
" placeholder="San Francisco, CA">
					    </label>
					    <label for="description"><h5>Description <span class="required">*</span></h5>
					    	<textarea name="description" rows="8"><?php 
echo escape($user->data()->description);
?>
</textarea>
					    </label>
					    <input type="hidden" name="token" value="<?php 
echo Token::generate();
?>
">
					    <input type="submit" class="button" value="Submit">
					    <a class="button alert" href="dashboard.php">Back</a>
					</form>
					<?php 
if (isset($validation) && !$validation->passed() && !empty($validation->errors())) {
    output_errors($validation->errors());
}
?>
				</div>
			</div>
		</div>
	</div>

<?php 
include 'includes/footer.php';
?>

?>

<?php 
/*if (isset($_GET['success']) && empty($_GET['success'])) {
	echo nl2br("You\'ve been registered successfully!\n\nAn activation link has been sent to your registered e-mail.");
	echo "<script type='text/javascript'>alert('You\'ve been registered successfully!\n\nAn activation link has been sent to your registered e-mail.');</script>";
} else */
if (empty($_POST) === false && empty($errors) === true) {
    $register_data = array('username' => $_POST['username'], 'password' => $_POST['password'], 'name' => $_POST['name'], 'mobile' => $_POST['mobile'], 'email' => $_POST['email']);
    register_user($register_data);
    header('Location: login.php');
    exit;
} else {
    if (empty($errors) === false) {
        /*echo output_errors($errors);*/
        $error_all = output_errors($errors);
        echo "<script type='text/javascript'>alert('{$error_all}');</script>";
    }
}
?>

<!-- <form action="" method="post">
	<ul>
		<li>
			Username*:<br>
			<input type="text" name="username">
		</li>
		<li>
			Password*:<br>
			<input type="password" name="password">
		</li>
Exemple #5
0
                $errors['login'] = "******";
            }
        }
    }
} else {
    redirect_to("signup.php");
}
require_once '../includes/layouts/header_default.php';
?>

<div class="container">
    <h1>Sign Up</h1>
    <?php 
if (isset($errors) && !empty($errors)) {
    echo "<div class=\"alert alert-danger\">\n              <button class=\"close fui-cross\" data-dismiss=\"alert\"></button>\n              <h4>Oops!</h4>";
    output_errors();
    echo "</div>";
    clear_errors();
}
?>
    <div class="container text-center">
        <div class="address-headline"><h4>Enter your address</h4></div>
        <form class="address-form form-horizontal" role="form" action="address.php" method="post">
            <div class="form-group form-group-hg">
                <div class="col-sm-8 col-sm-offset-2">
                    <input type="text" class="form-control" name="addresslineone"
                        <?php 
echo "value='" . repeat_input_POST("addresslineone") . "'";
?>
                           id="addresslineone" placeholder="Address Line 1">
                </div>
Exemple #6
0
            }
        } else {
            $notice[] = 'Please fill all required details';
        }
    }
    ?>
		<div id="sysadmin">
			<?php 
    if (empty($_POST) === false) {
        ?>
										<center>
										    <div>
										        <h4>
										        	<span  class="label label-danger">
														<?php 
        output_errors($notice);
        ?>
										            </span>
										        </h4>
										    </div>
										</center>
 		<?php 
    }
    ?>
			
			<h4><i>Personal Details</i></h4><br>
			<form  action="scheduler.php?ntfy=sched" method="POST">
				<div class="form-group" id="innerModule">
					<label for="createEmail">Email</label>
					<input type="email" class="form-control" id="createEmail" placeholder="Email" name="email">
				</div>
        if (empty($_POST['captcha_results']) === true) {
            $errors[] = 'Please enter captcha.';
        } else {
            if ($_POST['captcha_results'] != $_POST['num1'] + $_POST['num2']) {
                $errors[] = "Incorrect captcha.";
            }
        }
    }
    if (empty($_POST) === false && empty($errors) === true) {
        contact_me($_POST['contact_subject'], $_POST['body']);
        // header('Location: recom.php?success');
        // exit();
        echo "<div id='contact_errors'>Your message has been successfully sent.</div>";
    } else {
        if (empty($errors) === false) {
            echo "<div id='contact_errors'>" . output_errors($errors) . "</div>";
        }
    }
    ?>
					<h1 id="contact">Contact me</h1>
					<p>Got any suggestions for improving the website? Have you spotted a bug that you want to report? Do you have a business inquiry?<br/> Great! Fill in the below form and I'll contact you as soon as I can !</p>
					<form action="" method="post" id="contact_form">
						<input type="text" name="contact_name" placeholder="name... *" id="name" maxlength="30">
						<input type="text" name="email" placeholder="email... *" id="email" maxlength="30">
						<input type="text" name="contact_subject" placeholder="subject... *" id="contact_subject">
						<textarea name="body" placeholder="your message... *" id="textarea" maxlength="3220"></textarea><br/>
						<div id="contact_captcha"><?php 
    create_captcha();
    ?>
</div>
						<input type="submit" class="button" value="send!" id="submit">
    }
}
$message = '';
if (isset($_GET['success'])) {
    $message = '<h2>You have successfully changed your password.<h2>';
} else {
    if (isset($_GET['force']) && empty($_GET['force'])) {
        $message = '<h2>Your password was reset.  Please change your password.<h2>';
    }
}
include 'includes/overall/overall_header.php';
?>

<h1>Change Password</h1><br>
<?php 
echo !empty($errors) ? output_errors($errors) : '';
echo !empty($message) ? $message : '';
?>
<form action="" method="post">
	<ul>
		<li>
			<label for="current_password">Current Password*:</label><br >
			<input type="password" name="current_password">
		</li>
		<li>
			<label for="password">New Password*:</label><br >
			<input type="password" name="password">
		</li>
		<li>
			<label for="password_again">Confirm New Password*:</label><br >
			<input type="password" name="password_again">
Exemple #9
0
                
                <div class="auth_form" style="width:630px">                                      
                    <?php 
if (isset($_GET['success']) === true && empty($_GET['success']) === true) {
    //echo '<p>Thanks, we have activate your account, you can login now </p><br><br>';
    if (!empty($_SESSION['activation_email'])) {
        echo '<p>Thanks, we have activate your account for ' . $_SESSION['activation_email'] . ', you can login now </p><br><br>';
        unset($_SESSION['activation_email']);
        // unset session
    } else {
        //header('Location: '.PROTECT_PAGE); //exit();
        echo 'Oops, Session Expire';
    }
} else {
    if (empty($errors) === false) {
        echo '<p>' . output_errors($errors) . '</p>';
        //display errors
    }
}
?>
           
                    
                    <br>
                    <p>
                    <a href="<?php 
echo AUTH_PAGE . '?type=Login';
?>
"> Sign in </a></p>
                    <!--ap/recover.php?mode=username --ap/recover.php?mode=password -->
                
                </div><!--End login_form--> 
Exemple #10
0
        }
        ?>

	<div class="register-card">
		<h3>Recover</h3>
		<div class="row">
			<div class="large-12 columns">
				<form action="" method="POST">
					<label><h5>Please enter your email address: <span class="required">*</span></h5>
						<input type="text" name="email">
					</label>
					<input type="submit" class="button" value="Recover">
				</form>
				<?php 
        if (!$recover->passed() && !empty($recover->errors())) {
            output_errors($recover->errors());
        }
        ?>
			</div>
		</div>
	</div>

	<?php 
    } else {
        Redirect::to('login.php');
    }
}
?>

<?php 
include 'includes/footer.php';
        if (isset($_REQUEST['email'], $_REQUEST['email_code'])) {
            $email = trim($_REQUEST['email']);
            $email_code = trim($_REQUEST['email_code']);
            if (!email_exists) {
                $errors[] = 'Oops, something went wrong and we couldn\'t find that email address!.';
            } else {
                if (!activate($email, $email_code)) {
                    $errors[] = 'Activation Failed!!<br />We could not activate your account as we are facing problems.';
                }
            }
            if (!empty($errors)) {
                ?>
				<div class="user_entry">
				<h2>Oops..</h2>
				<?php 
                echo output_errors();
            } else {
                header("Location: activate.php?success");
                exit;
            }
            ?>
				</div>
			<?php 
        } else {
            header("Location: index.php");
        }
    }
    include 'includes/countdown.php';
}
?>
				
													Thank you for contact us, we will be in touch soon.
												</li></ul>
									</div></div></div>';
        unset($_SESSION['contact_form_email']);
        // unset session
    } else {
        //echo '<div class="error_message_area"><img src="'.ERROR_ICON.'" /><ul><li> Oops, Session Expire! </li></ul></div>';
        echo '<div class="row"><div class="col-md-12"><div class="alert alert-warning">
											<img style="width:23px; float:left; margin-right:15px" src="' . WARNING_ICON . '" /><ul><li style="list-style:none;"> Oops, Session Expire! </li></ul>
									</div></div></div>';
    }
} else {
    require_once 'ap/form/contact_form.php';
    if (empty($errors) === false) {
        echo '<br><div class="row"><div class="col-md-12"><div class="alert alert-danger">
											<img style="width:23px; float:left; margin-right:15px" src="' . ERROR_ICON . '" />' . output_errors($errors) . '
									</div></div></div>';
        //display errors
    }
}
?>
                    </div>                    
                </div>
                            	
            </div><!--End col-md-6-->
        
            <div class="col-md-6">
            	<div class="row">
                	<div class="col-md-10 col-md-offset-1">
                    	
                        
} else {
    if (isset($_GET['email']) && isset($_GET['email_code'])) {
        echo $email = trim($_GET['email']);
        echo $email_code = trim($_GET['email_code']);
        if (email_exists($email) === false) {
            $error[] = 'You have entered a wrong email address';
        } else {
            if (activate($email, $email_code) === false) {
                $error[] = 'Oops somthing went wrong please try again';
            }
        }
        ?>

<?php 
        if (empty($error) === false) {
            echo '<td>oops <br>' . output_errors($error) . '</td>';
        } else {
            //echo 'ok';
            header('location:activation.php?success');
            exit(0);
        }
    }
}
?>
 
<?php 
include 'includes/aside.php';
include 'includes/overall/footer.php';
?>

Exemple #14
0
			<div class="row">
				<div class="large-6 columns">
					<?php 
if (!empty($user->data()->image)) {
    echo '<img style="width: 150px;" src="' . $user->data()->image . '" alt="Profile Image" >';
}
?>
					<form action="" method="POST" enctype="multipart/form-data">
						<input type="file" name="profile_image">
					    <input type="hidden" name="token" value="<?php 
echo Token::generate();
?>
">
					    <input type="submit" class="button" value="Submit">
					    <a class="button alert" href="dashboard.php">Back</a>
					</form>
					<?php 
if (!empty($errors)) {
    output_errors($errors);
}
if (isset($img) && !$img->passed() && !empty($img->errors())) {
    output_errors($img->errors());
}
?>
				</div>
			</div>
		</div>
	</div>

<?php 
include 'includes/footer.php';
Exemple #15
0
				<dt>
					<label for="email">Email</label>
					' . output_errors($errors_email) . '
				</dt>
				<dd>
					<input class="unchanged" type="text" id="email" name="email" value="' . (isset($newemail) ? $newemail : $users->client->info['email']) . '" />
					
					<input type="checkbox" id="email-show" name="email-show"' . ($showemail ? ' checked' : '') . ' />
					<label class="inline" for="email-show">Public</label>
				</dd>
			</dl>
			
			<dl class="form big">
				<dt>
					<label for="password">New password</label>
					' . output_errors($errors_password) . '
				</dt>
				<dd>
					<input type="password" id="password" name="password" value="" /> <span class="subtitle">(leave blank to keep same)</span>
				</dd>
			</dl>
			
			<input type="submit" name="submit" value="Save" disabled />
		</form>';
            break;
    }
} else {
    $page->setTitle('Error');
    $page->setType('error');
    ?>
<div class="imgtitle imgtitle-32">
Exemple #16
0
            	<div class="row">
                	<div class="col-md-6">
                    	<div class="row">
                        	<div class="col-md-12">
								<?php 
require_once 'ap/form/login_form.php';
?>
 
                                              
                                <span></span><!--Display message using jquery-->  
                                <?php 
if (empty($errors) === false) {
    //echo '<div class="error_message_area"><img src="'.ERROR_ICON.'" />We are tried to log you in, but...... '.output_errors($errors).'</div>';
    //echo output_errors($errors);//display errors
    echo '<br><div class="row"><div class="col-md-12"><div class="alert alert-danger">
                                                <img style="width:23px;" src="' . ERROR_ICON . '" /> We are tried to log you in, but... ' . output_errors($errors) . '
                                        </div></div></div>';
    //display errors
}
?>
                            </div>
                        </div>
                        <br>
                        <div class="row">
                        	<div class="col-md-12">                        	
                            	<a href="<?php 
echo FORGOT_PASSWORD_PAGE;
?>
">Forgot Password?</a> 
                            </div>
                        </div>
Exemple #17
0
$newEmail = test_input($_POST["newEmail"]);
$emailPswd = test_input($_POST["emailPswd"]);
$emailPswd = md5($emailPswd);
if (empty($newEmail) || empty($emailPswd)) {
    $action['result'] = 'error';
    array_push($updateErr, "Aizpildiet visus epasta maiņas laukus");
} else {
    if (!filter_var($newEmail, FILTER_VALIDATE_EMAIL)) {
        $action['result'] = 'error';
        array_push($updateErr, "Nederīgs epasts");
    }
    if (email_exists($newEmail, $conn)) {
        $action['result'] = 'error';
        array_push($updateErr, "Epasts ir aizņemts");
    }
    if ($emailPswd != fetch_value('password', 'users', 'username', $_SESSION['user_username'], $conn)) {
        $action['result'] = 'error';
        array_push($updateErr, "Nepareiza parole");
    }
}
if ($action['result'] != 'error') {
    $update_email = update_email($newEmail, $_SESSION['user_id'], $conn);
    if ($update_email) {
        $_SESSION['user_email'] = $newEmail;
        exit;
    } else {
        array_push($updateErr, "Neizdevās atjaunināt epastu");
    }
}
output_errors($updateErr);
Exemple #18
0
	<dl class="form big">
		<dt>
			<label for="sitename">Site name</label>
		</dt>
		<dd>
			<input class="unchanged" id="sitename" name="sitename" type="text" value="<?php 
echo $config['sitename'];
?>
" />
		</dd>
	</dl>
	
	<!-- theme -->
	
	<?php 
echo output_errors($errors_theme);
?>
	
	<dl class="form big">
		<dt>
			<label for="theme">Theme</label>
		</dt>
		<dd>
			<input class="unchanged" id="theme" name="theme" type="text" value="<?php 
echo $config['theme'];
?>
" />
			<span class="small">(no select box for now)</small>
		</dd>
	</dl>
	
Exemple #19
0
									<button type="submit" name= "submit" class="btn btn-primary">Register</button>
									<a class="btn btn-success" type="button" href = "login.php">
										Back to Login
									</a>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
			<div class="col-md-2"></div>
		</div>
<?php 
var_dump($_SESSION);
if (isset($_SESSION['register_error'])) {
    echo output_errors($_SESSION['register_error']);
    unset($_SESSION['register_error']);
}
if (isset($_SESSION['check_email'])) {
    unset($_SESSION['check_email']);
    echo "<p>Please Check your Email</p>";
}
if (isset($_SESSION['email_error'])) {
    unset($_SESSION['email_error']);
    echo "<p>Email verification failed to send</p>";
}
// include 'core/init.php';
// /* /* if(empty($_POST) === false){
// $required_fields = array('username', 'password', 'password_again', 'first_name', 'email');
// foreach($_POST as $key=>$value){
// if(empty($value) && in_array($key, $required_fields) === true){
Exemple #20
0
		</dl>
		
		<dl class="form big">
			<dt>
				<label for="pwd">Password</label>
				' . output_errors($errors_pwd) . '
			</dt>
			<dd>
				<input type="password" id="pwd" name="pwd" class="biginput" />
			</dd>
		</dl>
		
		<dl class="form big">
			<dt>
				<label for="emal">Ema<span style="display:none;">sddskjfcnx</span>il</label>
				' . output_errors($errors_email) . '
			</dt>
			<dd>
				<input type="text" id="emal" name="emal" class="biginput" value="' . $_POST['emal'] . '" />
			</dd>
		</dl>
			
		' . ($recaptcha_use ? '<dl class="form big">
			<dt>
				<label for="recaptcha_response_field">Anti-bot</label>
			</dt>
			<dd>
			' . recaptcha_get_html($recaptcha_key_public, $recaptcha_error) . '
			</dd>
		</dl>' : '') . '
			
Exemple #21
0
define('INSTALL_INSTALLER', 1);
define('INSTALL_MD5', '182a2b0e104ef2470a62e008989e5a41');
define('INSTALL_PACKAGE', './package.eyepackage');
define('INSTALL_SYSTEM', 1);
define('INSTALL_UPDATER', 1);
define('INSTALL_VERSION', '1.11.0.1');
define('ONEYE_VERSION', '0.9.0');
// Include libraries
include_once INSTALL_DIR . 'libraries.eyecode';
lang_init();
check_init();
// Include section
if (TYPE_UPDATE) {
    if (INSTALL_UPDATER) {
        include_once INSTALL_DIR . 'modules/update.eyecode';
    } else {
        output_errors(array(lang_translate('installer-update-error-notactive', 'The updater part of this oneye package is disabled. Please remember to remove the installer files.')));
    }
} elseif (TYPE_SYSTEM) {
    if (INSTALL_SYSTEM) {
        include_once INSTALL_DIR . 'modules/system.eyecode';
    } else {
        output_errors(array(lang_translate('installer-system-error-notactive', 'The system part of this oneye package is disabled. Please remember to remove the installer files.')));
    }
} else {
    if (TYPE_INSTALL && INSTALL_INSTALLER) {
        include_once INSTALL_DIR . 'modules/install.eyecode';
    } else {
        output_errors(array(lang_translate('installer-install-error-notactive', 'The installer part of this oneye package is disabled. Please remember to remove the installer files.')));
    }
}
Exemple #22
0
					</label>
					<label><h5>Re-type Password <span class="required">*</span></h5>
						<input type="password" name="password_again">
					</label>
					<input type="hidden" name="token" value="<?php 
            echo Token::generate();
            ?>
">
					<input type="submit" class="button" value="Reset">
				</form>
				<?php 
            if (isset($validation) && !$validation->passed() && !empty($validation->errors())) {
                output_errors($validation->errors());
            }
            if (isset($reset) && !$reset->passed() && !empty($reset->errors())) {
                output_errors($reset->errors());
            }
            ?>
			</div>
		</div>
	</div>

	<?php 
        }
    } else {
        Redirect::to('login.php');
    }
}
?>

<?php 
Exemple #23
0
    if (username_exists($regUsername, $conn)) {
        $action['result'] = 'error';
        array_push($regError, "Lietotājvārds ir aizņemts");
    }
    if (!filter_var($regEmail, FILTER_VALIDATE_EMAIL)) {
        $action['result'] = 'error';
        array_push($regError, "Nederīgs epasts");
    }
    if (email_exists($regEmail, $conn)) {
        $action['result'] = 'error';
        array_push($regError, "Epasts ir aizņemts");
    }
    if (strlen($regPassword) < 6) {
        $action['result'] = 'error';
        array_push($regError, "Paroles garumam ir jābut vismas 6 simboli");
    }
    if ($regPassword != $repeatPassword) {
        $action['result'] = 'error';
        array_push($regError, "Paroles nesakrīt");
    }
}
if ($action['result'] != 'error') {
    $register = register($regUsername, $regEmail, $regPassword, $conn);
    if ($register === true) {
        exit;
    } else {
        array_push($regError, "Neizdevās ievietot datus datu bāzē");
    }
}
output_errors($regError);
Exemple #24
0
        if ($_POST['username'] != $user_data['username']) {
            $errors[] = 'Nu poti posta sub un alt nume de utilizator';
        }
        if (empty($_POST['captcha_results']) === true) {
            $errors[] = 'Te rugam sa introduci captcha.';
        } else {
            if ($_POST['captcha_results'] != $_POST['num1'] + $_POST['num2']) {
                $errors[] = "Raspunsul la captcha este incorect.";
            }
        }
    }
    if (empty($_POST) === false && empty($errors) === true) {
        insert_comments($_POST['comments'], $_POST['username'], $_POST['blog_id']);
    } else {
        if (empty($errors) === false) {
            echo "<div id='blog_comment_errors'>" . output_errors($errors) . "</div>";
        }
    }
}
?>
			</div>
		</div>
		<div id="footer_wrap">
			<footer id="footer">
				<div id="recent_stories">
					<h1>Postari recente</h1>
					<p>Ne-am hotarat sa vizitam Italia in luna septembrie si pentru ca cel mai bun loc care descrie cultura acestei tari e Sicilia, am inceput sa cautam cazare si bilete de avion. <a href="/sites/worldtour/ro/public/blog.php">[Citeste mai mult...]</a></p>
				</div>
				<div id="featured_location">
					<h1>Cea mai populara locatie de luna aceasta</h1>
					<p>Ce au in comun Goethe, Alexander Dumas, Johannes Brahms, Gustav Klimt, D.H. Lawrence, Richard Wagner, Oscar Wilde, Truman Capote, John Steinbeck, Ingmar Bergmann, Francis Ford Coppola, Leonard Bergman, Marlene Dietrich, Greta Garbo, Federico Fellini, Cary Grant, Gregory Peck, Elisabeth Taylor and Woody Allen? <a href="recom.php">[Citeste mai mult...]</a></p>
Exemple #25
0
						}
						$("#severity-name").html(severityName);
					}
				});
			</script>
		</dd>
	</dl>
	
	<div class="clear"></div>
	
	<hr class="invisible" />
	
	<!-- description -->
	
	<?php 
echo output_errors($errors_description);
?>
	
	<dl class="form">
		<dt>
			<label for="description">Describe the problem</label>
		</dt>
		<dd>
			<textarea id="description" name="description" style="height: 192px;"><?php 
echo $_POST['description'];
?>
</textarea>
		</dd>
	</dl>

	<input type="submit" name="submit" value="Post" />
Exemple #26
0
<?php 
} else {
    ?>
	<h2>Got something to say?  Say it here!  We're always happy to hear<br>your suggestions and support!</h2><br>
	<form action="contact.php?success" method="POST">
	<ul>
		<li>Name*:<input type="text" name="name"></li>
		<li>Email*:<input type="text" name="email"></li>
		<li><textarea rows="20" cols="20"
		name="comments" onClick="this.value=''">Comments</textarea></li>
		<li><input type="submit" name="submit" value="Submit"/></li>
	</ul>
	</form>
	<?php 
    if (empty($name) && isset($_GET['success']) || empty($comments) && isset($_GET['success'])) {
        if (empty($name) && isset($_GET['success'])) {
            $errors[] = 'Please enter a name.';
        }
        if (empty($comments) && isset($_GET['success'])) {
            $errors[] = 'Please enter a message.';
        }
        if (!empty($errors)) {
            echo output_errors($errors);
        } else {
            if (!isset($_GET['success'])) {
                echo '<meta HTTP-EQUIV="REFRESH" content="0; url=contact.php?success">';
            }
        }
    }
}
include 'includes/overall/overall_footer.php';
											</div></div></div>';
        unset($_SESSION['recover_password_email']);
        // unset session
    } else {
        //echo '<div class="error_message_area"><img src="'.ERROR_ICON.'" /><ul><li> Oops, Session Expire! </li></ul></div>';
        echo '<div class="row"><div class="col-md-12"><div class="alert alert-warning">
													<img style="width:23px;" src="' . WARNING_ICON . '" /><ul><li style="list-style:none;"> Oops, Session Expire! </li></ul>
											</div></div></div>';
    }
} else {
    echo '<p>You can retrieve your login information to your email address. You Email address which you have used for Signup.</p><br>';
    require_once 'ap/form/recover_password_form.php';
    if (empty($errors) === false) {
        //echo '<div class="error_message_area"><img src="'.ERROR_ICON.'" />'.output_errors($errors).'</div>';//display errors
        echo '<br><div class="row"><div class="col-md-12"><div class="alert alert-danger">
													<img style="width:23px;" src="' . ERROR_ICON . '" />' . output_errors($errors) . '
											</div></div></div>';
        //display errors
    }
}
?>
                            </div>
                        </div>
                        <br>
                        <div class="row">
                        	<div class="col-md-12">                        	
                            	Go back to <a href="<?php 
echo LOGIN_PAGE;
?>
">Sign In</a>
                            </div>