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

