das Core Design Scriptgenerator Plugin war deaktiviert. Anbei der Code der Datei, wo angeblich in Zeile 1 der Fehler auftritt:
Code:
<?php
/**
* Core Design Scriptegrator plugin for Joomla! 1.5
* @author Daniel Rataj, <info@greatjoomla.com>
* @package Joomla
* @subpackage Content
* @category Plugin
* @version 1.2.0
* @copyright Copyright (C) 2007 - 2008 Core Design, http://www.greatjoomla.com
* @license http://creativecommons.org/licenses/by-nc/3.0/legalcode Creative Commons
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// Import library dependencies
jimport('joomla.plugin.plugin');
jimport('joomla.filesystem.file'); // file manipulation
// end
/**
* Joomla! Core Design Scriptegrator plugin
*
* @author Daniel Rataj <info@greatjoomla.com>
* @package Core Design
* @subpackage System
*/
class plgSystemCdScriptegrator extends JPlugin
{
/**
* Constructor
*
* For php4 compatability we must not use the __constructor as a constructor for plugins
* because func_get_args ( void ) returns a copy of all passed arguments NOT references.
* This causes problems with cross-referencing necessary for the observer design pattern.
*
* @access protected
* @param object $subject The object to observe
* @since 1.0
*/
function plgSystemCdScriptegrator(&$subject)
{
parent::__construct($subject);
// load plugin parameters
$this->plugin = &JPluginHelper::getPlugin('system', 'cd_scriptegrator');
$this->params = new JParameter($this->plugin->params);
}
/**
* Function to integrate scripts to the site
*
*/
function onAfterInitialise()
{
global $mainframe;
// disable (enable) script for administration interface
$adminEnable = $this->params->get('adminEnable', '0'); // define database parameters
if ($mainframe->isAdmin() and !$adminEnable) {
return;
} else {
// script is continuing...
}
// end
$document = &JFactory::getDocument(); // set document for next usage
// disable plugin for non-HTML interface (like RSS)
$doctype = $document->getType(); // get document type
if ($doctype !== 'html') {
return;
} else {
// script is continuing...
}
// end
$live_path = JURI::base(); // define live site
// load a helper file
$CdScriptegratorHelperFile = dirname(__file__) . DS . 'cd_scriptegrator' . DS .
'utils' . DS . 'php' . DS . 'helper.php';
if (JFile::exists($CdScriptegratorHelperFile)) {
require_once ($CdScriptegratorHelperFile);
} else {
JError::raiseWarning('', JText::_('Core Design Scriptegrator plugin: Can not load a helper file.'));
return;
}
// end
plgSystemCdScriptegratorHelper::loadLang('plg_system_cd_scriptegrator'); // define language
// set extensions array use Highslide scripts
$highslide_array = array('content:cd_image_revolution', 'module:mod_cd_umf',
'module:mod_cd_rssfeed', 'module:mod_cd_latestnews', 'module:mod_cd_mostread',
'module:mod_cd_login', 'module:mod_cd_notes');
// end
$highslide_set = 0; // set to empty
foreach ($highslide_array as $highslide_element) {
$highslide_element = explode(':', $highslide_element);
$highslide_folder = $highslide_element[0];
$highslide_element = $highslide_element[1];
switch ($highslide_folder) {
case 'module':
if (plgSystemCdScriptegratorHelper::isModulePublish($highslide_element)) {
$highslide_set = 1;
} else {
}
break;
case 'content':
case 'system':
if (JPluginHelper::isEnabled($highslide_folder, $highslide_element)) {
$highslide_set = 1;
} else {
}
break;
default:
break;
}
}
if (isset($highslide_set) and $highslide_set > 0) {
// define database parameters
$outlineType = $this->params->get('outlineType', 'rounded-white');
$outlineWhileAnimating = $this->params->get('outlineWhileAnimating', '1');
$showCredits = $this->params->get('showCredits', '1');
$expandDuration = $this->params->get('expandDuration', '250');
$anchor = $this->params->get('anchor', 'auto');
$align = $this->params->get('align', 'auto');
$transitions = $this->params->get('transitions', 'expand');
$dimmingOpacity = $this->params->get('dimmingOpacity', '0');
// end
// define script parameters
switch ($outlineWhileAnimating) {
case 1:
$outlineWhileAnimating = 'true';
break;
case 0:
$outlineWhileAnimating = 'false';
break;
default:
$outlineWhileAnimating = 'true';
break;
}
switch ($showCredits) {
case 1:
$showCredits = 'true';
break;
case 0:
$showCredits = 'false';
break;
default:
$showCredits = 'true';
break;
}
switch ($transitions) {
case 'expand':
$transitions = '["expand"]';
break;
case 'fade':
$transitions = '["fade"]';
break;
case 'expand+fade':
$transitions = '["expand", "fade"]';
break;
case 'fade+expand':
$transitions = '["fade", "expand"]';
break;
default:
$transitions = '["expand"]';
break;
}
// end
// insert scripts in <head> </head>
JHTML::script('highslide.packed.js', $live_path .
'plugins/system/cd_scriptegrator/utils/js/highslide/', $mootols = false);
// Core Design scripts
$default_core_script = "<script type=\"text/javascript\">
hs.graphicsDir = '" . $live_path .
"plugins/system/cd_scriptegrator/graphics/';
hs.outlineType = '" . $outlineType . "';
hs.outlineWhileAnimating = " . $outlineWhileAnimating . ";
hs.showCredits = " . $showCredits . ";
hs.expandDuration = " . $expandDuration . ";
hs.loadingText = '" . JText::_('CD_HS_LOADING') . "';
hs.loadingTitle = '" . JText::_('CD_HS_CANCELCLICK') . "';
hs.anchor = '" . $anchor . "';
hs.align = '" . $align . "';
hs.transitions = " . $transitions . ";
hs.dimmingOpacity = " . $dimmingOpacity . ";
</script>\n";
$document->addCustomTag($default_core_script);
JHTML::stylesheet('cd_scriptegrator.css', $live_path .
'plugins/system/cd_scriptegrator/css/');
} else {
// nothing to do...
}
// end
// set extensions array use jQuery core scripts
$jquery_array = array('content:cd_magictabs', 'content:cd_glossary',
'content:cd_chilicode', 'content:cd_downloader', 'module:mod_cd_notes', 'content:cd_ajaxvote');
// end
$jquery_set = 0; // set to empty
foreach ($jquery_array as $jquery_element) {
$jquery_element = explode(':', $jquery_element);
$jquery_folder = $jquery_element[0];
$jquery_element = $jquery_element[1];
switch ($jquery_folder) {
case 'module':
if (plgSystemCdScriptegratorHelper::isModulePublish($jquery_element)) {
$jquery_set = 1;
} else {
}
break;
case 'content':
case 'system':
if (JPluginHelper::isEnabled($jquery_folder, $jquery_element)) {
$jquery_set = 1;
} else {
}
break;
default:
break;
}
}
if (isset($jquery_set) and $jquery_set > 0) {
// insert scripts in <head> </head>
JHTML::script('jquery-latest.pack.js', $live_path .
'plugins/system/cd_scriptegrator/utils/js/jquery/', $mootols = false);
}
}
}
// Attach sef handler to event dispatcher
$dispatcher = &JDispatcher::getInstance();
$dispatcher->attach(new plgSystemCdScriptegrator($dispatcher));
?>
Vielleicht kann wer von euch etwas damit anfangen, ich finde den Fehler leider nicht.