Changeset 540 for trunk/admin
- Timestamp:
- 10/24/08 14:52:37 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/inc/class.uiconfig.inc.php
r382 r540 152 152 echo parse_navbar(); 153 153 154 if($appname=="expressoAdmin1_2") { 155 /* Varre a pasta inc do admin do expresso procurando scripts de geração de login automático 156 (classes com nomes iniciados pela string 'login', procedida da string '_' mais o nome 157 do algoritmo. 158 */ 159 $dir = $GLOBALS['phpgw']->common->get_app_dir($appname) . "/inc"; 160 $options = ' '; 161 if (is_dir($dir)) { 162 if ($dh = opendir($dir)) { 163 while (($file = readdir($dh)) !== false) { 164 $temp = explode(".",$file); 165 if((substr($temp[1],0,5)=='login') && ($temp[0]=='class')) { 166 $options .= "<option value='".$temp[1]."'"; 167 if($current_config['expressoAdmin_loginGenScript'] == $temp[1]) 168 $options .= " selected"; 169 $options .= ">" . ucwords(str_replace("_"," ",substr($temp[1],6))) . "</option>"; 170 } 171 } 172 closedir($dh); 173 } 174 } 175 176 $t->set_var('rows_login_generator',$options); 177 } 154 178 $t->set_var('title',lang('Site Configuration')); 155 179 $t->set_var('action_url',$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiconfig.index&appname=' . $appname));
Note: See TracChangeset
for help on using the changeset viewer.