</form> <p> </p> <p> </p> </div> </div> <div class="clearfix"> </div> </div> </div> </div> <?php if (isset($_POST['button'])) { include_once "config/login.php"; $ob = new login(); $user = $_POST['username']; $pass = $_POST['password']; $ob->check($user, $pass); } ?> <!--//content--> <div class="footer"> <div class="container"> <div class="footer-left"> <a href="index.html">Hospice</a> </div> <div class="footer-right"> <p>© 2015 All rights reserved | Template by <a href="http://w3layouts.com/"> W3layouts</a></p> </div> <div class="clearfix"> </div> </div> </div> <!--smooth-scrolling-of-move-up-->
<?php // Basic include "config.php"; // Classes include "class/synchro.class.php"; include "class/version.class.php"; include "class/login.class.php"; login::check(); // Check if there are change-requests if (isset($_POST["changepass"])) { Synchro::settingSet("password.txt", $_POST["changepass"]); sndmail("Password changed", "We just wanted to quickly inform you, that somebody just changed your Synchro password. If you are this person you can relax, otherwise change save your files!"); echo "Changed Password."; } if (isset($_POST["changeuser"])) { Synchro::settingSet("username.txt", $_POST["changeuser"]); sndmail("Username changed", "We just wanted to quickly inform you, that somebody just changed your Synchro username. If you are this person you can relax, otherwise change save your files!"); echo "Changed Username."; } if (isset($_POST["changemail"])) { Synchro::settingSet("mail.txt", $_POST["changemail"]); sndmail("Mail changed", "Hello! If you got this mail, you have successfully changed your mail in synchro."); echo "Changed Mail."; } if (isset($_POST["changedomain"])) { Synchro::settingSet("domain.txt", $_POST["changedomain"]); sndmail("Domain changed", "We just wanted to quickly inform you, that somebody just changed your Synchro domain."); echo "Changed Domain."; } $user = Synchro::getSettingValue("username.txt");
<?php if ($_SERVER['REQUEST_METHOD'] == 'POST') { $username = $_POST['username']; $password = $_POST['password']; $checklogin = new login(); $page = 'index.php'; $flag = $checklogin->check($username, $password); if ($flag == 1) { session_start(); $_SESSION['username'] = $username; $_SESSION['password'] = $password; $checklogin->rediret($page); } else { $string = "<br><br><br><br><br><h2 style='font-family:Arial' align='center'>" . implode(glue, $flag) . "</h2>"; echo $string; } } class login { public function rediret($page) { $url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']); $url = rtrim($url, '/\\'); //add page $url .= '/' . $page; header("Location:{$url}"); exit; } public function check($username, $password) {