]> git.sur5r.net Git - contagged/blobdiff - orgs.php
Fixed VCard import and handle photo URLs in VCF
[contagged] / orgs.php
index 6e79970ab28e807e6e9d7b747e1afc8f12ea31f5..10aa301f65ee6f8f1cb2f41217c0e091ac834de5 100644 (file)
--- a/orgs.php
+++ b/orgs.php
@@ -1,7 +1,12 @@
-<?
-  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();