Advertisement
Kermit66

Untitled

Jan 7th, 2016
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.72 KB | None | 0 0
  1. <?php
  2. ob_start();
  3. require_once("include/session.php");
  4. include_once("include/business.php");
  5. ?>
  6.  
  7. <html>
  8. <head>
  9. <meta charset="utf-8">
  10.  
  11. <link rel="dns-prefetch" href="http://fonts.googleapis.com" />
  12. <link rel="dns-prefetch" href="http://themes.googleusercontent.com" />
  13.  
  14. <link rel="dns-prefetch" href="http://ajax.googleapis.com" />
  15. <link rel="dns-prefetch" href="http://cdnjs.cloudflare.com" />
  16. <link rel="dns-prefetch" href="http://agorbatchev.typepad.com" />
  17.  
  18. <!-- Use the .htaccess and remove these lines to avoid edge case issues.
  19. More info: h5bp.com/b/378 -->
  20. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  21.  
  22. <title>MyPype | Reset Password</title>
  23. <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.">
  24. <meta name="author" content="Simon Stamm & Markus Siemens">
  25.  
  26. <!-- Mobile viewport optimized: h5bp.com/viewport -->
  27. <meta name="viewport" content="width=device-width,initial-scale=1">
  28. <!-- iPhone: Don't render numbers as call links -->
  29. <meta name="format-detection" content="telephone=no">
  30.  
  31. <link rel="shortcut icon" href="favicon.ico" />
  32. <!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
  33. <!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->
  34.  
  35.  
  36. <!-- The Styles -->
  37. <!-- ---------- -->
  38.  
  39. <!-- Layout Styles -->
  40. <link rel="stylesheet" href="css/style.css">
  41. <link rel="stylesheet" href="css/grid.css">
  42. <link rel="stylesheet" href="css/layout.css">
  43.  
  44. <!-- Icon Styles -->
  45. <link rel="stylesheet" href="css/icons.css">
  46. <link rel="stylesheet" href="css/fonts/font-awesome.css">
  47. <!--[if IE 8]><link rel="stylesheet" href="css/fonts/font-awesome-ie7.css"><![endif]-->
  48.  
  49. <!-- External Styles -->
  50. <link rel="stylesheet" href="css/external/jquery-ui-1.8.21.custom.css">
  51. <link rel="stylesheet" href="css/external/jquery.chosen.css">
  52. <link rel="stylesheet" href="css/external/jquery.cleditor.css">
  53. <link rel="stylesheet" href="css/external/jquery.colorpicker.css">
  54. <link rel="stylesheet" href="css/external/jquery.elfinder.css">
  55. <link rel="stylesheet" href="css/external/jquery.fancybox.css">
  56. <link rel="stylesheet" href="css/external/jquery.jgrowl.css">
  57. <link rel="stylesheet" href="css/external/jquery.plupload.queue.css">
  58. <link rel="stylesheet" href="css/external/syntaxhighlighter/shCore.css" />
  59. <link rel="stylesheet" href="css/external/syntaxhighlighter/shThemeDefault.css" />
  60.  
  61. <!-- Elements -->
  62. <link rel="stylesheet" href="css/elements.css">
  63. <link rel="stylesheet" href="css/forms.css">
  64.  
  65. <!-- OPTIONAL: Print Stylesheet for Invoice -->
  66. <link rel="stylesheet" href="css/print-invoice.css">
  67.  
  68. <!-- Typographics -->
  69. <link rel="stylesheet" href="css/typographics.css">
  70.  
  71. <!-- Responsive Design -->
  72. <link rel="stylesheet" href="css/media-queries.css">
  73.  
  74. <!-- Bad IE Styles -->
  75. <link rel="stylesheet" href="css/ie-fixes.css">
  76.  
  77.  
  78.  
  79.  
  80.  
  81. <!-- The Scripts -->
  82. <!-- ----------- -->
  83.  
  84.  
  85. <!-- JavaScript at the top (will be cached by browser) -->
  86.  
  87. <!-- Load Webfont loader -->
  88. <script type="text/javascript">
  89. window.WebFontConfig = {
  90. google: { families: [ 'PT Sans:400,700' ] },
  91. active: function(){ $(window).trigger('fontsloaded') }
  92. };
  93. </script>
  94. <script defer async src="https://ajax.googleapis.com/ajax/libs/webfont/1.0.28/webfont.js"></script>
  95.  
  96. <!-- Essential polyfills -->
  97. <script src="js/mylibs/polyfills/modernizr-2.6.1.min.js"></script>
  98. <script src="js/mylibs/polyfills/respond.js"></script>
  99. <script src="js/mylibs/polyfills/matchmedia.js"></script>
  100. <!--[if lt IE 9]><script src="js/mylibs/polyfills/selectivizr-min.js"></script><![endif]-->
  101. <!--[if lt IE 10]><script src="js/mylibs/charts/excanvas.js"></script><![endif]-->
  102. <!--[if lt IE 10]><script src="js/mylibs/polyfills/classlist.js"></script><![endif]-->
  103.  
  104. <!-- Grab frameworks from CDNs -->
  105. <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
  106. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  107. <script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.2.min.js"><\/script>')</script>
  108.  
  109. <!-- Do the same with jQuery UI -->
  110. <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script>
  111. <script>window.jQuery.ui || document.write('<script src="js/libs/jquery-ui-1.8.21.min.js"><\/script>')</script>
  112.  
  113. <!-- Do the same with Lo-Dash.js -->
  114. <script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/0.4.2/lodash.min.js"></script>
  115. <script>window._ || document.write('<script src="js/libs/lodash.min.js"><\/script>')</script>
  116.  
  117.  
  118.  
  119. <!-- scripts concatenated and minified via build script -->
  120.  
  121. <!-- General Scripts -->
  122. <script src="js/mylibs/jquery.hashchange.js"></script>
  123. <script src="js/mylibs/jquery.idle-timer.js"></script>
  124. <script src="js/mylibs/jquery.plusplus.js"></script>
  125. <script src="js/mylibs/jquery.jgrowl.js"></script>
  126. <script src="js/mylibs/jquery.scrollTo.js"></script>
  127. <script src="js/mylibs/jquery.ui.touch-punch.js"></script>
  128. <script src="js/mylibs/jquery.ui.multiaccordion.js"></script>
  129. <script src="js/mylibs/number-functions.js"></script>
  130.  
  131. <!-- Forms -->
  132. <script src="js/mylibs/forms/jquery.autosize.js"></script>
  133. <script src="js/mylibs/forms/jquery.checkbox.js"></script>
  134. <script src="js/mylibs/forms/jquery.chosen.js"></script>
  135. <script src="js/mylibs/forms/jquery.cleditor.js"></script>
  136. <script src="js/mylibs/forms/jquery.colorpicker.js"></script>
  137. <script src="js/mylibs/forms/jquery.ellipsis.js"></script>
  138. <script src="js/mylibs/forms/jquery.fileinput.js"></script>
  139. <script src="js/mylibs/forms/jquery.fullcalendar.js"></script>
  140. <script src="js/mylibs/forms/jquery.maskedinput.js"></script>
  141. <script src="js/mylibs/forms/jquery.mousewheel.js"></script>
  142. <script src="js/mylibs/forms/jquery.placeholder.js"></script>
  143. <script src="js/mylibs/forms/jquery.pwdmeter.js"></script>
  144. <script src="js/mylibs/forms/jquery.ui.datetimepicker.js"></script>
  145. <script src="js/mylibs/forms/jquery.ui.spinner.js"></script>
  146. <script src="js/mylibs/forms/jquery.validate.js"></script>
  147. <script src="js/mylibs/forms/uploader/plupload.js"></script>
  148. <script src="js/mylibs/forms/uploader/plupload.html5.js"></script>
  149. <script src="js/mylibs/forms/uploader/plupload.html4.js"></script>
  150. <script src="js/mylibs/forms/uploader/plupload.flash.js"></script>
  151. <script src="js/mylibs/forms/uploader/jquery.plupload.queue/jquery.plupload.queue.js"></script>
  152.  
  153. <!-- Charts -->
  154. <script src="js/mylibs/charts/jquery.flot.js"></script>
  155. <script src="js/mylibs/charts/jquery.flot.orderBars.js"></script>
  156. <script src="js/mylibs/charts/jquery.flot.pie.js"></script>
  157. <script src="js/mylibs/charts/jquery.flot.resize.js"></script>
  158.  
  159. <!-- Explorer -->
  160. <script src="js/mylibs/explorer/jquery.elfinder.js"></script>
  161.  
  162. <!-- Fullstats -->
  163. <script src="js/mylibs/fullstats/jquery.css-transform.js"></script>
  164. <script src="js/mylibs/fullstats/jquery.animate-css-rotate-scale.js"></script>
  165. <script src="js/mylibs/fullstats/jquery.sparkline.js"></script>
  166.  
  167. <!-- Syntax Highlighter -->
  168. <script src="js/mylibs/syntaxhighlighter/shCore.js"></script>
  169. <script src="js/mylibs/syntaxhighlighter/shAutoloader.js"></script>
  170.  
  171. <!-- Dynamic Tables -->
  172. <script src="js/mylibs/dynamic-tables/jquery.dataTables.js"></script>
  173. <script src="js/mylibs/dynamic-tables/jquery.dataTables.tableTools.zeroClipboard.js"></script>
  174. <script src="js/mylibs/dynamic-tables/jquery.dataTables.tableTools.js"></script>
  175.  
  176. <!-- Gallery -->
  177. <script src="js/mylibs/gallery/jquery.fancybox.js"></script>
  178.  
  179. <!-- Tooltips -->
  180. <script src="js/mylibs/tooltips/jquery.tipsy.js"></script>
  181.  
  182. <!-- Do not touch! -->
  183. <script src="js/mango.js"></script>
  184. <script src="js/plugins.js"></script>
  185. <script src="js/script.js"></script>
  186.  
  187. <!-- Your custom JS goes here -->
  188. <script src="js/app.js"></script>
  189.  
  190. <!-- end scripts -->
  191.  
  192. </head>
  193. <body class=login>
  194.  
  195. <!-- Some dialogs etc. -->
  196.  
  197. <!-- The loading box -->
  198. <div id="loading-overlay"></div>
  199. <div id="loading">
  200. <span>Loading...</span>
  201. </div>
  202. <!-- End of loading box -->
  203.  
  204. <!--------------------------------->
  205. <!-- Now, the page itself begins -->
  206. <!--------------------------------->
  207.  
  208. <!-- The toolbar at the top -->
  209. <section id="toolbar">
  210. <div class="container_12">
  211.  
  212. <!-- Left side -->
  213. <div class="left">
  214. <ul class="breadcrumb">
  215.  
  216. <li><a href="index.php">MyPype</a></li>
  217. <li><a href="index.php">Login</a></li>
  218.  
  219. </ul>
  220. </div>
  221. <!-- End of .left -->
  222.  
  223. <!-- Right side -->
  224. <div class="right">
  225. <ul>
  226.  
  227. <li><a href="index.php"><span class="icon i14_bended-arrow-left"></span>Back to Main</a></li>
  228. </ul>
  229. </div><!-- End of .right -->
  230.  
  231. <!-- Phone only items -->
  232. <div class="phone">
  233.  
  234. <!-- User Link -->
  235. <li><a href="#"><span class="icon icon-home"></span></a></li>
  236. <!-- Navigation -->
  237. <li><a href="#"><span class="icon icon-heart"></span></a></li>
  238.  
  239. </div><!-- End of .phone -->
  240.  
  241. </div><!-- End of .container_12 -->
  242. </section><!-- End of #toolbar -->
  243.  
  244. <!-- The header containing the logo -->
  245. <header class="container_12">
  246.  
  247. <div class="container">
  248.  
  249. <!-- Your logos -->
  250. <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>
  251. <a class="phone-title" href="login.html"><img src="img/logo_mobile.png" alt="MyPype" height="30" width="30" /></a>
  252.  
  253. <!-- Right link -->
  254. </div><!-- End of .container -->
  255.  
  256. </header><!-- End of header -->
  257.  
  258. <!-- The container of the sidebar and content box -->
  259. <section id="login" class="container_12 clearfix">
  260. <?php
  261. /**
  262. * Forgot Password form has been submitted and no errors
  263. * were found with the form (the username is in the database)
  264. */
  265. if(isset($_SESSION['forgotpass'])){
  266. /**
  267. * New password was generated for user and sent to user's
  268. * email address.
  269. */
  270. if($_SESSION['forgotpass']){
  271. echo "<h1 style='margin-top:50px;'>New Password Generated</h1>";
  272. echo "<p>Your new password has been generated "
  273. ."and sent to the email <br>associated with your account. ";
  274. }
  275. /**
  276. * Email could not be sent, therefore password was not
  277. * edited in the database.
  278. */
  279. else{
  280. echo "<h1 style='margin-top:50px;'>New Password Failure</h1>";
  281. echo "<p>There was an error sending you the "
  282. ."email with the new password,<br> so your password has not been changed. ";
  283. }
  284.  
  285. unset($_SESSION['forgotpass']);
  286. }
  287. else{
  288.  
  289. /**
  290. * Forgot password form is displayed, if error found
  291. * it is displayed.
  292. */
  293. ?>
  294. <?php if($form->error("email")){ echo "<p class='login_error'>".$form->error("email")."</p>";} ?>
  295. <form action="process.php" method="post" class="box validate">
  296.  
  297. <div class="header">
  298. <h2><span class="icon icon-lock"></span>Forgot Password</h2>
  299. </div>
  300.  
  301. <div class="content">
  302.  
  303. <!-- Login messages -->
  304. <div>
  305. <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>
  306. </div>
  307.  
  308. <!-- The form -->
  309. <div class="form-box">
  310.  
  311. <div class="row">
  312. <label for="login_name">
  313. <strong>Email address</strong>
  314. </label>
  315. <div>
  316. <input type="text" name="email" class="large" value="<?php echo $form->value("user"); ?>" required/>
  317. <label style="color:red;font-weight: bold;"><?php echo $form->error('email');?></label>
  318. <input type="hidden" name="subforgot" value="1">
  319. </div>
  320. </div>
  321. </div><!-- End of .form-box -->
  322.  
  323. </div><!-- End of .content -->
  324.  
  325. <div class="actions">
  326. <div class="right">
  327. <input type="submit" class="button" value="Get New Password">
  328. </div>
  329. </div><!-- End of .actions -->
  330.  
  331. </form><!-- End of form -->
  332.  
  333. </section>
  334.  
  335. <!-- Spawn $$.loaded -->
  336. <script>
  337. $$.loaded();
  338. </script>
  339.  
  340. <!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
  341. chromium.org/developers/how-tos/chrome-frame-getting-started -->
  342. <!--[if lt IE 7 ]>
  343. <script defer src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
  344. <script defer>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
  345. <![endif]-->
  346. <?php
  347. }
  348. ?>
  349. </body>
  350. </html>
  351. <?php ob_end_flush(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement