📄 admin.config.html.php
字号:
<?php/*** @version $Id: admin.config.html.php,v 1.15 2005/02/15 23:45:30 eddieajau Exp $* @package Mambo* @subpackage Config* @copyright (C) 2000 - 2005 Miro International Pty Ltd* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL* Mambo is Free Software*//** ensure this file is being included by a parent file */defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );/*** @package Mambo* @subpackage Config*/class HTML_config { function showconfig( &$row, &$lists, $option) { global $mosConfig_absolute_path, $mosConfig_live_site, $adminLanguage; $tabs = new mosTabs(1);?> <script type="text/javascript"> <!-- function saveFilePerms() { var f = document.adminForm; if (f.filePermsMode0.checked) f.config_fileperms.value = ''; else { var perms = 0; if (f.filePermsUserRead.checked) perms += 400; if (f.filePermsUserWrite.checked) perms += 200; if (f.filePermsUserExecute.checked) perms += 100; if (f.filePermsGroupRead.checked) perms += 40; if (f.filePermsGroupWrite.checked) perms += 20; if (f.filePermsGroupExecute.checked) perms += 10; if (f.filePermsWorldRead.checked) perms += 4; if (f.filePermsWorldWrite.checked) perms += 2; if (f.filePermsWorldExecute.checked) perms += 1; f.config_fileperms.value = '0'+''+perms; } } function changeFilePermsMode(mode) { if(document.getElementById) { switch (mode) { case 0: document.getElementById('filePermsValue').style.display = 'none'; document.getElementById('filePermsTooltip').style.display = ''; document.getElementById('filePermsFlags').style.display = 'none'; break; default: document.getElementById('filePermsValue').style.display = ''; document.getElementById('filePermsTooltip').style.display = 'none'; document.getElementById('filePermsFlags').style.display = ''; } // switch } // if saveFilePerms(); } function saveDirPerms() { var f = document.adminForm; if (f.dirPermsMode0.checked) f.config_dirperms.value = ''; else { var perms = 0; if (f.dirPermsUserRead.checked) perms += 400; if (f.dirPermsUserWrite.checked) perms += 200; if (f.dirPermsUserSearch.checked) perms += 100; if (f.dirPermsGroupRead.checked) perms += 40; if (f.dirPermsGroupWrite.checked) perms += 20; if (f.dirPermsGroupSearch.checked) perms += 10; if (f.dirPermsWorldRead.checked) perms += 4; if (f.dirPermsWorldWrite.checked) perms += 2; if (f.dirPermsWorldSearch.checked) perms += 1; f.config_dirperms.value = '0'+''+perms; } } function changeDirPermsMode(mode) { if(document.getElementById) { switch (mode) { case 0: document.getElementById('dirPermsValue').style.display = 'none'; document.getElementById('dirPermsTooltip').style.display = ''; document.getElementById('dirPermsFlags').style.display = 'none'; break; default: document.getElementById('dirPermsValue').style.display = ''; document.getElementById('dirPermsTooltip').style.display = 'none'; document.getElementById('dirPermsFlags').style.display = ''; } // switch } // if saveDirPerms(); } //--> </script> <form action="index2.php" method="post" name="adminForm"> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> <table cellpadding="1" cellspacing="1" border="0" width="100%"> <tr> <td width="250"><table class="adminheading"><tr><th nowrap class="config"><?php echo $adminLanguage->A_COMP_CONF_GC;?></th></tr></table></td> <td width="270"> <span class="componentheading">configuration.php <?php echo $adminLanguage->A_COMP_CONF_IS;?> : <?php echo is_writable( '../configuration.php' ) ? '<b><font color="green">'. $adminLanguage->A_COMP_CONF_WRT .'</font></b>' : '<b><font color="red">'. $adminLanguage->A_COMP_CONF_UNWRT .'</font></b>' ?> </span> </td><?php if (mosIsChmodable('../configuration.php')) { if (is_writable('../configuration.php')) {?> <td> <input type="checkbox" id="disable_write" name="disable_write" value="1"/> <label for="disable_write"><?php echo $adminLanguage->A_COMP_SAVE_UNWRT;?></label> </td><?php } else {?> <td> <input type="checkbox" id="enable_write" name="enable_write" value="1"/> <label for="enable_write"><?php echo $adminLanguage->A_COMP_OVERRIDE_SAVE;?></label> </td><?php } // if } // if?> </tr> </table><?php $tabs->startPane("configPane"); $tabs->startTab($adminLanguage->A_COMP_MAMB_SITE, "site-page" );?> <table class="adminform"> <tr> <td width="185"><?php echo $adminLanguage->A_COMP_CONF_OFFLINE;?>:</td> <td><?php echo $lists['offline']; ?></td> </tr> <tr> <td valign="top"><?php echo $adminLanguage->A_COMP_CONF_OFFMESSAGE;?>:</td> <td><textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_offline_message"><?php echo htmlspecialchars($row->config_offline_message, ENT_QUOTES); ?></textarea><?php $tip = $adminLanguage->A_COMP_CONF_OFFMESSAGE_TIP; echo mosToolTip( $tip ); ?></td> </tr> <tr> <td valign="top"><?php echo $adminLanguage->A_COMP_CONF_ERR_MESSAGE;?>:</td> <td><textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_error_message"><?php echo htmlspecialchars($row->config_error_message, ENT_QUOTES); ?></textarea><?php $tip = $adminLanguage->A_COMP_CONF_ERR_MESSAGE_TIP; echo mosToolTip( $tip ); ?></td> </tr> <tr> <td><?php echo $adminLanguage->A_COMP_CONF_SITE_NAME;?>:</td> <td><input class="text_area" type="text" name="config_sitename" size="50" value="<?php echo $row->config_sitename; ?>"/></td> </tr> <tr> <td><?php echo $adminLanguage->A_COMP_CONF_UN_LINKS;?>:</td> <td><?php echo $lists['auth']; ?><?php $tip = $adminLanguage->A_COMP_CONF_UN_LINKS_TIP; echo mosToolTip( $tip ); ?></td> </tr> <tr> <td><?php echo $adminLanguage->A_COMP_CONF_USER_REG;?>:</td> <td><?php echo $lists['allowuserregistration']; ?><?php $tip = $adminLanguage->A_COMP_CONF_USER_REG_TIP; echo mosToolTip( $tip ); ?></td> </tr> <tr> <td><?php echo $adminLanguage->A_COMP_CONF_AC_ACT;?>:</td> <td><?php echo $lists['useractivation']; ?> <?php $tip = $adminLanguage->A_COMP_CONF_AC_ACT_TIP; echo mosToolTip( $tip ); ?></td> </tr> <tr> <td><?php echo $adminLanguage->A_COMP_CONF_REQ_EMAIL;?>:</td> <td><?php echo $lists['uniquemail']; ?><?php $tip = $adminLanguage->A_COMP_CONF_REQ_EMAIL_TIP; echo mosToolTip( $tip ); ?></td> </tr> <tr> <td><?php echo $adminLanguage->A_COMP_CONF_DEBUG;?>:</td> <td><?php echo $lists['debug']; ?><?php $tip = $adminLanguage->A_COMP_CONF_DEBUG_TIP; echo mosToolTip( $tip ); ?></td> </tr> <tr> <td><?php echo $adminLanguage->A_COMP_CONF_EDITOR;?>:</td> <td><?php echo $lists['editor']; ?></td> </tr> <tr> <td><?php echo $adminLanguage->A_COMP_CONF_LENGTH;?>:</td> <td><?php echo $lists['list_length']; ?><?php $tip = $adminLanguage->A_COMP_CONF_LENGTH_TIP; echo mosToolTip( $tip ); ?></td> </tr> <tr> <td><?php echo $adminLanguage->A_COMP_CONF_SITE_ICON;?>:</td> <td> <input class="text_area" type="text" name="config_favicon" size="20" value="<?php echo $row->config_favicon; ?>"/><?php $tip = $adminLanguage->A_COMP_CONF_SITE_ICON_TIP; echo mosToolTip( $tip, 'Favourite Icon' );?> </td> </tr> </table><?php $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_CONF_LOCALE, "Locale-page" );?> <table class="adminform"> <tr> <td width="185"><?php echo $adminLanguage->A_COMP_CONF_LANG;?>:</td> <td><?php echo $lists['lang']; ?></td> </tr> <tr> <td width="185"> <?php echo $adminLanguage->A_COMP_CONF_ALANG;?>: </td> <td> <?php echo $lists['alang']; ?> </td> </tr> <tr> <td width="185"><?php echo $adminLanguage->A_COMP_CONF_TIME_SET;?>:</td> <td> <?php echo $lists['offset']; ?><?php $tip = $adminLanguage->A_COMP_CONF_DATE .": ". mosCurrentDate(_DATE_FORMAT_LC2); echo mosToolTip($tip);?> </td> </tr> <tr> <td width="185"><?php echo $adminLanguage->A_COMP_CONF_LOCAL;?>:</td> <td><input class="text_area" type="text" name="config_locale" size="15" value="<?php echo $row->config_locale; ?>"/></td> </tr> </table><?php $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_MOD_CONTENT, "content-page" );?> <table class="adminform">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -