PDA

Zobacz pełną wersję : Community Builder



maniek
08-02-2008, 01:18
Dawno mnie u Was nie byllo :)

Pojawil sie kolejny problem...

Po zainstalowaniu Community BUilder 1.1 oraz latki spolszczajacej i podczas logowania usera przez mod CB otrzymuje taki error:


Fatal error: Cannot redeclare confirm() in /home/r69/public_html/counter-strike/components/com_comprofiler/comprofiler.php on line 1592

Poniezej przedstawiam zawartosc tego pliku:linijka 1592 => function confirm($confirmcode){
global $_CB_database, $mainframe, $my, $ueConfig, $_PLUGINS;

if($my->id < 1) {
$lengthConfirmcode = strlen($confirmcode);
if ($lengthConfirmcode == ( 3+32+8 ) ) {
$scrambleSeed = (int) hexdec(substr( md5 ( $mainframe->getCfg( 'secret' ) . $mainframe->getCfg( 'db' ) ), 0, 7));
$unscrambledId = $scrambleSeed ^ ( (int) hexdec(substr( $confirmcode, 3+32 ) ) );
$query = "SELECT * FROM #__comprofiler c, #__users u "
. " WHERE c.id = " . (int) $unscrambledId . " AND c.cbactivation = '" . cbGetEscaped($confirmcode) . "' AND c.id=u.id";
// } elseif ($lengthConfirmcode == 32) { //BBTODO: this is for confirmation links previous to CB 1.0.2: remove after CB 1.0.2:
// $query = "SELECT * FROM #__comprofiler c, #__users u WHERE c.id=u.id AND md5(c.id) = '" . cbGetEscaped($confirmcode) . "'";
} else {
mosNotAuth();
return;
}

Posiadam wersje joomla: Joomla! 1.0.8 Stable