X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/6236e7cb8d0bd38f741d988cc5241a7b37069555..3da476bb04d8dcb7545a5c7eb328054c7ee20df3:/login.php diff --git a/login.php b/login.php index 801ba1f..5287678 100644 --- a/login.php +++ b/login.php @@ -1,7 +1,24 @@ %s', $input); + try { + require_once 'login/mailpass.inc.php'; + if ( $found = mailtoken($input) ) { + $message = "Er is een e-mail verstuurd naar $inputq."; + } + else { + $message = "E-mailadres $inputq is nergens ingesteld."; + } + } + catch (Exception $e) { + $message = "E-mail kon niet verstuurd worden." + . " Probeer het later nog eens of neem contact op."; + } +} +elseif (isset($_POST['login'])) { if ($User = login($_POST['login'], $_POST['pass'])) { login_setcookie(); } @@ -37,6 +54,6 @@ $part = [ print getoutput($part); if (empty($Args) and !empty($User['admin'])) { - include_once 'admin/index.html'; - include_once 'admin.php'; + include_once 'login/admin.html'; + include_once 'login/admin.php'; }