require_once('inc/init.php');
ldap_login();
- if ($conf['userlogreq'] && $user == ''){
+ if ($conf['userlogreq'] && !isset($_SESSION['ldapab']['username'])){
header('Location: login.php');
exit();
}
-
//prepare templates
tpl_std();
$smarty->assign('tagcloud',tag_cloud());
global $conf;
global $LDAP_CON;
global $FIELDS;
- if(!$conf['extended']) return;
+ if(!$FIELDS['_marker']) return;
$result = ldap_queryabooks('(objectClass=inetOrgPerson)',$FIELDS['_marker']);
-
$max = 0;
$min = 999999999;
$tags = array();
}
}
ksort($tags);
- tag_cloud_weight(&$tags,$min,$max,6);
+ tag_cloud_weight($tags,$min,$max,6);
$out = '';
foreach($tags as $tag => $cnt){