/manager/actions/mutate_settings.dynamic.php
PHP | 1841 lines | 1742 code | 60 blank | 39 comment | 133 complexity | 22cfb9e1801017f2018d44d287743937 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MIT, BSD-2-Clause, Apache-2.0, BSD-3-Clause
Large files files are truncated, but you can click here to view the full file
- <?php
- if(IN_MANAGER_MODE!="true") die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the MODX Content Manager instead of accessing this file directly.");
- if(!$modx->hasPermission('settings')) {
- $modx->webAlertAndQuit($_lang["error_no_privileges"]);
- }
- // check to see the edit settings page isn't locked
- $rs = $modx->db->select('username', $modx->getFullTableName('active_users'), "action=17 AND internalKey!='".$modx->getLoginUserID()."'");
- if ($username = $modx->db->getValue($rs)) {
- $modx->webAlertAndQuit(sprintf($_lang["lock_settings_msg"],$username));
- }
- // end check for lock
- // reload system settings from the database.
- // this will prevent user-defined settings from being saved as system setting
- $settings = array();
- $rs = $modx->db->select('setting_name, setting_value', $modx->getFullTableName('system_settings'));
- while ($row = $modx->db->getRow($rs)) $settings[$row['setting_name']] = $row['setting_value'];
- $settings['filemanager_path'] = preg_replace('@^' . MODX_BASE_PATH . '@', '[(base_path)]', $settings['filemanager_path']);
- $settings['rb_base_dir'] = preg_replace('@^' . MODX_BASE_PATH . '@', '[(base_path)]', $settings['rb_base_dir']);
- extract($settings, EXTR_OVERWRITE);
- $displayStyle = ($_SESSION['browser']==='modern') ? 'table-row' : 'block' ;
- // load languages and keys
- $lang_keys = array();
- $dir = dir("includes/lang");
- while ($file = $dir->read()) {
- if(strpos($file, ".inc.php")>0) {
- $endpos = strpos ($file, ".");
- $languagename = substr($file, 0, $endpos);
- $lang_keys[$languagename] = get_lang_keys($file);
- }
- }
- $dir->close();
- $isDefaultUnavailableMsg = $site_unavailable_message == $_lang['siteunavailable_message_default'];
- $isDefaultUnavailableMsgJs = $isDefaultUnavailableMsg ? 'true' : 'false';
- $site_unavailable_message_view = isset($site_unavailable_message) ? $site_unavailable_message : $_lang['siteunavailable_message_default'];
- /* check the file paths */
- $settings['filemanager_path'] = $filemanager_path = trim($settings['filemanager_path']) == '' ? MODX_BASE_PATH : $settings['filemanager_path'];
- $settings['rb_base_dir'] = $rb_base_dir = trim($settings['rb_base_dir']) == '' ? MODX_BASE_PATH.'assets/' : $settings['rb_base_dir'];
- $settings['rb_base_url'] = $rb_base_url = trim($settings['rb_base_url']) == '' ? 'assets/' : $settings['rb_base_url'];
- ?>
- <style type="text/css">
- table th {text-align:left; vertical-align:top;}
- </style>
- <script type="text/javascript">
- function checkIM() {
- im_on = document.settings.im_plugin[0].checked; // check if im_plugin is on
- if(im_on==true) {
- showHide(/imRow/, 1);
- }
- };
- function checkCustomIcons() {
- if(document.settings.editor_toolbar.selectedIndex!=3) {
- showHide(/custom/,0);
- }
- };
- function showHide(what, onoff){
- var all = document.getElementsByTagName( "*" );
- var l = all.length;
- var buttonRe = what;
- var id, el, stylevar;
- if(onoff==1) {
- stylevar = "<?php echo $displayStyle; ?>";
- } else {
- stylevar = "none";
- }
- for ( var i = 0; i < l; i++ ) {
- el = all[i]
- id = el.id;
- if ( id == "" ) continue;
- if (buttonRe.test(id)) {
- el.style.display = stylevar;
- }
- }
- };
- function addContentType(){
- var i,o,exists=false;
- var txt = document.settings.txt_custom_contenttype;
- var lst = document.settings.lst_custom_contenttype;
- for(i=0;i<lst.options.length;i++)
- {
- if(lst.options[i].value==txt.value) {
- exists=true;
- break;
- }
- }
- if (!exists) {
- o = new Option(txt.value,txt.value);
- lst.options[lst.options.length]= o;
- updateContentType();
- }
- txt.value='';
- }
- function removeContentType(){
- var i;
- var lst = document.settings.lst_custom_contenttype;
- for(i=0;i<lst.options.length;i++) {
- if(lst.options[i].selected) {
- lst.remove(i);
- break;
- }
- }
- updateContentType();
- }
- function updateContentType(){
- var i,o,ol=[];
- var lst = document.settings.lst_custom_contenttype;
- var ct = document.settings.custom_contenttype;
- while(lst.options.length) {
- ol[ol.length] = lst.options[0].value;
- lst.options[0]= null;
- }
- if(ol.sort) ol.sort();
- ct.value = ol.join(",");
- for(i=0;i<ol.length;i++) {
- o = new Option(ol[i],ol[i]);
- lst.options[lst.options.length]= o;
- }
- documentDirty = true;
- }
- /**
- * @param element el were language selection comes from
- * @param string lkey language key to look up
- * @param id elupd html element to update with results
- * @param string default_str default value of string for loaded manager language - allows some level of confirmation of change from default
- */
- function confirmLangChange(el, lkey, elupd){
- lang_current = document.getElementById(elupd).value;
- lang_default = document.getElementById(lkey+'_hidden').value;
- changed = lang_current != lang_default;
- proceed = true;
- if(changed) {
- proceed = confirm('<?php echo $_lang['confirm_setting_language_change']; ?>');
- }
- if(proceed) {
- //document.getElementById(elupd).value = '';
- lang = el.options[el.selectedIndex].value;
- var myAjax = new Ajax('index.php?a=118', {
- method: 'post',
- data: 'action=get&lang='+lang+'&key='+lkey
- }).request();
- myAjax.addEvent('onComplete', function(resp){
- document.getElementById(elupd).value = resp;
- });
- }
- }
- </script>
- <form name="settings" action="index.php?a=30" method="post">
- <h1><?php echo $_lang['settings_title']; ?></h1>
- <div id="actions">
- <ul class="actionButtons">
- <li id="Button1">
- <a href="#" onclick="documentDirty=false; document.settings.submit();">
- <img src="<?php echo $_style["icons_save"]?>" /> <?php echo $_lang['save']; ?>
- </a>
- </li>
- <li id="Button5">
- <a href="#" onclick="documentDirty=false;document.location.href='index.php?a=2';">
- <img src="<?php echo $_style["icons_cancel"]?>" /> <?php echo $_lang['cancel']; ?>
- </a>
- </li>
- </ul>
- </div>
- <div style="margin: 0 10px 0 20px">
- <input type="hidden" name="site_id" value="<?php echo $site_id; ?>" />
- <input type="hidden" name="settings_version" value="<?php echo $modx->getVersionData('version'); ?>" />
- <!-- this field is used to check site settings have been entered/ updated after install or upgrade -->
- <?php if(!isset($settings_version) || $settings_version!=$modx->getVersionData('version')) { ?>
- <div class='sectionBody'><p><?php echo $_lang['settings_after_install']; ?></p></div>
- <?php } ?>
- <script type="text/javascript" src="media/script/tabpane.js"></script>
- <div class="tab-pane" id="settingsPane">
- <script type="text/javascript">
- tpSettings = new WebFXTabPane( document.getElementById( "settingsPane" ), <?php echo $modx->config['remember_last_tab'] == 1 ? 'true' : 'false'; ?> );
- </script>
- <!-- Site Settings -->
- <div class="tab-page" id="tabPage2">
- <h2 class="tab"><?php echo $_lang["settings_site"] ?></h2>
- <script type="text/javascript">tpSettings.addTabPage( document.getElementById( "tabPage2" ) );</script>
- <table border="0" cellspacing="0" cellpadding="3">
- <tr>
- <td nowrap class="warning"><?php echo htmlspecialchars($_lang["sitename_title"]) ?></td>
- <td ><input onchange="documentDirty=true;" type='text' maxlength='255' style="width: 200px;" name="site_name" value="<?php echo isset($site_name) ? htmlspecialchars($site_name) : "My MODX Site" ; ?>" /></td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["sitename_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["language_title"]?></td>
- <td> <select name="manager_language" size="1" class="inputBox" onchange="documentDirty=true;">
- <?php echo get_lang_options(null, $manager_language);?>
- </select> </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["language_message"]?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["charset_title"]?></td>
- <td> <select name="modx_charset" size="1" class="inputBox" style="width:250px;" onchange="documentDirty=true;">
- <?php include "charsets.php"; ?>
- </select> </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["charset_message"]?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["xhtml_urls_title"] ?></td>
- <td><input onchange="documentDirty=true;" type="radio" name="xhtml_urls" value="1" <?php echo $xhtml_urls=='1' ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="xhtml_urls" value="0" <?php echo ($xhtml_urls=='0' || !isset($xhtml_urls)) ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["no"]?> </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["xhtml_urls_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["sitestart_title"] ?></td>
- <td><input onchange="documentDirty=true;" type='text' maxlength='10' size='5' name="site_start" value="<?php echo isset($site_start) ? $site_start : 1 ; ?>" /></td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["sitestart_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["errorpage_title"] ?></td>
- <td><input onchange="documentDirty=true;" type='text' maxlength='10' size='5' name="error_page" value="<?php echo isset($error_page) ? $error_page : 1 ; ?>" /></td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["errorpage_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["unauthorizedpage_title"] ?></td>
- <td><input onchange="documentDirty=true;" type='text' maxlength='10' size='5' name="unauthorized_page" value="<?php echo isset($unauthorized_page) ? $unauthorized_page : 1 ; ?>" /></td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["unauthorizedpage_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["sitestatus_title"] ?></td>
- <td><input onchange="documentDirty=true;" type="radio" name="site_status" value="1" <?php echo ($site_status=='1' || !isset($site_status)) ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["online"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="site_status" value="0" <?php echo $site_status=='0' ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["offline"]?> </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["sitestatus_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning" valign="top"><?php echo $_lang["siteunavailable_page_title"] ?></td>
- <td><input onchange="documentDirty=true;" name="site_unavailable_page" type="text" maxlength="10" size="5" value="<?php echo isset($site_unavailable_page) ? $site_unavailable_page : "" ; ?>" /></td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["siteunavailable_page_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning" valign="top"><?php echo $_lang["siteunavailable_title"] ?>
- <br />
- <p><?php echo $_lang["update_settings_from_language"]; ?></p>
- <select name="reload_site_unavailable" id="reload_site_unavailable_select" onchange="confirmLangChange(this, 'siteunavailable_message_default', 'site_unavailable_message_textarea');">
- <?php echo get_lang_options('siteunavailable_message_default');?>
- </select>
- </td>
- <td> <textarea name="site_unavailable_message" id="site_unavailable_message_textarea" style="width:100%; height: 120px;"><?php echo $site_unavailable_message_view; ?></textarea>
- <input type="hidden" name="siteunavailable_message_default" id="siteunavailable_message_default_hidden" value="<?php echo addslashes($_lang['siteunavailable_message_default']);?>" />
- </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang['siteunavailable_message'];?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning" valign="top"><?php echo $_lang["track_visitors_title"] ?></td>
- <td><input onchange="documentDirty=true;" type="radio" name="track_visitors" value="1" <?php echo ($track_visitors=='1' || !isset($track_visitors)) ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="track_visitors" value="0" <?php echo $track_visitors=='0' ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["no"]?> </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["track_visitors_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning" valign="top"><?php echo $_lang["top_howmany_title"] ?></td>
- <td><input onchange="documentDirty=true;" type='text' maxlength='50' size="5" name="top_howmany" value="<?php echo isset($top_howmany) ? $top_howmany : 10 ; ?>" /></td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["top_howmany_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning" valign="top"><?php echo $_lang["defaulttemplate_logic_title"];?></td>
- <td>
- <p><?php echo $_lang["defaulttemplate_logic_general_message"];?></p>
- <input onchange="documentDirty=true;" type="radio" name="auto_template_logic" value="system"<?php if($auto_template_logic == 'system') {echo " checked='checked'";}?>/> <?php echo $_lang["defaulttemplate_logic_system_message"]; ?><br />
- <input onchange="documentDirty=true;" type="radio" name="auto_template_logic" value="parent"<?php if($auto_template_logic == 'parent') {echo " checked='checked'";}?>/> <?php echo $_lang["defaulttemplate_logic_parent_message"]; ?><br />
- <input onchange="documentDirty=true;" type="radio" name="auto_template_logic" value="sibling"<?php if($auto_template_logic == 'sibling') {echo " checked='checked'";}?>/> <?php echo $_lang["defaulttemplate_logic_sibling_message"]; ?><br />
- </td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning" valign="top"><?php echo $_lang["defaulttemplate_title"] ?></td>
- <td>
- <?php
- $rs = $modx->db->select(
- 't.templatename, t.id, c.category',
- $modx->getFullTableName('site_templates')." AS t
- LEFT JOIN ".$modx->getFullTableName('categories')." AS c ON t.category = c.id",
- "",
- 'c.category, t.templatename ASC'
- );
- ?>
- <select name="default_template" class="inputBox" onchange="documentDirty=true;wrap=document.getElementById('template_reset_options_wrapper');if(this.options[this.selectedIndex].value != '<?php echo $default_template;?>'){wrap.style.display='block';}else{wrap.style.display='none';}" style="width:150px">
- <?php
-
- $currentCategory = '';
- while ($row = $modx->db->getRow($rs)) {
- $thisCategory = $row['category'];
- if($thisCategory == null) {
- $thisCategory = $_lang["no_category"];
- }
- if($thisCategory != $currentCategory) {
- if($closeOptGroup) {
- echo "\t\t\t\t\t</optgroup>\n";
- }
- echo "\t\t\t\t\t<optgroup label=\"$thisCategory\">\n";
- $closeOptGroup = true;
- } else {
- $closeOptGroup = false;
- }
-
- $selectedtext = $row['id'] == $default_template ? ' selected="selected"' : '';
- if ($selectedtext) {
- $oldTmpId = $row['id'];
- $oldTmpName = $row['templatename'];
- }
-
- echo "\t\t\t\t\t".'<option value="'.$row['id'].'"'.$selectedtext.'>'.$row['templatename']."</option>\n";
- $currentCategory = $thisCategory;
- }
- if($thisCategory != '') {
- echo "\t\t\t\t\t</optgroup>\n";
- }
- ?>
- </select>
- <br />
- <div id="template_reset_options_wrapper" style="display:none;">
- <input onchange="documentDirty=true;" type="radio" name="reset_template" value="1" /> <?php echo $_lang["template_reset_all"]; ?><br />
- <input onchange="documentDirty=true;" type="radio" name="reset_template" value="2" /> <?php echo sprintf($_lang["template_reset_specific"],$oldTmpName); ?>
- </div>
- <input type="hidden" name="old_template" value="<?php echo $oldTmpId; ?>" />
- </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["defaulttemplate_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning" valign="top"><?php echo $_lang["defaultpublish_title"] ?></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="publish_default" value="1" <?php echo $publish_default=='1' ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="publish_default" value="0" <?php echo ($publish_default=='0' || !isset($publish_default)) ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["no"]?> </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["defaultpublish_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning" valign="top"><?php echo $_lang["defaultcache_title"] ?></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="cache_default" value="1" <?php echo $cache_default=='1' ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="cache_default" value="0" <?php echo ($cache_default=='0' || !isset($cache_default)) ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["no"]?> </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["defaultcache_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning" valign="top"><?php echo $_lang["defaultsearch_title"] ?></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="search_default" value="1" <?php echo $search_default=='1' ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="search_default" value="0" <?php echo ($search_default=='0' || !isset($search_default)) ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["no"]?> </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["defaultsearch_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning" valign="top"><?php echo $_lang["defaultmenuindex_title"] ?></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="auto_menuindex" value="1" <?php echo ($auto_menuindex=='1' || !isset($auto_menuindex)) ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="auto_menuindex" value="0" <?php echo ($auto_menuindex=='0') ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["no"]?> </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["defaultmenuindex_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning" valign="top"><?php echo $_lang["custom_contenttype_title"] ?></td>
- <td><input name="txt_custom_contenttype" type="text" maxlength="100" style="width: 200px;" value="" /> <input type="button" value="<?php echo $_lang["add"]; ?>" onclick='addContentType()' /><br />
- <table border="0" cellspacing="0" cellpadding="0"><tr><td valign="top">
- <select name="lst_custom_contenttype" style="width:200px;" size="5">
- <?php
- $custom_contenttype = (isset($custom_contenttype) ? $custom_contenttype : "text/css,text/html,text/javascript,text/plain,text/xml");
- $ct = explode(",",$custom_contenttype);
- for($i=0;$i<count($ct);$i++) {
- echo "<option value=\"".$ct[$i]."\">".$ct[$i]."</option>";
- }
- ?>
- </select>
- <input name="custom_contenttype" type="hidden" value="<?php echo $custom_contenttype; ?>" />
- </td><td valign="top"> <input name="removecontenttype" type="button" value="<?php echo $_lang["remove"]; ?>" onclick='removeContentType()' /></td></tr></table>
- </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["custom_contenttype_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning" valign="top"><?php echo $_lang["docid_incrmnt_method_title"] ?></td>
- <td>
- <input onchange="documentDirty=true;" type="radio" name="docid_incrmnt_method" value="0"
- <?php echo ($docid_incrmnt_method=='0' || !isset($auto_menuindex)) ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["docid_incrmnt_method_0"]?><br />
-
- <input onchange="documentDirty=true;" type="radio" name="docid_incrmnt_method" value="1"
- <?php echo ($docid_incrmnt_method=='1') ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["docid_incrmnt_method_1"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="docid_incrmnt_method" value="2"
- <?php echo ($docid_incrmnt_method=='2') ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["docid_incrmnt_method_2"]?><br />
- </td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["cache_type_title"] ?></td>
- <td>
-
- <input onchange="documentDirty=true;" type="radio" name="cache_type" value="1"
- <?php echo ($cache_type=='1') ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["cache_type_1"]?><br />
-
- <input onchange="documentDirty=true;" type="radio" name="cache_type" value="2"
- <?php echo ($cache_type=='2') ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["cache_type_2"]?><br />
- </td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["serveroffset_title"] ?></td>
- <td> <select name="server_offset_time" size="1" class="inputBox">
- <?php
- for($i=-24; $i<25; $i++) {
- $seconds = $i*60*60;
- $selectedtext = $seconds==$server_offset_time ? "selected='selected'" : "" ;
- ?>
- <option value="<?php echo $seconds; ?>" <?php echo $selectedtext; ?>><?php echo $i; ?></option>
- <?php
- }
- ?>
- </select> </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php printf($_lang["serveroffset_message"], strftime('%H:%M:%S', time()), strftime('%H:%M:%S', time()+$server_offset_time)); ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'> </div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["server_protocol_title"] ?></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="server_protocol" value="http" <?php echo ($server_protocol=='http' || !isset($server_protocol))? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["server_protocol_http"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="server_protocol" value="https" <?php echo $server_protocol=='https' ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["server_protocol_https"]?> </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["server_protocol_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["validate_referer_title"] ?></td>
- <td><input onchange="documentDirty=true;" type="radio" name="validate_referer" value="1" <?php echo ($validate_referer=='1' || !isset($validate_referer)) ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="validate_referer" value="0" <?php echo $validate_referer=='0' ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["no"]?> </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["validate_referer_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["valid_hostnames_title"] ?></td>
- <td ><input onchange="documentDirty=true;" type='text' maxlength='255' style="width: 200px;" name="valid_hostnames" value="<?php echo isset($valid_hostnames) ? htmlspecialchars($valid_hostnames) : "" ; ?>" /></td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["valid_hostnames_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["rss_url_news_title"] ?></td>
- <td ><input onchange="documentDirty=true;" type='text' maxlength='350' style="width: 350px;" name="rss_url_news" value="<?php echo isset($rss_url_news) ? $rss_url_news : $_lang["rss_url_news_default"] ; ?>" /></td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["rss_url_news_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["rss_url_security_title"] ?></td>
- <td ><input onchange="documentDirty=true;" type='text' maxlength='350' style="width: 350px;" name="rss_url_security" value="<?php echo isset($rss_url_security) ? $rss_url_security : $_lang["rss_url_security_default"] ; ?>" /></td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["rss_url_security_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr class='row1'>
- <td colspan="2">
- <?php
- // invoke OnSiteSettingsRender event
- $evtOut = $modx->invokeEvent("OnSiteSettingsRender");
- if(is_array($evtOut)) echo implode("",$evtOut);
- ?>
- </td>
- </tr>
- </table>
- </div>
- <!-- Friendly URL settings -->
- <div class="tab-page" id="tabPage3">
- <h2 class="tab"><?php echo $_lang["settings_furls"] ?></h2>
- <script type="text/javascript">tpSettings.addTabPage( document.getElementById( "tabPage3" ) );</script>
- <table border="0" cellspacing="0" cellpadding="3">
- <tr>
- <td nowrap class="warning" valign="top"><?php echo $_lang["friendlyurls_title"] ?></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="friendly_urls" value="1" <?php echo $friendly_urls=='1' ? 'checked="checked"' : "" ; ?> onclick='showHide(/furlRow/, 1);' />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="friendly_urls" value="0" <?php echo ($friendly_urls=='0' || !isset($friendly_urls)) ? 'checked="checked"' : "" ; ?> onclick='showHide(/furlRow/, 0);' />
- <?php echo $_lang["no"]?> </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["friendlyurls_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr id='furlRow1' class='row1' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td nowrap class="warning" valign="top"><?php echo $_lang["friendlyurlsprefix_title"] ?></td>
- <td><input onchange="documentDirty=true;" type='text' maxlength='50' style="width: 200px;" name="friendly_url_prefix" value="<?php echo isset($friendly_url_prefix) ? $friendly_url_prefix : "p" ; ?>" /></td>
- </tr>
- <tr id='furlRow2' class='row1' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["friendlyurlsprefix_message"] ?></td>
- </tr>
- <tr id='furlRow3' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr id='furlRow4' class='row1' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td nowrap class="warning" valign="top"><?php echo $_lang["friendlyurlsuffix_title"] ?></td>
- <td><input onchange="documentDirty=true;" type='text' maxlength='50' style="width: 200px;" name="friendly_url_suffix" value="<?php echo isset($friendly_url_suffix) ? $friendly_url_suffix : ".html" ; ?>" /></td>
- </tr>
- <tr id='furlRow5' class='row1' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["friendlyurlsuffix_message"] ?></td>
- </tr>
- <tr id='furlRow6' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <?php if(!isset($make_folders)) $make_folders = '0';?>
- <tr id="furlRow51" class="furlRow row1" style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <th><?php echo $_lang['make_folders_title'] ?></th>
- <td>
- <?php echo wrap_label($_lang["yes"],form_radio('make_folders','1', $make_folders=='1'));?><br />
- <?php echo wrap_label($_lang["no"],form_radio('make_folders','0', $make_folders=='0'));?><br />
- </td>
- </tr>
- <tr id='furlRow56' class='row1' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["make_folders_message"] ?></td>
- </tr>
- <tr id='furlRow52' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td colspan="2"><div class='split'></div></td>
- </tr>
-
- <?php if(!isset($seostrict)) $seostrict = '0';?>
- <tr id="furlRow53" class="furlRow row1" style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <th><?php echo $_lang['seostrict_title'] ?></th>
- <td>
- <?php echo wrap_label($_lang["yes"],form_radio('seostrict','1', $seostrict=='1'));?><br />
- <?php echo wrap_label($_lang["no"],form_radio('seostrict','0', $seostrict=='0'));?><br />
- </td>
- </tr>
- <tr id='furlRow54' class='row1' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["seostrict_message"] ?></td>
- </tr>
- <tr id='furlRow55' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr id='furlRow7' class='row1' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td nowrap class="warning" valign="top"><?php echo $_lang["friendly_alias_title"] ?></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="friendly_alias_urls" value="1" <?php echo $friendly_alias_urls=='1' ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="friendly_alias_urls" value="0" <?php echo ($friendly_alias_urls=='0' || !isset($friendly_alias_urls)) ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["no"]?> </td>
- </tr>
- <tr id='furlRow8' class='row1' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["friendly_alias_message"] ?></td>
- </tr>
- <tr id='furlRow9' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr id='furlRow10' class='row1' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td nowrap class="warning" valign="top"><?php echo $_lang["use_alias_path_title"] ?></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="use_alias_path" value="1" <?php echo $use_alias_path=='1' ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="use_alias_path" value="0" <?php echo ($use_alias_path=='0' || !isset($use_alias_path)) ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["no"]?> </td>
- </tr>
- <tr id='furlRow11' class='row1' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["use_alias_path_message"] ?></td>
- </tr>
- <tr id='furlRow12' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr id='furlRow16' class='row2' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td nowrap class="warning" valign="top"><?php echo $_lang["duplicate_alias_title"] ?></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="allow_duplicate_alias" value="1" <?php echo $allow_duplicate_alias=='1' ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="allow_duplicate_alias" value="0" <?php echo ($allow_duplicate_alias=='0' || !isset($allow_duplicate_alias)) ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["no"]?> </td>
- </tr>
- <tr id='furlRow17' class='row2' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["duplicate_alias_message"] ?></td>
- </tr>
- <tr id='furlRow18' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr id='furlRow13' class='row1' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td nowrap class="warning" valign="top"><?php echo $_lang["automatic_alias_title"] ?></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="automatic_alias" value="1" <?php echo $automatic_alias=='1' ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="automatic_alias" value="0" <?php echo ($automatic_alias=='0' || !isset($automatic_alias)) ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["no"]?> </td>
- </tr>
- <tr id='furlRow14' class='row1' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["automatic_alias_message"] ?></td>
- </tr>
- <tr id='furlRow15' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr class='row1'>
- <td colspan="2">
- <?php
- // invoke OnFriendlyURLSettingsRender event
- $evtOut = $modx->invokeEvent("OnFriendlyURLSettingsRender");
- if(is_array($evtOut)) echo implode("",$evtOut);
- ?>
- </td>
- </tr>
- </table>
- </div>
- <!-- User settings -->
- <div class="tab-page" id="tabPage4">
- <h2 class="tab"><?php echo $_lang["settings_users"] ?></h2>
- <script type="text/javascript">tpSettings.addTabPage( document.getElementById( "tabPage4" ) );</script>
- <table border="0" cellspacing="0" cellpadding="3">
- <?php
- if(!isset($check_files_onlogin))
- $check_files_onlogin="index.php\n.htaccess\nmanager/index.php\nmanager/includes/config.inc.php";
- ?>
- <tr>
- <th><?php echo $_lang["check_files_onlogin_title"] ?></th>
- <td>
- <textarea name="check_files_onlogin"><?php echo $check_files_onlogin;?></textarea><br />
-
- </td>
- </tr>
- <tr class='row1' >
- <td width="200"> </td>
- <td class='comment'> <?php echo $_lang["check_files_onlogin_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["udperms_title"] ?></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="use_udperms" value="1" <?php echo $use_udperms=='1' ? 'checked="checked"' : "" ; ?> onclick='showHide(/udPerms/, 1);' />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="use_udperms" value="0" <?php echo ($use_udperms=='0' || !isset($use_udperms)) ? 'checked="checked"' : "" ; ?> onclick='showHide(/udPerms/, 0);' />
- <?php echo $_lang["no"]?> </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["udperms_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr id='udPermsRow1' class='row1' style="display: <?php echo $use_udperms==1 ? $displayStyle : 'none' ; ?>">
- <td nowrap class="warning"><?php echo $_lang["udperms_allowroot_title"] ?></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="udperms_allowroot" value="1" <?php echo $udperms_allowroot=='1' ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="udperms_allowroot" value="0" <?php echo ($udperms_allowroot=='0' || !isset($udperms_allowroot)) ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["no"]?> </td>
- </tr>
- <tr id='udPermsRow2' class='row1' style="display: <?php echo $use_udperms==1 ? $displayStyle : 'none' ; ?>">
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["udperms_allowroot_message"] ?></td>
- </tr>
- <tr id='udPermsRow3' style="display: <?php echo $use_udperms==1 ? $displayStyle : 'none' ; ?>">
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["failed_login_title"] ?></td>
- <td><input type="text" name="failed_login_attempts" style="width:50px" value="<?php echo isset($failed_login_attempts) ? $failed_login_attempts : "3" ; ?>" /></td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["failed_login_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["blocked_minutes_title"] ?></td>
- <td><input type="text" name="blocked_minutes" style="width:100px" value="<?php echo isset($blocked_minutes) ? $blocked_minutes : "60" ; ?>" /></td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["blocked_minutes_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <?php if(!isset($error_reporting)) $error_reporting = '1'; ?>
- <th><?php echo $_lang['a17_error_reporting_title']; ?></th>
- <td>
- <?php echo wrap_label($_lang['a17_error_reporting_opt0'], form_radio('error_reporting','0' , $error_reporting==='0'));?><br />
- <?php echo wrap_label($_lang['a17_error_reporting_opt1'], form_radio('error_reporting','1' , $error_reporting==='1'));?><br />
- <?php echo wrap_label($_lang['a17_error_reporting_opt2'], form_radio('error_reporting','2' , $error_reporting==='2'));?><br />
- <?php echo wrap_label($_lang['a17_error_reporting_opt99'],form_radio('error_reporting','99', $error_reporting==='99'));?><br />
- </td>
- </tr>
- <tr class='row1' >
- <td width="200"> </td>
- <td class='comment'> <?php echo $_lang['a17_error_reporting_msg'];?></td>
- </tr>
- <tr><td colspan="2"><div class='split'></div></td></tr>
- <?php if(!isset($send_errormail)) $send_errormail='0';?>
- <tr>
- <th><?php echo $_lang['mutate_settings.dynamic.php6']; ?></th>
- <td>
- <?php echo wrap_label($_lang['mutate_settings.dynamic.php7'],form_radio('send_errormail','0', ($send_errormail=='0' || !isset($send_errormail))));?><br />
- <?php echo wrap_label('error',form_radio('send_errormail','3', $send_errormail=='3'));?><br />
- <?php echo wrap_label('error + warning',form_radio('send_errormail','2', $send_errormail=='2'));?><br />
- <?php echo wrap_label('error + warning + information',form_radio('send_errormail','1', $send_errormail=='1'));?><br />
- <?php echo parsePlaceholder($_lang['mutate_settings.dynamic.php8'],array('emailsender'=>$modx->config['emailsender']));?></td>
- </tr>
-
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <th><?php echo $_lang["pwd_hash_algo_title"] ?></th>
- <td>
- <?php
- $phm['sel']['BLOWFISH_Y'] = $pwd_hash_algo=='BLOWFISH_Y' ? 1 : 0;
- $phm['sel']['BLOWFISH_A'] = $pwd_hash_algo=='BLOWFISH_A' ? 1 : 0;
- $phm['sel']['SHA512'] = $pwd_hash_algo=='SHA512' ? 1 : 0;
- $phm['sel']['SHA256'] = $pwd_hash_algo=='SHA256' ? 1 : 0;
- $phm['sel']['MD5'] = $pwd_hash_algo=='MD5' ? 1 : 0;
- $phm['sel']['UNCRYPT'] = $pwd_hash_algo=='UNCRYPT' ? 1 : 0;
- if(!isset($pwd_hash_algo) || empty($pwd_hash_algo)) $phm['sel']['UNCRYPT'] = 1;
- $phm['e']['BLOWFISH_Y'] = $modx->manager->checkHashAlgorithm('BLOWFISH_Y') ? 0:1;
- $phm['e']['BLOWFISH_A'] = $modx->manager->checkHashAlgorithm('BLOWFISH_A') ? 0:1;
- $phm['e']['SHA512'] = $modx->manager->checkHashAlgorithm('SHA512') ? 0:1;
- $phm['e']['SHA256'] = $modx->manager->checkHashAlgorithm('SHA256') ? 0:1;
- $phm['e']['MD5'] = $modx->manager->checkHashAlgorithm('MD5') ? 0:1;
- $phm['e']['UNCRYPT'] = $modx->manager->checkHashAlgorithm('UNCRYPT') ? 0:1;
- ?>
- <?php echo wrap_label('CRYPT_BLOWFISH_Y (salt & stretch)',form_radio('pwd_hash_algo','BLOWFISH_Y',$phm['sel']['BLOWFISH_Y'], '', $phm['e']['BLOWFISH_Y']));?><br />
- <?php echo wrap_label('CRYPT_BLOWFISH_A (salt & stretch)',form_radio('pwd_hash_algo','BLOWFISH_A',$phm['sel']['BLOWFISH_A'], '', $phm['e']['BLOWFISH_A']));?><br />
- <?php echo wrap_label('CRYPT_SHA512 (salt & stretch)' ,form_radio('pwd_hash_algo','SHA512' ,$phm['sel']['SHA512'] , '', $phm['e']['SHA512']));?><br />
- <?php echo wrap_label('CRYPT_SHA256 (salt & stretch)' ,form_radio('pwd_hash_algo','SHA256' ,$phm['sel']['SHA256'] , '', $phm['e']['SHA256']));?><br />
- <?php echo wrap_label('CRYPT_MD5 (salt & stretch)' ,form_radio('pwd_hash_algo','MD5' ,$phm['sel']['MD5'] , '', $phm['e']['MD5']));?><br />
- <?php echo wrap_label('UNCRYPT(32 chars salt + SHA-1 hash)' ,form_radio('pwd_hash_algo','UNCRYPT' ,$phm['sel']['UNCRYPT'] , '', $phm['e']['UNCRYPT']));?><br />
-
- </td>
- </tr>
- <tr class='row1' >
- <td width="200"> </td>
- <td class='comment'> <?php echo $_lang["pwd_hash_algo_message"]?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <th><?php echo $_lang["enable_bindings_title"] ?></th>
- <td>
- <?php echo wrap_label($_lang["yes"],form_radio('enable_bindings','1',$enable_bindings=='1' || !isset($enable_bindings)));?><br />
- <?php echo wrap_label($_lang["no"], form_radio('enable_bindings','0',$enable_bindings=='0'));?><br />
-
- </td>
- </tr>
- <tr class='row1' >
- <td width="200"> </td>
- <td class='comment'> <?php echo $_lang["enable_bindings_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <?php
- // Check for GD before allowing captcha to be enabled
- $gdAvailable = extension_loaded('gd');
- ?>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["captcha_title"] ?></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="use_captcha" value="1" <?php echo ($use_captcha=='1' && $gdAvailable) ? 'checked="checked"' : "" ; echo (!$gdAvailable)? ' readonly="readonly"' : ''; ?> />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="use_captcha" value="0" <?php echo ($use_captcha=='0' || !isset($use_captcha) || !$gdAvailable) ? 'checked="checked"' : "" ; echo (!$gdAvailable)? ' readonly="readonly"' : '';?> />
- <?php echo $_lang["no"]?> </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["captcha_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><?php echo $_lang["captcha_words_title"] ?>
- <br />
- <p><?php echo $_lang["update_settings_from_language"]; ?></p>
- <select name="reload_captcha_words" id="reload_captcha_words_select" onchange="confirmLangChange(this, 'captcha_words_default', 'captcha_words_input');">
- <?php echo get_lang_options('captcha_words_default');?>
- </select>
- </td>
- <td><input type="text" id="captcha_words_input" name="captcha_words" style="width:250px" value="<?php ech…
Large files files are truncated, but you can click here to view the full file