[u][b][color=#FF0000]MySQL-Query failed: 1194: Table 'bs_sessions' is marked as crashed and should be repaired[/color][/b][/u] MySQL-Query: "SELECT s.*,u.`user_name` user_name,p.ghost_mode,p.user_group FROM bs_sessions s LEFT JOIN bs_user u ON s.user_id = u.`id` LEFT JOIN bs_profiles p ON s.user_id = p.id ORDER BY s.date DESC" [b]Call-trace:[/b] [list] [*][i]Unknown[/i] [ Method: [b]BS_ErrorHandler::handleError()[/b] ] [*]/var/www/web32/html/forum/src/[b]mysql.php[/b] in line [b]168[/b] [ Function: [b]trigger_error()[/b] ] [code]0163 0164 $query = @mysql_query($sql,$this->_con); 0165 if(!$query && $error) 0166 { 0167 trigger_error('MySQL-Query failed: '.mysql_errno($this->_con).': '.mysql_error($this->_con)."{{}}" 0168 .'MySQL-Query: "'.$sql.'"',E_USER_ERROR); 0169 die(); 0170 } 0171 0172 $this->_total_queries++; 0173 if($this->_enable_debug) 0174 { [/code] [*]/var/www/web32/html/forum/src/auth/[b]session.php[/b] in line [b]965[/b] [ Method: [b]BS_MySQL::sql_qry()[/b] ] [code]0960 "SELECT s.*,u.`".BS_EXPORT_USER_NAME."` user_name,p.ghost_mode,p.user_group 0961 FROM ".BS_TB_SESSIONS." s 0962 LEFT JOIN ".BS_TB_USER." u ON s.user_id = u.`".BS_EXPORT_USER_ID."` 0963 LEFT JOIN ".BS_TB_PROFILES." p ON s.user_id = p.id 0964 ORDER BY s.date DESC" 0965 ); 0966 while($data = $this->db->sql_fetch_assoc($qry)) 0967 { 0968 $data['bot_name'] = $this->_get_bot_name($data['user_agent'],$data['user_ip']); 0969 $this->_online_table[$data['session_id']] = $data; 0970 } 0971 [/code] [*]/var/www/web32/html/forum/src/auth/[b]session.php[/b] in line [b]153[/b] [ Method: [b]BS_Session::_generate_session_table()[/b] ] [code]0148 * 0149 * @access public 0150 */ 0151 function init_session() 0152 { 0153 $this->_generate_session_table(); 0154 $this->_init_session(); 0155 $this->_logout_offline_user(); 0156 0157 // login by cookie? 0158 if(!$this->_admin_required && !$this->is_loggedin()) 0159 { [/code] [*]/var/www/web32/html/forum/src/auth/[b]user.php[/b] in line [b]78[/b] [ Method: [b]BS_Session::init_session()[/b] ] [code]0073 * 0074 * @access public 0075 */ 0076 function init() 0077 { 0078 $this->init_session(); 0079 0080 $this->_calculate_forum_lang(); 0081 $this->_calculate_forum_theme(); 0082 $this->_calculate_timezone(); 0083 0084 $time = time(); [/code] [*]/var/www/web32/html/forum/src/[b]base.php[/b] in line [b]352[/b] [ Method: [b]BS_User::init()[/b] ] [code]0347 BS_add_objects_to_class($this,$this->$name); 0348 0349 // init the session 0350 if($this->_config['sess']) 0351 { 0352 $this->sess->init(); 0353 $this->auth->init(); 0354 if($this->_config['unread']) 0355 $this->unread->init(); 0356 } 0357 0358 // init language [/code] [*]/var/www/web32/html/forum/src/[b]base.php[/b] in line [b]225[/b] [ Method: [b]BS_Base::_init()[/b] ] [code]0220 { 0221 if(isset($this->_config[$val])) 0222 $this->_config[$val] = false; 0223 } 0224 0225 $this->_init($admin_required); 0226 } 0227 0228 /** 0229 * inits all necessary stuff 0230 * 0231 * @param boolean $admin_required for the session: is an admin required to login? [/code] [*]/var/www/web32/html/forum/src/[b]standalone.php[/b] in line [b]40[/b] [ Method: [b]BS_Base::BS_Base()[/b] ] [code]0035 * @param boolean $use_ob do you want to use output-buffering? 0036 * @param array $exclude the exclude-objects-array for BS_Base 0037 */ 0038 function BS_Standalone($path,$use_ob = true,$exclude = array()) 0039 { 0040 BS_Base::BS_Base($path,$exclude); 0041 0042 $this->_use_ob = $use_ob; 0043 } 0044 0045 /** 0046 * Displays this object / performs the action [/code] [*]/var/www/web32/html/forum/standalone/[b]chat.php[/b] in line [b]6[/b] [ Method: [b]BS_Standalone::BS_Standalone()[/b] ] [code]0001 <?php 0002 class BS_Standalone_chat extends BS_Standalone 0003 { 0004 function BS_Standalone_chat($path) 0005 { 0006 BS_Standalone::BS_Standalone($path); 0007 } 0008 0009 function run() 0010 { 0011 if(in_array(1,BS_advanced_explode(',',$this->sess->userdata['user_group'])) || in_array(4,BS_advanced_explode(',',$this->sess->userdata['user_group'])) || in_array(5,BS_advanced_explode(',',$this->sess->userdata['user_group']))) 0012 { [/code] [*]/var/www/web32/html/forum/[b]standalone.php[/b] in line [b]29[/b] [ Method: [b]BS_Standalone_chat::BS_Standalone_chat()[/b] ] [code]0024 { 0025 include_once($bspath.'standalone/'.$action.'.php'); 0026 $class = 'BS_Standalone_'.$action; 0027 if(class_exists($class)) 0028 { 0029 $c = new $class($bspath); 0030 $c->display(); 0031 } 0032 } 0033 ?> [/code] [/list]