X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=ajax.php;h=2ccb52f95af89019853ffd8e092b80e8ac40d7b0;hb=07a88781c4d85134efa56ba1163de46d6daf4a04;hp=997eba1e49e2c3ce9399ac53cf16bbe6cd498ab7;hpb=cb2adba7030b7a2eba73afa7e4ec1f48b57a6073;p=contagged diff --git a/ajax.php b/ajax.php index 997eba1..2ccb52f 100644 --- a/ajax.php +++ b/ajax.php @@ -1,13 +1,13 @@ -Access Denied'; + exit(); +} -/* -echo '<[!CDATA['; -print_r($_REQUEST); -echo ']]>'; -*/ $FIELD = preg_replace('/entry\[/','',$_REQUEST['field']); $FIELD = preg_replace('/\W+/','',$FIELD); @@ -46,7 +46,7 @@ function ajax_addnote($dn,$note){ ldap_modify($LDAP_CON,$dn,$entry); - require_once(dirname(__FILE__).'/smarty/plugins/modifier.noteparser.php'); + require_once(dirname(__FILE__).'/inc/smarty/plugins/modifier.noteparser.php'); print smarty_modifier_noteparser($note); } @@ -95,9 +95,9 @@ function ajax_loadtags($dn,$type='plain'){ $entry = $result[0]; if($type == 'plain'){ - echo join(', ',$entry[$FIELDS['_marker']]); + echo join(', ',(array) $entry[$FIELDS['_marker']]); }else{ - foreach ($entry[$FIELDS['_marker']] as $tag){ + foreach ((array) $entry[$FIELDS['_marker']] as $tag){ echo '';