/manager/actions/mutate_settings.dynamic.php
PHP | 1397 lines | 1323 code | 35 blank | 39 comment | 92 complexity | 43b7aa56b548d78a6b73aafefe10cfb9 MD5 | raw file
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')) {
- $e->setError(3);
- $e->dumpError();
- }
- // check to see the edit settings page isn't locked
- $sql = "SELECT internalKey, username FROM $dbase.`".$table_prefix."active_users` WHERE $dbase.`".$table_prefix."active_users`.action=17";
- $rs = mysql_query($sql);
- $limit = mysql_num_rows($rs);
- if($limit>1) {
- for ($i=0;$i<$limit;$i++) {
- $lock = mysql_fetch_assoc($rs);
- if($lock['internalKey']!=$modx->getLoginUserID()) {
- $msg = sprintf($_lang["lock_settings_msg"],$lock['username']);
- $e->setError(5, $msg);
- $e->dumpError();
- }
- }
- }
- // end check for lock
- // reload system settings from the database.
- // this will prevent user-defined settings from being saved as system setting
- $settings = array();
- $sql = "SELECT setting_name, setting_value FROM $dbase.`".$table_prefix."system_settings`";
- $rs = mysql_query($sql);
- $number_of_settings = mysql_num_rows($rs);
- while ($row = mysql_fetch_assoc($rs)) $settings[$row['setting_name']] = $row['setting_value'];
- extract($settings, EXTR_OVERWRITE);
- $displayStyle = ( ($_SESSION['browser']=='mz') || ($_SESSION['browser']=='op') || ($_SESSION['browser']=='sf') ) ? "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'];
- $validate_referrer_off_val = $modx->db->getValue('SELECT setting_value FROM '.$modx->getFullTableName('system_settings').' WHERE setting_name=\'validate_referer\'');
- $validate_referrer_off_val = $validate_referrer_off_val === '00' ? '00' : '0'; // storing the double zero is a trick to hide the warning message from the manager
- /* 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'];
- ?>
- <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_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_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"><b><?php echo $_lang["sitename_title"] ?></b></td>
- <td ><input onchange="documentDirty=true;" type='text' maxlength='255' style="width: 200px;" name="site_name" value="<?php echo isset($site_name) ? $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"><b><?php echo $_lang["language_title"]?></b></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"><b><?php echo $_lang["charset_title"]?></b></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"><b><?php echo $_lang["xhtml_urls_title"] ?></b></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"><b><?php echo $_lang["sitestart_title"] ?></b></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"><b><?php echo $_lang["errorpage_title"] ?></b></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"><b><?php echo $_lang["unauthorizedpage_title"] ?></b></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"><b><?php echo $_lang["sitestatus_title"] ?></b></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"><b><?php echo $_lang["siteunavailable_page_title"] ?></b></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"><b><?php echo $_lang["siteunavailable_title"] ?></b>
- <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"><b><?php echo $_lang["track_visitors_title"] ?></b></td>
- <td><input onchange="documentDirty=true;" type="radio" name="track_visitors" value="1" <?php echo ($track_visitors=='1' || !isset($track_visitors)) ? 'checked="checked"' : "" ; ?> onclick='showHide(/logRow/, 1);' />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="track_visitors" value="0" <?php echo $track_visitors=='0' ? 'checked="checked"' : "" ; ?> onclick='showHide(/logRow/, 0);' />
- <?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 id='logRow1' class='row1' style="display: <?php echo $track_visitors==1 ? $displayStyle : 'none' ; ?>">
- <td nowrap class="warning" valign="top"><b><?php echo $_lang["resolve_hostnames_title"] ?></b></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="resolve_hostnames" value="1" <?php echo ($resolve_hostnames=='1' || !isset($resolve_hostnames)) ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="resolve_hostnames" value="0" <?php echo $resolve_hostnames=='0' ? 'checked="checked"' : "" ; ?> />
- <?php echo $_lang["no"]?> </td>
- </tr>
- <tr id='logRow2' class='row1' style="display: <?php echo $track_visitors==1 ? $displayStyle : 'none' ; ?>">
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["resolve_hostnames_message"] ?></td>
- </tr>
- <tr id='logRow3' style="display: <?php echo $track_visitors==1 ? $displayStyle : 'none' ; ?>">
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning" valign="top"><b><?php echo $_lang["top_howmany_title"] ?></b></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"><b><?php echo $_lang["defaulttemplate_title"] ?></b></td>
- <td>
- <?php
- $sql = "select templatename, id from $dbase.`".$table_prefix."site_templates`";
- $rs = mysql_query($sql);
- ?>
- <select name="default_template" class="inputBox" onchange='documentDirty=true;' style="width:150px">
- <?php
- while ($row = mysql_fetch_assoc($rs)) {
- $selectedtext = $row['id']==$default_template ? "selected='selected'" : "" ;
- if ($selectedtext) {
- $oldTmpId = $row['id'];
- $oldTmpName = $row['templatename'];
- }
- ?>
- <option value="<?php echo $row['id']; ?>" <?php echo $selectedtext; ?>><?php echo $row['templatename']; ?></option>
- <?php
- }
- ?>
- </select>
- <br />
- <br />
- <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); ?>
- <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"><b><?php echo $_lang["defaultpublish_title"] ?></b></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"><b><?php echo $_lang["defaultcache_title"] ?></b></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"><b><?php echo $_lang["defaultsearch_title"] ?></b></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"><b><?php echo $_lang["defaultmenuindex_title"] ?></b></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"><b><?php echo $_lang["custom_contenttype_title"] ?></b></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>
- <td nowrap class="warning"><b><?php echo $_lang["serveroffset_title"] ?></b></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"><b><?php echo $_lang["server_protocol_title"] ?></b></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"><b><?php echo $_lang["validate_referer_title"] ?></b></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="<?php echo $validate_referrer_off_val;?>" <?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["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"><b><?php echo $_lang["friendlyurls_title"] ?></b></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"><b><?php echo $_lang["friendlyurlsprefix_title"] ?></b></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"><b><?php echo $_lang["friendlyurlsuffix_title"] ?></b></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>
- <tr id='furlRow7' class='row1' style="display: <?php echo $friendly_urls==1 ? $displayStyle : 'none' ; ?>">
- <td nowrap class="warning" valign="top"><b><?php echo $_lang["friendly_alias_title"] ?></b></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"><b><?php echo $_lang["use_alias_path_title"] ?></b></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"><b><?php echo $_lang["duplicate_alias_title"] ?></b></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"><b><?php echo $_lang["automatic_alias_title"] ?></b></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">
- <tr>
- <td nowrap class="warning"><b><?php echo $_lang["udperms_title"] ?></b></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"><b><?php echo $_lang["udperms_allowroot_title"] ?></b></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"><b><?php echo $_lang["failed_login_title"] ?></b></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"><b><?php echo $_lang["blocked_minutes_title"] ?></b></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>
- <?php
- // Check for GD before allowing captcha to be enabled
- $gdAvailable = extension_loaded('gd');
- ?>
- <tr>
- <td nowrap class="warning"><b><?php echo $_lang["captcha_title"] ?></b></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"><b><?php echo $_lang["captcha_words_title"] ?></b>
- <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 echo isset($captcha_words) ? $captcha_words : $_lang["captcha_words_default"] ; ?>" />
- <input type="hidden" name="captcha_words_default" id="captcha_words_default_hidden" value="<?php echo addslashes($_lang["captcha_words_default"]);?>" />
- </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["captcha_words_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><b><?php echo $_lang["emailsender_title"] ?></b></td>
- <td ><input onchange="documentDirty=true;" type='text' maxlength='255' style="width: 250px;" name="emailsender" value="<?php echo isset($emailsender) ? $emailsender : "you@example.com" ; ?>" /></td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["emailsender_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><b><?php echo $_lang["emailsubject_title"] ?></b>
- <br />
- <p><?php echo $_lang["update_settings_from_language"]; ?></p>
- <select name="reload_emailsubject" id="reload_emailsubject_select" onchange="confirmLangChange(this, 'emailsubject_default', 'emailsubject_field');">
- <?php echo get_lang_options('emailsubject_default');?>
- </select>
- </td>
- <td ><input id="emailsubject_field" name="emailsubject" onchange="documentDirty=true;" type='text' maxlength='255' style="width: 250px;" value="<?php echo isset($emailsubject) ? $emailsubject : $_lang["emailsubject_default"] ; ?>" />
- <input type="hidden" name="emailsubject_default" id="emailsubject_default_hidden" value="<?php echo addslashes($_lang['emailsubject_default']);?>" />
- </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["emailsubject_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning" valign="top"><b><?php echo $_lang["signupemail_title"] ?></b>
- <br />
- <p><?php echo $_lang["update_settings_from_language"]; ?></p>
- <select name="reload_signupemail_message" id="reload_signupemail_message_select" onchange="confirmLangChange(this, 'system_email_signup', 'signupemail_message_textarea');">
- <?php echo get_lang_options('system_email_signup');?>
- </select>
- </td>
- <td> <textarea id="signupemail_message_textarea" name="signupemail_message" style="width:100%; height: 120px;"><?php echo isset($signupemail_message) ? $signupemail_message : $_lang["system_email_signup"] ?></textarea>
- <input type="hidden" name="system_email_signup_default" id="system_email_signup_hidden" value="<?php echo addslashes($_lang['system_email_signup']);?>" />
- </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["signupemail_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning" valign="top"><b><?php echo $_lang["websignupemail_title"] ?></b>
- <br />
- <p><?php echo $_lang["update_settings_from_language"]; ?></p>
- <select name="reload_websignupemail_message" id="reload_websignupemail_message_select" onchange="confirmLangChange(this, 'system_email_websignup', 'websignupemail_message_textarea');">
- <?php echo get_lang_options('system_email_websignup');?>
- </select>
- </td>
- <td> <textarea id="websignupemail_message_textarea" name="websignupemail_message" style="width:100%; height: 120px;"><?php echo isset($websignupemail_message) ? $websignupemail_message : $_lang["system_email_websignup"] ?></textarea>
- <input type="hidden" name="system_email_websignup_default" id="system_email_websignup_hidden" value="<?php echo addslashes($_lang['system_email_websignup']);?>" />
- </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["websignupemail_message"] ?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning" valign="top"><b><?php echo $_lang["webpwdreminder_title"] ?></b>
- <br />
- <p><?php echo $_lang["update_settings_from_language"]; ?></p>
- <select name="reload_system_email_webreminder_message" id="reload_system_email_webreminder_select" onchange="confirmLangChange(this, 'system_email_webreminder', 'system_email_webreminder_textarea');">
- <?php echo get_lang_options('system_email_webreminder');?>
- </select>
- </td>
- <td> <textarea id="system_email_webreminder_textarea" name="webpwdreminder_message" style="width:100%; height: 120px;"><?php echo isset($webpwdreminder_message) ? $webpwdreminder_message : $_lang["system_email_webreminder"]; ?></textarea>
- <input type="hidden" name="system_email_webreminder_default" id="system_email_webreminder_hidden" value="<?php echo addslashes($_lang['system_email_webreminder']);?>" />
- </td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["webpwdreminder_message"] ?></td>
- </tr>
- <tr class='row1'>
- <td colspan="2">
- <?php
- // invoke OnUserSettingsRender event
- $evtOut = $modx->invokeEvent("OnUserSettingsRender");
- if(is_array($evtOut)) echo implode("",$evtOut);
- ?>
- </td>
- </tr>
- </table>
- </div>
- <!-- Interface & editor settings -->
- <div class="tab-page" id="tabPage5">
- <h2 class="tab"><?php echo $_lang["settings_ui"] ?></h2>
- <script type="text/javascript">tpSettings.addTabPage( document.getElementById( "tabPage5" ) );</script>
- <table border="0" cellspacing="0" cellpadding="3">
- <tr>
- <td nowrap class="warning"><b><?php echo $_lang["manager_theme"]?></b></td>
- <td> <select name="manager_theme" size="1" class="inputBox" onchange="documentDirty=true;document.forms['settings'].theme_refresher.value = Date.parse(new Date())">
- <?php
- $dir = dir("media/style/");
- while ($file = $dir->read()) {
- if($file!="." && $file!=".." && is_dir("media/style/$file") && substr($file,0,1) != '.') {
- $themename = $file;
- $selectedtext = $themename==$manager_theme ? "selected='selected'" : "" ;
- echo "<option value='$themename' $selectedtext>".ucwords(str_replace("_", " ", $themename))."</option>";
- }
- }
- $dir->close();
- ?>
- </select><input type="hidden" name="theme_refresher" value="" /></td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["manager_theme_message"]?></td>
- </tr>
-
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><b><?php echo $_lang["warning_visibility"] ?></b></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="warning_visibility" value="0" <?php echo $warning_visibility=='0' ? 'checked="checked"' : ""; ?> />
- <?php echo $_lang["administrators"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="warning_visibility" value="1" <?php echo (!isset($warning_visibility) || $warning_visibility=='1') ? 'checked="checked"' : ""; ?> />
- <?php echo $_lang["everybody"]?></td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["warning_visibility_message"]?></td>
- </tr>
-
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><b><?php echo $_lang["tree_page_click"] ?></b></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="tree_page_click" value="27" <?php echo $tree_page_click=='27' ? 'checked="checked"' : ""; ?> />
- <?php echo $_lang["edit_resource"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="tree_page_click" value="3" <?php echo ($tree_page_click=='3' || !isset($tree_page_click)) ? 'checked="checked"' : ""; ?> />
- <?php echo $_lang["doc_data_title"]?></td>
- </tr>
- <tr>
- <td width="200"> </td>
- <td class='comment'><?php echo $_lang["tree_page_click_message"]?></td>
- </tr>
- <tr>
- <td colspan="2"><div class='split'></div></td>
- </tr>
- <tr>
- <td nowrap class="warning"><b><?php echo $_lang["remember_last_tab"] ?></b></td>
- <td> <input onchange="documentDirty=true;" type="radio" name="remember_last_tab" value="1" <?php echo $remember_last_tab=='1' ? 'checked="checked"' : ""; ?> />
- <?php echo $_lang["yes"]?><br />
- <input onchange="documentDirty=true;" type="radio" name="remember_last_tab" value="0" <?php echo (!isset($remember_last_tab) || $remember_last_tab…
Large files files are truncated, but you can click here to view the full file