Hallo
ich habe folgendes Problem. Ich habe mambo auf einen neuen Server transferiert.
Habe das Template (Frontend) geändert und die config angepasst.
Alles läuft wunderbar. nur ich bekomme im backend immer eine javascript fehlermeldung. Siehe anhang. was kann das sein ?
Wer kann helfen ?
Danke
Hier der Code der index2.php:
PHP-Code:/**
* @version $Id: index2.php,v 1.8 2005/11/24 23:44:14 cauld Exp $
* @package Mambo
* @copyright (C) 2000 - 2005 Miro International Pty Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* Mambo is Free Software
*/
// fix to address the globals overwrite problem in php versions < 4.4.1
$protect_globals = array('_REQUEST', '_GET', '_POST', '_COOKIE', '_FILES', '_SERVER', '_ENV', 'GLOBALS', '_SESSION');
foreach ($protect_globals as $global) {
if ( in_array($global , array_keys($_REQUEST)) ||
in_array($global , array_keys($_GET)) ||
in_array($global , array_keys($_POST)) ||
in_array($global , array_keys($_COOKIE)) ||
in_array($global , array_keys($_FILES))) {
die("Invalid Request.");
}
}
/** Set flag that this is a parent file */
define( "_VALID_MOS", 1 );
if (!file_exists( "../configuration.php" )) {
header( "Location: ../installation/index.php" );
exit();
}
require_once( "../globals.php" );
require_once( "../configuration.php" );
require_once( $mosConfig_absolute_path . "/includes/mambo.php" );
include_once( $mosConfig_absolute_path . "/language/".$mosConfig_lang.".php" );
require_once( $mosConfig_absolute_path . "/administrator/includes/admin.php" );
$database = new database( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $mosConfig_dbprefix );
$database->debug( $mosConfig_debug );
$acl = new gacl_api();
$option = strtolower( mosGetParam( $_REQUEST, 'option', '' ) );
if ($option == '') {
$option = 'com_admin';
}
// must start the session before we create the mainframe object
session_name( md5( $mosConfig_live_site ) );
session_start();
if ($option == 'simple_mode') { $_SESSION['simple_editing'] = 'on';}
if ($option == 'advanced_mode') {$_SESSION['simple_editing'] = 'off';}
// mainframe is an API workhorse, lots of 'core' interaction routines
$mainframe = new mosMainFrame( $database, $option, '..', true );
....


LinkBack URL
About LinkBacks
Zitieren
Lesezeichen