Source for file admin.config.html.php

Documentation is available at admin.config.html.php

  1. <?php
  2. /**
  3. @package Mambo
  4. @subpackage Config
  5. @copyright  Refer to copyright.php
  6. @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
  7. @author Mambo Foundation Inc see README.php
  8. */
  9.  
  10. /** ensure this file is being included by a parent file */
  11. defined'_VALID_MOS' or die'Direct Access to this location is not allowed.' );
  12.  
  13. class HTML_config {
  14.  
  15.     function showconfig&$row&$lists$option{
  16.         global $mosConfig_absolute_path$mosConfig_live_site;
  17.         $tabs new mosTabs(1);
  18. ?>
  19.         <script type="text/javascript">
  20.         <!--
  21.             function saveFilePerms()
  22.             {
  23.                 var f = document.adminForm;
  24.                 if (f.filePermsMode0.checked)
  25.                     f.config_fileperms.value = '';
  26.                 else {
  27.                     var perms = 0;
  28.                     if (f.filePermsUserRead.checked) perms += 400;
  29.                     if (f.filePermsUserWrite.checked) perms += 200;
  30.                     if (f.filePermsUserExecute.checked) perms += 100;
  31.                     if (f.filePermsGroupRead.checked) perms += 40;
  32.                     if (f.filePermsGroupWrite.checked) perms += 20;
  33.                     if (f.filePermsGroupExecute.checked) perms += 10;
  34.                     if (f.filePermsWorldRead.checked) perms += 4;
  35.                     if (f.filePermsWorldWrite.checked) perms += 2;
  36.                     if (f.filePermsWorldExecute.checked) perms += 1;
  37.                     f.config_fileperms.value = '0'+''+perms;
  38.                 }
  39.             }
  40.             function changeFilePermsMode(mode)
  41.             {
  42.                 if(document.getElementById) {
  43.                     switch (mode) {
  44.                         case 0:
  45.                             document.getElementById('filePermsValue').style.display = 'none';
  46.                             document.getElementById('filePermsTooltip').style.display = '';
  47.                             document.getElementById('filePermsFlags').style.display = 'none';
  48.                             break;
  49.                         default:
  50.                             document.getElementById('filePermsValue').style.display = '';
  51.                             document.getElementById('filePermsTooltip').style.display = 'none';
  52.                             document.getElementById('filePermsFlags').style.display = '';
  53.                     } // switch
  54.                 } // if
  55.                 saveFilePerms();
  56.             }
  57.             function saveDirPerms()
  58.             {
  59.                 var f = document.adminForm;
  60.                 if (f.dirPermsMode0.checked)
  61.                     f.config_dirperms.value = '';
  62.                 else {
  63.                     var perms = 0;
  64.                     if (f.dirPermsUserRead.checked) perms += 400;
  65.                     if (f.dirPermsUserWrite.checked) perms += 200;
  66.                     if (f.dirPermsUserSearch.checked) perms += 100;
  67.                     if (f.dirPermsGroupRead.checked) perms += 40;
  68.                     if (f.dirPermsGroupWrite.checked) perms += 20;
  69.                     if (f.dirPermsGroupSearch.checked) perms += 10;
  70.                     if (f.dirPermsWorldRead.checked) perms += 4;
  71.                     if (f.dirPermsWorldWrite.checked) perms += 2;
  72.                     if (f.dirPermsWorldSearch.checked) perms += 1;
  73.                     f.config_dirperms.value = '0'+''+perms;
  74.                 }
  75.             }
  76.             function changeDirPermsMode(mode)
  77.             {
  78.                 if(document.getElementById) {
  79.                     switch (mode) {
  80.                         case 0:
  81.                             document.getElementById('dirPermsValue').style.display = 'none';
  82.                             document.getElementById('dirPermsTooltip').style.display = '';
  83.                             document.getElementById('dirPermsFlags').style.display = 'none';
  84.                             break;
  85.                         default:
  86.                             document.getElementById('dirPermsValue').style.display = '';
  87.                             document.getElementById('dirPermsTooltip').style.display = 'none';
  88.                             document.getElementById('dirPermsFlags').style.display = '';
  89.                     } // switch
  90.                 } // if
  91.                 saveDirPerms();
  92.             }
  93.         //-->
  94.         </script>
  95.         <form action="index2.php" method="post" name="adminForm">
  96.         <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
  97.         <table cellpadding="1" cellspacing="1" border="0" width="100%">
  98.         <tr>
  99.             <td width="250"><table class="adminheading"><tr><th nowrap class="config"><?php echo T_('Global Configuration')?></th></tr></table></td>
  100.             <td width="270">
  101.                 <span class="componentheading"><?php echo T_('configuration.php is :')?>
  102.                 <b><?php echo is_writable'../configuration.php' '<span class="green"> '.T_('Writeable').'</span>' '<span class="red"> '.T_('Unwriteable').'</span>' ?></b>
  103.                 </span>
  104.             </td>
  105. <?php
  106.             if (mosIsChmodable('../configuration.php')) {
  107.                 if (is_writable('../configuration.php')) {
  108. ?>
  109.             <td>
  110.                 <input type="checkbox" id="disable_write" name="disable_write" value="1"/>
  111.                 <label for="disable_write"><?php echo T_('Make unwriteable after saving')?></label>
  112.             </td>
  113. <?php
  114.                 else {
  115. ?>
  116.             <td>
  117.                 <input type="checkbox" id="enable_write" name="enable_write" value="1"/>
  118.                 <label for="enable_write"><?php echo T_('Override write protection while saving')?></label>
  119.             </td>
  120. <?php
  121.                 // if
  122.             // if
  123. ?>
  124.         </tr>
  125.         </table>
  126. <?php
  127.         $tabs->startPane("configPane");
  128.         $tabs->startTab(T_("Site"),"site-page");
  129. ?>
  130.         <table class="adminform">
  131.         <tr>
  132.             <td width="185"><?php echo T_('Site Offline:')?></td>
  133.             <td><?php echo $lists['offline']?></td>
  134.         </tr>
  135.         <tr>
  136.             <td valign="top"><?php echo T_('Offline Message:')?></td>
  137.             <td><textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_offline_message"><?php echo htmlspecialchars($row->config_offline_messageENT_QUOTES)?></textarea><?php
  138.                 $tip T_('A message that displays if your site is offline');
  139.                 echo mosToolTip$tip );
  140.             ?></td>
  141.         </tr>
  142.         <tr>
  143.             <td valign="top"><?php echo T_('System Error Message:')?></td>
  144.             <td><textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_error_message"><?php echo htmlspecialchars($row->config_error_messageENT_QUOTES)?></textarea><?php
  145.                 $tip T_('A message that displays if Mambo could not connect to the database');
  146.                 echo mosToolTip$tip );
  147.             ?></td>
  148.         </tr>
  149.         <tr>
  150.             <td><?php echo T_('Site Name:')?></td>
  151.             <td><input class="text_area" type="text" name="config_sitename" size="50" value="<?php echo $row->config_sitename?>"/></td>
  152.         </tr>
  153.         <tr>
  154.             <td><?php echo T_('Use Captcha Authentication:')?></td>
  155.             <td><?php echo $lists['usecaptcha']?><?php
  156.                 $tip T_('Captcha images assist in the reduction of automated entries and spam. Requires the GD image library');
  157.                 echo mosToolTip$tip );
  158.                 echo T_('*Requires the GD image library.');?></td>
  159.         </tr>
  160.         <tr>
  161.             <td><?php echo T_('Show UnAuthorized Links:')?></td>
  162.             <td><?php echo $lists['auth']?><?php
  163.                 $tip T_('If yes, will show links to content to registered content even if you are not logged in.  The user will need to login to see the item in full.');
  164.                 echo mosToolTip$tip );
  165.             ?></td>
  166.         </tr>
  167.         <tr>
  168.             <td><?php echo T_('Allow User Registration:')?></td>
  169.             <td><?php echo $lists['allowuserregistration']?><?php
  170.                 $tip T_('If yes, allows users to self-register');
  171.                 echo mosToolTip$tip );
  172.             ?></td>
  173.         </tr>
  174.         <tr>
  175.             <td><?php echo T_('Use New Account Activation:')?></td>
  176.             <td><?php echo $lists['useractivation']?>
  177.             <?php
  178.                 $tip T_('If yes, the user will be mailed a link to activate their account before they can log in.');
  179.                 echo mosToolTip$tip );
  180.             ?></td>
  181.         </tr>
  182.  
  183.         <tr>
  184.             <td><?php echo T_('Require Unique Email:')?></td>
  185.             <td><?php echo $lists['uniquemail']?><?php
  186.                 $tip T_('If yes, users cannot share the same email address');
  187.                 echo mosToolTip$tip );
  188.             ?></td>
  189.         </tr>
  190.  
  191.         <tr>
  192.             <td><?php echo T_('Debug Site:')?></td>
  193.             <td><?php echo $lists['debug']?><?php
  194.                 $tip T_('If yes, displays diagnostic information and SQL errors if present');
  195.                 echo mosToolTip$tip );
  196.             ?></td>
  197.         </tr>
  198.         <tr>
  199.             <td><?php echo T_('WYSIWYG Editor:')?></td>
  200.             <td><?php echo $lists['editor']?></td>
  201.         </tr>
  202.         <tr>
  203.             <td><?php echo T_('List Length:')?></td>
  204.             <td><?php echo $lists['list_length']?><?php
  205.                 $tip T_('Sets the default length of lists in the administrator for all users');
  206.                 echo mosToolTip$tip );
  207.             ?></td>
  208.         </tr>
  209.         <tr>
  210.             <td><?php echo T_('Favorites Site Icon:')?></td>
  211.             <td>
  212.             <input class="text_area" type="text" name="config_favicon" size="20" value="<?php echo $row->config_favicon?>" dir="ltr"/>
  213. <?php
  214.             $tip T_('If left blank or the file cannot be found, the default favicon.ico will be used.');
  215.             echo mosToolTip$tipT_('Favourite Icon') );
  216. ?>            </td>
  217.         </tr>
  218.         </table>
  219. <?php
  220.         $tabs->endTab();
  221.         $tabs->startTab(T_('Locale'),"Locale-page");
  222. ?>
  223.         <table class="adminform">
  224.         <tr>
  225.             <td width="185"><?php echo T_('Language:')?></td>
  226.             <td><?php echo $lists['lang']?><input type="hidden" name="config_lang" value="<?php echo $row->config_lang?>"></td>
  227.         </tr>
  228.         <tr>
  229.             <td width="185"><?php echo T_('Time Offset:')?></td>
  230.             <td>
  231.             <?php echo $lists['offset']?>
  232. <?php
  233.             $tip sprintf(T_("Current date/time configured to display: %s")mosCurrentDate(_DATE_FORMAT_LC2));
  234.             echo mosToolTip($tip);
  235. ?>            </td>
  236.         </tr>
  237.         <tr>
  238.             <td width="185"><?php echo T_('Debugging:')?></td>
  239.             <td><?php echo $lists['locale_debug']?></td>
  240.         </tr>
  241.         <tr>
  242.             <td width="185"><?php echo T_('Use Gettext:')?></td>
  243.             <td><?php echo $lists['locale_use_gettext']?></td>
  244.         </tr>
  245.         </table>
  246. <?php
  247.         $tabs->endTab();
  248.         $tabs->startTab(T_('Content'),"content-page");
  249. ?>
  250.         <table class="adminform">
  251.         <tr>
  252.             <td colspan="3">* <?php echo T_('These Parameters control Output elements')?> *<br/><br/></td>
  253.         </tr>
  254.         <tr>
  255.             <td width="200"><?php echo T_('Linked Titles:')?></td>
  256.             <td width="100"><?php echo $lists['link_titles']?></td>
  257.             <td><?php
  258.                 $tip T_('If yes, the title of content items will be hyperlinked to the item');
  259.                 echo mosToolTip$tip );
  260.             ?></td>
  261.         </tr>
  262.         <tr>
  263.             <td width="200"><?php echo T_('Read More Link:')?></td>
  264.             <td width="100"><?php echo $lists['readmore']?></td>
  265.             <td><?php
  266.                 $tip T_('If set to show, the read-more link will show if main-text has been provided for the item');
  267.                 echo mosToolTip$tip );
  268.             ?></td>
  269.         </tr>
  270.         <tr>
  271.             <td><?php echo T_('Item Rating/Voting:')?></td>
  272.             <td><?php echo $lists['vote']?></td>
  273.             <td><?php
  274.                 $tip T_('If set to show, a voting system will be enabled for content items');
  275.                 echo mosToolTip$tip );
  276.             ?></td>
  277.         </tr>
  278.         <tr>
  279.             <td><?php echo T_('Author Names:')?></td>
  280.             <td><?php echo $lists['hideauthor']?></td>
  281.             <td><?php
  282.                 $tip T_('If set to show, the name of the author will be displayed.  This a global setting but can be changed at menu and item levels.');
  283.                 echo mosToolTip$tip );
  284.             ?></td>
  285.         </tr>
  286.         <tr>
  287.             <td><?php echo T_('Created Date and Time:')?></td>
  288.             <td><?php echo $lists['hidecreate']?></td>
  289.             <td><?php
  290.                 $tip T_('If set to show, the date and time an item was created will be displayed. This a global setting but can be changed at menu and item levels.');
  291.                 echo mosToolTip$tip );
  292.             ?></td>
  293.         </tr>
  294.         <tr>
  295.             <td><?php echo T_('Modified Date and Time:')?></td>
  296.             <td><?php echo $lists['hidemodify']?></td>
  297.             <td><?php
  298.                 $tip T_('If set to show, the date and time an item was last modified will be displayed.  This a global setting but can be changed at menu and item levels.');
  299.                 echo mosToolTip$tip );
  300.             ?></td>
  301.         </tr>
  302.         <tr>
  303.             <td><?php echo T_('Hits:')?></td>
  304.             <td><?php echo $lists['hits']?></td>
  305.             <td><?php
  306.                 $tip T_('If set to show, the hits for a particular item will be displayed.  This a global setting but can be changed at menu and item levels.');
  307.                 echo mosToolTip$tip );
  308.             ?></td>
  309.         </tr>
  310.         <tr>
  311.             <td><?php echo T_('PDF Icon:')?></td>
  312.             <td><?php echo $lists['hidepdf']?></td>
  313. <?php
  314.             if (!is_writable"$mosConfig_absolute_path/media/)) {
  315.                 echo "<td align=\"left\">";
  316.                 echo mosToolTip(T_('Option not available as /media directory not writable'));
  317.                 echo "</td>";
  318.             else {
  319. ?>                <td>&nbsp;</td>
  320. <?php
  321.             }
  322. ?>        </tr>
  323.         <tr>
  324.             <td><?php echo T_('Print Icon:')?></td>
  325.             <td><?php echo $lists['hideprint']?></td>
  326.             <td>&nbsp;</td>
  327.         </tr>
  328.         <tr>
  329.             <td><?php echo T_('Email Icon:')?></td>
  330.             <td><?php echo $lists['hideemail']?></td>
  331.             <td>&nbsp;</td>
  332.         </tr>
  333.         <tr>
  334.             <td><?php echo T_('Icons:')?></td>
  335.             <td><?php echo $lists['icons']?></td>
  336.             <td><?php echo mosToolTip(T_('Print, PDF and Email will utilise Icons or Text'))?></td>
  337.         </tr>
  338.         <tr>
  339.             <td><?php echo T_('Table of Contents on multi-page items:')?></td>
  340.             <td><?php echo $lists['multipage_toc']?></td>
  341.             <td>&nbsp;</td>
  342.         </tr>
  343.         <tr>
  344.             <td><?php echo T_('Back Button:')?></td>
  345.             <td><?php echo $lists['back_button']?></td>
  346.             <td>&nbsp;</td>
  347.         </tr>
  348.         <tr>
  349.             <td><?php echo T_('Content Item Navigation:')?></td>
  350.             <td><?php echo $lists['item_navigation']?></td>
  351.             <td>&nbsp;</td>
  352.         </tr>
  353. <!-- prepared for future releases
  354.         <tr>
  355.             <td>Multi lingual content support:</td>
  356.             <td><?php //echo $lists['ml_support']; ?></td>
  357.             <td><?php //echo mosToolTip('In order to use multi lingual content you MUST have installed the MambelFish component.'); ?></td>
  358.         </tr>
  359. -->
  360.         <input type="hidden" name="config_ml_support" value="<?php echo $row->config_ml_support?>">
  361.         </table>
  362. <?php
  363.         $tabs->endTab();
  364.         $tabs->startTab(T_("Database"),"db-page");
  365. ?>
  366.         <table class="adminform">
  367.         <tr>
  368.             <td width="185"><?php echo T_('Hostname:')?></td>
  369.             <td><input class="text_area" type="text" name="config_host" size="25" value="<?php echo $row->config_host?>" dir="ltr"/></td>
  370.         </tr>
  371.         <tr>
  372.             <td><?php echo T_('MySQL Username:')?></td>
  373.             <td><input class="text_area" type="text" name="config_user" size="25" value="<?php echo $row->config_user?>" dir="ltr"/></td>
  374.         </tr>
  375.         <tr>
  376.             <td><?php echo T_('MySQL Password:')?></td>
  377.             <td><input class="text_area" type="text" name="config_password" size="25" value="<?php echo $row->config_password?>" dir="ltr"/></td>
  378.         </tr>
  379.         <tr>
  380.             <td><?php echo T_('MySQL Database:')?></td>
  381.             <td><input class="text_area" type="text" name="config_db" size="25" value="<?php echo $row->config_db?>" dir="ltr"/></td>
  382.         </tr>
  383.         <tr>
  384.             <td><?php echo T_('MySQL Database Prefix:')?></td>
  385.             <td>
  386.             <input class="text_area" type="text" name="config_dbprefix" size="10" value="<?php echo $row->config_dbprefix?>" dir="ltr"/>
  387.             &nbsp;<?php echo mosWarning(T_('!! DO NOT CHANGE UNLESS YOU HAVE A DATABASE BUILT USING TABLES WITH THE PREFIX YOU ARE SETTING !!'))?>
  388.             </td>
  389.         </tr>
  390.         </table>
  391. <?php
  392.         $tabs->endTab();
  393.         $tabs->startTab(T_('Server'),"server-page");
  394. ?>
  395.         <table class="adminform">
  396.         <tr>
  397.             <td width="185"><?php echo T_('Absolute Path:')?></td>
  398.             <td width="450"><strong><?php echo $row->config_path?></strong></td>
  399.             <td>&nbsp;</td>
  400.         </tr>
  401.         <tr>
  402.             <td><?php echo T_('Live Site:')?></td>
  403.             <td><input class="text_area" type="text" name="config_live_site" size="50" value="<?php echo $row->config_live_site?>" dir="ltr"/></td>
  404.             <td>&nbsp;</td>
  405.         </tr>
  406.         <!--
  407.         <tr>
  408.             <td><?php echo T_('Secret Word:')?></td>
  409.             <td><strong><?php echo $row->config_secret?></strong></td>
  410.             <td>&nbsp;</td>
  411.         </tr>
  412.         -->
  413.         <tr>
  414.             <td><?php echo T_('GZIP Page Compression:')?></td>
  415.             <td>
  416.             <?php echo $lists['gzip']?>
  417.             <?php echo mosToolTip(T_('Compress buffered output if supported'))?>
  418.             </td>
  419.             <td>&nbsp;</td>
  420.         </tr>
  421.         <tr>
  422.             <td><?php echo T_('Login Session Lifetime:')?></td>
  423.             <td>
  424.             <input class="text_area" type="text" name="config_lifetime" size="10" value="<?php echo $row->config_lifetime?>"/>
  425.             &nbsp;<?php echo T_('seconds')?>&nbsp;
  426.             <?php echo mosToolTip(T_('Auto logout after this time of inactivity'))?>
  427.             </td>
  428.             <td>&nbsp;</td>
  429.         </tr>
  430.         <tr>
  431.             <td><?php echo T_('Error Reporting:')?></td>
  432.             <td><?php echo $lists['error_reporting']?></td>
  433.             <td>&nbsp;</td>
  434.         </tr>
  435.         <tr>
  436.             <td><?php echo T_('Register Globals Emulation:')?></td>
  437.             <td>
  438.             <?php echo $lists['register_globals']?>
  439.             <?php
  440.             echo mosToolTip(T_("Register globals emulation. Some components may stop working if this option is set to Off."));
  441.             ?>
  442.             </td>
  443.             <td>&nbsp;</td>
  444.         </tr>
  445.         <tr>
  446.             <td><?php echo T_('Help Server:')?></td>
  447.             <td><input class="text_area" type="text" name="config_helpurl" size="50" value="<?php echo $row->config_helpurl?>" dir="ltr"/></td>
  448.         </tr>
  449.         <tr>
  450. <?php
  451.     $mode 0;
  452.     $flags 0644;
  453.     if ($row->config_fileperms!=''{
  454.         $mode 1;
  455.         $flags octdec($row->config_fileperms);
  456.     // if
  457. ?>
  458.             <td valign="top"><?php echo T_('File Creation:')?></td>
  459.             <td>
  460.                 <fieldset><legend><?php echo T_('File Permissions')?></legend>
  461.                     <table cellpadding="1" cellspacing="1" border="0">
  462.                         <tr>
  463.                             <td><input type="radio" id="filePermsMode0" name="filePermsMode" value="0" onclick="changeFilePermsMode(0)"<?php if (!$modeecho ' checked="checked"'?>/></td>
  464.                             <td><label for="filePermsMode0"><?php echo T_('Dont CHMOD new files (use server defaults)')?></label></td>
  465.                         </tr>
  466.                         <tr>
  467.                             <td><input type="radio" id="filePermsMode1" name="filePermsMode" value="1" onclick="changeFilePermsMode(1)"<?php if ($modeecho ' checked="checked"'?>/></td>
  468.                             <td>
  469.                                 <label for="filePermsMode1"><?php echo T_('CHMOD new files')?></label>
  470.                                 <span id="filePermsValue"<?php if (!$modeecho ' style="display:none"'?>>
  471.                                 <?php echo T_('to:')?>    <input class="text_area" type="text" readonly="readonly" name="config_fileperms" size="4" value="<?php echo $row->config_fileperms?>"/>
  472.                                 </span>
  473.                                 <span id="filePermsTooltip"<?php if ($modeecho ' style="display:none"'?>>
  474.                                 &nbsp;<?php echo mosToolTip(T_('Select this option to define permission flags for new created files'))?>
  475.                                 </span>
  476.                             </td>
  477.                         </tr>
  478.                         <tr id="filePermsFlags"<?php if (!$modeecho ' style="display:none"'?>>
  479.                             <td>&nbsp;</td>
  480.                             <td>
  481.                                 <table cellpadding="0" cellspacing="1" border="0">
  482.                                     <tr>
  483.                                         <td style="padding:0px"><?php echo T_('User:')?></td>
  484.                                         <td style="padding:0px"><input type="checkbox" id="filePermsUserRead" name="filePermsUserRead" value="1" onclick="saveFilePerms()"<?php if ($flags 0400echo ' checked="checked"'?>/></td>
  485.                                         <td style="padding:0px"><label for="filePermsUserRead"><?php echo T_('read')?></label></td>
  486.                                         <td style="padding:0px"><input type="checkbox" id="filePermsUserWrite" name="filePermsUserWrite" value="1" onclick="saveFilePerms()"<?php if ($flags 0200echo ' checked="checked"'?>/></td>
  487.                                         <td style="padding:0px"><label for="filePermsUserWrite"><?php echo T_('write')?></label></td>
  488.                                         <td style="padding:0px"><input type="checkbox" id="filePermsUserExecute" name="filePermsUserExecute" value="1" onclick="saveFilePerms()"<?php if ($flags 0100echo ' checked="checked"'?>/></td>
  489.                                         <td style="padding:0px" colspan="3"><label for="filePermsUserExecute"><?php echo T_('execute')?></label></td>
  490.                                     </tr>
  491.                                     <tr>
  492.                                         <td style="padding:0px"><?php echo T_('Group:')?></td>
  493.                                         <td style="padding:0px"><input type="checkbox" id="filePermsGroupRead" name="filePermsGroupRead" value="1" onclick="saveFilePerms()"<?php if ($flags 040echo ' checked="checked"'?>/></td>
  494.                                         <td style="padding:0px"><label for="filePermsGroupRead"><?php echo T_('read')?></label></td>
  495.                                         <td style="padding:0px"><input type="checkbox" id="filePermsGroupWrite" name="filePermsGroupWrite" value="1" onclick="saveFilePerms()"<?php if ($flags 020echo ' checked="checked"'?>/></td>
  496.                                         <td style="padding:0px"><label for="filePermsGroupWrite"><?php echo T_('write')?></label></td>
  497.                                         <td style="padding:0px"><input type="checkbox" id="filePermsGroupExecute" name="filePermsGroupExecute" value="1" onclick="saveFilePerms()"<?php if ($flags 010echo ' checked="checked"'?>/></td>
  498.                                         <td style="padding:0px" width="70"><label for="filePermsGroupExecute"><?php echo T_('execute')?></label></td>
  499.                                         <td><input type="checkbox" id="applyFilePerms" name="applyFilePerms" value="1"/></td>
  500.                                         <td nowrap="nowrap">
  501.                                             <label for="applyFilePerms">
  502.                                                 <?php echo T_('Apply to existing files')?>
  503.                                                 &nbsp;<?php
  504.                                                 echo mosWarning(
  505.                                                     T_('Checking here will apply the permission flags to <em>all existing files</em> of the site.<br/>'.
  506.                                                     '<b>INAPPROPRIATE USAGE OF THIS OPTION MAY RENDER THE SITE INOPERATIVE!</b>')
  507.                                                 );?>
  508.                                             </label>
  509.                                         </td>
  510.                                     </tr>
  511.                                     <tr>
  512.                                         <td style="padding:0px"><?php echo T_('World:')?></td>
  513.                                         <td style="padding:0px"><input type="checkbox" id="filePermsWorldRead" name="filePermsWorldRead" value="1" onclick="saveFilePerms()"<?php if ($flags 04echo ' checked="checked"'?>/></td>
  514.                                         <td style="padding:0px"><label for="filePermsWorldRead"><?php echo T_('read')?></label></td>
  515.                                         <td style="padding:0px"><input type="checkbox" id="filePermsWorldWrite" name="filePermsWorldWrite" value="1" onclick="saveFilePerms()"<?php if ($flags 02echo ' checked="checked"'?>/></td>
  516.                                         <td style="padding:0px"><label for="filePermsWorldWrite"><?php echo T_('write')?></label></td>
  517.                                         <td style="padding:0px"><input type="checkbox" id="filePermsWorldExecute" name="filePermsWorldExecute" value="1" onclick="saveFilePerms()"<?php if ($flags 01echo ' checked="checked"'?>/></td>
  518.                                         <td style="padding:0px" colspan="4"><label for="filePermsWorldExecute"><?php echo T_('execute')?></label></td>
  519.                                     </tr>
  520.                                 </table>
  521.                             </td>
  522.                         </tr>
  523.                     </table>
  524.                 </fieldset>
  525.             </td>
  526.             <td>&nbsp;</td>
  527.         </tr>
  528.         <tr>
  529. <?php
  530.     $mode 0;
  531.     $flags 0755;
  532.     if ($row->config_dirperms!=''{
  533.         $mode 1;
  534.         $flags octdec($row->config_dirperms);
  535.     // if
  536. ?>
  537.             <td valign="top"><?php echo T_('Directory Creation:')?></td>
  538.             <td>
  539.                 <fieldset><legend><?php echo T_('Directory Permissions')?></legend>
  540.                     <table cellpadding="1" cellspacing="1" border="0">
  541.                         <tr>
  542.                             <td><input type="radio" id="dirPermsMode0" name="dirPermsMode" value="0" onclick="changeDirPermsMode(0)"<?php if (!$modeecho ' checked="checked"'?>/></td>
  543.                             <td><label for="dirPermsMode0"><?php echo T_('Dont CHMOD new directories (use server defaults)')?></label></td>
  544.                         </tr>
  545.                         <tr>
  546.                             <td><input type="radio" id="dirPermsMode1" name="dirPermsMode" value="1" onclick="changeDirPermsMode(1)"<?php if ($modeecho ' checked="checked"'?>/></td>
  547.                             <td>
  548.                                 <label for="dirPermsMode1"><?php echo T_('CHMOD new directories')?></label>
  549.                                 <span id="dirPermsValue"<?php if (!$modeecho ' style="display:none"'?>>
  550.                                    to: <input class="text_area" type="text" readonly="readonly" name="config_dirperms" size="4" value="<?php echo $row->config_dirperms?>"/>
  551.                                 </span>
  552.                                 <span id="dirPermsTooltip"<?php if ($modeecho ' style="display:none"'?>>
  553.                                 &nbsp;<?php echo mosToolTip(T_('Select this option to define permission flags for new created directories'))?>
  554.                                 </span>
  555.                             </td>
  556.                         </tr>
  557.                         <tr id="dirPermsFlags"<?php if (!$modeecho ' style="display:none"'?>>
  558.                             <td>&nbsp;</td>
  559.                             <td>
  560.                                 <table cellpadding="1" cellspacing="0" border="0">
  561.                                     <tr>
  562.                                         <td style="padding:0px"><?php echo T_('User:')?></td>
  563.                                         <td style="padding:0px"><input type="checkbox" id="dirPermsUserRead" name="dirPermsUserRead" value="1" onclick="saveDirPerms()"<?php if ($flags 0400echo ' checked="checked"'?>/></td>
  564.                                         <td style="padding:0px"><label for="dirPermsUserRead"><?php echo T_('read')?></label></td>
  565.                                         <td style="padding:0px"><input type="checkbox" id="dirPermsUserWrite" name="dirPermsUserWrite" value="1" onclick="saveDirPerms()"<?php if ($flags 0200echo ' checked="checked"'?>/></td>
  566.                                         <td style="padding:0px"><label for="dirPermsUserWrite"><?php echo T_('write')?></label></td>
  567.                                         <td style="padding:0px"><input type="checkbox" id="dirPermsUserSearch" name="dirPermsUserSearch" value="1" onclick="saveDirPerms()"<?php if ($flags 0100echo ' checked="checked"'?>/></td>
  568.                                         <td style="padding:0px" colspan="3"><label for="dirPermsUserSearch"><?php echo T_('search')?></label></td>
  569.                                     </tr>
  570.                                     <tr>
  571.                                         <td style="padding:0px"><?php echo T_('Group:')?></td>
  572.                                         <td style="padding:0px"><input type="checkbox" id="dirPermsGroupRead" name="dirPermsGroupRead" value="1" onclick="saveDirPerms()"<?php if ($flags 040echo ' checked="checked"'?>/></td>
  573.                                         <td style="padding:0px"><label for="dirPermsGroupRead"><?php echo T_('read')?></label></td>
  574.                                         <td style="padding:0px"><input type="checkbox" id="dirPermsGroupWrite" name="dirPermsGroupWrite" value="1" onclick="saveDirPerms()"<?php if ($flags 020echo ' checked="checked"'?>/></td>
  575.                                         <td style="padding:0px"><label for="dirPermsGroupWrite"><?php echo T_('write')?></label></td>
  576.                                         <td style="padding:0px"><input type="checkbox" id="dirPermsGroupSearch" name="dirPermsGroupSearch" value="1" onclick="saveDirPerms()"<?php if ($flags 010echo ' checked="checked"'?>/></td>
  577.                                         <td style="padding:0px" width="70"><label for="dirPermsGroupSearch"><?php echo T_('search')?></label></td>
  578.                                         <td><input type="checkbox" id="applyDirPerms" name="applyDirPerms" value="1"/></td>
  579.                                         <td nowrap="nowrap">
  580.                                             <label for="applyDirPerms">
  581.                                                 <?php echo T_('Apply to existing directories')?>
  582.                                                 &nbsp;<?php
  583.                                                 echo mosWarning(T_('Checking here will apply the permission flags to <em>all existing directories</em> of the site.<br/>'.
  584.                                                     '<b>INAPPROPRIATE USAGE OF THIS OPTION MAY RENDER THE SITE INOPERATIVE!</b>'));?>
  585.                                             </label>
  586.                                         </td>
  587.                                     </tr>
  588.                                     <tr>
  589.                                         <td style="padding:0px"><?php echo T_('World:')?></td>
  590.                                         <td style="padding:0px"><input type="checkbox" id="dirPermsWorldRead" name="dirPermsWorldRead" value="1" onclick="saveDirPerms()"<?php if ($flags 04echo ' checked="checked"'?>/></td>
  591.                                         <td style="padding:0px"><label for="dirPermsWorldRead"><?php echo T_('read')?></label></td>
  592.                                         <td style="padding:0px"><input type="checkbox" id="dirPermsWorldWrite" name="dirPermsWorldWrite" value="1" onclick="saveDirPerms()"<?php if ($flags 02echo ' checked="checked"'?>/></td>
  593.                                         <td style="padding:0px"><label for="dirPermsWorldWrite"><?php echo T_('write')?></label></td>
  594.                                         <td style="padding:0px"><input type="checkbox" id="dirPermsWorldSearch" name="dirPermsWorldSearch" value="1" onclick="saveDirPerms()"<?php if ($flags 01echo ' checked="checked"'?>/></td>
  595.                                         <td style="padding:0px" colspan="3"><label for="dirPermsWorldSearch"><?php echo T_('search')?></label></td>
  596.                                     </tr>
  597.                                 </table>
  598.                             </td>
  599.                         </tr>
  600.                     </table>
  601.                 </fieldset>
  602.             </td>
  603.             <td>&nbsp;</td>
  604.           </tr>
  605.         </table>
  606. <?php
  607.         $tabs->endTab();
  608.         $tabs->startTab(T_('Metadata'),"metadata-page");
  609. ?>
  610.         <table class="adminform">
  611.         <tr>
  612.             <td width="185" valign="top"><?php echo T_('Global Site Meta Description:')?></td>
  613.             <td><textarea class="text_area" cols="50" rows="3" style="width:500px; height:50px" name="config_metadesc"><?php echo htmlspecialchars($row->config_metadescENT_QUOTES)?></textarea></td>
  614.         </tr>
  615.         <tr>
  616.             <td valign="top"><?php echo T_('Global Site Meta Keywords:')?></td>
  617.             <td><textarea class="text_area" cols="50" rows="3" style="width:500px; height:50px" name="config_metakeys"><?php echo htmlspecialchars($row->config_metakeysENT_QUOTES)?></textarea></td>
  618.         </tr>
  619.         <tr>
  620.             <td valign="top"><?php echo T_('Show Title Meta Tag:')?></td>
  621.             <td>
  622.             <?php echo $lists['metatitle']?>
  623.             &nbsp;&nbsp;&nbsp;
  624.             <?php echo mosToolTip(T_('Show the title meta tag when viewing content items'))?>
  625.             </td>
  626.               </tr>
  627.         <tr>
  628.             <td valign="top"><?php echo T_('Show Author Meta Tag:')?></td>
  629.             <td>
  630.             <?php echo $lists['metaauthor']?>
  631.             &nbsp;&nbsp;&nbsp;
  632.             <?php echo mosToolTip(T_('Show the author meta tag when viewing content items'))?>
  633.             </td>
  634.         </tr>
  635.         </table>
  636. <?php
  637.         $tabs->endTab();
  638.         $tabs->startTab(T_('Mail'),"mail-page");
  639. ?>
  640.         <table class="adminform">
  641.         <tr>
  642.             <td width="185"><?php echo T_('Mailer:')?></td>
  643.             <td><?php echo $lists['mailer']?></td>
  644.         </tr>
  645.         <tr>
  646.             <td><?php echo T_('Mail From:')?></td>
  647.             <td><input class="text_area" type="text" name="config_mailfrom" size="50" value="<?php echo $row->config_mailfrom?>" dir="ltr"/></td>
  648.         </tr>
  649.         <tr>
  650.             <td><?php echo T_('From Name:')?></td>
  651.             <td><input class="text_area" type="text" name="config_fromname" size="50" value="<?php echo $row->config_fromname?>" dir="ltr"/></td>
  652.         </tr>
  653.         <tr>
  654.             <td><?php echo T_('Sendmail Path:')?></td>
  655.             <td><input class="text_area" type="text" name="config_sendmail" size="50" value="<?php echo $row->config_sendmail?>" dir="ltr"/></td>
  656.         </tr>
  657.         <tr>
  658.             <td><?php echo T_('SMTP Auth:')?></td>
  659.             <td><?php echo $lists['smtpauth']?></td>
  660.         </tr>
  661.         <tr>
  662.             <td><?php echo T_('SMTP User:')?></td>
  663.             <td><input class="text_area" type="text" name="config_smtpuser" size="50" value="<?php echo $row->config_smtpuser?>" dir="ltr"/></td>
  664.         </tr>
  665.         <tr>
  666.             <td><?php echo T_('SMTP Pass')?>:</td>
  667.             <td><input class="text_area" type="text" name="config_smtppass" size="50" value="<?php echo $row->config_smtppass?>" dir="ltr"/></td>
  668.         </tr>
  669.         <tr>
  670.             <td><?php echo T_('SMTP Host:')?></td>
  671.             <td><input class="text_area" type="text" name="config_smtphost" size="50" value="<?php echo $row->config_smtphost?>" dir="ltr"/></td>
  672.         </tr>
  673.         </table>
  674. <?php
  675.         $tabs->endTab();
  676.         $tabs->startTab(T_("Cache"),"cache-page");
  677. ?>
  678.         <table class="adminform" border="0">
  679.         <?php
  680.         if (is_writeable($row->config_cachepath)) {
  681.             ?>
  682.             <tr>
  683.                 <td width="185"><?php echo T_('Caching:')?></td>
  684.                 <td width="500"><?php echo $lists['caching']?></td>
  685.                 <td>&nbsp;</td>
  686.             </tr>
  687.             <?php
  688.         }
  689.         ?>
  690.         <tr>
  691.             <td><?php echo T_('Cache Folder:')?></td>
  692.             <td>
  693.             <input class="text_area" type="text" name="config_cachepath" size="50" value="<?php echo $row->config_cachepath?>" dir="ltr"/>
  694. <?php
  695.             if (is_writeable($row->config_cachepath)) {
  696.                 echo mosToolTip(T_('Current cache is directory is <b>Writeable</b>'));
  697.             else {
  698.                 echo mosWarning(T_('The cache directory is UNWRITEABLE - please set this directory to CHMOD755 before turning on the cache'));
  699.             }
  700. ?>            </td>
  701.             <td>&nbsp;</td>
  702.         </tr>
  703.         <tr>
  704.             <td><?php echo T_('Cache Time:')?></td>
  705.             <td><input class="text_area" type="text" name="config_cachetime" size="5" value="<?php echo $row->config_cachetime?>"/> <?php echo T_('seconds')?></td>
  706.             <td>&nbsp;</td>
  707.         </tr>
  708.         </table>
  709.         <?php
  710.         $tabs->endTab();
  711.         $tabs->startTab(T_('Statistics'),"stats-page");
  712.         ?>
  713.         <table class="adminform">
  714.         <tr>
  715.             <td width="185"><?php echo T_('Statistics:')?></td>
  716.             <td width="100"><?php echo $lists['enable_stats']?></td>
  717.             <td><?php echo mostooltip(T_('Enable/disable collection of site statistics'))?></td>
  718.         </tr>
  719.         <tr>
  720.             <td><?php echo T_('Log Content Hits by Date:')?></td>
  721.             <td><?php echo $lists['log_items']?></td>
  722.             <td><span class="error"><?php echo mosWarning(T_('WARNING : Large amounts of data will be collected'))?></span></td>
  723.         </tr>
  724.         <tr>
  725.             <td><?php echo T_('Log Search Strings:')?></td>
  726.             <td><?php echo $lists['log_searches']?></td>
  727.             <td>&nbsp;</td>
  728.         </tr>
  729.         </table>
  730.         <?php
  731.         $tabs->endTab();
  732.         $tabs->startTab(T_('SEO'),"seo-page");
  733.         ?>
  734.         <table class="adminform">
  735.         <tr>
  736.             <td width="200"><strong><?php echo T_('Search Engine Optimization')?></strong></td>
  737.             <td width="100">&nbsp;</td>
  738.             <td>&nbsp;</td>
  739.         </tr>
  740.         <tr>
  741.             <td><?php echo T_('Search Engine Friendly URLs:')?></td>
  742.             <td><?php echo $lists['sef']?>&nbsp;</td>
  743.             <td><span class="error"><?php echo mosWarning(T_('Apache only! Rename htaccess.txt to .htaccess before activating'))?></span></td>
  744.         </tr>
  745.         <tr>
  746.             <td><?php echo T_('Dynamic Page Titles:')?></td>
  747.             <td><?php echo $lists['pagetitles']?></td>
  748.             <td><?php echo mosToolTip(T_('Dynamically changes the page title to reflect current content viewed'))?></td>
  749.         </tr>
  750.         </table>
  751. <?php
  752.         $tabs->endTab();
  753.         $tabs->endPane();
  754. ?>
  755.         <input type="hidden" name="option" value="<?php echo $option?>"/>
  756.         <input type="hidden" name="config_path" value="<?php echo $row->config_path?>"/>
  757.         <input type="hidden" name="config_secret" value="<?php echo $row->config_secret?>"/>
  758.           <input type="hidden" name="task" value=""/>
  759.         </form>
  760.         <script  type="text/javascript" src="<?php echo $mosConfig_live_site;?>/includes/js/overlib_mini.js"></script>
  761. <?php
  762.     }
  763.  
  764. }
  765. ?>

Documentation generated on Mon, 05 May 2008 16:13:02 +0400 by phpDocumentor 1.4.0