2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2010 */
6 /* Inclusive Design Institute */
8 /* This program is free software. You can redistribute it and/or */
9 /* modify it under the terms of the GNU General Public License */
10 /* as published by the Free Software Foundation. */
11 /************************************************************************/
14 * Called by "system/index.php"
18 * show_user_group: true/false. Indicates whether show section "User Group"
19 * Set to true when admin creates/edits user; set to false at new registration.
20 * The new user registered via registration form is automatically set into group "User"
21 * show_password: true/false. Indicates whether show section "Password" & "Password Again"
22 * Set to true when admin creates new user or new user registration;
23 * Set to false when admin edits existing user.
24 * show_status: true/false. Indicates whether show section "status"
25 * Set to true when admin creates/edits user; set to false at new registration.
26 * user_row: only need when edit existing user.
27 * all_user_groups: display selections in dropdown list box "User Group"
29 * submit_button_text: button text for submit button. "Register" at registration, "Save" at admin creating/editing user
32 global $onload, $_config;
33 $onload = 'document.form.site_name.focus();';
35 require(TR_INCLUDE_PATH.'header.inc.php');
38 <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
40 <div class="input-form">
41 <fieldset class="group_form"><legend class="group_form"><?php echo _AT("system_settings"); ?></legend>
43 <table class="form-data" align="center">
45 <td colspan="2" align="left"><br/><?php echo _AT('required_field_text') ;?></td>
49 <td align="left"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="site_name"><?php echo _AT('site_name'); ?></label>:</td>
50 <td align="left"><input id="site_name" name="site_name" type="text" maxlength="20" size="30" value="<?php if (isset($_POST['site_name'])) echo stripslashes(htmlspecialchars($_POST['site_name'])); else echo stripslashes(htmlspecialchars($this->config['site_name'])); ?>" /></td>
54 <td align="left"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="contact_email"><?php echo _AT('contact_email'); ?></label>:</td>
55 <td align="left"><input id="contact_email" name="contact_email" type="text" size="50" maxlength="50" value="<?php if (isset($_POST['contact_email'])) echo stripslashes(htmlspecialchars($_POST['contact_email'])); else echo stripslashes(htmlspecialchars($this->config['contact_email'])); ?>" /></td>
59 <td align="left"><label for="theme"><?php echo _AT('theme'); ?></label>:</td>
61 <select name="theme" id="theme"><?php
62 if (isset($_POST['theme']))
63 $selected_theme = $_POST['theme'];
65 $selected_theme = $_SESSION['prefs']['PREF_THEME'];
67 foreach ($this->enabled_themes as $theme) {
72 if ($theme_fldr == $selected_theme) {
73 echo '<option value="'.$theme['dir_name'].'" selected="selected">'.$theme['title'].'</option>';
75 echo '<option value="'.$theme['dir_name'].'">'.$theme['title'].'</option>';
84 <td align="left"><label for="default_language"><?php echo _AT('default_language'); ?></label>:</td>
86 <?php if (!empty($_POST['default_language'])) {
87 $select_lang = $_POST['default_language'];
89 $select_lang = $_config['default_language'];
91 $this->languageManager->printDropdown($select_lang, 'default_language', 'default_language'); ?>
96 <td align="left"><?php echo _AT('use_captcha'); ?>:</td>
98 <input type="radio" name="use_captcha" id="statusD" value="<?php echo TR_STATUS_DISABLED; ?>" <?php if ((isset($_POST['use_captcha']) && $_POST['use_captcha']==TR_STATUS_DISABLED) || (!isset($_POST['use_captcha']) && $this->config['use_captcha']==TR_STATUS_DISABLED)) echo 'checked="checked"'; ?> /><label for="statusD"><?php echo _AT('disabled'); ?></label>
99 <input type="radio" name="use_captcha" id="statusE" value="<?php echo TR_STATUS_ENABLED; ?>" <?php if ((isset($_POST['use_captcha']) && $_POST['use_captcha']==TR_STATUS_ENABLED) || (!isset($_POST['use_captcha']) && $this->config['use_captcha']==TR_STATUS_ENABLED)) echo 'checked="checked"'; ?> /><label for="statusE"><?php echo _AT('enabled'); ?></label>
104 <td align="left" colspan="2">
105 <small>· <?php echo _AT('default_use_captcha'); ?></small>
110 <td align="left"><label for="max_file_size"><?php echo _AT('max_file_size'); ?></label>:</td>
111 <td align="left"><input id="max_file_size" name="max_file_size" type="text" value="<?php if (isset($_POST['max_file_size'])) echo stripslashes(htmlspecialchars($_POST['max_file_size'])); else echo stripslashes(htmlspecialchars($this->config['max_file_size'])); ?>" /></td>
115 <td align="left" colspan="2">
116 <small>· <?php echo _AT('default_max_file_size'); ?></small>
121 <td align="left"><label for="illegal_extentions"><?php echo _AT('illegal_extentions'); ?></label>:</td>
122 <td align="left"><textarea name="illegal_extentions" cols="50" id="illegal_extentions" rows="2" class="formfield" ><?php if ($this->config['illegal_extentions']) { echo str_replace('|',' ',$this->config['illegal_extentions']); }?></textarea></td>
126 <td align="left"><label for="latex_server"><?php echo _AT('latex_server'); ?></label>:</td>
127 <td align="left"><input id="latex_server" name="latex_server" size="50" type="text" value="<?php if (isset($_POST['latex_server'])) echo stripslashes(htmlspecialchars($_POST['latex_server'])); else echo stripslashes(htmlspecialchars($this->config['latex_server'])); ?>" /></td>
131 <td align="left" colspan="2">
132 <small>· <?php echo _AT('latex_server_info'); ?></small>
138 <p class="submit_button">
139 <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" class="submit" />
140 <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " class="submit" />
141 <input type="submit" name="factory_default" value=" <?php echo _AT('factory_default'); ?> " class="submit" />
151 <?php require(TR_INCLUDE_PATH.'footer.inc.php'); ?>