Changeset 8147 for extensions/LCAS/trunk/admin/LCAS_admin.php
- Timestamp:
- Dec 15, 2010, 12:49:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LCAS/trunk/admin/LCAS_admin.php
r8143 r8147 39 39 $tabsheet = new tabsheet(); 40 40 $tabsheet->add('global', 41 l10n(' Tab_Global'),41 l10n('LCAS_Tab_Global'), 42 42 $my_base_url.'&tab=global'); 43 43 $tabsheet->add('userlist', 44 l10n(' Tab_UserList'),44 l10n('LCAS_Tab_UserList'), 45 45 $my_base_url.'&tab=userlist'); 46 46 $tabsheet->select($page['tab']); … … 64 64 $height = '300px'; 65 65 $areas = array(); 66 array_push( $areas,'LCAS_ ConfirmMail_Custom_Txt1','LCAS_ConfirmMail_Custom_Txt2');66 array_push( $areas,'LCAS_accentSensitive_Custom_Txt1','LCAS_accentSensitive_Custom_Txt2'); 67 67 68 68 if (function_exists('set_fckeditor_instance')) … … 95 95 case 'global': 96 96 97 if (isset($_POST['submit']) and !is_adviser() and isset($_POST['LCAS_ Mail_Info']) and isset($_POST['LCAS_Confirm_Mail']) )97 if (isset($_POST['submit']) and !is_adviser() and isset($_POST['LCAS_Case_Sensitive']) and isset($_POST['LCAS_Accent_Sensitive']) ) 98 98 { 99 99 … … 102 102 /* Check if CR-LF exist at begining and end of mail exclusion list - If yes, removes them */ 103 103 $newconf_LCAS= array( 104 $_POST['LCAS_ Mail_Info'],105 $_POST['LCAS_ Confirm_Mail']);104 $_POST['LCAS_Case_Sensitive'], 105 $_POST['LCAS_Accent_Sensitive']); 106 106 107 107 $conf['LoginCaseAccentsSensitivity'] = serialize($newconf_LCAS); … … 133 133 'LCAS_VERSION' => $version, 134 134 'LCAS_PATH' => LCAS_PATH, 135 'LCAS_ MAIL_INFO_TRUE' => $conf_LCAS[0]=='true' ? 'checked="checked"' : '' ,136 'LCAS_ MAIL_INFO_FALSE' => $conf_LCAS[0]=='false' ? 'checked="checked"' : '' ,137 'LCAS_ CONFIRM_MAIL_TRUE' => $conf_LCAS[1]=='true' ? 'checked="checked"' : '' ,138 'LCAS_ CONFIRM_MAIL_FALSE' => $conf_LCAS[1]=='false' ? 'checked="checked"' : '' ,135 'LCAS_Case_Sensitive_TRUE' => $conf_LCAS[0]=='true' ? 'checked="checked"' : '' , 136 'LCAS_Case_Sensitive_FALSE' => $conf_LCAS[0]=='false' ? 'checked="checked"' : '' , 137 'LCAS_Accent_Sensitive_TRUE' => $conf_LCAS[1]=='true' ? 'checked="checked"' : '' , 138 'LCAS_Accent_Sensitive_FALSE' => $conf_LCAS[1]=='false' ? 'checked="checked"' : '' , 139 139 ) 140 140 ); … … 206 206 207 207 // +-----------------------------------------------------------------------+ 208 // | Template Init | 209 // +-----------------------------------------------------------------------+ 210 /*$base_url = PHPWG_ROOT_PATH.'admin.php?page=user_list'; 211 212 if (isset($_GET['start']) and is_numeric($_GET['start'])) 208 // | user list | 209 // +-----------------------------------------------------------------------+ 210 211 $lcas_previous_compare_user = ''; 212 $visible_user_list = array(); 213 foreach ($page['all_users'] as $local_user) 213 214 { 214 $start = $_GET['start']; 215 } 216 else 217 { 218 $start = 0; 219 }*/ 220 221 // +-----------------------------------------------------------------------+ 222 // | navigation bar | 223 // +-----------------------------------------------------------------------+ 224 225 /*$url = PHPWG_ROOT_PATH.'admin.php'.get_query_string_diff(array('start')); 226 227 $navbar = create_navigation_bar( 228 $url, 229 count($page['filtered_users']), 230 $start, 231 $conf['users_page'] 232 ); 233 234 $template->assign('navbar', $navbar);*/ 235 236 // +-----------------------------------------------------------------------+ 237 // | user list | 238 // +-----------------------------------------------------------------------+ 239 240 $visible_user_list = array(); 241 foreach ($page['all_users'] as $num => $local_user) 242 { 243 // simulate LIMIT $start, $conf['users_page'] 244 /*if ($num < $start) 245 { 246 continue; 215 if ($lcas_previous_compare_user != $local_user['transformed']) { 216 $display = 'orange'; 217 $lcas_previous_compare_user = $local_user['transformed']; 247 218 } 248 if ($num >= $start + $conf['users_page']) 249 { 250 break; 251 }*/ 252 253 $visible_user_list[] = $local_user; 254 } 255 256 foreach ($visible_user_list as $local_user) 257 { 258 $lcas_SendEmail = l10n('Send_Email'); 259 $lcas_UpdateUser = l10n('Update_User'); 260 $display = 'green'; 261 $display = ''; 219 else { 220 $display = ''; 221 } 262 222 263 223 $template->append( … … 265 225 array( 266 226 'ID' => $local_user['id'], 267 'USERNAME' => stripslashes($local_user['username'].' | '.$local_user['transformed']), 227 'USERNAME' => stripslashes($local_user['username']), 228 'COMPARE' => stripslashes($local_user['transformed']), 268 229 'EMAIL' => get_email_address_as_display_text($local_user['email']), 269 'LASTVISIT' => $lcas_UpdateUser,270 'DAYS' => $lcas_SendEmail,271 230 'DISPLAY' => $display, 272 231 ) … … 300 259 else 301 260 { 302 array_push($page['errors'], l10n(' Err_Userlist_Settings'));261 array_push($page['errors'], l10n('LCAS_Err_Userlist_Settings')); 303 262 } 304 263 break;
Note: See TracChangeset
for help on using the changeset viewer.