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