<?php # # $Id$ # include "include/init.php"; if (!$GLOBALS['cfg']['enable_feature_signin']) { $smarty->display('page_signin_disabled.txt'); exit; } login_ensure_loggedout(); # # pass through # $redir = request_str('redir'); $smarty->assign('redir', $redir); # # try and sign in? # if (post_str('signin')) { $email = post_str('email'); $password = post_str('password'); $smarty->assign('email', $email); $ok = 1; # # required fields? # if (!strlen($email) || !strlen($password)) { $smarty->assign('error_missing', 1); $ok = 0; }
<? # # $Id$ # include("include/init.php"); if (! $GLOBALS['cfg']['enable_feature_password_retrieval']){ error_404(); } login_ensure_loggedout("/forgot", 1); # # send the reminder? # if (post_str('remind')){ $email = post_str('email'); $user = users_get_by_email($email); $ok = 1; if (!$user){ $smarty->assign('error_nouser', 1); $ok = 0; } if ($ok && $user['deleted']){