]> git.sur5r.net Git - contagged/blobdiff - orgs.php
added .htaccess filese to protect inc and similar directories
[contagged] / orgs.php
index a5fba034906fde8eb6ec826da2210593b6b2255f..f6ce2889f2d090b29e43d84e5851761f8331aa40 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'] && $user == ''){
+      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');
-
-
 ?>