]> git.sur5r.net Git - contagged/blobdiff - orgs.php
Version 0.6.5
[contagged] / orgs.php
index 0f6426ce80a23568d2228a93cb66749a5b821d6b..10aa301f65ee6f8f1cb2f41217c0e091ac834de5 100644 (file)
--- a/orgs.php
+++ b/orgs.php
@@ -1,7 +1,12 @@
-<?
+<?php
   require_once('inc/init.php');
   ldap_login();
 
+  if ($conf['userlogreq'] && !isset($_SESSION['ldapab']['username'])){
+      header('Location: login.php');
+      exit();
+  }
+
   //prepare templates
   tpl_std();
   tpl_orgs();