Ok, Das ist der Code der Index.php aus dem Joomla Verzeichnis:
PHP-Code:
<?php
/**
* @version $Id: index.php 11407 2009-01-09 17:23:42Z willebil $
* @package Joomla
* @copyright Copyright (C) 2005 - 2009 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.
*/
// Set flag that this is a parent file
define( '_JEXEC', 1 );
define('JPATH_BASE', dirname(__FILE__) );
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;
/**
* CREATE THE APPLICATION
*
* NOTE :
*/
$mainframe =& JFactory::getApplication('site');
/**
* INITIALISE THE APPLICATION
*
* NOTE :
*/
// set the language
$mainframe->initialise();
JPluginHelper::importPlugin('system');
// trigger the onAfterInitialise events
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
$mainframe->triggerEvent('onAfterInitialise');
/**
* ROUTE THE APPLICATION
*
* NOTE :
*/
$mainframe->route();
// authorization
$Itemid = JRequest::getInt( 'Itemid');
$mainframe->authorize($Itemid);
// trigger the onAfterRoute events
JDEBUG ? $_PROFILER->mark('afterRoute') : null;
$mainframe->triggerEvent('onAfterRoute');
/**
* DISPATCH THE APPLICATION
*
* NOTE :
*/
$option = JRequest::getCmd('option');
$mainframe->dispatch($option);
// trigger the onAfterDispatch events
JDEBUG ? $_PROFILER->mark('afterDispatch') : null;
$mainframe->triggerEvent('onAfterDispatch');
/**
* RENDER THE APPLICATION
*
* NOTE :
*/
$mainframe->render();
// trigger the onAfterRender events
JDEBUG ? $_PROFILER->mark('afterRender') : null;
$mainframe->triggerEvent('onAfterRender');
/**
* RETURN THE RESPONSE
*/
echo JResponse::toString($mainframe->getCfg('gzip'));
Und nun die Index.php des Templates:
PHP-Code:
<?php echo "<?xml version=\"1.0\"?>"; ?>
<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta **********="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead();?>
<?php if ( $my->id ) { initEditor(); } ?>
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css"/>
<link href="css/template_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="bodi">
<div class="container"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td width="194" valign="top">
<div id="left">
<div id="left_top">
<div id="fontsize"><?php mosLoadModules ( 'user5', -2 ); ?></div>
<div id="logo"></div>
</div>
<div id="left_content"><?php mosLoadModules ( 'left'); ?></div>
</div></td>
<td valign="top">
<div id="header">
<div id="schriftzug"><?php echo $mosConfig_sitename; ?></div>
<div id="navigation"><?php mosLoadModules('top'); ?></div>
</div>
<?php if (mosCountModules('user1') or mosCountModules('user2') ){ ?>
<div id="box_content">
<div id="top_module_1">
<div class="topmodule_blue">
<div class="left_box">
<div class="topmodule_inside"><?php mosLoadModules ( 'user1'); ?></div>
</div>
</div>
</div>
<div id="separator"></div>
<div id="top_module_2">
<div class="topmodule_blue">
<div class="left_box">
<div class="topmodule_inside"><?php mosLoadModules ( 'user2'); ?></div>
</div>
</div>
</div>
</div>
<?php } ?>
<div id="maincontent">
<div id="content"><?php mosMainBody(); ?></div>
<div id="footer"><span class="sitetitle">© <?php echo $mosConfig_sitename; ?></span><span class="footer">designed by <a href="http://www.ueberkrass.de">ueberkrass</a></span></div>
</div>
<div class="clearfloat"></div>
</td>
<?php if (mosCountModules('user3') or mosCountModules('right') ){ ?>
<td width="194" valign="top">
<div id="right">
<?php if (mosCountModules('user3')){ ?>
<div id="login_content">
<?php mosLoadModules ('user3'); ?>
<div id="login_content_bottom"></div>
</div>
<?php } ?>
<div id="right_content"><?php mosLoadModules ('right'); ?></div>
</div>
</td>
<?php } ?>
</tr>
</table>
</div>
</div>
</body>
</html>
Lesezeichen