]> git.sur5r.net Git - contagged/blobdiff - orgs.php
Version 0.6.5
[contagged] / orgs.php
index aaefcd06fd1dd2d57d5c8929331aa9d7c47b0d58..10aa301f65ee6f8f1cb2f41217c0e091ac834de5 100644 (file)
--- a/orgs.php
+++ b/orgs.php
@@ -1,16 +1,16 @@
-<?
-  require_once('init.php');
+<?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();
   //display templates
   header('Content-Type: text/html; charset=utf-8');
-  $smarty->display('header.tpl');
-  $smarty->display('list_filter.tpl');
   $smarty->display('orgs.tpl');
-  $smarty->display('footer.tpl');
-
-
 ?>