Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ob_start();
- require_once("include/session.php");
- include_once("include/business.php");
- ?>
- <html>
- <head>
- <meta charset="utf-8">
- <link rel="dns-prefetch" href="http://fonts.googleapis.com" />
- <link rel="dns-prefetch" href="http://themes.googleusercontent.com" />
- <link rel="dns-prefetch" href="http://ajax.googleapis.com" />
- <link rel="dns-prefetch" href="http://cdnjs.cloudflare.com" />
- <link rel="dns-prefetch" href="http://agorbatchev.typepad.com" />
- <!-- Use the .htaccess and remove these lines to avoid edge case issues.
- More info: h5bp.com/b/378 -->
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title>MyPype | Reset Password</title>
- <meta name="description" content="Mango is a slick and responsive Admin Template build with modern techniques like HTML5 and CSS3 to be used for backend solutions of any size.">
- <meta name="author" content="Simon Stamm & Markus Siemens">
- <!-- Mobile viewport optimized: h5bp.com/viewport -->
- <meta name="viewport" content="width=device-width,initial-scale=1">
- <!-- iPhone: Don't render numbers as call links -->
- <meta name="format-detection" content="telephone=no">
- <link rel="shortcut icon" href="favicon.ico" />
- <!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
- <!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->
- <!-- The Styles -->
- <!-- ---------- -->
- <!-- Layout Styles -->
- <link rel="stylesheet" href="css/style.css">
- <link rel="stylesheet" href="css/grid.css">
- <link rel="stylesheet" href="css/layout.css">
- <!-- Icon Styles -->
- <link rel="stylesheet" href="css/icons.css">
- <link rel="stylesheet" href="css/fonts/font-awesome.css">
- <!--[if IE 8]><link rel="stylesheet" href="css/fonts/font-awesome-ie7.css"><![endif]-->
- <!-- External Styles -->
- <link rel="stylesheet" href="css/external/jquery-ui-1.8.21.custom.css">
- <link rel="stylesheet" href="css/external/jquery.chosen.css">
- <link rel="stylesheet" href="css/external/jquery.cleditor.css">
- <link rel="stylesheet" href="css/external/jquery.colorpicker.css">
- <link rel="stylesheet" href="css/external/jquery.elfinder.css">
- <link rel="stylesheet" href="css/external/jquery.fancybox.css">
- <link rel="stylesheet" href="css/external/jquery.jgrowl.css">
- <link rel="stylesheet" href="css/external/jquery.plupload.queue.css">
- <link rel="stylesheet" href="css/external/syntaxhighlighter/shCore.css" />
- <link rel="stylesheet" href="css/external/syntaxhighlighter/shThemeDefault.css" />
- <!-- Elements -->
- <link rel="stylesheet" href="css/elements.css">
- <link rel="stylesheet" href="css/forms.css">
- <!-- OPTIONAL: Print Stylesheet for Invoice -->
- <link rel="stylesheet" href="css/print-invoice.css">
- <!-- Typographics -->
- <link rel="stylesheet" href="css/typographics.css">
- <!-- Responsive Design -->
- <link rel="stylesheet" href="css/media-queries.css">
- <!-- Bad IE Styles -->
- <link rel="stylesheet" href="css/ie-fixes.css">
- <!-- The Scripts -->
- <!-- ----------- -->
- <!-- JavaScript at the top (will be cached by browser) -->
- <!-- Load Webfont loader -->
- <script type="text/javascript">
- window.WebFontConfig = {
- google: { families: [ 'PT Sans:400,700' ] },
- active: function(){ $(window).trigger('fontsloaded') }
- };
- </script>
- <script defer async src="https://ajax.googleapis.com/ajax/libs/webfont/1.0.28/webfont.js"></script>
- <!-- Essential polyfills -->
- <script src="js/mylibs/polyfills/modernizr-2.6.1.min.js"></script>
- <script src="js/mylibs/polyfills/respond.js"></script>
- <script src="js/mylibs/polyfills/matchmedia.js"></script>
- <!--[if lt IE 9]><script src="js/mylibs/polyfills/selectivizr-min.js"></script><![endif]-->
- <!--[if lt IE 10]><script src="js/mylibs/charts/excanvas.js"></script><![endif]-->
- <!--[if lt IE 10]><script src="js/mylibs/polyfills/classlist.js"></script><![endif]-->
- <!-- Grab frameworks from CDNs -->
- <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
- <script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.2.min.js"><\/script>')</script>
- <!-- Do the same with jQuery UI -->
- <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script>
- <script>window.jQuery.ui || document.write('<script src="js/libs/jquery-ui-1.8.21.min.js"><\/script>')</script>
- <!-- Do the same with Lo-Dash.js -->
- <script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/0.4.2/lodash.min.js"></script>
- <script>window._ || document.write('<script src="js/libs/lodash.min.js"><\/script>')</script>
- <!-- scripts concatenated and minified via build script -->
- <!-- General Scripts -->
- <script src="js/mylibs/jquery.hashchange.js"></script>
- <script src="js/mylibs/jquery.idle-timer.js"></script>
- <script src="js/mylibs/jquery.plusplus.js"></script>
- <script src="js/mylibs/jquery.jgrowl.js"></script>
- <script src="js/mylibs/jquery.scrollTo.js"></script>
- <script src="js/mylibs/jquery.ui.touch-punch.js"></script>
- <script src="js/mylibs/jquery.ui.multiaccordion.js"></script>
- <script src="js/mylibs/number-functions.js"></script>
- <!-- Forms -->
- <script src="js/mylibs/forms/jquery.autosize.js"></script>
- <script src="js/mylibs/forms/jquery.checkbox.js"></script>
- <script src="js/mylibs/forms/jquery.chosen.js"></script>
- <script src="js/mylibs/forms/jquery.cleditor.js"></script>
- <script src="js/mylibs/forms/jquery.colorpicker.js"></script>
- <script src="js/mylibs/forms/jquery.ellipsis.js"></script>
- <script src="js/mylibs/forms/jquery.fileinput.js"></script>
- <script src="js/mylibs/forms/jquery.fullcalendar.js"></script>
- <script src="js/mylibs/forms/jquery.maskedinput.js"></script>
- <script src="js/mylibs/forms/jquery.mousewheel.js"></script>
- <script src="js/mylibs/forms/jquery.placeholder.js"></script>
- <script src="js/mylibs/forms/jquery.pwdmeter.js"></script>
- <script src="js/mylibs/forms/jquery.ui.datetimepicker.js"></script>
- <script src="js/mylibs/forms/jquery.ui.spinner.js"></script>
- <script src="js/mylibs/forms/jquery.validate.js"></script>
- <script src="js/mylibs/forms/uploader/plupload.js"></script>
- <script src="js/mylibs/forms/uploader/plupload.html5.js"></script>
- <script src="js/mylibs/forms/uploader/plupload.html4.js"></script>
- <script src="js/mylibs/forms/uploader/plupload.flash.js"></script>
- <script src="js/mylibs/forms/uploader/jquery.plupload.queue/jquery.plupload.queue.js"></script>
- <!-- Charts -->
- <script src="js/mylibs/charts/jquery.flot.js"></script>
- <script src="js/mylibs/charts/jquery.flot.orderBars.js"></script>
- <script src="js/mylibs/charts/jquery.flot.pie.js"></script>
- <script src="js/mylibs/charts/jquery.flot.resize.js"></script>
- <!-- Explorer -->
- <script src="js/mylibs/explorer/jquery.elfinder.js"></script>
- <!-- Fullstats -->
- <script src="js/mylibs/fullstats/jquery.css-transform.js"></script>
- <script src="js/mylibs/fullstats/jquery.animate-css-rotate-scale.js"></script>
- <script src="js/mylibs/fullstats/jquery.sparkline.js"></script>
- <!-- Syntax Highlighter -->
- <script src="js/mylibs/syntaxhighlighter/shCore.js"></script>
- <script src="js/mylibs/syntaxhighlighter/shAutoloader.js"></script>
- <!-- Dynamic Tables -->
- <script src="js/mylibs/dynamic-tables/jquery.dataTables.js"></script>
- <script src="js/mylibs/dynamic-tables/jquery.dataTables.tableTools.zeroClipboard.js"></script>
- <script src="js/mylibs/dynamic-tables/jquery.dataTables.tableTools.js"></script>
- <!-- Gallery -->
- <script src="js/mylibs/gallery/jquery.fancybox.js"></script>
- <!-- Tooltips -->
- <script src="js/mylibs/tooltips/jquery.tipsy.js"></script>
- <!-- Do not touch! -->
- <script src="js/mango.js"></script>
- <script src="js/plugins.js"></script>
- <script src="js/script.js"></script>
- <!-- Your custom JS goes here -->
- <script src="js/app.js"></script>
- <!-- end scripts -->
- </head>
- <body class=login>
- <!-- Some dialogs etc. -->
- <!-- The loading box -->
- <div id="loading-overlay"></div>
- <div id="loading">
- <span>Loading...</span>
- </div>
- <!-- End of loading box -->
- <!--------------------------------->
- <!-- Now, the page itself begins -->
- <!--------------------------------->
- <!-- The toolbar at the top -->
- <section id="toolbar">
- <div class="container_12">
- <!-- Left side -->
- <div class="left">
- <ul class="breadcrumb">
- <li><a href="index.php">MyPype</a></li>
- <li><a href="index.php">Login</a></li>
- </ul>
- </div>
- <!-- End of .left -->
- <!-- Right side -->
- <div class="right">
- <ul>
- <li><a href="index.php"><span class="icon i14_bended-arrow-left"></span>Back to Main</a></li>
- </ul>
- </div><!-- End of .right -->
- <!-- Phone only items -->
- <div class="phone">
- <!-- User Link -->
- <li><a href="#"><span class="icon icon-home"></span></a></li>
- <!-- Navigation -->
- <li><a href="#"><span class="icon icon-heart"></span></a></li>
- </div><!-- End of .phone -->
- </div><!-- End of .container_12 -->
- </section><!-- End of #toolbar -->
- <!-- The header containing the logo -->
- <header class="container_12">
- <div class="container">
- <!-- Your logos -->
- <a href="/tf-mango/"><img style="margin-left:10px;margin-top:55px;margin-bottom: 30px;" src="img/logo_mypype.png" alt="MyPype" width="220" height="90"></a>
- <a class="phone-title" href="login.html"><img src="img/logo_mobile.png" alt="MyPype" height="30" width="30" /></a>
- <!-- Right link -->
- </div><!-- End of .container -->
- </header><!-- End of header -->
- <!-- The container of the sidebar and content box -->
- <section id="login" class="container_12 clearfix">
- <?php
- /**
- * Forgot Password form has been submitted and no errors
- * were found with the form (the username is in the database)
- */
- if(isset($_SESSION['forgotpass'])){
- /**
- * New password was generated for user and sent to user's
- * email address.
- */
- if($_SESSION['forgotpass']){
- echo "<h1 style='margin-top:50px;'>New Password Generated</h1>";
- echo "<p>Your new password has been generated "
- ."and sent to the email <br>associated with your account. ";
- }
- /**
- * Email could not be sent, therefore password was not
- * edited in the database.
- */
- else{
- echo "<h1 style='margin-top:50px;'>New Password Failure</h1>";
- echo "<p>There was an error sending you the "
- ."email with the new password,<br> so your password has not been changed. ";
- }
- unset($_SESSION['forgotpass']);
- }
- else{
- /**
- * Forgot password form is displayed, if error found
- * it is displayed.
- */
- ?>
- <?php if($form->error("email")){ echo "<p class='login_error'>".$form->error("email")."</p>";} ?>
- <form action="process.php" method="post" class="box validate">
- <div class="header">
- <h2><span class="icon icon-lock"></span>Forgot Password</h2>
- </div>
- <div class="content">
- <!-- Login messages -->
- <div>
- <div style="margin: 10px;font-weight: bold;" >A new password will be generated for you and sent to the email address associated with your account, all you have to do is enter your Email.</div>
- </div>
- <!-- The form -->
- <div class="form-box">
- <div class="row">
- <label for="login_name">
- <strong>Email address</strong>
- </label>
- <div>
- <input type="text" name="email" class="large" value="<?php echo $form->value("user"); ?>" required/>
- <label style="color:red;font-weight: bold;"><?php echo $form->error('email');?></label>
- <input type="hidden" name="subforgot" value="1">
- </div>
- </div>
- </div><!-- End of .form-box -->
- </div><!-- End of .content -->
- <div class="actions">
- <div class="right">
- <input type="submit" class="button" value="Get New Password">
- </div>
- </div><!-- End of .actions -->
- </form><!-- End of form -->
- </section>
- <!-- Spawn $$.loaded -->
- <script>
- $$.loaded();
- </script>
- <!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
- chromium.org/developers/how-tos/chrome-frame-getting-started -->
- <!--[if lt IE 7 ]>
- <script defer src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
- <script defer>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
- <![endif]-->
- <?php
- }
- ?>
- </body>
- </html>
- <?php ob_end_flush(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement