Hallo, Gast! (Registrieren)

Wir wünschen allen Besuchern frohe Ostern!

Letzte Ankündigung: MyBB 1.8.37 veröffentlicht (04.11.23)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
Passwortwechsel MySQL + FlashChat
#1
HAllo,

ich habe MYBB 1.4.3 + Flashchat 5.0.7 eingesetz.

Nachdem ich aus Securitygründen das Passwort des Account für die MySQL-DB gewechselt habe erhalte ich folgende Fehlermeldung im Forum:

Fatal error: Call to a member function on a non-object in /home/www/web112/html/boersenportal/forums/chat/inc/config.php on line 84

in der config.php bei MyBB habe ich das neue Passwort nachgetragen.

Ich habe jetzt das Gefühl das ich irgendwas noch bei der Konfiguration bei FlashChat einstellen muss damit das ganze wieder funktioniert.

Kann mir einer sagen was hier noch einzustellen/nachzutragen ist ?

Salamander
Zitieren
#2
Hallo Salamander,
Hast du die config.php aus dem Verzeichnis ./chat/inc/ bereits angepasst?

Mfg Garlant
Ich gebe keinen Support per Messenger oder PN!
Zitieren
#3
 
Ich habe die Datei ./chat/inc/config.php bereits analysiert und stelle fest das ich keine Werte finde die ich Anpassen könte.
 
 
PHP-Code:
<?php
//end of cache options
$GLOBALS['filename'] = 'config';

include 
INC_DIR.'get_config.php';

if ( !isset(
$_REQUEST['step']) )
{
    if( 
$GLOBALS['fc_config']['cacheType'] == || !isset($GLOBALS['fc_config']['cacheType']) )
    {
        require_once( 
INC_DIR 'classes/db.php');
    }
    else
    {
        
//$st = microtime();
        
switch($GLOBALS['fc_config']['cacheType'])
        {
            case 
2:  require_once( INC_DIR 'classes/db_fullCache.php');
                     break;
            default: require_once( 
INC_DIR 'classes/db_cache.php');
                     break;
        }
    }
}



if( 
$GLOBALS['fc_config']['javaSocketServer']  )
{
    
$GLOBALS['fc_config']['enableSocketServer'] = true;
}

if( !
$GLOBALS['fc_config_stop'] )
{
    require_once(
INC_DIR 'flashChatTag.php');
    require_once(
INC_DIR 'layouts/admin.php');
    require_once(
INC_DIR 'layouts/moderator.php');
    require_once(
INC_DIR 'layouts/spy.php');
    require_once(
INC_DIR 'layouts/user.php');
    require_once(
INC_DIR 'layouts/customer.php');

    
//SKINS: To disable a skin, comment or delete the appropriate line

    //Skins config (available skins in /inc/skins; example: 'defaultSkin' => <swf_name>)
    
$GLOBALS['fc_config']['skin'] = array();

    require_once(
INC_DIR 'skins/default_skin.php');
    require_once(
INC_DIR 'skins/xp_skin.php');
    require_once(
INC_DIR 'skins/aqua_skin.php');
    require_once(
INC_DIR 'skins/gradient_skin.php');
    
//require_once(INC_DIR . 'skins/swing_skin.php');
    //require_once(INC_DIR . 'skins/motif_skin.php');
    //require_once(INC_DIR . 'skins/vista_skin.php');
    //require_once(INC_DIR . 'skins/m15uno_skin.php');
    //require_once(INC_DIR . 'skins/lunar_skin.php');
    //require_once(INC_DIR . 'skins/transylvania_skin.php');
    //require_once(INC_DIR . 'skins/frames_skin.php');


    //THEMES: To disable a color theme, comment or delete the appropriate line

    //Themes config
    
$GLOBALS['fc_config']['themes'] = array();
    require_once(
'include_themes.php');
}

    
$file_path $GLOBALS['fc_config']['appdata_path'];
    if( 
file_exists$file_path ) && filesize$file_path ) > )
    {
        
$arr filemtime($file_path);
    }




if( !isset( 
$_REQUEST['step'] )  )
{
        if( 
time() - $arr>)
        {
            
//added on 090706 for chat instances
            
$stmt = new Statement('SELECT * FROM '.$GLOBALS['fc_config']['db']['pref'].'config_main'1);
            
$rs $stmt->process();
            
$main_records = array();
            while(
$rec $rs->next())
            {
                 
$GLOBALS['fc_config']['fc_instance'][$rec['level_0']] = $rec['value'];

            }
        }
}


/*$GLOBALS['fc_config']['fc_instance'] =  array(
                                              'paypal_admin_bussiness_email' => 'admin@fc.com',
                                              'instance_value' => 50,
                                              'admin_currency_type' => 'USD'
                                              );*/


$GLOBALS['fc_config']['payment_options']['debug_mode'] = 0;
//Deriving datas for comma delimited texts in admin
$fc_spl_languages $GLOBALS['fc_config']['special_language']['itm0'];
$fc_spl_language_items=split(',',$fc_spl_languages);

for( 
$i=$i sizeof($fc_spl_language_items) ; $i++ )
{
    
$GLOBALS['fc_config']['special_language']['itm'.$i] = $fc_spl_language_items[$i];
}

//for($i=0;$i<count($fc_spl_language_items);$i++)
//echo "<pre>";print_r($GLOBALS['fc_config']['special_language']);echo "</pre>";exit;
//Deriving datas for comma delimited texts in admin ends here
if( !isset( $_REQUEST['step'] )  )
{
    
$query 'SELECT * FROM '.$GLOBALS['fc_config']['db']['pref'].'config_instances WHERE is_active=1 OR is_default=1 ORDER BY id';

    
$stmt = new Statement$query );
    
$res  $stmt->process();
    
$GLOBALS['fc_config']['instances'] = array();

    while(
$row $res->next())
    {
        
//if ( in_array($row['id'],$pieces) )
            
$GLOBALS['fc_config']['instances'][] = array( 'id' => $row['id'] , 'name' => $row['name'] );
    }
}

?>

Salamander
Zitieren
#4
Was steht den in der Datei: get_config.php?

Mfg Garlant
Ich gebe keinen Support per Messenger oder PN!
Zitieren
#5
 
./chat/inc/config.php

 
PHP-Code:
<?php

//temp comment temp comment temp coment temp comment***************************************************************************************
if( isset($GLOBALS['fc_config']['cacheType']) && $GLOBALS['fc_config']['cacheType']==)
{
    
$_SESSION['session_inst'] = 1;
    
$fname dirname(__FILE__).'/../temp/templates/cache/'.$GLOBALS['fc_config']['db']['pref'].'config_'.$GLOBALS['fc_config']['cacheFilePrefix'].'_1.txt';
    if( !
file_exists($fname) )
    {
        unset(
$_SESSION['userid']);
        
Header('Location: ../install.php');
        die;
    }
}
else
{
    
mysql_connect($GLOBALS['fc_config']['db']['host'], $GLOBALS['fc_config']['db']['user'], $GLOBALS['fc_config']['db']['pass']);
    
mysql_select_db($GLOBALS['fc_config']['db']['base']);
}

//$btime = microtime();
//if ( isset( $_REQUEST['instances'] ) )
//    $_SESSION["session_inst"] = $_REQUEST['instances'];// commented on 090706 for chat instances

$rec $_REQUEST;



if ( isset( 
$rec['session_inst'] ) )
{
    
//$_SESSION['session_inst'] = trim($rec['session_inst']);// added on 090706 for chat instances
    
$_SESSION['session_inst'] = $rec['session_inst'];// added on 090706 for chat instances
}

$conf_pref $GLOBALS['fc_config']['db']['pref'];




//$_SESSION['session_inst'] = 1;
if( !isset($_SESSION['session_inst']) )
{
    
// commented because instances not use now. artemK0
    /*$query = 'SELECT '.$conf_pref.'config_instances.*
                   FROM '.$conf_pref.'config_instances
                WHERE '.$conf_pref.'config_instances.is_default = 1
              LIMIT 1';


    $result = mysql_query($query);

    $row = mysql_fetch_array($result);*/

    
$_SESSION['session_inst'] = 1;
    
$_SESSION['session_inst_name'] = 'Default';// added on 090706 for chat instances

}


    
//$_SESSION['session_inst_name'] = 'Default';
    // added on 090706 for chat instances
    
