} else { ?> Forgot your password? Type your email and username and we'll send you a new one. <form method="POST" action="forgot_password.php" ><fieldset> <div class="form-group"> Email <input class="form-control" type = "text" size="30" name="email"> </div> <div class="form-group"> Username<input class="form-control" type = "text" size="20" name="username"> </div> <p align='center'><input type ="Submit" name="Submit" value="Submit" class="btn btn-lg btn-success"></p> </fieldset></form> <?php } } $content->form_container("Forgot password"); forgot_password($con); ?> </div> </div> </div> </div> <div class="panel-body"> <?php $content->drawFooter(); ?> </div> </div> </body> </html>
<!-- DataTables CSS --> <link href="../bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css" rel="stylesheet"> <!-- DataTables Responsive CSS --> <link href="../bower_components/datatables-responsive/css/dataTables.responsive.css" rel="stylesheet"> <?php $title = "Logout"; $content = new content($title); $content->drawMeta($title); ?> </head> <body> <?php $message = "Logout"; $content->form_container($message); session_destroy(); unset($_COOKIE['user']); setcookie('user', '', time() - 3600, '/'); unset($_COOKIE['password']); setcookie('password', '', time() - 3600, '/'); echo "You have logged out"; echo "<meta http-equiv='refresh' content='1; url=../index.php'>"; ?> </div> </div> </div> </div> <div class="panel-body"> <?php $content->drawFooter();
} else { echo "Forgot your username? Just type the e-mail associated to your account and we'll send it to you:" . "<br><br>"; ?> <form method="POST" action="forgot_username.php" ><fieldset> <div class="form-group"> <input class="form-control" type = "text" size="30" name="email"> </div> <div class="form-group"> <p align='center'><input type ="Submit" name="Submit" value="Submit" class="btn btn-lg btn-success"></p> </fieldset></form> <?php } } $content->form_container("Forgot username"); forgot_username($con); ?> </div> </div> </div> </div> <div class="panel-body"> <?php $content->drawFooter(); ?> </div> </div> </body> </html>