Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed problem with login check

darcs-hash:20081203124950-6e07b-5c1615368a408ee041509066d5bae872e68a79fc.gz
  • Loading branch information...
commit e6398bad6d0293d1c7da37a410ae7e359895c41e 1 parent 322256e
@splitbrain splitbrain authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  entry.php
  2. +1 −1  img.php
  3. +1 −1  orgs.php
View
2  entry.php
@@ -2,7 +2,7 @@
require_once('inc/init.php');
ldap_login();
-if ($conf['userlogreq'] && $user == ''){
+if ($conf['userlogreq'] && !isset($_SESSION['ldapab']['username'])){
header('Location: login.php');
exit();
}
View
2  img.php
@@ -2,7 +2,7 @@
require_once('inc/init.php');
ldap_login();
-if ($conf['userlogreq'] && $user == ''){
+if ($conf['userlogreq'] && !isset($_SESSION['ldapab']['username'])){
header("HTTP/1.0 401 Access Denied");
echo '<h1>Access Denied</h1>';
exit();
View
2  orgs.php
@@ -2,7 +2,7 @@
require_once('inc/init.php');
ldap_login();
- if ($conf['userlogreq'] && $user == ''){
+ if ($conf['userlogreq'] && !isset($_SESSION['ldapab']['username'])){
header('Location: login.php');
exit();
}
Please sign in to comment.
Something went wrong with that request. Please try again.