'+system.name+' User Settings

'); if(user.alias.toUpperCase() === 'GUEST') var fu = true; else var fu = false; function xdump(obj) { writeln(JSON.stringify(obj, null, 4)); } function save_user(save) { var str; var estr; writeln('

Saving User Record #' + save + ' ' + user.alias + ' ( ' + user.name + ' )
'); user.name = http_request.query['new_name']; if(!fu) user.handle = http_request.query['new_handle']; user.age = http_request.query['new_age']; if(!fu) user.security.password = http_request.query['new_pass']; if(!fu) user.netmail = http_request.query['new_net']; user.gender = http_request.query['new_gen']; user.birthdate = http_request.query['new_dob']; user.address = http_request.query['new_add']; user.phone = http_request.query['new_ph']; user.zipcode = http_request.query['new_zip']; user.location = http_request.query['new_loc']; if(!fu) user.command_shell = http_request.query['new_shell']; write(''); } function uflag(u_num) { // restrictions var flags=''; var f = new User(u_num); if(f.security.restrictions&UFLAG_A) flags += 'A'; if(f.security.restrictions&UFLAG_B) flags += 'B'; if(f.security.restrictions&UFLAG_C) flags += 'C'; if(f.security.restrictions&UFLAG_D) flags += 'D'; if(f.security.restrictions&UFLAG_E) flags += 'E'; if(f.security.restrictions&UFLAG_F) flags += 'F'; if(f.security.restrictions&UFLAG_G) flags += 'G'; if(f.security.restrictions&UFLAG_H) flags += 'H'; if(f.security.restrictions&UFLAG_I) flags += 'I'; if(f.security.restrictions&UFLAG_J) flags += 'J'; if(f.security.restrictions&UFLAG_K) flags += 'K'; if(f.security.restrictions&UFLAG_L) flags += 'L'; if(f.security.restrictions&UFLAG_M) flags += 'M'; if(f.security.restrictions&UFLAG_N) flags += 'N'; if(f.security.restrictions&UFLAG_O) flags += 'O'; if(f.security.restrictions&UFLAG_P) flags += 'P'; if(f.security.restrictions&UFLAG_Q) flags += 'Q'; if(f.security.restrictions&UFLAG_R) flags += 'R'; if(f.security.restrictions&UFLAG_S) flags += 'S'; if(f.security.restrictions&UFLAG_T) flags += 'T'; if(f.security.restrictions&UFLAG_U) flags += 'U'; if(f.security.restrictions&UFLAG_V) flags += 'V'; if(f.security.restrictions&UFLAG_W) flags += 'W'; if(f.security.restrictions&UFLAG_X) flags += 'X'; if(f.security.restrictions&UFLAG_Y) flags += 'Y'; if(f.security.restrictions&UFLAG_Z) flags += 'Z'; return flags; } function eflag(u_num) { var flags=''; var f = new User(u_num); if(f.security.exemptions&UFLAG_A) flags += 'A'; if(f.security.exemptions&UFLAG_B) flags += 'B'; if(f.security.exemptions&UFLAG_C) flags += 'C'; if(f.security.exemptions&UFLAG_D) flags += 'D'; if(f.security.exemptions&UFLAG_E) flags += 'E'; if(f.security.exemptions&UFLAG_F) flags += 'F'; if(f.security.exemptions&UFLAG_G) flags += 'G'; if(f.security.exemptions&UFLAG_H) flags += 'H'; if(f.security.exemptions&UFLAG_I) flags += 'I'; if(f.security.exemptions&UFLAG_J) flags += 'J'; if(f.security.exemptions&UFLAG_K) flags += 'K'; if(f.security.exemptions&UFLAG_L) flags += 'L'; if(f.security.exemptions&UFLAG_M) flags += 'M'; if(f.security.exemptions&UFLAG_N) flags += 'N'; if(f.security.exemptions&UFLAG_O) flags += 'O'; if(f.security.exemptions&UFLAG_P) flags += 'P'; if(f.security.exemptions&UFLAG_Q) flags += 'Q'; if(f.security.exemptions&UFLAG_R) flags += 'R'; if(f.security.exemptions&UFLAG_S) flags += 'S'; if(f.security.exemptions&UFLAG_T) flags += 'T'; if(f.security.exemptions&UFLAG_U) flags += 'U'; if(f.security.exemptions&UFLAG_V) flags += 'V'; if(f.security.exemptions&UFLAG_W) flags += 'W'; if(f.security.exemptions&UFLAG_X) flags += 'X'; if(f.security.exemptions&UFLAG_Y) flags += 'Y'; if(f.security.exemptions&UFLAG_Z) flags += 'Z'; return flags; } function edit_user(edit) { var uflags; if(user.security.level < 0) { write('

You Cannot Edit this Record, please Login to continue.'); write(''); exit(); } write(''+nb+'#'+user.number+' Alias: '+user.alias+nb+nb+'('+nb+user.name+nb+')'); if(!fu) { write('
' + '' + '' + ' 
'); } // check UFLAG_*s uflags = uflag(user.number); eflags = eflag(user.number); if(user.security.expiration_date === 0) var expires = 'Never'; else var expires = user.security.expiration_date; writeln('
' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + ''+nb+nb+'Last on: '+system.timestr(user.stats.laston_date)+nb+'via '+user.connection + '
Alias
'+user.alias+'
Name Level' + nb+nb+nb+nb+nb+nb + 'Age' + nb+nb+nb+nb+nb+nb+nb+nb + 'Gender
  '+user.security.level+'  ' + nb+nb+nb+nb + '' + nb+nb+nb+nb + '' + '
Expires ' + expires + '
HandleEmailNetmailPassword
AddressZip'+nb+nb+nb+nb+nb+nb+nb+nb+nb+nb+nb+'Phone
' + '' +nb+nb+nb + '
Location DOB (mm/dd/yy)
Note Comment  IP Address
'+user.ip_address+'
Host Name
 '+user.host_name+nb+'
Restrictions
' + nb + nb + uflags +'
Command Shell ( '+user.command_shell+' )
' + '
Exemptions
' + nb + nb + eflags + '
 ' + '
'); ?> '); }); } // main block edit_user(user.number); if(!http_request.query['action'] ) { http_request.query['action']='do_shit'; } if(http_request.query['action'][0] === 'save_user') { save_user(http_request.query[user.number]); } ?>