1 <?php
if ($A == "UpdateAccount"): ?
>
3 <?
= __('Click %shere%s if you want to permanently delete this account.', '<a href="' . get_user_uri($N) . 'delete/' . '">', '</a>') ?
>
6 <form id
="edit-profile-form" action
="<?= get_user_uri($N) . 'update/'; ?>" method
="post">
8 <form id
="edit-profile-form" action
="<?= get_uri('/register/'); ?>" method
="post">
11 <input type
="hidden" name
="Action" value
="<?= $A ?>" />
13 <input type
="hidden" name
="ID" value
="<?= $UID ?>" />
14 <input type
="hidden" name
="token" value
="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
19 <label
for="id_username"><?
= __("Username") ?
>:</label
>
20 <input type
="text" size
="30" maxlength
="<?= config_get_int('options', 'username_max_len'); ?>" name
="U" id
="id_username" value
="<?= htmlspecialchars($U,ENT_QUOTES) ?>" /> (<?
= __("required") ?
>)
23 # Only TUs or Devs can promote/demote/suspend a user
24 if (has_credential(CRED_ACCOUNT_CHANGE_TYPE
)):
27 <label
for="id_type"><?
= __("Account Type") ?
>:</label
>
28 <select name
="T" id
="id_type">
29 <?php
if ($T == 1): ?
>
30 <option value
="1" selected
="selected"><?
= __("Normal user") ?
></option
>
32 <option value
="1"><?
= __("Normal user") ?
></option
>
34 <?php
if ($T == 2): ?
>
35 <option value
="2" selected
="selected"><?
= __("Trusted user") ?
></option
>
37 <option value
="2"><?
= __("Trusted user") ?
></option
>
39 <?php
if (has_credential(CRED_ACCOUNT_EDIT_DEV
)): ?
>
41 <?php
$T == 3 ?
print " selected=\"selected\">" : print ">";
42 print __("Developer")."\n"; ?
>
45 <?php
$T == 4 ?
print " selected=\"selected\">" : print ">";
46 print __("Trusted User & Developer")."\n"; ?
>
54 <label
for="id_suspended"><?
= __("Account Suspended") ?
>:</label
>
56 <input type
="checkbox" name
="S" id
="id_suspended" checked
="checked" />
58 <input type
="checkbox" name
="S" id
="id_suspended" />
63 <?php
if ($A == "UpdateAccount"): ?
>
65 <label
for="id_inactive"><?
= __("Inactive") ?
>:</label
>
66 <input type
="checkbox" name
="J" id
="id_inactive" <?
= $J ?
'checked="checked"' : '' ?
> />
71 <label
for="id_email"><?
= __("Email Address") ?
>:</label
>
72 <input type
="text" size
="30" maxlength
="254" name
="E" id
="id_email" value
="<?= htmlspecialchars($E,ENT_QUOTES) ?>" /> (<?
= __("required") ?
>)
76 <em
><?
= __("Please ensure you correctly entered your email address, otherwise you will be locked out.") ?
></em
>
80 <label
for="id_hide"><?
= __("Hide Email Address") ?
>:</label
>
81 <input type
="checkbox" name
="H" id
="id_hide" <?
= $H ?
'checked="checked"' : '' ?
> />
84 <?php
if ($A == "UpdateAccount"): ?
>
86 <label
for="id_passwd1"><?
= __("Password") ?
>:</label
>
87 <input type
="password" size
="30" name
="P" id
="id_passwd1" value
="<?= $P ?>" />
91 <label
for="id_passwd2"><?
= __("Re-type password") ?
>:</label
>
92 <input type
="password" size
="30" name
="C" id
="id_passwd2" value
="<?= $C ?>" />
97 <label
for="id_realname"><?
= __("Real Name") ?
>:</label
>
98 <input type
="text" size
="30" maxlength
="32" name
="R" id
="id_realname" value
="<?= htmlspecialchars($R,ENT_QUOTES) ?>" />
102 <label
for="id_irc"><?
= __("IRC Nick") ?
>:</label
>
103 <input type
="text" size
="30" maxlength
="32" name
="I" id
="id_irc" value
="<?= htmlspecialchars($I,ENT_QUOTES) ?>" />
107 <label
for="id_pgp"><?
= __("PGP Key Fingerprint") ?
>:</label
>
108 <input type
="text" size
="30" maxlength
="50" name
="K" id
="id_pgp" value
="<?= html_format_pgp_fingerprint($K) ?>" />
112 <label
for="id_language"><?
= __("Language") ?
>:</label
>
113 <select name
="L" id
="id_language">
115 reset($SUPPORTED_LANGS);
116 while (list($code, $lang) = each($SUPPORTED_LANGS)) {
118 print "<option value=\"".$code."\" selected=\"selected\"> ".$lang."</option>"."\n";
120 print "<option value=\"".$code."\"> ".$lang."</option>"."\n";
129 <legend
><?
= __("The following information is only required if you want to submit packages to the Arch User Repository.") ?
></legend
>
131 <label
for="id_ssh"><?
= __("SSH Public Key") ?
>:</label
>
132 <textarea name
="PK" id
="id_ssh" rows
="5" cols
="30"><?
= htmlspecialchars($PK) ?
></textarea
>
137 <legend
><?
= __("Notification settings") ?
>:</legend
>
139 <label
for="id_commentnotify"><?
= __("Notify of new comments") ?
>:</label
>
140 <input type
="checkbox" name
="CN" id
="id_commentnotify" <?
= $CN ?
'checked="checked"' : '' ?
> />
147 <?php
if ($A == "UpdateAccount"): ?
>
148 <input type
="submit" class="button" value
="<?= __("Update
") ?>" />  
;
150 <input type
="submit" class="button" value
="<?= __("Create
") ?>" />  
;
152 <input type
="reset" class="button" value
="<?= __("Reset
") ?>" />