exit();
}
- if (!empty($_POST['login']) && !empty($_POST['passwd'])) {
+ if (substr($_SERVER["SCRIPT_FILENAME"],-10) == '/index.php' &&
+ !empty($_POST['login']) && !empty($_POST['passwd'])) {
require_once('lib/login.php');
if (check_passwd()) {
header('Location: ./');