| 1 | <mt:setvar name="page_title" value="<__trans phrase="System: User Settings">"> |
|---|
| 2 | <$mt:setvar name="position_actions_bottom" value="1"$> |
|---|
| 3 | <mt:setvar name="system-user-settings" value="1"> |
|---|
| 4 | <MTSetVarBlock name="system_msg"> |
|---|
| 5 | <mt:if name="error"> |
|---|
| 6 | <mtapp:statusmsg |
|---|
| 7 | id="generic-error" |
|---|
| 8 | class="error"> |
|---|
| 9 | <mt:var name="error"> |
|---|
| 10 | </mtapp:statusmsg> |
|---|
| 11 | </mt:if> |
|---|
| 12 | <mt:if name="saved"> |
|---|
| 13 | <mtapp:statusmsg |
|---|
| 14 | id="saved" |
|---|
| 15 | class="success"> |
|---|
| 16 | <__trans phrase="Your settings have been saved."> |
|---|
| 17 | </mtapp:statusmsg> |
|---|
| 18 | </mt:if> |
|---|
| 19 | </MTSetVarBlock> |
|---|
| 20 | <MTSetVarBlock name="content_nav"> |
|---|
| 21 | <mt:include name="include/cfg_system_content_nav.tmpl"> |
|---|
| 22 | </MTSetVarBlock> |
|---|
| 23 | <mt:setvarblock name="html_head" append="1"> |
|---|
| 24 | <script type="text/javascript"> |
|---|
| 25 | /* <![CDATA[ */ |
|---|
| 26 | function clearWeblogCloneSource() { |
|---|
| 27 | var el_name = getByID("new_user_template_blog_name"); |
|---|
| 28 | var el_id = getByID("new_user_template_blog_id"); |
|---|
| 29 | if (el_name && el_id) { |
|---|
| 30 | el_id.value = ""; |
|---|
| 31 | el_name.innerHTML = "<__trans phrase="(No blog selected)">"; |
|---|
| 32 | } |
|---|
| 33 | var el_id_link = getByID("select-blog-link"); |
|---|
| 34 | if (el_id_link) { |
|---|
| 35 | el_id_link.innerHTML = "<__trans phrase="Select blog">"; |
|---|
| 36 | } |
|---|
| 37 | } |
|---|
| 38 | function validate (f) { |
|---|
| 39 | if (f.default_site_url.value && !is_valid_url(f.default_site_url.value)){ |
|---|
| 40 | alert('<__trans phrase="You must set a valid Default Site URL." escape="singlequotes">'); |
|---|
| 41 | return false; |
|---|
| 42 | } else if (f.default_site_root.value && !is_valid_path(f.default_site_root.value)) { |
|---|
| 43 | alert('<__trans phrase="You must set a valid Default Site Root." escape="singlequotes">'); |
|---|
| 44 | return false; |
|---|
| 45 | } |
|---|
| 46 | return true; |
|---|
| 47 | } |
|---|
| 48 | function is_valid_url(url_){ |
|---|
| 49 | return url_.match( /^https?:\/\/[A-Za-z0-9!$%()=_.:,;@~-]+/ ); |
|---|
| 50 | } |
|---|
| 51 | function is_valid_path(path_){ |
|---|
| 52 | for(i = 0; i < path_.length; i++){ |
|---|
| 53 | var buf = escape(path_.substr(i, 1)); |
|---|
| 54 | if (buf.match(/^%u.*/)){ |
|---|
| 55 | return false; |
|---|
| 56 | } |
|---|
| 57 | if (buf.match(/(%.{2}){2}?/)){ |
|---|
| 58 | return false; |
|---|
| 59 | } |
|---|
| 60 | } |
|---|
| 61 | return true; |
|---|
| 62 | } |
|---|
| 63 | function clearNotifyUsers() { |
|---|
| 64 | var el_name = getByID("notify_user_name"); |
|---|
| 65 | var el_id = getByID("notify_user_id"); |
|---|
| 66 | if (el_name && el_id) { |
|---|
| 67 | el_id.value = ""; |
|---|
| 68 | el_name.innerHTML = "<__trans phrase="(None selected)">"; |
|---|
| 69 | } |
|---|
| 70 | } |
|---|
| 71 | /* ]]> */ |
|---|
| 72 | </script> |
|---|
| 73 | </mt:setvarblock> |
|---|
| 74 | <mt:include name="include/header.tmpl"> |
|---|
| 75 | |
|---|
| 76 | <form action="<mt:var name="script_url">" method="post" onsubmit="return validate(this);"> |
|---|
| 77 | <input type="hidden" name="__mode" value="save_cfg_system_users" /> |
|---|
| 78 | <input type="hidden" name="return_args" value="<mt:var name="return_args" escape="html">" /> |
|---|
| 79 | <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" /> |
|---|
| 80 | |
|---|
| 81 | <mt:unless name="external_user_management"> |
|---|
| 82 | <fieldset> |
|---|
| 83 | |
|---|
| 84 | <h3><__trans phrase="User Registration"></h3> |
|---|
| 85 | |
|---|
| 86 | <mtapp:setting |
|---|
| 87 | id="registration" |
|---|
| 88 | label="<__trans phrase="Allow Registration">" |
|---|
| 89 | content_class="field-content-text" |
|---|
| 90 | hint="<__trans phrase="Select a system administrator you wish to notify when commenters successfully registered themselves.">"> |
|---|
| 91 | <p><input type="checkbox" id="registration" name="registration"<mt:if name="registration"> checked="checked"</mt:if> class="cb" /> <__trans phrase="Allow commenters to register to Movable Type"></p> |
|---|
| 92 | <input type="hidden" id="notify_user_id" name="notify_user_id" value="<mt:var name="notify_user_id" escape="html">" /> |
|---|
| 93 | <p><__trans phrase="Notify the following administrators upon registration:"><br /> |
|---|
| 94 | <strong id="notify_user_name"> |
|---|
| 95 | <mt:if name="notify_user_id"> |
|---|
| 96 | <mt:var name="notify_user_name" escape="html"> |
|---|
| 97 | <mt:else> |
|---|
| 98 | <__trans phrase="(None selected)"> |
|---|
| 99 | </mt:if> |
|---|
| 100 | </strong> |
|---|
| 101 | <br /> |
|---|
| 102 | <a href="javascript:void(0)" onclick="return openDialog(this.form, 'dialog_select_sysadmin', 'multi=1&idfield=notify_user_id&namefield=notify_user_name')"><__trans phrase="Select Administrators"></a> |
|---|
| 103 | <mt:if name="notify_user_id">| <a href="javascript:void(0)" onclick="return clearNotifyUsers()"><__trans phrase="Clear"></a></mt:if> |
|---|
| 104 | </p> |
|---|
| 105 | |
|---|
| 106 | <mt:if name="system_no_email"> |
|---|
| 107 | <div class="alert-warning-inline icon-left icon-warning"><__trans phrase="Note: System Email Address is not set. Emails will not be sent."></div> |
|---|
| 108 | </mt:if> |
|---|
| 109 | </mtapp:setting> |
|---|
| 110 | |
|---|
| 111 | </fieldset> |
|---|
| 112 | </mt:unless> |
|---|
| 113 | <fieldset> |
|---|
| 114 | |
|---|
| 115 | <h3><__trans phrase="New User Defaults"></h3> |
|---|
| 116 | |
|---|
| 117 | <mtapp:setting |
|---|
| 118 | id="personal_weblog" |
|---|
| 119 | label="<__trans phrase="Personal blog">" |
|---|
| 120 | content_class="field-content-text" |
|---|
| 121 | hint="<__trans phrase="Check to have the system automatically create a new personal blog when a user is created in the system. The user will be granted a blog administrator role on the blog.">"> |
|---|
| 122 | <input type="checkbox" id="personal_weblog" name="personal_weblog"<mt:if name="personal_weblog"> checked="checked"</mt:if> class="cb" <mt:if name="personal_weblog_readonly">disabled="disabled"</mt:if> /> <__trans phrase="Automatically create a new blog for each new user"> |
|---|
| 123 | </mtapp:setting> |
|---|
| 124 | |
|---|
| 125 | <mtapp:setting |
|---|
| 126 | id="new_user_template_blog_id" |
|---|
| 127 | label="<__trans phrase="Personal blog clone source">" |
|---|
| 128 | content_class="field-content-text" |
|---|
| 129 | hint="<__trans phrase="Select a blog you wish to use as the source for new personal blogs. The new blog will be identical to the source except for the name, publishing paths and permissions.">"> |
|---|
| 130 | <input type="hidden" id="new_user_template_blog_id" name="new_user_template_blog_id" size="5" value="<mt:var name="new_user_template_blog_id" escape="html">" /> |
|---|
| 131 | <div id="new_user_template_blog_name"> |
|---|
| 132 | <mt:if name="new_user_template_blog_id"> |
|---|
| 133 | <strong><mt:var name="new_user_template_blog_name" escape="html"> (<mt:var name="new_user_template_blog_id">)</strong> |
|---|
| 134 | <mt:unless name="new_user_template_blog_id_readonly"> |
|---|
| 135 | <a href="javascript:void(0)" onclick="return clearWeblogCloneSource()"><__trans phrase="Clear"></a> |
|---|
| 136 | </mt:unless> |
|---|
| 137 | <mt:else> |
|---|
| 138 | <__trans phrase="(No blog selected)"> |
|---|
| 139 | </mt:if> |
|---|
| 140 | </div> |
|---|
| 141 | <mt:unless name="new_user_template_blog_id_readonly"> |
|---|
| 142 | <a id="select-blog-link" href="javascript:void(0)" onclick="return openDialog(this.form, 'dialog_select_weblog', 'multi=0&idfield=new_user_template_blog_id&namefield=new_user_template_blog_name')"><mt:if name="new_user_template_blog_id"><__trans phrase="Change blog"><mt:else><__trans phrase="Select blog"></mt:if></a> |
|---|
| 143 | </mt:unless> |
|---|
| 144 | </mtapp:setting> |
|---|
| 145 | |
|---|
| 146 | <mtapp:setting |
|---|
| 147 | id="default_site_url" |
|---|
| 148 | label="<__trans phrase="Default Site URL">" |
|---|
| 149 | hint="<__trans phrase="Define the default site URL for new blogs. This URL will be appended with a unique identifier for the blog.">"> |
|---|
| 150 | <div class="textarea-wrapper"> |
|---|
| 151 | <input type="text" id="default_site_url" class="full-width" name="default_site_url" value="<mt:var name="default_site_url" escape="html">" size="50" <mt:if name="default_site_url_readonly">disabled="disabled"</mt:if> /> |
|---|
| 152 | </div> |
|---|
| 153 | </mtapp:setting> |
|---|
| 154 | |
|---|
| 155 | |
|---|
| 156 | <mtapp:setting |
|---|
| 157 | id="default_site_root" |
|---|
| 158 | label="<__trans phrase="Default Site Root">" |
|---|
| 159 | hint="<__trans phrase="Define the default site root for new blogs. This path will be appended with a unique identifier for the blog.">"> |
|---|
| 160 | <div class="textarea-wrapper"> |
|---|
| 161 | <input type="text" id="default_site_root" class="full-width" name="default_site_root" value="<mt:var name="default_site_root" escape="html">" size="50" <mt:if name="default_site_root_readonly">disabled="disabled"</mt:if> /> |
|---|
| 162 | </div> |
|---|
| 163 | </mtapp:setting> |
|---|
| 164 | |
|---|
| 165 | |
|---|
| 166 | <mtapp:setting |
|---|
| 167 | id="default_language" |
|---|
| 168 | label="<__trans phrase="Default User Language">" |
|---|
| 169 | hint="<__trans phrase="Define the default language to apply to all new users.">"> |
|---|
| 170 | <select id="default_language" name="default_language" size="1" <mt:if name="default_language_readonly">disabled="disabled"</mt:if>> |
|---|
| 171 | <mt:loop name="languages"> |
|---|
| 172 | <option value="<mt:var name="l_tag">" <mt:if name="l_selected">selected="selected"</mt:if>><mt:var name="l_name" escape="html"></option> |
|---|
| 173 | </mt:loop> |
|---|
| 174 | </select> |
|---|
| 175 | </mtapp:setting> |
|---|
| 176 | |
|---|
| 177 | |
|---|
| 178 | <mtapp:setting |
|---|
| 179 | id="default_time_zone" |
|---|
| 180 | label="<__trans phrase="Default Timezone">" |
|---|
| 181 | hint="<__trans phrase="Select your timezone from the pulldown menu.">" |
|---|
| 182 | help_page="blog_settings_general" |
|---|
| 183 | help_section="blog_timezone"> |
|---|
| 184 | <select name="default_time_zone" id="default_time_zone" <mt:if name="default_time_zone_readonly">disabled="disabled"</mt:if>> |
|---|
| 185 | <mt:if name="server_offset_"> |
|---|
| 186 | <option value=""><__trans phrase="Time zone not selected"></option> |
|---|
| 187 | </mt:if> |
|---|
| 188 | <option value="13"<mt:if name="SERVER_OFFSET_13"> selected="selected"</mt:if>><__trans phrase="UTC+13 (New Zealand Daylight Savings Time)"></option> |
|---|
| 189 | <option value="12"<mt:if name="SERVER_OFFSET_12"> selected="selected"</mt:if>><__trans phrase="UTC+12 (International Date Line East)"></option> |
|---|
| 190 | <option value="11"<mt:if name="SERVER_OFFSET_11"> selected="selected"</mt:if>><__trans phrase="UTC+11"></option> |
|---|
| 191 | <option value="10"<mt:if name="SERVER_OFFSET_10"> selected="selected"</mt:if>><__trans phrase="UTC+10 (East Australian Time)"></option> |
|---|
| 192 | <option value="9.5"<mt:if name="SERVER_OFFSET_9_5"> selected="selected"</mt:if>><__trans phrase="UTC+9.5 (Central Australian Time)"></option> |
|---|
| 193 | <option value="9"<mt:if name="SERVER_OFFSET_9"> selected="selected"</mt:if>><__trans phrase="UTC+9 (Japan Time)"></option> |
|---|
| 194 | <option value="8"<mt:if name="SERVER_OFFSET_8"> selected="selected"</mt:if>><__trans phrase="UTC+8 (China Coast Time)"></option> |
|---|
| 195 | <option value="7"<mt:if name="SERVER_OFFSET_7"> selected="selected"</mt:if>><__trans phrase="UTC+7 (West Australian Time)"></option> |
|---|
| 196 | <option value="6.5"<mt:if name="SERVER_OFFSET_6_5"> selected="selected"</mt:if>><__trans phrase="UTC+6.5 (North Sumatra)"></option> |
|---|
| 197 | <option value="6"<mt:if name="SERVER_OFFSET_6"> selected="selected"</mt:if>><__trans phrase="UTC+6 (Russian Federation Zone 5)"></option> |
|---|
| 198 | <option value="5.5"<mt:if name="SERVER_OFFSET_5_5"> selected="selected"</mt:if>><__trans phrase="UTC+5.5 (Indian)"></option> |
|---|
| 199 | <option value="5"<mt:if name="SERVER_OFFSET_5"> selected="selected"</mt:if>><__trans phrase="UTC+5 (Russian Federation Zone 4)"></option> |
|---|
| 200 | <option value="4"<mt:if name="SERVER_OFFSET_4"> selected="selected"</mt:if>><__trans phrase="UTC+4 (Russian Federation Zone 3)"></option> |
|---|
| 201 | <option value="3.5"<mt:if name="SERVER_OFFSET_3_5"> selected="selected"</mt:if>><__trans phrase="UTC+3.5 (Iran)"></option> |
|---|
| 202 | <option value="3"<mt:if name="SERVER_OFFSET_3"> selected="selected"</mt:if>><__trans phrase="UTC+3 (Baghdad Time/Moscow Time)"></option> |
|---|
| 203 | <option value="2"<mt:if name="SERVER_OFFSET_2"> selected="selected"</mt:if>><__trans phrase="UTC+2 (Eastern Europe Time)"></option> |
|---|
| 204 | <option value="1"<mt:if name="SERVER_OFFSET_1"> selected="selected"</mt:if>><__trans phrase="UTC+1 (Central European Time)"></option> |
|---|
| 205 | <option value="0"<mt:if name="SERVER_OFFSET_0"> selected="selected"</mt:if>><__trans phrase="UTC+0 (Universal Time Coordinated)"></option> |
|---|
| 206 | <option value="-1"<mt:if name="SERVER_OFFSET__1"> selected="selected"</mt:if>><__trans phrase="UTC-1 (West Africa Time)"></option> |
|---|
| 207 | <option value="-2"<mt:if name="SERVER_OFFSET__2"> selected="selected"</mt:if>><__trans phrase="UTC-2 (Azores Time)"></option> |
|---|
| 208 | <option value="-3"<mt:if name="SERVER_OFFSET__3"> selected="selected"</mt:if>><__trans phrase="UTC-3 (Atlantic Time)"></option> |
|---|
| 209 | <option value="-3.5"<mt:if name="SERVER_OFFSET__3_5"> selected="selected"</mt:if>><__trans phrase="UTC-3.5 (Newfoundland)"></option> |
|---|
| 210 | <option value="-4"<mt:if name="SERVER_OFFSET__4"> selected="selected"</mt:if>><__trans phrase="UTC-4 (Atlantic Time)"></option> |
|---|
| 211 | <option value="-5"<mt:if name="SERVER_OFFSET__5"> selected="selected"</mt:if>><__trans phrase="UTC-5 (Eastern Time)"></option> |
|---|
| 212 | <option value="-6"<mt:if name="SERVER_OFFSET__6"> selected="selected"</mt:if>><__trans phrase="UTC-6 (Central Time)"></option> |
|---|
| 213 | <option value="-7"<mt:if name="SERVER_OFFSET__7"> selected="selected"</mt:if>><__trans phrase="UTC-7 (Mountain Time)"></option> |
|---|
| 214 | <option value="-8"<mt:if name="SERVER_OFFSET__8"> selected="selected"</mt:if>><__trans phrase="UTC-8 (Pacific Time)"></option> |
|---|
| 215 | <option value="-9"<mt:if name="SERVER_OFFSET__9"> selected="selected"</mt:if>><__trans phrase="UTC-9 (Alaskan Time)"></option> |
|---|
| 216 | <option value="-10"<mt:if name="SERVER_OFFSET__10"> selected="selected"</mt:if>><__trans phrase="UTC-10 (Aleutians-Hawaii Time)"></option> |
|---|
| 217 | <option value="-11"<mt:if name="SERVER_OFFSET__11"> selected="selected"</mt:if>><__trans phrase="UTC-11 (Nome Time)"></option> |
|---|
| 218 | </select> |
|---|
| 219 | </mtapp:setting> |
|---|
| 220 | |
|---|
| 221 | |
|---|
| 222 | <mtapp:setting |
|---|
| 223 | id="tag_delim" |
|---|
| 224 | label="<__trans phrase="Default Tag Delimiter">" |
|---|
| 225 | hint="<__trans phrase="Define the default delimiter for entering tags.">"> |
|---|
| 226 | <select name="default_user_tag_delimiter" id="tag_delim" <mt:if name="default_user_tag_delimiter_readonly">disabled="disabled"</mt:if>> |
|---|
| 227 | <option value="comma"<mt:if name="tag_delim_comma"> selected="selected"</mt:if>><__trans phrase="Comma"></option> |
|---|
| 228 | <option value="space"<mt:if name="tag_delim_space"> selected="selected"</mt:if>><__trans phrase="Space"></option> |
|---|
| 229 | </select> |
|---|
| 230 | </mtapp:setting> |
|---|
| 231 | |
|---|
| 232 | </fieldset> |
|---|
| 233 | |
|---|
| 234 | <mt:setvarblock name="action_buttons"> |
|---|
| 235 | <button |
|---|
| 236 | type="submit" |
|---|
| 237 | accesskey="s" |
|---|
| 238 | title="<__trans phrase="Save changes to these settings (s)">" |
|---|
| 239 | class="primary-button" |
|---|
| 240 | ><__trans phrase="Save Changes"></button> |
|---|
| 241 | </mt:setvarblock> |
|---|
| 242 | <mt:include name="include/actions_bar.tmpl" bar_position="bottom" hide_pager="1" settings_bar="1"> |
|---|
| 243 | |
|---|
| 244 | </form> |
|---|
| 245 | |
|---|
| 246 | <mt:include name="include/footer.tmpl"> |
|---|