<?php /** * View Request Details * * @author Sam Plugins <*****@*****.**> * @copyright Sam Plugins <*****@*****.**> * @twitter http://twitter.com/samplugins */ require_once "include/init.php"; if (CommonFunc::isPost() && CommonFunc::isAjax()) { include 'include/class.passwordform.handler.php'; $handler = new clsPasswordFormHandler($config, $_POST); $handler->handle(); exit; } $is_pop = 1; include "web.parts/header.php"; ?> <?php include "web.parts/password.form.php"; ?> <?php include "web.parts/footer.php";
<?php /** * Login Checker * * @author Sam Plugins <*****@*****.**> * @copyright Sam Plugins <*****@*****.**> * @twitter http://twitter.com/samplugins */ require_once "include/init.php"; if (CommonFunc::isPost()) { $Login = new Login(MySql::Instance()); if ($Login->loginCheck(CommonFunc::safe($_POST['username']), CommonFunc::safe($_POST['password']))) { echo "<script>window.location='donations.php'</script>"; } else { $_SESSION['login-flash'] = "" . CommonFunc::ERROR . "|Invalid username and/or password"; echo "<script>window.location='login.php'</script>"; } }