MyXoops Forum

Forum - myXOOPS German Support

1 + 7 = ?  
Geben Sie das Ergebnis der Berechnung ein
Sie haben max. 10 Versuche.
 
* = Erforderlich

Fehler bei Test von CBB 4.0

Betreff: Fehler bei Test von CBB 4.0
von wuddel am 14.12.2007 10:59:46

Ich wollte mir mal das CBB 4.0 anschauen und bekomme beim Aufruf des Forums folgenden Fehler

Zitat:
Fatal error: Cannot redeclare newbb_load_object() (previously declared in C:\Programme\VertrigoServ\www\swp\modules\newbb\include\functions.ini.php:39) in C:\Programme\VertrigoServ\www\swp\modules\newbb\include\functions.ini.php on line 40


Die Datei sieht so aus

<?php
// $Id: functions.php,v 1.3 2005/10/19 17:20:33 phppp Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <http://www.xoops.org/>                             //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //
//  Author: phppp (D.J., infomax@gmail.com)                                  //
//  URL: http://xoopsforge.com, http://xoops.org.cn                          //
//  Project: Article Project                                                 //
//  ------------------------------------------------------------------------ //
if (!defined('XOOPS_ROOT_PATH')) { exit(); }

if (
defined("NEWBB_FUNCTIONS_INI")) return; define("NEWBB_FUNCTIONS_INI",1);

include_once(
XOOPS_ROOT_PATH."/Frameworks/art/functions.ini.php");

function 
newbb_load_object()
{
  return 
load_object();
}

function &
newbb_load_config()
{
  static 
$moduleConfig;
 if (isset(
$moduleConfig)) {
   return 
$moduleConfig;
 }
 
  
load_functions("config");
 
$moduleConfig = mod_loadConfig("newbb");
  
/*
    if (isset($GLOBALS["xoopsModule"]) && is_object($GLOBALS["xoopsModule"]) && $GLOBALS["xoopsModule"]->getVar("dirname", "n") == "newbb") {
     if (!empty($GLOBALS["xoopsModuleConfig"])) {
        $moduleConfig =& $GLOBALS["xoopsModuleConfig"];
     } else {
        return null;
      }
    } else {
   $module_handler =& xoops_gethandler('module');
    $module = $module_handler->getByDirname("newbb");
 
      $config_handler =& xoops_gethandler('config');
      $criteria = new CriteriaCompo(new Criteria('conf_modid', $module->getVar('mid')));
      $configs =& $config_handler->getConfigs($criteria);
     foreach (array_keys($configs) as $i) {
        $moduleConfig[$configs[$i]->getVar('conf_name')] = $configs[$i]->getConfValueForOutput();
     }
     unset($configs);
    }
 if ($customConfig = @include(XOOPS_ROOT_PATH."/modules/newbb/include/plugin.php")) {
    $moduleConfig = array_merge($moduleConfig, $customConfig);
  }
 */
    
return $moduleConfig;
}


// Backword compatible
function newbb_load_lang_file( $filename, $module = '', $default = 'english' )
{
 if (
function_exists("xoops_load_lang_file")) {
    return 
xoops_load_lang_file($filename, $module, $default);
  }
 
  
$lang = $GLOBALS['xoopsConfig']['language'];
  
$path = XOOPS_ROOT_PATH . ( empty($module) ? '/' : "/modules/$module/" ) . 'language';
  if ( !( 
$ret = @include_once( "$path/$lang/$filename.php" ) ) ) {
   
$ret = @include_once( "$path/$default/$filename.php" );
 }
 return 
$ret;
}

?>




Editoren & Frameworks neuste Versionen

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag