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