#!/usr/bin/php 1) { for ($i=1;$i<$argc;$i++) { if (is_file($argv[$i])) { @include($argv[$i]); } } } $data=array(); function add($msg) { if ($msg!='') { global $data; $data[$msg]=$GLOBALS['LSlang'][$msg]; } } // LDAP Servers foreach($GLOBALS['LSconfig']['ldap_servers'] as $conf) { add($conf['name']); add($conf['subDnLabel']); add($conf['recoverPassword']['recoveryHashMail']['subject']); add($conf['recoverPassword']['recoveryHashMail']['msg']); add($conf['recoverPassword']['newPasswordMail']['subject']); add($conf['recoverPassword']['newPasswordMail']['msg']); if (is_array($conf['subDn'])) { foreach($conf['subDn'] as $name => $cf) { if ($name!='LSobject') { add($name); } } } } // LSobject if (loadDir('../'.LS_OBJECTS_DIR) && loadDir('../'.LS_LOCAL_DIR.LS_OBJECTS_DIR)) { foreach($GLOBALS['LSobjects'] as $name => $conf) { add($conf['label']); // LSrelation if (is_array($conf['LSrelation'])) { foreach($conf['LSrelation'] as $rel) { add($rel['label']); add($rel['emptyText']); } } // Custom Actions if (is_array($conf['customActions'])) { foreach($conf['customActions'] as $act) { add($act['label']); add($act['question_format']); add($act['onSuccessMsgFormat']); } } // LSform if (is_array($conf['LSform']['layout'])) { foreach($conf['LSform']['layout'] as $lay) { add($lay['label']); } } if (is_array($conf['LSform']['dataEntryForm'])) { foreach($conf['LSform']['dataEntryForm'] as $def) { add($def['label']); } } // LSsearch if (is_array($conf['LSsearch']['predefinedFilters'])) { foreach($conf['LSsearch']['predefinedFilters'] as $lay) { add($lay); } } if(is_array($conf['attrs'])) { foreach($conf['attrs'] as $attr) { add($attr['label']); add($attr['help_info']); add($attr['html_options']['mail']['subject']); add($attr['html_options']['mail']['msg']); // LSattr_html_select_list if ($attr['html_type']=='select_list' && is_array($attr['html_options']['possible_values'])) { foreach($attr['html_options']['possible_values'] as $pkey => $pname) { if ($pkey != 'OTHER_OBJECT') { add($pname); } } } // LSattr_html_valueWithUnit if ($attr['html_type']=='valueWithUnit' && is_array($attr['html_options']['units'])) { foreach($attr['html_options']['units'] as $pname) { add($pname); } } // Check data if (is_array($attr['check_data'])) { foreach($attr['check_data'] as $check) { add($check['msg']); } } // validation if (is_array($attr['validation'])) { foreach($attr['validation'] as $valid) { add($valid['msg']); } } } } } } ksort($data); echo " $val) { print "\n\"$key\" =>\n \"$val\",\n"; } echo "\n);\n\n?>\n"; ?>