Project

General

Profile

« Previous | Next » 

Revision 1805

Added by Dietmar about 12 years ago

  1. fixed Undefined variable: nNumRows in \admin\users\index.php
  2. fixed Undefined variable: admin in \admin\admintools\tool.php
    ! show more information in awaiting activation /admin/users
    ! set input passord to autocomplete off /admin/users and /admin/prfeferences
    ! add Timezone abbreviation to time format
    ! change time and date formats fill with leading zeros
    ! optimize REQUEST_METHOD to get page_id and section_id
    ! more request vars are possible by this method

View differences:

users.php
25 25

  
26 26
if(!class_exists('admin', false)){ include(WB_PATH.'/framework/class.admin.php'); }
27 27

  
28
$requestMethod = '_'.strtoupper($_SERVER['REQUEST_METHOD']);
29
$aActionRequest = (isset(${$requestMethod})) ? ${$requestMethod} : null;
30

  
28 31
$action = 'cancel';
32

  
29 33
// Set parameter 'action' as alternative to javascript mechanism
30
$action = (isset($_POST['modify']) ? 'modify' : $action );
31
$action = (isset($_POST['delete']) ? 'delete' : $action );
32
$action = (isset($_POST['delete_outdated']) ? 'delete_outdated' : $action );
34
$action = (isset($aActionRequest['modify']) ? 'modify' : $action );
35
$action = (isset($aActionRequest['delete']) ? 'delete' : $action );
36
$action = (isset($aActionRequest['delete_outdated']) ? 'delete_outdated' : $action );
33 37

  
34 38
switch ($action):
35 39
	case 'modify' :
......
189 193
			$template->parse('show_add_loginname', '', true);
190 194
			$template->parse('main', 'main_block', false);
191 195
			$template->pparse('output', 'page');
192
			// Print admin footer
193
			$admin->print_footer();
194 196
			break;
195 197
		case 'delete' :
196 198
			// Print header
......
221 223
			} else {
222 224
				$admin->print_success($MESSAGE['USERS_DELETED']);
223 225
			}
224
			// Print admin footer
225
			$admin->print_footer();
226 226
			break;
227 227
		case 'delete_outdated' :
228 228
			$admin = new admin('Access', 'users_delete');
229

  
230 229
			$user_id = intval($admin->checkIDKEY('user_id_activation_id', 0, $_SERVER['REQUEST_METHOD']));
231 230
			// Check if user id is a valid number and doesnt equal 1
232 231
			if($user_id == 0){
......
243 242
			} else {
244 243
				$admin->print_success($MESSAGE['USERS_DELETED']);
245 244
			}
246
			// Print admin footer
247
			$admin->print_footer();
248

  
249

  
250 245
			break;
251 246
	default:
252 247
			break;
253 248
endswitch;
249

  
250

  
251

  
252
// Print admin footer
253
$admin->print_footer();
254

  

Also available in: Unified diff