if( isset($_SESSION['session_inst_name']) && $_SESSION['session_inst_name'] == '')
    {
        
// commented because instances not use now. artemK0
        /*$query = 'SELECT '.$conf_pref.'config_instances.*
                       FROM '.$conf_pref.'config_instances
                    WHERE '.$conf_pref.'config_instances.is_default = '.$_SESSION['session_inst'].' LIMIT 1';

        $result = mysql_query($query);
        $row = mysql_fetch_array($result);*/
        
$_SESSION['session_inst_name'] = 'Default';
    }



    
//if($_SESSION["session_inst_name"] == "")
    // added on 090706 for chat instances ends here
$path dirname(__FILE__).'/../temp/appdata/'.$GLOBALS['filename'].'_'$_SESSION['session_inst'] .'.php';

if(!
file_exists($path) || (isset($GLOBALS['force_config']) && $GLOBALS['force_config']))// commented on 090706 for chat instances
{
    
$addlevel   '';
    
$addlevel_0 '';
    
$addwhere   '';
    
$levels = array();
    
$params = array();
    
$sqlCode=0;

    switch(
$GLOBALS['filename'])
    {
        case 
'config':
            
$addlevel "\$GLOBALS['fc_config']";
            
$addwhere " AND NOT(level_0='badWords' OR level_0='badWordSubstitute' OR level_0='layouts' OR level_0='skin' OR level_0='themes')";
            
$addorder 'ORDER BY '.$conf_pref.'config._order';
            
$sqlCode=425;
            break;
        case 
'badwords':
            
$levels[0]  = 'badWords';
            
$addlevel_0 "\$GLOBALS['fc_config']['badWordSubstitute']";
            
$addlevel   "\$GLOBALS['fc_config']['badWords']";
            
$params []= 'badWords';
            
$params []= 'badWordSubstitute';
            
$addwhere   " AND (level_0=? OR level_0=?)";
            
$addorder 'ORDER BY '.$conf_pref.'config_values.id';
            
$sqlCode=424;
            break;
        case 
'admin':
            
$levels[0] = 'layouts';
            
$levels[1] = ROLE_ADMIN;
            
$addlevel "\$GLOBALS['fc_config']['layouts'][".ROLE_ADMIN."]";
            
$params[]="layouts";
            
$params[]=ROLE_ADMIN;
            
$addwhere   " AND (level_0=? AND level_1=?)";
            
$addorder 'ORDER BY '.$conf_pref.'config_values.id';
            
$sqlCode=423;
            break;
        case 
'customer':
            
$levels[0] = 'layouts';
            
$levels[1] = ROLE_CUSTOMER;
            
$addlevel "\$GLOBALS['fc_config']['layouts'][".ROLE_CUSTOMER."]";
            
$params[]="layouts";
            
$params[]=ROLE_CUSTOMER;
            
$addwhere   " AND (level_0=? AND level_1=?)";
            
$addorder 'ORDER BY '.$conf_pref.'config_values.id';
            
$sqlCode=423;
            break;
        case 
'moderator':
            
$levels[0] = 'layouts';
            
$levels[1] = ROLE_MODERATOR;
            
$addlevel "\$GLOBALS['fc_config']['layouts'][".ROLE_MODERATOR."]";
            
$params[]="layouts";
            
$params[]=ROLE_MODERATOR;
            
$addwhere   " AND (level_0=? AND level_1=?)";
            
$addorder 'ORDER BY '.$conf_pref.'config_values.id';
            
$sqlCode=423;
            break;
        case 
'spy':
            
$levels[0] = 'layouts';
            
$levels[1] = ROLE_SPY;
            
$addlevel "\$GLOBALS['fc_config']['layouts'][".ROLE_SPY."]";
            
$params[]="layouts";
            
$params[]=ROLE_SPY;
            
$addwhere   " AND (level_0=? AND level_1=?)";
            
$addorder 'ORDER BY '.$conf_pref.'config_values.id';
            
$sqlCode=423;
            break;
        case 
'user':
            
$levels[0] = 'layouts';
            
$levels[1] = ROLE_USER;
            
$addlevel "\$GLOBALS['fc_config']['layouts'][".ROLE_USER."]";
            
$params[]="layouts";
            
$params[]=ROLE_USER;
            
$addwhere   " AND (level_0=? AND level_1=?)";
            
$addorder 'ORDER BY '.$conf_pref.'config_values.id';
            
$sqlCode=423;
            break;
        case 
'aqua_skin':
            
$levels[0] = 'skin';
            
$levels[1] = $GLOBALS['filename'];
            
$addlevel "\$GLOBALS['fc_config']['skin']['".$GLOBALS['filename']."']";
            
$params[]="skin";
            
$params[]=$GLOBALS['filename'];
            
$addwhere   " AND (level_0=? AND level_1=?)";
            
$addorder 'ORDER BY '.$conf_pref.'config_values.id';
            
$sqlCode=423;
            break;
        case 
'default_skin':
            
$levels[0] = 'skin';
            
$levels[1] = $GLOBALS['filename'];
            
$addlevel "\$GLOBALS['fc_config']['skin']['".$GLOBALS['filename']."']";
            
$params[]="skin";
            
$params[]=$GLOBALS['filename'];
            
$addwhere   " AND (level_0=? AND level_1=?)";
            
$addorder 'ORDER BY '.$conf_pref.'config_values.id';
            
$sqlCode=423;
            break;
        case 
'gradient_skin':
            
$levels[0] = 'skin';
            
$levels[1] = $GLOBALS['filename'];
            
$addlevel "\$GLOBALS['fc_config']['skin']['".$GLOBALS['filename']."']";
            
$params[]="skin";
            
$params[]=$GLOBALS['filename'];
            
$addwhere   " AND (level_0=? AND level_1=?)";
            
$addorder 'ORDER BY '.$conf_pref.'config_values.id';
            
$sqlCode=423;
            break;
        case 
'xp_skin':
            
$levels[0] = 'skin';
            
$levels[1] = $GLOBALS['filename'];
            
$addlevel "\$GLOBALS['fc_config']['skin']['".$GLOBALS['filename']."']";
            
$params[]="skin";
            
$params[]=$GLOBALS['filename'];
            
$addwhere   " AND (level_0=? AND level_1=?)";
            
$addorder 'ORDER BY '.$conf_pref.'config_values.id';
            
$sqlCode=423;
            break;
        case 
$prefix == 'thm':
            
$levels[0] = 'themes';
            
$levels[1] = $GLOBALS['filename'];
            
$addlevel "\$GLOBALS['fc_config']['themes']['".$GLOBALS['filename']."']";
            
$params[]="themes";
            
$params[]=$GLOBALS['filename'];
            
$addwhere   " AND (level_0=? AND level_1=?)";
            
$addorder 'ORDER BY '.$conf_pref.'config_values.id';
            
$sqlCode=423;
            break;
    }
    
//---------------------------------------------------------------------------------------------------------------------------//
    
$query 'SELECT *
              FROM '
.$conf_pref.'config,'.$conf_pref.'config_values
              WHERE '
.$conf_pref.'config_values.instance_id = ? AND
              '
.$conf_pref.'config.id = '.$conf_pref.'config_values.config_id AND
                '
.$conf_pref.'config_values.disabled = 0 '
              
.$addwhere.' '.$addorder;
    if(
$sqlCode == 423)
    {
        
$stmt = new Statement($query$sqlCode);
        
$result $stmt->process($_SESSION['session_inst'], $params[0], $params[1]);
    }
    elseif(
$sqlCode == 424)
    {
        
$stmt = new Statement($query$sqlCode);
        
$result $stmt->process($_SESSION['session_inst'], $params[0], $params[1]);
    }
    elseif(
$sqlCode == 425)
    {
        
$stmt = new Statement($query$sqlCode);
        
$result $stmt->process($_SESSION['session_inst']);
    }

    
//---------------------------------------------------------------------------------------------------------------------------//
    
$config = array();

    while( 
$rec $result->next() )
    {
        
scan_record($rec$config);
    }
    
$tmp_module = array();
    if(
count($config['module']) > 0)
    {
        foreach(
$config['module'] as $k => $v)
        {
            
$exploded_v explode(','$v);
            foreach(
$exploded_v as $key => $val)
            {
                
$tmp_module[$key][$k] = $val;
            }
        }
        foreach(
$config['module'] as $k => $v)
        {
            
$config['module'][$k] = '';
        }
        foreach(
$tmp_module as $k => $v)
        {
            if(
$v['enabled'] == 'true')
            {
                foreach(
$v as $key => $val)
                {
                    
$config['module'][$key] .= $val.',';
                }
            }
        }
        foreach(
$config['module'] as $k => $v)
        {
            
$config['module'][$k] = substr($config['module'][$k], 0, -1);
        }
    }
    
//---------------------------------------------------------------------------------------------------------------------------//
    
if($addlevel_0 != '')
    {
        
$addlevel_0 .= ' = '.var_export($config['badWordSubstitute'], true).";\n";
    }

    if(
count($levels) == 1)
    {
        
$config $config[$levels[0]];
    }
    else
    {
        if(
count($levels) == && isset( $config[$levels[0]][$levels[1]] ) )
        {
            
$config $config[$levels[0]][$levels[1]];
        }
    }
    
$config['cacheType']=$GLOBALS['fc_config']['cacheType'];
    if(isset(
$GLOBALS['fc_config']['cachePath_sm']))
    {
        
$config['cachePath']=$GLOBALS['fc_config']['cachePath_sm'];
    }
    else
    {
        
$config['cachePath']=$GLOBALS['fc_config']['cachePath'];
    }
    
$config['cacheFilePrefix']=$GLOBALS['fc_config']['cacheFilePrefix'];
    
$str var_export($configtrue);
    while(
strpos($str,"'0x"))
    {
        
$str substr_replace($strsubstr($str,strpos($str,"'0x")+1,), strpos($str,"'0x"),10);
    }
    
$needle " => ''";
    if( isset(
$levels[0]) && $levels[0] == 'badWords' )
    {
        while( !
strpos($str,$needle) === false)
        {
            
$str utf8_decode(substr_replace($str''strpos($str,$needle), strlen($needle)));
        }
    }

    
$data "<?php\n$addlevel_0$addlevel = ".$str.";\n?>";
    
//header("Content-type: text/plain");    echo $data;exit;

    
write2file($path$data);
    
//header("Content-type: text/plain");echo "$addlevel_0$addlevel = $str;";exit;
}////if(!file_exists($path) || $GLOBALS['force_config'])// commented on 090706 for chat instances

$pre_fc_config $GLOBALS['fc_config'];
require_once(
$path);
//eval("$addlevel_0$addlevel = $str;");
$GLOBALS['fc_config'] = array_merge($pre_fc_config$GLOBALS['fc_config']);
if(!isset(
$GLOBALS['fc_config']['cachePath_sm'])) $GLOBALS['fc_config']['cachePath_sm']=$GLOBALS['fc_config']['cachePath'];

if( 
strpos($GLOBALS['fc_config']['cachePath'],'inc')===false $GLOBALS['fc_config']['cachePath'] = INC_DIR.$GLOBALS['fc_config']['cachePath'];
?>

Salamander
Sorry....ich habs gefunden.

Zugangsdaten stehen unter: ./chat/temp/config.srv.php

https://www.mybb.de/forum/thread-10319-p...l#pid74771

Salamander
Zitieren


Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  FlashChat bekommt keinen MySQL Access nucleus 4 3.284 20.09.2008, 13:27
Letzter Beitrag: skotzek
  Flashchat und Mysql Thai-Tiger 4 2.221 10.08.2008, 13:22
Letzter Beitrag: Thai-Tiger