]> git.sur5r.net Git - contagged/blobdiff - orgs.php
allow custom field definitions in config.php
[contagged] / orgs.php
index a5fba034906fde8eb6ec826da2210593b6b2255f..10aa301f65ee6f8f1cb2f41217c0e091ac834de5 100644 (file)
--- a/orgs.php
+++ b/orgs.php
@@ -1,15 +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('orgs.tpl');
-  $smarty->display('footer.tpl');
-
-
 ?>