| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: view.php 14401 2010-01-26 14:10:00Z louis $ 4 * @package Joomla 5 * @subpackage Config 6 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 7 * @license GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 9 * to the GNU General Public License, and as distributed it includes or 10 * is derivative of works licensed under the GNU General Public License or 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 14 15 // no direct access 16 defined( '_JEXEC' ) or die( 'Restricted access' ); 17 18 /** 19 * @package Joomla 20 * @subpackage Config 21 */ 22 class ConfigApplicationView 23 { 24 function showConfig( &$row, &$lists ) 25 { 26 global $mainframe; 27 28 // Load tooltips behavior 29 JHTML::_('behavior.tooltip'); 30 JHTML::_('behavior.switcher'); 31 32 // Load component specific configurations 33 $table =& JTable::getInstance('component'); 34 $table->loadByOption( 'com_users' ); 35 $userparams = new JParameter( $table->params, JPATH_ADMINISTRATOR.DS.'components'.DS.'com_users'.DS.'config.xml' ); 36 $table->loadByOption( 'com_media' ); 37 $mediaparams = new JParameter( $table->params, JPATH_ADMINISTRATOR.DS.'components'.DS.'com_media'.DS.'config.xml' ); 38 39 // Build the component's submenu 40 $contents = ''; 41 $tmplpath = dirname(__FILE__).DS.'tmpl'; 42 ob_start(); 43 require_once($tmplpath.DS.'navigation.php'); 44 $contents = ob_get_contents(); 45 ob_end_clean(); 46 47 // Set document data 48 $document =& JFactory::getDocument(); 49 $document->setBuffer($contents, 'modules', 'submenu'); 50 51 // Load settings for the FTP layer 52 jimport('joomla.client.helper'); 53 $ftp =& JClientHelper::setCredentialsFromRequest('ftp'); 54 ?> 55 <form action="index.php" method="post" name="adminForm" autocomplete="off"> 56 <?php if ($ftp) { 57 require_once($tmplpath.DS.'ftp.php'); 58 } ?> 59 <div id="config-document"> 60 <div id="page-site"> 61 <table class="noshow"> 62 <tr> 63 <td width="65%"> 64 <?php require_once($tmplpath.DS.'config_site.php'); ?> 65 <?php require_once($tmplpath.DS.'config_metadata.php'); ?> 66 </td> 67 <td width="35%"> 68 <?php require_once($tmplpath.DS.'config_seo.php'); ?> 69 </td> 70 </tr> 71 </table> 72 </div> 73 <div id="page-system"> 74 <table class="noshow"> 75 <tr> 76 <td width="60%"> 77 <?php require_once($tmplpath.DS.'config_system.php'); ?> 78 <fieldset class="adminform"> 79 <legend><?php echo JText::_( 'User Settings' ); ?></legend> 80 <?php echo $userparams->render('userparams'); ?> 81 </fieldset> 82 <fieldset class="adminform"> 83 <legend><?php echo JText::_( 'Media Settings' ); ?> 84 <span class="error hasTip" title="<?php echo JText::_( 'Warning' );?>::<?php echo JText::_( 'WARNPATHCHANGES' ); ?>"> 85 <?php echo ConfigApplicationView::WarningIcon(); ?> 86 </span> 87 </legend> 88 <?php echo $mediaparams->render('mediaparams'); ?> 89 </fieldset> 90 </td> 91 <td width="40%"> 92 <?php require_once($tmplpath.DS.'config_debug.php'); ?> 93 <?php require_once($tmplpath.DS.'config_cache.php'); ?> 94 <?php require_once($tmplpath.DS.'config_session.php'); ?> 95 </td> 96 </tr> 97 </table> 98 </div> 99 <div id="page-server"> 100 <table class="noshow"> 101 <tr> 102 <td width="60%"> 103 <?php require_once($tmplpath.DS.'config_server.php'); ?> 104 <?php require_once($tmplpath.DS.'config_locale.php'); ?> 105 <?php require_once($tmplpath.DS.'config_ftp.php'); ?> 106 </td> 107 <td width="40%"> 108 <?php require_once($tmplpath.DS.'config_database.php'); ?> 109 <?php require_once($tmplpath.DS.'config_mail.php'); ?> 110 </td> 111 </tr> 112 </table> 113 </div> 114 </div> 115 <div class="clr"></div> 116 117 <input type="hidden" name="c" value="global" /> 118 <input type="hidden" name="live_site" value="<?php echo isset($row->live_site) ? $row->live_site : ''; ?>" /> 119 <input type="hidden" name="option" value="com_config" /> 120 <input type="hidden" name="secret" value="<?php echo $row->secret; ?>" /> 121 <input type="hidden" name="task" value="" /> 122 <?php echo JHTML::_( 'form.token' ); ?> 123 </form> 124 <?php 125 } 126 127 function WarningIcon() 128 { 129 global $mainframe; 130 131 $tip = '<img src="'.JURI::root().'includes/js/ThemeOffice/warning.png" border="0" alt="" />'; 132 133 return $tip; 134 } 135 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |