Changeset View
Changeset View
Standalone View
Standalone View
scripts/user/account_admin.php
| Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | $password = phutil_console_prompt( | ||||
| pht('Enter a password for this user [blank to leave unchanged]:')); | pht('Enter a password for this user [blank to leave unchanged]:')); | ||||
| phutil_passthru('stty echo'); | phutil_passthru('stty echo'); | ||||
| if (strlen($password)) { | if (strlen($password)) { | ||||
| $changed_pass = $password; | $changed_pass = $password; | ||||
| } | } | ||||
| $is_system_agent = $user->getIsSystemAgent(); | $is_system_agent = $user->getIsSystemAgent(); | ||||
| $set_system_agent = phutil_console_confirm( | $set_system_agent = phutil_console_confirm( | ||||
| pht('Is this user a bot/script?'), | pht('Is this user a bot?'), | ||||
| $default_no = !$is_system_agent); | $default_no = !$is_system_agent); | ||||
| $verify_email = null; | $verify_email = null; | ||||
| $set_verified = false; | $set_verified = false; | ||||
| // Allow administrators to verify primary email addresses at this time in edit | // Allow administrators to verify primary email addresses at this time in edit | ||||
| // scenarios. (Create will work just fine from here as we auto-verify email | // scenarios. (Create will work just fine from here as we auto-verify email | ||||
| // on create.) | // on create.) | ||||
| if (!$is_new) { | if (!$is_new) { | ||||
| Show All 23 Lines | |||||
| } | } | ||||
| printf($tpl, pht('Password'), null, | printf($tpl, pht('Password'), null, | ||||
| ($changed_pass !== false) | ($changed_pass !== false) | ||||
| ? pht('Updated') | ? pht('Updated') | ||||
| : pht('Unchanged')); | : pht('Unchanged')); | ||||
| printf( | printf( | ||||
| $tpl, | $tpl, | ||||
| pht('Bot/Script'), | pht('Bot'), | ||||
| $original->getIsSystemAgent() ? 'Y' : 'N', | $original->getIsSystemAgent() ? 'Y' : 'N', | ||||
| $set_system_agent ? 'Y' : 'N'); | $set_system_agent ? 'Y' : 'N'); | ||||
| if ($verify_email) { | if ($verify_email) { | ||||
| printf( | printf( | ||||
| $tpl, | $tpl, | ||||
| pht('Verify Email'), | pht('Verify Email'), | ||||
| $verify_email->getIsVerified() ? 'Y' : 'N', | $verify_email->getIsVerified() ? 'Y' : 'N', | ||||
| ▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines | |||||