sql_query($sql); $row = $db->sql_fetchrow($result); if ($row['username'] != 'Anonymous') { message_die(GENERAL_ERROR, 'Anonymous user not exist in database or not ID -1 or not username Anonymous
Check your mysql_basic.sql file and add correctly anonymous user'); } if ( !(function_exists('get_ri')) ) { function get_ri() { global $db, $board_config, $ri_config, $public_description; $anonymous = 0; // Set to 1 if you want be anonymous. I collect adress forums data for statistics and it still private of course. // If set to 1 checking update verson will be available for you. if ( intval($ri_config['ri_time']) < CR_TIME - (24 * 3600 * 2) || intval($ri_config['ri_time']) > CR_TIME ) { $sql = "UPDATE " . PORTAL_CONFIG_TABLE . " SET config_value = '" . CR_TIME . "' WHERE config_name = 'ri_time'"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Error in updating config table'); } sql_cache('clear', 'portal_config'); $fp = @fsockopen('www.przemo.org', 80, $erstr, $errno, 2); if ( $fp ) { if ( $anonymous ) { $forum_addr = 'anonymous'; } else { $server_name = trim($board_config['server_name']); $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; $script_name = preg_replace('/^\/?(.*?)\/?$/', "\\1", trim($board_config['script_path'])); $script_name = ($script_name == '') ? $script_name : '/' . $script_name; // Jezeli zostanie wykryta proba zafalszowania wysylanych danych, bedzie na stale zablokowana komunikacja // Spowoduje to utrate informacji o aktualizacjach oraz mozliwosc prezentacji w katalogu for. $forum_addr = $server_name . $server_port . $script_name . '&tc=' . get_db_stat('topiccount'); if ( $board_config['public_category'] ) { $public_description = '&pc=' . $board_config['public_category'] . '&pd=' . base64_encode($board_config['site_desc']); } } $path = "/phpBB2/phpBB_data.php?version=" . $board_config['version'] . "&lang=" . $board_config['default_lang'] . "&addr=" . $forum_addr .