projects
/
misc
/
kostenrechnung
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Widen textarea
[misc/kostenrechnung]
/
lib
/
general.php
diff --git
a/lib/general.php
b/lib/general.php
index
3f82f4a
..
9ec2941
100644
(file)
--- a/
lib/general.php
+++ b/
lib/general.php
@@
-13,7
+13,8
@@
function check_session()
exit();
}
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: ./');
require_once('lib/login.php');
if (check_passwd()) {
header('Location: ./');