if ($result == '1') { header("Location: index.php?option=home"); die(""); } } if ($_REQUEST['option'] == 'lostPassword') { if ($_SESSION['resent'] > date("U") - 900) { $result = "Please wait 15 minutes ..."; } if (!$_SESSION['resent'] || $_SESSION['resent'] < date("U") - 900) { resetAdminLogin('1'); $result = "Password has been reset."; $_SESSION['resent'] = date("U"); } } $html = getAdminLogin(); include "templates/header.php"; include "templates/login.php"; include "templates/footer.php"; return; } /* * if option is null * redirect to home page */ if (!$_REQUEST['option']) { header("Location: index.php?option=home"); die(""); } /* * include header
function getAllDialogBodyDefinitions() { echo getUserRegistration(); echo getVendorRegistration(); echo getUserLogin(); echo getAdminLogin(); }