Location: PHPKode > projects > SOS Webpages > admin/admin_password_reset2.php
// +----------------------------------------------------------------------+
// SOS Webpages is an easy-to-manage website management system
// Copyright (C) 2007 - 2010 HandsomeWeb
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
// Contact the author of this software at http://www.handsomeweb.com.
// +----------------------------------------------------------------------+
/*	admin_password_reset2.php is part of the password recover process. */
include "admin_queries.php";
// This is the same regular expression required to add an email address then puts it in the session variable
if( !preg_match( "/^([a-zA-Z0-9])+([a-zA-Z0-9&._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9._-]+)+$/", $submitted_email)) $_SESSION['submitted_email'] = "Badly Formed Email Address:";
else $_SESSION['submitted_email'] = $submitted_email;
foreach ($email_list as $value) {
	if ($_SESSION['submitted_email']==$value) $admin_email=$value;
	$_SESSION['admin_email']=$value; //Puts the real admin email value in a session variable.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
  <link rel="stylesheet" href="admin_style.css" type="text/css" />

  <div id="loginwrapper">
    <div id="loginwrapper2">
    if ($_SESSION['submitted_email']==$admin_email) {
    echo "<p>" . CLICKING_THE_LINK . "<br /><br />";
    echo "<span style='font-weight:bold'>$submitted_email<br /><br />";
    echo "<a href='admin_password_reset3.php'>" . SEND_RESET_LINK . "</a></span></p>";
    else {
    echo "<p><strong>" . $_SESSION['submitted_email'] . "</strong> - " . NO_EMAIL_MATCH . " <a href='admin_password_reset.php'>" . TRY_AGAIN . "</a></p>";
    echo "<p>" . DATABASE_DIRECTLY . "  <a href='http://www.soswebpages.com/board/'>" . VISIT_FORUM . "</a></p>";
 <p style='text-align:center;margin-top:15px'><a href='http://www.soswebpages.com'><img style='border:0' src='images/sosline.png' alt='Powered by SOS Webpages' /></a></p>
  </div> </div>
Return current item: SOS Webpages