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

