Seite 1 von 2 12 LetzteLetzte
Ergebnis 1 bis 10 von 14

Thema: warning, wo ich nicht weiß was falsch is!

  1. #1
    Gast

    Standard warning, wo ich nicht weiß was falsch is!

    ich bekomme die genze zeit so ne sche*ß errormeldung oder besser ein warning. das script geht aber ich krieg die sche*ß warnung nicht weg!, sry aber ich bin wegen dem schon voll geladen!

    die warnung:
    Warning: Cannot modify header information - headers already sent by (output started at /usr/export/www/vhosts/funnetwork/hosting/froozingphp/index.php:154) in /usr/export/www/vhosts/funnetwork/hosting/froozingphp/phpBB2/includes/stats_header.php on line 586

    ich hab mit mir zu phpbb ein kleines stats feld gemacht wo man ein loginfeld und ein paar statistiken zum forum hat

    das forum liegt im verzeichnis phpBB2
    ich hab in der stats.php den pfad geändert von ./ in ./phpBB2/

    die stats.php datei liegt im hauptverzeichnis ich include diese in meine indexseite, das script würde auch super gehen nur die sche*ß warnung stört!!

    kann man die irgendwie unterdrücken??#

    mfg, jemand der von php genervt is
    Achtung: Dies ist ein alter Thread im HTML und Webmaster Forum
    Diese Diskussion ist älter als 90 Tage. Die darin enthaltenen Informationen sind möglicherweise nicht mehr aktuell. Erstelle bitte zu deiner Frage ein neues Thema im Forum !!!!!

  2. #2
    Forum Guru
    Registriert seit
    14.06.2004
    Ort
    Schleswig-Holstein
    Beiträge
    5.439
    Danke
    0
    Bekam 0 mal "Danke" in 0 Postings

    Standard

    Moin!

    Poste mal den kompletten Quelltext der index.php - du hast da wahrscheinlich irgendwo ein Echo drinnen.

    Der Fehler sagt, daß der header nicht ausgegeben werden kann, weil bereits eine andere Ausgabe erfolgt ist. Das kann z.B. ein echo sein.

    G.a.d.M.

    Ronald

  3. #3
    Gast

    Standard

    hat sich erledigt ich habs mit iframe eingebunden das ist aber wohl auf dauer auch keine lösung deswegen hier der phpquelltext der stats.php

    Code:
    <?php
    /***************************************************************************
     *                                index.php
     *                            -------------------
     *   begin                &#58; Saturday, Feb 13, 2001
     *   copyright            &#58; &#40;C&#41; 2001 The phpBB Group
     *   email                &#58; support@phpbb.com
     *
     *   $Id&#58; index.php,v 1.99.2.3 2004/07/11 16&#58;46&#58;15 acydburn Exp $
     *
     *
     ***************************************************************************/
    
    /***************************************************************************
     *
     *   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
     *   &#40;at your option&#41; any later version.
     *
     ***************************************************************************/
    
    define&#40;'IN_PHPBB', true&#41;;
    $phpbb_root_path = './phpBB2/';
    include&#40;$phpbb_root_path . 'extension.inc'&#41;;
    include&#40;$phpbb_root_path . 'common.'.$phpEx&#41;;
    
    //
    // Start session management
    //
    $userdata = session_pagestart&#40;$user_ip, PAGE_INDEX&#41;;
    init_userprefs&#40;$userdata&#41;;
    //
    // End session management
    //
    
    $viewcat = &#40; !empty&#40;$HTTP_GET_VARS&#91;POST_CAT_URL&#93;&#41; &#41; ? $HTTP_GET_VARS&#91;POST_CAT_URL&#93; &#58; -1;
    
    if&#40; isset&#40;$HTTP_GET_VARS&#91;'mark'&#93;&#41; || isset&#40;$HTTP_POST_VARS&#91;'mark'&#93;&#41; &#41;
    &#123;
    	$mark_read = &#40; isset&#40;$HTTP_POST_VARS&#91;'mark'&#93;&#41; &#41; ? $HTTP_POST_VARS&#91;'mark'&#93; &#58; $HTTP_GET_VARS&#91;'mark'&#93;;
    &#125;
    else
    &#123;
    	$mark_read = '';
    &#125;
    
    //
    // Handle marking posts
    //
    if&#40; $mark_read == 'forums' &#41;
    &#123;
    	if&#40; $userdata&#91;'session_logged_in'&#93; &#41;
    	&#123;
    		setcookie&#40;$board_config&#91;'cookie_name'&#93; . '_f_all', time&#40;&#41;, 0, $board_config&#91;'cookie_path'&#93;, $board_config&#91;'cookie_domain'&#93;, $board_config&#91;'cookie_secure'&#93;&#41;;
    	&#125;
    
    	$template->assign_vars&#40;array&#40;
    		"META" => '<meta http-equiv="refresh" content="3;url='  .append_sid&#40;"index.$phpEx"&#41; . '">'&#41;
    	&#41;;
    
    	$message = $lang&#91;'Forums_marked_read'&#93; . '
    
    ' . sprintf&#40;$lang&#91;'Click_return_index'&#93;, '', ' '&#41;;
    
    	message_die&#40;GENERAL_MESSAGE, $message&#41;;
    &#125;
    //
    // End handle marking posts
    //
    
    $tracking_topics = &#40; isset&#40;$HTTP_COOKIE_VARS&#91;$board_config&#91;'cookie_name'&#93; . '_t'&#93;&#41; &#41; ? unserialize&#40;$HTTP_COOKIE_VARS&#91;$board_config&#91;'cookie_name'&#93; . "_t"&#93;&#41; &#58; array&#40;&#41;;
    $tracking_forums = &#40; isset&#40;$HTTP_COOKIE_VARS&#91;$board_config&#91;'cookie_name'&#93; . '_f'&#93;&#41; &#41; ? unserialize&#40;$HTTP_COOKIE_VARS&#91;$board_config&#91;'cookie_name'&#93; . "_f"&#93;&#41; &#58; array&#40;&#41;;
    
    //
    // If you don't use these stats on your index you may want to consider
    // removing them
    //
    $total_posts = get_db_stat&#40;'postcount'&#41;;
    $total_users = get_db_stat&#40;'usercount'&#41;;
    $newest_userdata = get_db_stat&#40;'newestuser'&#41;;
    $newest_user = $newest_userdata&#91;'username'&#93;;
    $newest_uid = $newest_userdata&#91;'user_id'&#93;;
    
    if&#40; $total_posts == 0 &#41;
    &#123;
    	$l_total_post_s = $lang&#91;'No_articles'&#93;;
    &#125;
    else if&#40; $total_posts == 1 &#41;
    &#123;
    	$l_total_post_s = $lang&#91;'article_yes'&#93;;
    &#125;
    else
    &#123;
    	$l_total_post_s = $lang&#91;'beitraege_total'&#93;;
    &#125;
    
    if&#40; $total_users == 0 &#41;
    &#123;
    	$l_total_user_s = $lang&#91;'keine_user'&#93;;
    &#125;
    else if&#40; $total_users == 1 &#41;
    &#123;
    	$l_total_user_s = $lang&#91;'ein_user'&#93;;
    &#125;
    else
    &#123;
    	$l_total_user_s = $lang&#91;'mitglieder_total'&#93;;
    &#125;
    
    
    //
    // Start page proper
    //
    $sql = "SELECT c.cat_id, c.cat_title, c.cat_order
    	FROM " . CATEGORIES_TABLE . " c 
    	ORDER BY c.cat_order";
    if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
    &#123;
    	message_die&#40;GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql&#41;;
    &#125;
    
    $category_rows = array&#40;&#41;;
    while&#40; $category_rows&#91;&#93; = $db->sql_fetchrow&#40;$result&#41; &#41;;
    $db->sql_freeresult&#40;$result&#41;;
    
    if&#40; &#40; $total_categories = count&#40;$category_rows&#41; &#41; &#41;
    &#123;
    	//
    	// Define appropriate SQL
    	//
    	switch&#40;SQL_LAYER&#41;
    	&#123;
    		case 'postgresql'&#58;
    			$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id 
    				FROM " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p, " . USERS_TABLE . " u
    				WHERE p.post_id = f.forum_last_post_id 
    					AND u.user_id = p.poster_id  
    					UNION &#40;
    						SELECT f.*, NULL, NULL, NULL, NULL
    						FROM " . FORUMS_TABLE . " f
    						WHERE NOT EXISTS &#40;
    							SELECT p.post_time
    							FROM " . POSTS_TABLE . " p
    							WHERE p.post_id = f.forum_last_post_id  
    						&#41;
    					&#41;
    					ORDER BY cat_id, forum_order";
    			break;
    
    		case 'oracle'&#58;
    			$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id 
    				FROM " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p, " . USERS_TABLE . " u
    				WHERE p.post_id = f.forum_last_post_id&#40;+&#41;
    					AND u.user_id = p.poster_id&#40;+&#41;
    				ORDER BY f.cat_id, f.forum_order";
    			break;
    
    		default&#58;
    			$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
    				FROM &#40;&#40; " . FORUMS_TABLE . " f
    				LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id &#41;
    				LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id &#41;
    				ORDER BY f.cat_id, f.forum_order";
    			break;
    	&#125;
    	if &#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
    	&#123;
    		message_die&#40;GENERAL_ERROR, 'Could not query forums information', '', __LINE__, __FILE__, $sql&#41;;
    	&#125;
    
    	$forum_data = array&#40;&#41;;
    	while&#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41;
    	&#123;
    		$forum_data&#91;&#93; = $row;
    	&#125;
    	$db->sql_freeresult&#40;$result&#41;;
    
    	if &#40; !&#40;$total_forums = count&#40;$forum_data&#41;&#41; &#41;
    	&#123;
    		message_die&#40;GENERAL_MESSAGE, $lang&#91;'No_forums'&#93;&#41;;
    	&#125;
    
    	//
    	// Obtain a list of topic ids which contain
    	// posts made since user last visited
    	//
    	if &#40; $userdata&#91;'session_logged_in'&#93; &#41;
    	&#123;
    		$sql = "SELECT t.forum_id, t.topic_id, p.post_time 
    			FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p 
    			WHERE p.post_id = t.topic_last_post_id 
    				AND p.post_time > " . $userdata&#91;'user_lastvisit'&#93; . " 
    				AND t.topic_moved_id = 0"; 
    		if &#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
    		&#123;
    			message_die&#40;GENERAL_ERROR, 'Could not query new topic information', '', __LINE__, __FILE__, $sql&#41;;
    		&#125;
    
    		$new_topic_data = array&#40;&#41;;
    		while&#40; $topic_data = $db->sql_fetchrow&#40;$result&#41; &#41;
    		&#123;
    			$new_topic_data&#91;$topic_data&#91;'forum_id'&#93;&#93;&#91;$topic_data&#91;'topic_id'&#93;&#93; = $topic_data&#91;'post_time'&#93;;
    		&#125;
    		$db->sql_freeresult&#40;$result&#41;;
    	&#125;
    
    	//
    	// Obtain list of moderators of each forum
    	// First users, then groups ... broken into two queries
    	//
    	$sql = "SELECT aa.forum_id, u.user_id, u.username 
    		FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g, " . USERS_TABLE . " u
    		WHERE aa.auth_mod = " . TRUE . " 
    			AND g.group_single_user = 1 
    			AND ug.group_id = aa.group_id 
    			AND g.group_id = aa.group_id 
    			AND u.user_id = ug.user_id 
    		GROUP BY u.user_id, u.username, aa.forum_id 
    		ORDER BY aa.forum_id, u.user_id";
    	if &#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
    	&#123;
    		message_die&#40;GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql&#41;;
    	&#125;
    
    	$forum_moderators = array&#40;&#41;;
    	while&#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41;
    	&#123;
    		$forum_moderators&#91;$row&#91;'forum_id'&#93;&#93;&#91;&#93; = '' . $row&#91;'username'&#93; . '';
    	&#125;
    	$db->sql_freeresult&#40;$result&#41;;
    
    	$sql = "SELECT aa.forum_id, g.group_id, g.group_name 
    		FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g 
    		WHERE aa.auth_mod = " . TRUE . " 
    			AND g.group_single_user = 0 
    			AND g.group_type <> " . GROUP_HIDDEN . "
    			AND ug.group_id = aa.group_id 
    			AND g.group_id = aa.group_id 
    		GROUP BY g.group_id, g.group_name, aa.forum_id 
    		ORDER BY aa.forum_id, g.group_id";
    	if &#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
    	&#123;
    		message_die&#40;GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql&#41;;
    	&#125;
    
    	while&#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41;
    	&#123;
    		$forum_moderators&#91;$row&#91;'forum_id'&#93;&#93;&#91;&#93; = '' . $row&#91;'group_name'&#93; . '';
    	&#125;
    	$db->sql_freeresult&#40;$result&#41;;
    
    	//
    	// Find which forums are visible for this user
    	//
    	$is_auth_ary = array&#40;&#41;;
    	$is_auth_ary = auth&#40;AUTH_VIEW, AUTH_LIST_ALL, $userdata, $forum_data&#41;;
    
    	//
    	// Start output of page
    	//
    	define&#40;'SHOW_ONLINE', true&#41;;
    	$page_title = $lang&#91;'Index'&#93;;
    	include&#40;$phpbb_root_path . 'includes/stats_header.'.$phpEx&#41;;
    
    	$template->set_filenames&#40;array&#40;
    		'body' => 'stats_body.tpl'&#41;
    	&#41;;
    
    	
    //
        // START MOD&#58; Avatar On Index  - AbelaJohnB
        //
        $avatar_img = '';
        if &#40; $userdata&#91;'user_avatar_type'&#93; && $userdata&#91;'user_allowavatar'&#93; &#41;
        &#123;
            switch&#40; $userdata&#91;'user_avatar_type'&#93; &#41;
            &#123;
                case USER_AVATAR_UPLOAD&#58;
                    $avatar_img = &#40; $board_config&#91;'allow_avatar_upload'&#93; &#41; ? '[img]' . $board_config&#91;'avatar_path'&#93; . '/' . $userdata&#91;'user_avatar'&#93; . '[/img]' &#58; '';
                    break;
                case USER_AVATAR_REMOTE&#58;
                    $avatar_img = &#40; $board_config&#91;'allow_avatar_remote'&#93; &#41; ? '[img]' . $userdata&#91;'user_avatar'&#93; . '[/img]' &#58; '';
                    break;
                case USER_AVATAR_GALLERY&#58;
                    $avatar_img = &#40; $board_config&#91;'allow_avatar_local'&#93; &#41; ? '[img]' . $board_config&#91;'avatar_gallery_path'&#93; . '/' . $userdata&#91;'user_avatar'&#93; . '[/img]' &#58; '';
                    break;
            &#125;
        &#125;
        if &#40;$avatar_img == ''&#41;
        &#123;
            //
            // Set up style
            //
            if &#40; !$board_config&#91;'override_user_style'&#93; &#41;
            &#123;
                if &#40; $userdata&#91;'user_id'&#93; != ANONYMOUS && $userdata&#91;'user_style'&#93; > 0 &#41;
                &#123;
                    $template_name = get_template_name&#40;$board_config&#91;'default_style'&#93;&#41;;
                    $avatar_img = '[img]'. $phpbb_root_path . 'templates/' . $template_name . '/images/whosonline.gif[/img]';
                &#125;
            &#125;
            else
            &#123;
                $avatar_img = '[img]templates/subSilver/images/whosonline.gif[/img]';
            &#125;
        &#125;
        // Check For Anonymous User
        if &#40;$userdata&#91;'user_id'&#93; != '-1'&#41;
        &#123;
            $name_link = '' . $userdata&#91;'username'&#93; . '';
        &#125;
        else
        &#123;
            $name_link = $lang&#91;'Guest'&#93;;
        &#125;
        //
        // END MOD&#58; Avatar On Index  - AbelaJohnB
        //
    		$template->assign_vars&#40;array&#40;
    		'TOTAL_POSTS' => sprintf&#40;$l_total_post_s, $total_posts&#41;,
    		'TOTAL_USERS' => sprintf&#40;$l_total_user_s, $total_users&#41;,
    		'NEWEST_USER' => sprintf&#40;$lang&#91;'neuer'&#93;, '', $newest_user, ''&#41;, 
    
    		'FORUM_IMG' => $images&#91;'forum'&#93;,
    		'FORUM_NEW_IMG' => $images&#91;'forum_new'&#93;,
    		'FORUM_LOCKED_IMG' => $images&#91;'forum_locked'&#93;,
    
    
     //
            // START MOD&#58; Avatar On Index  - AbelaJohnB
            //
            'L_NAME_WELCOME' => $lang&#91;'Welcome'&#93;,
            'U_NAME_LINK' => $name_link,
            'AVATAR_IMG' => $avatar_img,
            //
            // END MOD&#58; Avatar On Index  - AbelaJohnB
            //
    	// Start add - Birthday MOD
    		'L_WHOSBIRTHDAY_WEEK' => &#40;$board_config&#91;'birthday_check_day'&#93; > 1&#41; ? sprintf&#40; &#40;&#40;$birthday_week_list&#41; ? $lang&#91;'Birthday_week'&#93; &#58; $lang&#91;'Nobirthday_week'&#93;&#41;, $board_config&#91;'birthday_check_day'&#93;&#41;.$birthday_week_list &#58; '',
    		'L_WHOSBIRTHDAY_TODAY' => &#40;$board_config&#91;'birthday_check_day'&#93;&#41; ? &#40;$birthday_today_list&#41; ? $lang&#91;'Birthday_today'&#93;.$birthday_today_list &#58; $lang&#91;'Nobirthday_today'&#93; &#58; '',
    // End add - Birthday MOD	'L_FORUM' => $lang&#91;'Forum'&#93;,
    		'L_TOPICS' => $lang&#91;'Topics'&#93;,
    		'L_REPLIES' => $lang&#91;'Replies'&#93;,
    		'L_VIEWS' => $lang&#91;'Views'&#93;,
    		'L_POSTS' => $lang&#91;'Posts'&#93;,
    		'L_LASTPOST' => $lang&#91;'Last_Post'&#93;, 
    		'L_NO_NEW_POSTS' => $lang&#91;'No_new_posts'&#93;,
    		'L_NEW_POSTS' => $lang&#91;'New_posts'&#93;,
    		'L_NO_NEW_POSTS_LOCKED' => $lang&#91;'No_new_posts_locked'&#93;, 
    		'L_NEW_POSTS_LOCKED' => $lang&#91;'New_posts_locked'&#93;, 
    		'L_ONLINE_EXPLAIN' => $lang&#91;'Online_explain'&#93;, 
    
    		'L_MODERATOR' => $lang&#91;'Moderators'&#93;, 
    		'L_FORUM_LOCKED' => $lang&#91;'Forum_is_locked'&#93;,
    		'L_MARK_FORUMS_READ' => $lang&#91;'Mark_all_forums'&#93;, 
    
    	// ChatBox Mod
    		'TOTAL_CHATTERS_ONLINE' => sprintf&#40;$lang&#91;'chat_mitglieder'&#93;, $howmanychat&#41;,
    		'CHATTERS_LIST' => sprintf&#40;$lang&#91;'Who_Are_Chatting' &#93;, $chatters&#41;,
    		'L_CLICK_TO_JOIN_CHAT' => $lang&#91;'Click_to_join_chat'&#93;,
    		'S_JOIN_CHAT' => append_sid&#40;"chatbox_mod/chatbox.$phpEx"&#41;,
    		'CHATBOX_NAME' => $userdata&#91;'user_id'&#93; . '_ChatBox', // To make easier to test on my PC
    		'L_LOGIN_TO_JOIN_CHAT' => $lang&#91;'Login_to_join_chat'&#93;,		'U_MARK_READ' => append_sid&#40;"index.$phpEx?mark=forums"&#41;&#41;
    	&#41;;
    
    	//
    	// Okay, let's build the index
    	//
    	for&#40;$i = 0; $i < $total_categories; $i++&#41;
    	&#123;
    		$cat_id = $category_rows&#91;$i&#93;&#91;'cat_id'&#93;;
    
    		//
    		// Should we display this category/forum set?
    		//
    		$display_forums = false;
    		for&#40;$j = 0; $j < $total_forums; $j++&#41;
    		&#123;
    			if &#40; $is_auth_ary&#91;$forum_data&#91;$j&#93;&#91;'forum_id'&#93;&#93;&#91;'auth_view'&#93; && $forum_data&#91;$j&#93;&#91;'cat_id'&#93; == $cat_id &#41;
    			&#123;
    				$display_forums = true;
    			&#125;
    		&#125;
    
    		//
    		// Yes, we should, so first dump out the category
    		// title, then, if appropriate the forum list
    		//
    		if &#40; $display_forums &#41;
    		&#123;
    			$template->assign_block_vars&#40;'catrow', array&#40;
    				'CAT_ID' => $cat_id,
    				'CAT_DESC' => $category_rows&#91;$i&#93;&#91;'cat_title'&#93;,
    				'U_VIEWCAT' => append_sid&#40;"index.$phpEx?" . POST_CAT_URL . "=$cat_id"&#41;&#41;
    			&#41;;
    
    			if &#40; $viewcat == $cat_id || $viewcat == -1 &#41;
    			&#123;
    				for&#40;$j = 0; $j < $total_forums; $j++&#41;
    				&#123;
    					if &#40; $forum_data&#91;$j&#93;&#91;'cat_id'&#93; == $cat_id &#41;
    					&#123;
    						$forum_id = $forum_data&#91;$j&#93;&#91;'forum_id'&#93;;
    
    						if &#40; $is_auth_ary&#91;$forum_id&#93;&#91;'auth_view'&#93; &#41;
    						&#123;
    							if &#40; $forum_data&#91;$j&#93;&#91;'forum_status'&#93; == FORUM_LOCKED &#41;
    							&#123;
    								$folder_image = $images&#91;'forum_locked'&#93;; 
    								$folder_alt = $lang&#91;'Forum_locked'&#93;;
    							&#125;
    							else
    							&#123;
    								$unread_topics = false;
    								if &#40; $userdata&#91;'session_logged_in'&#93; &#41;
    								&#123;
    									if &#40; !empty&#40;$new_topic_data&#91;$forum_id&#93;&#41; &#41;
    									&#123;
    										$forum_last_post_time = 0;
    
    										while&#40; list&#40;$check_topic_id, $check_post_time&#41; = @each&#40;$new_topic_data&#91;$forum_id&#93;&#41; &#41;
    										&#123;
    											if &#40; empty&#40;$tracking_topics&#91;$check_topic_id&#93;&#41; &#41;
    											&#123;
    												$unread_topics = true;
    												$forum_last_post_time = max&#40;$check_post_time, $forum_last_post_time&#41;;
    
    											&#125;
    											else
    											&#123;
    												if &#40; $tracking_topics&#91;$check_topic_id&#93; < $check_post_time &#41;
    												&#123;
    													$unread_topics = true;
    													$forum_last_post_time = max&#40;$check_post_time, $forum_last_post_time&#41;;
    												&#125;
    											&#125;
    										&#125;
    
    										if &#40; !empty&#40;$tracking_forums&#91;$forum_id&#93;&#41; &#41;
    										&#123;
    											if &#40; $tracking_forums&#91;$forum_id&#93; > $forum_last_post_time &#41;
    											&#123;
    												$unread_topics = false;
    											&#125;
    										&#125;
    
    										if &#40; isset&#40;$HTTP_COOKIE_VARS&#91;$board_config&#91;'cookie_name'&#93; . '_f_all'&#93;&#41; &#41;
    										&#123;
    											if &#40; $HTTP_COOKIE_VARS&#91;$board_config&#91;'cookie_name'&#93; . '_f_all'&#93; > $forum_last_post_time &#41;
    											&#123;
    												$unread_topics = false;
    											&#125;
    										&#125;
    
    									&#125;
    								&#125;
    
    								$folder_image = &#40; $unread_topics &#41; ? $images&#91;'forum_new'&#93; &#58; $images&#91;'forum'&#93;; 
    								$folder_alt = &#40; $unread_topics &#41; ? $lang&#91;'New_posts'&#93; &#58; $lang&#91;'No_new_posts'&#93;; 
    							&#125;
    
    							$posts = $forum_data&#91;$j&#93;&#91;'forum_posts'&#93;;
    							$topics = $forum_data&#91;$j&#93;&#91;'forum_topics'&#93;;
    
    							if &#40; $forum_data&#91;$j&#93;&#91;'forum_last_post_id'&#93; &#41;
    							&#123;
    								$last_post_time = create_date&#40;$board_config&#91;'default_dateformat'&#93;, $forum_data&#91;$j&#93;&#91;'post_time'&#93;, $board_config&#91;'board_timezone'&#93;&#41;;
    
    								$last_post = $last_post_time . '
    ';
    
    								$last_post .= &#40; $forum_data&#91;$j&#93;&#91;'user_id'&#93; == ANONYMOUS &#41; ? &#40; &#40;$forum_data&#91;$j&#93;&#91;'post_username'&#93; != '' &#41; ? $forum_data&#91;$j&#93;&#91;'post_username'&#93; . ' ' &#58; $lang&#91;'Guest'&#93; . ' ' &#41; &#58; '' . $forum_data&#91;$j&#93;&#91;'username'&#93; . ' ';
    								
    								$last_post .= '[img]' . $images&#91;'icon_latest_reply'&#93; . '[/img]';
    							&#125;
    							else
    							&#123;
    								$last_post = $lang&#91;'No_Posts'&#93;;
    							&#125;
    
    							if &#40; count&#40;$forum_moderators&#91;$forum_id&#93;&#41; > 0 &#41;
    							&#123;
    								$l_moderators = &#40; count&#40;$forum_moderators&#91;$forum_id&#93;&#41; == 1 &#41; ? $lang&#91;'Moderator'&#93; &#58; $lang&#91;'Moderators'&#93;;
    								$moderator_list = implode&#40;', ', $forum_moderators&#91;$forum_id&#93;&#41;;
    							&#125;
    							else
    							&#123;
    								$l_moderators = '';
    								$moderator_list = '';
    							&#125;
    
    							$row_color = &#40; !&#40;$i % 2&#41; &#41; ? $theme&#91;'td_color1'&#93; &#58; $theme&#91;'td_color2'&#93;;
    							$row_class = &#40; !&#40;$i % 2&#41; &#41; ? $theme&#91;'td_class1'&#93; &#58; $theme&#91;'td_class2'&#93;;
    
    							$template->assign_block_vars&#40;'catrow.forumrow',	array&#40;
    								'ROW_COLOR' => '#' . $row_color,
    								'ROW_CLASS' => $row_class,
    								'FORUM_FOLDER_IMG' => $folder_image, 
    								'FORUM_NAME' => $forum_data&#91;$j&#93;&#91;'forum_name'&#93;,
    								'FORUM_DESC' => $forum_data&#91;$j&#93;&#91;'forum_desc'&#93;,
    								'POSTS' => $forum_data&#91;$j&#93;&#91;'forum_posts'&#93;,
    								'TOPICS' => $forum_data&#91;$j&#93;&#91;'forum_topics'&#93;,
    								'LAST_POST' => $last_post,
    								'MODERATORS' => $moderator_list,
    
    								'L_MODERATOR' => $l_moderators, 
    								'L_FORUM_FOLDER_ALT' => $folder_alt, 
    
    								'U_VIEWFORUM' => append_sid&#40;"viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"&#41;&#41;
    							&#41;;
    						&#125;
    					&#125;
    				&#125;
    			&#125;
    		&#125;
    	&#125; // for ... categories
    
    &#125;// if ... total_categories
    else
    &#123;
    	message_die&#40;GENERAL_MESSAGE, $lang&#91;'No_forums'&#93;&#41;;
    &#125;
    
    //
    // Generate the page
    //
    $template->pparse&#40;'body'&#41;;
    
    include&#40;$phpbb_root_path . 'includes/stats_tail.'.$phpEx&#41;;
    
    ?>

  4. #4
    Gast

    Standard

    ich hab den quelltext von index.php des phpbb - board "gestohlen"

  5. #5
    Gast

    Standard

    HAALLLOOO???

    @ ronald, hue ist nun der quelltext!

  6. #6
    Forum Guru
    Registriert seit
    14.06.2004
    Ort
    Schleswig-Holstein
    Beiträge
    5.439
    Danke
    0
    Bekam 0 mal "Danke" in 0 Postings

    Standard

    Zitat Zitat von Anonymous
    hat sich erledigt ich habs mit iframe eingebunden ...
    Also doch nicht erledigt?

    Also im Iframe geht es, wie stellst du es denn sonst dar, wird es evtl. in eine HTML-Seite includet?

    Die Fehlermeldung mault an, daß keine Bildschirmausgabe erfolgen kann, da bereits eine Ausgabe erfolgt ist. Das kann ein Echo Befehl sein oder auch HTML-Text, der vor dem Script dargestellt wird.

    Es ist auch ganz offensichtlich nicht das komplette Script, den die Fehlermeldung bezieht sich auf die Zeilen 154 und 586. In Zeile 154 steht nichts, was Bildschirmausgaben an der Stelle erzeugt und Zeile 586 gibt es gar nicht, das Script ist vorher zuende.

    Also offensichtlich verheimlichst du uns was ...

    Ronald

  7. #7
    Gast

    Standard

    wassoll ich verheimlichen??

  8. #8
    Forum Guru
    Registriert seit
    14.06.2004
    Ort
    Schleswig-Holstein
    Beiträge
    5.439
    Danke
    0
    Bekam 0 mal "Danke" in 0 Postings

    Standard

    Was du hier gepostet hast ist nicht der komplette Quelltext oder nicht der Quelltext, der den Fehler verursacht.

  9. #9
    Gast

    Standard

    was willst du denn noch für einen - das ist der gesamte quelltext von stats.php

    hier der quelltext von stats.tpl

    Code:
    <table border=0 cellspacing=0 cellpadding=0 height="71" width="149"><tr>
      <td background="http&#58;//members.chello.at/froozing-entertainment/image/box_top.png" height="27" width="143" align="center" valign="bottom">
      <font face="Arial" size="2">Loginbox</font></td></tr>
      <td background="http&#58;//members.chello.at/froozing-entertainment/image/box_bg.png" height="19" width="143">
    <center>
    <table border="0"><tr><td>
    
    
    <font size="2">
    Hallo, &#123;MEIN_USERNAME&#125;!
    
    
    
    &#123;PRIVATE_MESSAGE_INFO&#125;
    Usercenter
    
    Mein Profil
    
    Posteingang
    
    Nachricht senden
    
    Mein Album
    
    
    Ausloggen
    </font>
    
    
    
    
    <font size="2">
    Hallo, Gast!
    <form action="login.php" method="post" target="_top">
    
    
    <font size="2">
    <input type="text" class="post" name="username" value="Username" size="15" onfocus="clear_field&#40;this&#41;" onblur="paste_field&#40;this&#41;" maxlength="40" value="" />
    
    
    <input type="password" class="post" value="Passwort" name="password" size="15" onfocus="clear_field&#40;this&#41;" onblur="paste_field&#40;this&#41;" maxlength="32" />
    
    
    <span class="gen"><input type="checkbox" id="auto" name="autologin" checked /> <label for="auto">Autologin</label></span>
    
    <input type="hidden" name="redirect" value="" /><input type="submit" name="login" class="mainoption" value="Einloggen" />
    
    
    Passwort vergessen?
    Registrieren
    </font>
    
    
    
    </td></tr></table></center>
    </td></tr><tr>
    <td background="http&#58;//members.chello.at/froozing-entertainment/image/box_bottom.png" height="15" width="143"></td></tr></table>
    <hr>
    <table border=0 cellspacing=0 cellpadding=0 height="71" width="149"><tr>
      <td background="http&#58;//members.chello.at/froozing-entertainment/image/box_top.png" height="27" width="143" align="center" valign="bottom">
      <font face="Arial" size="2">Forum Stats</font></td></tr>
      <td background="http&#58;//members.chello.at/froozing-entertainment/image/box_bg.png" height="19" width="143">
    <center>
    <table border="0"><tr><td><font size="2">
    &#123;TOTAL_POSTS&#125;
    
    &#123;TOTAL_USERS&#125;
    
    
    Mitgliederliste
    
    Login
    
    
    
    Register</font>
    
    
    </td></tr></table>
    </center>
    
    </td></tr><tr>
    <td background="http&#58;//members.chello.at/froozing-entertainment/image/box_bottom.png" height="15" width="143"></td></tr></table>
    
    und hier ist der header der stats.php file
    
    <?php
    /***************************************************************************
     *                              page_header.php
     *                            -------------------
     *   begin                &#58; Saturday, Feb 13, 2001
     *   copyright            &#58; &#40;C&#41; 2001 The phpBB Group
     *   email                &#58; support@phpbb.com
     *
     *   $Id&#58; page_header.php,v 1.106.2.24 2005/03/26 14&#58;15&#58;59 acydburn Exp $
     *
     *
     ***************************************************************************/
    
    /***************************************************************************
     *
     *   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
     *   &#40;at your option&#41; any later version.
     *
     ***************************************************************************/
    
    if &#40; !defined&#40;'IN_PHPBB'&#41; &#41;
    &#123;
    	die&#40;"Hacking attempt"&#41;;
    &#125;
    
    define&#40;'HEADER_INC', TRUE&#41;;
    
    //
    // gzip_compression
    //
    $do_gzip_compress = FALSE;
    if &#40; $board_config&#91;'gzip_compress'&#93; &#41;
    &#123;
    	$phpver = phpversion&#40;&#41;;
    
    	$useragent = &#40;isset&#40;$HTTP_SERVER_VARS&#91;'HTTP_USER_AGENT'&#93;&#41;&#41; ? $HTTP_SERVER_VARS&#91;'HTTP_USER_AGENT'&#93; &#58; getenv&#40;'HTTP_USER_AGENT'&#41;;
    
    	if &#40; $phpver >= '4.0.4pl1' && &#40; strstr&#40;$useragent,'compatible'&#41; || strstr&#40;$useragent,'Gecko'&#41; &#41; &#41;
    	&#123;
    		if &#40; extension_loaded&#40;'zlib'&#41; &#41;
    		&#123;
    			ob_start&#40;'ob_gzhandler'&#41;;
    		&#125;
    	&#125;
    	else if &#40; $phpver > '4.0' &#41;
    	&#123;
    		if &#40; strstr&#40;$HTTP_SERVER_VARS&#91;'HTTP_ACCEPT_ENCODING'&#93;, 'gzip'&#41; &#41;
    		&#123;
    			if &#40; extension_loaded&#40;'zlib'&#41; &#41;
    			&#123;
    				$do_gzip_compress = TRUE;
    				ob_start&#40;&#41;;
    				ob_implicit_flush&#40;0&#41;;
    
    				header&#40;'Content-Encoding&#58; gzip'&#41;;
    			&#125;
    		&#125;
    	&#125;
    &#125;
    
    //
    // Parse and show the overall header.
    //
    
    
    $template->set_filenames&#40;array&#40;
    	'overall_header' => &#40; empty&#40;$gen_simple_header&#41; &#41; ? 'stats_header.tpl' &#58; 'simple_header.tpl'&#41;
    &#41;;//
    // Generate logged in/logged out status
    //
    if &#40; $userdata&#91;'session_logged_in'&#93; &#41;
    &#123;
    	$u_login_logout = 'login.'.$phpEx.'?logout=true&amp;sid=' . $userdata&#91;'session_id'&#93;;
    	$l_login_logout = $lang&#91;'Logout'&#93;;
    &#125;
    else
    &#123;
    	$u_login_logout = 'login.'.$phpEx;
    	$l_login_logout = $lang&#91;'Login'&#93;;
    &#125;
    $mein_username = $userdata&#91;'username'&#93;;
    $meine_id = $userdata&#91;'user_id'&#93;;
    $u_meine_bilder = 'album.'.$phpEx.'?user_id=' . $userdata&#91;'user_id'&#93; . '&mode=list';
    $u_personal_gallery = 'album.'.$phpEx.'?user_id=' . $userdata&#91;'user_id'&#93;;
    $u_profil_ansehen = 'profile.'.$phpEx.'?mode=viewprofile&u=' . $userdata&#91;'user_id'&#93;;
    
    $s_last_visit = &#40; $userdata&#91;'session_logged_in'&#93; &#41; ? create_date&#40;$board_config&#91;'default_dateformat'&#93;, $userdata&#91;'user_lastvisit'&#93;, $board_config&#91;'board_timezone'&#93;&#41; &#58; '';
    
    //
    // Get basic &#40;usernames + totals&#41; online
    // situation
    //
    $logged_visible_online = 0;
    $logged_hidden_online = 0;
    $guests_online = 0;
    $online_userlist = '';
    $l_online_users = '';
    
    if &#40;defined&#40;'SHOW_ONLINE'&#41;&#41;
    &#123;
    	include_once&#40;$phpbb_root_path.'includes/functions_color_groups.'.$phpEx&#41;;
    
    	$user_forum_sql = &#40; !empty&#40;$forum_id&#41; &#41; ? "AND s.session_page = " . intval&#40;$forum_id&#41; &#58; '';
    	$sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip
    		FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
    		WHERE u.user_id = s.session_user_id
    			AND s.session_time >= ".&#40; time&#40;&#41; - 300 &#41; . "
    			$user_forum_sql
    		ORDER BY u.username ASC, s.session_ip ASC";
    	if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
    	&#123;
    		message_die&#40;GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql&#41;;
    	&#125;
    
    	$userlist_ary = array&#40;&#41;;
    	$userlist_visible = array&#40;&#41;;
    
    	$prev_user_id = 0;
    	$prev_user_ip = $prev_session_ip = '';
    
    	while&#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41;
    	&#123;
    		// User is logged in and therefor not a guest
    		if &#40; $row&#91;'session_logged_in'&#93; &#41;
    		&#123;
    			// Skip multiple sessions for one user
    			if &#40; $row&#91;'user_id'&#93; != $prev_user_id &#41;
    			&#123;
    								$user_online_link = color_group_colorize_name&#40;$row&#91;'user_id'&#93;&#41;;
    				if &#40; $row&#91;'user_allow_viewonline'&#93; &#41;
    				&#123;
    					$logged_visible_online++;
    				&#125;
    				else
    				&#123;
    					$logged_hidden_online++;
    				&#125;				if &#40; $row&#91;'user_allow_viewonline'&#93; || $userdata&#91;'user_level'&#93; == ADMIN &#41;
    				&#123;
    					$online_userlist .= &#40; $online_userlist != '' &#41; ? ', ' . $user_online_link &#58; $user_online_link;
    				&#125;
    			&#125;
    
    			$prev_user_id = $row&#91;'user_id'&#93;;
    		&#125;
    		else
    		&#123;
    			// Skip multiple sessions for one user
    			if &#40; $row&#91;'session_ip'&#93; != $prev_session_ip &#41;
    			&#123;
    				$guests_online++;
    			&#125;
    		&#125;
    
    		$prev_session_ip = $row&#91;'session_ip'&#93;;
    	&#125;
    	$db->sql_freeresult&#40;$result&#41;;
    
    	if &#40; empty&#40;$online_userlist&#41; &#41;
    	&#123;
    		$online_userlist = $lang&#91;'None'&#93;;
    	&#125;
    	$online_userlist = &#40; &#40; isset&#40;$forum_id&#41; &#41; ? $lang&#91;'Browsing_forum'&#93; &#58; $lang&#91;'Registered_users'&#93; &#41; . ' ' . $online_userlist;
    
    	$total_online_users = $logged_visible_online + $logged_hidden_online + $guests_online;
    
    	if &#40; $total_online_users > $board_config&#91;'record_online_users'&#93;&#41;
    	&#123;
    		$board_config&#91;'record_online_users'&#93; = $total_online_users;
    		$board_config&#91;'record_online_date'&#93; = time&#40;&#41;;
    
    		$sql = "UPDATE " . CONFIG_TABLE . "
    			SET config_value = '$total_online_users'
    			WHERE config_name = 'record_online_users'";
    		if &#40; !$db->sql_query&#40;$sql&#41; &#41;
    		&#123;
    			message_die&#40;GENERAL_ERROR, 'Could not update online user record &#40;nr of users&#41;', '', __LINE__, __FILE__, $sql&#41;;
    		&#125;
    
    		$sql = "UPDATE " . CONFIG_TABLE . "
    			SET config_value = '" . $board_config&#91;'record_online_date'&#93; . "'
    			WHERE config_name = 'record_online_date'";
    		if &#40; !$db->sql_query&#40;$sql&#41; &#41;
    		&#123;
    			message_die&#40;GENERAL_ERROR, 'Could not update online user record &#40;date&#41;', '', __LINE__, __FILE__, $sql&#41;;
    		&#125;
    	&#125;
    
    	if &#40; $total_online_users == 0 &#41;
    	&#123;
    		$l_t_user_s = $lang&#91;'Online_users_zero_total'&#93;;
    	&#125;
    	else if &#40; $total_online_users == 1 &#41;
    	&#123;
    		$l_t_user_s = $lang&#91;'Online_user_total'&#93;;
    	&#125;
    	else
    	&#123;
    		$l_t_user_s = $lang&#91;'Online_users_total'&#93;;
    	&#125;
    
    	if &#40; $logged_visible_online == 0 &#41;
    	&#123;
    		$l_r_user_s = $lang&#91;'Reg_users_zero_total'&#93;;
    	&#125;
    	else if &#40; $logged_visible_online == 1 &#41;
    	&#123;
    		$l_r_user_s = $lang&#91;'Reg_user_total'&#93;;
    	&#125;
    	else
    	&#123;
    		$l_r_user_s = $lang&#91;'Reg_users_total'&#93;;
    	&#125;
    
    	if &#40; $logged_hidden_online == 0 &#41;
    	&#123;
    		$l_h_user_s = $lang&#91;'Hidden_users_zero_total'&#93;;
    	&#125;
    	else if &#40; $logged_hidden_online == 1 &#41;
    	&#123;
    		$l_h_user_s = $lang&#91;'Hidden_user_total'&#93;;
    	&#125;
    	else
    	&#123;
    		$l_h_user_s = $lang&#91;'Hidden_users_total'&#93;;
    	&#125;
    
    	if &#40; $guests_online == 0 &#41;
    	&#123;
    		$l_g_user_s = $lang&#91;'Guest_users_zero_total'&#93;;
    	&#125;
    	else if &#40; $guests_online == 1 &#41;
    	&#123;
    		$l_g_user_s = $lang&#91;'Guest_user_total'&#93;;
    	&#125;
    	else
    	&#123;
    		$l_g_user_s = $lang&#91;'Guest_users_total'&#93;;
    	&#125;
    
    	$l_online_users = sprintf&#40;$l_t_user_s, $total_online_users&#41;;
    	$l_online_users .= sprintf&#40;$l_r_user_s, $logged_visible_online&#41;;
    	$l_online_users .= sprintf&#40;$l_h_user_s, $logged_hidden_online&#41;;
    	$l_online_users .= sprintf&#40;$l_g_user_s, $guests_online&#41;;
    &#125;
    
    //
    
    // 
    // 
    // Start Points in header mod by volf
    // 
    
    if &#40;$userdata&#91;'user_id'&#93; != ANONYMOUS&#41;
    &#123;
    $template->assign_block_vars&#40;'point', array&#40;
                    'USERNAME' => $userdata&#91;'username'&#93;,
                    'NAME' => &#40;$board_config&#91;'points_name'&#93;&#41; ? $board_config&#91;'points_name'&#93; &#58; 'Froozy&#40;s&#41;',
                    'POINTS' => $userdata&#91;'user_points'&#93;&#41;
    &#41;;
    &#125; 
    
    // 
    // End points in header mod
    //
    // 
    
    //
    //IRC Chat MOD 2.0.0
    //
    
    //Get chat online users
    $chat_online_users = 0;
    
    if &#40;$board_config&#91;irc_chat_show_online&#93;&#41;
    &#123;
    	$sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip
    		FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
    		WHERE u.user_id = s.session_user_id
    			AND s.session_time >= ".&#40; time&#40;&#41; - 300 &#41; . "
    			AND s.session_page = ". PAGE_IRC_CHAT ."
    		ORDER BY u.username ASC, s.session_ip ASC";
    	if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
    	&#123;
    		message_die&#40;GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql&#41;;
    	&#125;
    
    
    	$prev_user_id = 0;
    	$prev_user_ip = $prev_session_ip = '';
    
    	while&#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41;
    	&#123;
    		// User is logged in and therefor not a guest
    		if &#40; $row&#91;'session_logged_in'&#93; &#41;
    		&#123;
    	        // Skip multiple sessions for one user
    			if &#40; $row&#91;'user_id'&#93; != $prev_user_id &#41;
    			&#123;
    		        $chat_online_users++;
    			&#125;
    			$prev_user_id = $row&#91;'user_id'&#93;;
    		&#125;
    		else //user is a guest
    		&#123;
    			// Skip multiple sessions for one user
    			if &#40; $row&#91;'session_ip'&#93; != $prev_session_ip &#41;
    			&#123;
    				$chat_online_users++;
    			&#125;
    		&#125;
    
    		$prev_session_ip = $row&#91;'session_ip'&#93;;
    
    	&#125;
    	$db->sql_freeresult&#40;$result&#41;;
     	$l_chat_online_users = "&#40;".$chat_online_users."&#41;";
     	$l_chat_online_users_explain = $l_chat_online_users." ".$lang&#91;'Online_explain'&#93;;
    &#125;
    
    //generate chat URL
    $u_irc_chat = append_sid&#40;'chat.'.$phpEx&#41;;
    
    if &#40;$board_config&#91;'irc_chat_page_mode'&#93; == 2&#41;&#123; // page in frame mode
        $u_irc_chat .= "\" target=\"_top";
    &#125;else if &#40;$board_config&#91;'irc_chat_page_mode'&#93; == 1&#41;&#123; // page in popup mode
        $irc_width = $board_config&#91;'irc_chat_width'&#93; + 50;
    	$u_irc_chat = "$u_irc_chat\" target=\"chat_win\" onClick=\"javascript&#58;window.open&#40;'".$u_irc_chat."','chat_win','width=".$irc_width.",height=".$board_config&#91;'irc_chat_frame_height'&#93;.",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes'&#41;;";
    &#125;
    //
    // MOD&#58; -END-
    //
    
    // Obtain number of new private messages
    // if user is logged in
    //
    
    if &#40; &#40;$userdata&#91;'session_logged_in'&#93;&#41; && &#40;empty&#40;$gen_simple_header&#41;&#41; &#41;
    &#123;
    	if &#40; $userdata&#91;'user_new_privmsg'&#93; &#41;
    	&#123;
    		$l_message_new = &#40; $userdata&#91;'user_new_privmsg'&#93; == 1 &#41; ? $lang&#91;'New_pm'&#93; &#58; $lang&#91;'New_pms'&#93;;
    		$l_privmsgs_text = sprintf&#40;$l_message_new, $userdata&#91;'user_new_privmsg'&#93;&#41;;
    
    		if &#40; $userdata&#91;'user_last_privmsg'&#93; > $userdata&#91;'user_lastvisit'&#93; &#41;
    		&#123;
    			$sql = "UPDATE " . USERS_TABLE . "
    				SET user_last_privmsg = " . $userdata&#91;'user_lastvisit'&#93; . "
    				WHERE user_id = " . $userdata&#91;'user_id'&#93;;
    			if &#40; !$db->sql_query&#40;$sql&#41; &#41;
    			&#123;
    				message_die&#40;GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql&#41;;
    			&#125;
    
    			$s_privmsg_new = 1;
    			$icon_pm = $images&#91;'pm_new_msg'&#93;;
    		&#125;
    		else
    		&#123;
    			$s_privmsg_new = 0;
    			$icon_pm = $images&#91;'pm_new_msg'&#93;;
    		&#125;
    	&#125;
    	else
    	&#123;
    		$l_privmsgs_text = $lang&#91;'No_new_pm'&#93;;
    
    		$s_privmsg_new = 0;
    		$icon_pm = $images&#91;'pm_no_new_msg'&#93;;
    	&#125;
    
    	if &#40; $userdata&#91;'user_unread_privmsg'&#93; &#41;
    	&#123;
    		$l_message_unread = &#40; $userdata&#91;'user_unread_privmsg'&#93; == 1 &#41; ? $lang&#91;'Unread_pm'&#93; &#58; $lang&#91;'Unread_pms'&#93;;
    		$l_privmsgs_text_unread = sprintf&#40;$l_message_unread, $userdata&#91;'user_unread_privmsg'&#93;&#41;;
    	&#125;
    	else
    	&#123;
    		$l_privmsgs_text_unread = $lang&#91;'No_unread_pm'&#93;;
    	&#125;
    &#125;
    else
    &#123;
    	$icon_pm = $images&#91;'pm_no_new_msg'&#93;;
    	$l_privmsgs_text = $lang&#91;'Login_check_pm'&#93;;
    	$l_privmsgs_text_unread = '';
    	$s_privmsg_new = 0;
    &#125;
    
    //
    // Generate HTML required for Mozilla Navigation bar
    //
    if &#40;!isset&#40;$nav_links&#41;&#41;
    &#123;
    	$nav_links = array&#40;&#41;;
    &#125;
    
    $nav_links_html = '';
    $nav_link_proto = '<link rel="%s" href="%s" title="%s" />' . "\n";
    while&#40; list&#40;$nav_item, $nav_array&#41; = @each&#40;$nav_links&#41; &#41;
    &#123;
    	if &#40; !empty&#40;$nav_array&#91;'url'&#93;&#41; &#41;
    	&#123;
    		$nav_links_html .= sprintf&#40;$nav_link_proto, $nav_item, append_sid&#40;$nav_array&#91;'url'&#93;&#41;, $nav_array&#91;'title'&#93;&#41;;
    	&#125;
    	else
    	&#123;
    		// We have a nested array, used for items like <link rel='chapter'> that can occur more than once.
    		while&#40; list&#40;,$nested_array&#41; = each&#40;$nav_array&#41; &#41;
    		&#123;
    			$nav_links_html .= sprintf&#40;$nav_link_proto, $nav_item, $nested_array&#91;'url'&#93;, $nested_array&#91;'title'&#93;&#41;;
    		&#125;
    	&#125;
    &#125;
    
    // Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility
    $l_timezone = explode&#40;'.', $board_config&#91;'board_timezone'&#93;&#41;;
    $l_timezone = &#40;count&#40;$l_timezone&#41; > 1 && $l_timezone&#91;count&#40;$l_timezone&#41;-1&#93; != 0&#41; ? $lang&#91;sprintf&#40;'%.1f', $board_config&#91;'board_timezone'&#93;&#41;&#93; &#58; $lang&#91;number_format&#40;$board_config&#91;'board_timezone'&#93;&#41;&#93;;
    //
    // The following assigns all _common_ variables that may be used at any point
    // in a template.
    //
    $template->assign_vars&#40;array&#40;'S_JOIN_CHAT' => append_sid&#40;"chatbox_mod/chatbox.$phpEx"&#41;,
    	'TOTAL_CHATTERS_ONLINE' => $lang&#91;'How_Many_Chatters'&#93;,
    	'CHATBOX_NAME' => $userdata&#91;'user_id'&#93; . '_ChatBox',	'SITENAME' => $board_config&#91;'sitename'&#93;,
    	'SITE_DESCRIPTION' => $board_config&#91;'site_desc'&#93;,
    	'PAGE_TITLE' => $page_title,
    
    	'U_PERSONAL_GALLERY' => $u_personal_gallery,
    'U_PROFIL_ANSEHEN' => $u_profil_ansehen,
    'MEIN_USERNAME' => $mein_username,
    'MEINE_ID' => $meine_id,
    'U_MEINE_BILDER' => $u_meine_bilder,
    		'LAST_VISIT_DATE' => sprintf&#40;$lang&#91;'You_last_visit'&#93;, $s_last_visit&#41;,
    	'CURRENT_TIME' => sprintf&#40;$lang&#91;'Current_time'&#93;, create_date&#40;$board_config&#91;'default_dateformat'&#93;, time&#40;&#41;, $board_config&#91;'board_timezone'&#93;&#41;&#41;,
    	'TOTAL_USERS_ONLINE' => $l_online_users,
    	'LOGGED_IN_USER_LIST' => $online_userlist,
    	'RECORD_USERS' => sprintf&#40;$lang&#91;'Record_online_users'&#93;, $board_config&#91;'record_online_users'&#93;, create_date&#40;$board_config&#91;'default_dateformat'&#93;, $board_config&#91;'record_online_date'&#93;, $board_config&#91;'board_timezone'&#93;&#41;&#41;,
    	'PRIVATE_MESSAGE_INFO' => $l_privmsgs_text,
    	'PRIVATE_MESSAGE_INFO_UNREAD' => $l_privmsgs_text_unread,
    	'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new,
    
    	'PRIVMSG_IMG' => $icon_pm,
    
    	'L_USERNAME' => $lang&#91;'Username'&#93;,
    
    //
    // MOD&#58; IRC Chat v2.0.0
    //
    	'ONLINE_CHAT_USERS' => $chat_online_users,
    	'L_ONLINE_CHAT_USERS' => $l_chat_online_users,
    	'U_IRC_CHAT' => $u_irc_chat,
    	'L_IRC_CHAT' => $lang&#91;'IRC_Chat'&#93; ,
    	'L_ONLINE_CHAT_USERS_EXPLAIN' =>$l_chat_online_users_explain,
    
    //
    // MOD&#58; -END-
    //
    'L_PASSWORD' => $lang&#91;'Password'&#93;,
    	'L_LOGIN_LOGOUT' => $l_login_logout,
    	'L_LOGIN' => $lang&#91;'Login'&#93;,
    	'L_LOG_ME_IN' => $lang&#91;'Log_me_in'&#93;,
    	'L_AUTO_LOGIN' => $lang&#91;'Log_me_in'&#93;,
    	'L_INDEX' => sprintf&#40;$lang&#91;'Forum_Index'&#93;, $board_config&#91;'sitename'&#93;&#41;,
    	'L_REGISTER' => $lang&#91;'Register'&#93;,
    	'L_PROFILE' => $lang&#91;'Profile'&#93;,
    	'L_SEARCH' => $lang&#91;'Search'&#93;,
    	'L_PRIVATEMSGS' => $lang&#91;'Private_Messages'&#93;,
    	'L_WHO_IS_ONLINE' => $lang&#91;'Who_is_Online'&#93;,
    	'L_MEMBERLIST' => $lang&#91;'Memberlist'&#93;,
    	'L_FAQ' => $lang&#91;'FAQ'&#93;,
    	'L_USERGROUPS' => $lang&#91;'Usergroups'&#93;,
    	'L_SEARCH_NEW' => $lang&#91;'Search_new'&#93;,
    	'L_SEARCH_UNANSWERED' => $lang&#91;'Search_unanswered'&#93;,
    	'L_SEARCH_SELF' => $lang&#91;'Search_your_posts'&#93;,	'L_NOTES' => $lang&#91;'Notes'&#93;,	'L_WHOSONLINE_ADMIN' => sprintf&#40;$lang&#91;'Admin_online_color'&#93;, '<span style="color&#58;#' . $theme&#91;'fontcolor3'&#93; . '">', '</span>'&#41;,
    	'L_WHOSONLINE_MOD' =>	sprintf&#40;$lang&#91;'Mod_online_color'&#93;,  	 '<span style="color&#58;#' . $theme&#91;'fontcolor2'&#93; . '">', '</span>'&#41;,
    
    
    'L_FAV' => $lang&#91;'favorites'&#93;,
    'L_FAV_ext' => $lang&#91;'favorites_ext'&#93;,
    'U_SEARCH_UNANSWERED' => append_sid&#40;'search.'.$phpEx.'?search_id=unanswered'&#41;,
    	'U_SEARCH_SELF' => append_sid&#40;'search.'.$phpEx.'?search_id=egosearch'&#41;,
    	'U_SEARCH_NEW' => append_sid&#40;'search.'.$phpEx.'?search_id=newposts'&#41;,
    	'U_INDEX' => append_sid&#40;'index.'.$phpEx&#41;,
    	'U_REGISTER' => append_sid&#40;'profile.'.$phpEx.'?mode=register'&#41;,
    	'U_PROFILE' => append_sid&#40;'profile.'.$phpEx.'?mode=editprofile'&#41;,
    	'U_PRIVATEMSGS' => append_sid&#40;'privmsg.'.$phpEx.'?folder=inbox'&#41;,
    	'U_PRIVATEMSGS_POPUP' => append_sid&#40;'privmsg.'.$phpEx.'?mode=newpm'&#41;,
    	'U_SEARCH' => append_sid&#40;'search.'.$phpEx&#41;,
    	'U_MEMBERLIST' => append_sid&#40;'memberlist.'.$phpEx&#41;,
    	'U_MODCP' => append_sid&#40;'modcp.'.$phpEx&#41;,
    	'U_FAQ' => append_sid&#40;'faq.'.$phpEx&#41;,
    	'U_VIEWONLINE' => append_sid&#40;'viewonline.'.$phpEx&#41;,
    	'U_LOGIN_LOGOUT' => append_sid&#40;$u_login_logout&#41;,
    	'U_GROUP_CP' =>	 append_sid&#40;'groupcp.'.$phpEx&#41;,
    	'U_NOTES' => append_sid&#40;'notes.'.$phpEx&#41;,
    	// Mighty Gorgon - Full Album Pack - BEGIN
    	'L_ALBUM' => $lang&#91;'Album'&#93;,
    	'U_ALBUM' => append_sid&#40;'album.'.$phpEx&#41;,
    	'L_PIC_NAME' => $lang&#91;'Pic_Name'&#93;,
    	'L_DESCRIPTION' => $lang&#91;'Description'&#93;,
    	'L_GO' => $lang&#91;'Go'&#93;,
    	'L_SEARCH_CONTENTS' => $lang&#91;'Search_Contents'&#93;,
    	'L_SEARCH_MATCHES' => $lang&#91;'Search_Matches'&#93;,
    	// Mighty Gorgon - Full Album Pack - END
    
    'U_FAV' => append_sid&#40;'favorites.'.$phpEx&#41;,
    'U_FAV_ext' => append_sid&#40;'favorites_ext.'.$phpEx&#41;,
    'S_CONTENT_DIRECTION' => $lang&#91;'DIRECTION'&#93;,
    	'S_CONTENT_ENCODING' => $lang&#91;'ENCODING'&#93;,
    	'S_CONTENT_DIR_LEFT' => $lang&#91;'LEFT'&#93;,
    	'S_CONTENT_DIR_RIGHT' => $lang&#91;'RIGHT'&#93;,
    	'S_TIMEZONE' => sprintf&#40;$lang&#91;'All_times'&#93;, $l_timezone&#41;,
    	'S_LOGIN_ACTION' => append_sid&#40;'login.'.$phpEx&#41;,
    
    	'T_HEAD_STYLESHEET' => $theme&#91;'head_stylesheet'&#93;,
    	'T_BODY_BACKGROUND' => $theme&#91;'body_background'&#93;,
    	'T_BODY_BGCOLOR' => '#'.$theme&#91;'body_bgcolor'&#93;,
    	'T_BODY_TEXT' => '#'.$theme&#91;'body_text'&#93;,
    	'T_BODY_LINK' => '#'.$theme&#91;'body_link'&#93;,
    	'T_BODY_VLINK' => '#'.$theme&#91;'body_vlink'&#93;,
    	'T_BODY_ALINK' => '#'.$theme&#91;'body_alink'&#93;,
    	'T_BODY_HLINK' => '#'.$theme&#91;'body_hlink'&#93;,
    	'T_TR_COLOR1' => '#'.$theme&#91;'tr_color1'&#93;,
    	'T_TR_COLOR2' => '#'.$theme&#91;'tr_color2'&#93;,
    	'T_TR_COLOR3' => '#'.$theme&#91;'tr_color3'&#93;,
    	'T_TR_CLASS1' => $theme&#91;'tr_class1'&#93;,
    	'T_TR_CLASS2' => $theme&#91;'tr_class2'&#93;,
    	'T_TR_CLASS3' => $theme&#91;'tr_class3'&#93;,
    	'T_TH_COLOR1' => '#'.$theme&#91;'th_color1'&#93;,
    	'T_TH_COLOR2' => '#'.$theme&#91;'th_color2'&#93;,
    	'T_TH_COLOR3' => '#'.$theme&#91;'th_color3'&#93;,
    	'T_TH_CLASS1' => $theme&#91;'th_class1'&#93;,
    	'T_TH_CLASS2' => $theme&#91;'th_class2'&#93;,
    	'T_TH_CLASS3' => $theme&#91;'th_class3'&#93;,
    	'T_TD_COLOR1' => '#'.$theme&#91;'td_color1'&#93;,
    	'T_TD_COLOR2' => '#'.$theme&#91;'td_color2'&#93;,
    	'T_TD_COLOR3' => '#'.$theme&#91;'td_color3'&#93;,
    	'T_TD_CLASS1' => $theme&#91;'td_class1'&#93;,
    	'T_TD_CLASS2' => $theme&#91;'td_class2'&#93;,
    	'T_TD_CLASS3' => $theme&#91;'td_class3'&#93;,
    	'T_FONTFACE1' => $theme&#91;'fontface1'&#93;,
    	'T_FONTFACE2' => $theme&#91;'fontface2'&#93;,
    	'T_FONTFACE3' => $theme&#91;'fontface3'&#93;,
    	'T_FONTSIZE1' => $theme&#91;'fontsize1'&#93;,
    	'T_FONTSIZE2' => $theme&#91;'fontsize2'&#93;,
    	'T_FONTSIZE3' => $theme&#91;'fontsize3'&#93;,
    	'T_FONTCOLOR1' => '#'.$theme&#91;'fontcolor1'&#93;,
    	'T_FONTCOLOR2' => '#'.$theme&#91;'fontcolor2'&#93;,
    	'T_FONTCOLOR3' => '#'.$theme&#91;'fontcolor3'&#93;,
    	'T_SPAN_CLASS1' => $theme&#91;'span_class1'&#93;,
    	'T_SPAN_CLASS2' => $theme&#91;'span_class2'&#93;,
    	'T_SPAN_CLASS3' => $theme&#91;'span_class3'&#93;,
    
    	'NAV_LINKS' => $nav_links_html&#41;
    &#41;;
    
    //
    // Login box?
    //
    if &#40; !$userdata&#91;'session_logged_in'&#93; &#41;
    &#123;
    	$template->assign_block_vars&#40;'switch_user_logged_out', array&#40;&#41;&#41;;
    &#125;
    else
    &#123;
    	$template->assign_block_vars&#40;'switch_user_logged_in', array&#40;&#41;&#41;;
    
    	if &#40; !empty&#40;$userdata&#91;'user_popup_pm'&#93;&#41; &#41;
    	&#123;
    		$template->assign_block_vars&#40;'switch_enable_pm_popup', array&#40;&#41;&#41;;
    	&#125;
    &#125;
    
    // Add no-cache control for cookies if they are set
    //$c_no_cache = &#40;isset&#40;$HTTP_COOKIE_VARS&#91;$board_config&#91;'cookie_name'&#93; . '_sid'&#93;&#41; || isset&#40;$HTTP_COOKIE_VARS&#91;$board_config&#91;'cookie_name'&#93; . '_data'&#93;&#41;&#41; ? 'no-cache="set-cookie", ' &#58; '';
    
    // Work around for "current" Apache 2 + PHP module which seems to not
    // cope with private cache control setting
    if &#40;!empty&#40;$HTTP_SERVER_VARS&#91;'SERVER_SOFTWARE'&#93;&#41; && strstr&#40;$HTTP_SERVER_VARS&#91;'SERVER_SOFTWARE'&#93;, 'Apache/2'&#41;&#41;
    &#123;
    	header &#40;'Cache-Control&#58; no-cache, pre-check=0, post-check=0'&#41;;
    &#125;
    else
    &#123;
    	header &#40;'Cache-Control&#58; private, pre-check=0, post-check=0, max-age=0'&#41;;
    &#125;
    header &#40;'Expires&#58; 0'&#41;;
    header &#40;'Pragma&#58; no-cache'&#41;;
    
    //
    // INTERNAL FAVORITES OUTPUT START
    //
    $sql = "SELECT " . $table_prefix . "favorites.topic_id, " . $table_prefix . "topics.topic_title
        FROM " . $table_prefix . "favorites LEFT JOIN " . $table_prefix . "topics
        ON " . $table_prefix . "favorites.topic_id = " . $table_prefix . "topics.topic_id
        WHERE " . $table_prefix . "favorites.user_id = '" . $userdata&#91;'user_id'&#93; . "'";
    $result = $db->sql_query&#40;$sql&#41;;
    while &#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41; &#123;
       $template->assign_block_vars&#40;'topicrow0', array&#40;
    	'L_TOPIC_TITLE' => $row&#91;'topic_title'&#93;,
    	'U_TOPIC_TITLE' => append_sid&#40;"viewtopic.$phpEx?t=" . $row&#91;'topic_id'&#93;&#41;&#41;
       &#41;;
    &#125;
    //
    // INTERNAL FAVORITES OUTPUT END
    //
    // EXTERNAL FAVORITES OUTPUT START
    //
    $sql = "SELECT * FROM " . $table_prefix . "favorites_ext fe WHERE fe.user_id = '" . $userdata&#91;'user_id'&#93; . "' ORDER BY ext_name";
    $result = $db->sql_query&#40;$sql&#41;;
    while &#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41;
    &#123;
    $template->assign_block_vars&#40;"topicrow1", array&#40;
    'ext_id' => $row&#91;'ext_id'&#93;,
    'ext_name' => $row&#91;'ext_name'&#93;&#41;&#41;;
    &#125;
    //
    // EXTERNAL FAVORITES OUTPUT END
    //
    $template->pparse&#40;'overall_header'&#41;;
    
    ?>
    edit by phore: codetags

  10. #10
    Gast

    Standard

    hier ist der source code! @ ronald

Ähnliche Themen

  1. ich weiß nicht was ich tun soll
    Von i <3 toasty im Forum Off Topic und Quasselbox
    Antworten: 5
    Letzter Beitrag: 06.05.2008, 23:47
  2. Hab ein div Problem und weiß nicht weiter =(
    Von im Forum HTML & CSS Forum
    Antworten: 6
    Letzter Beitrag: 16.03.2008, 10:16
  3. Antworten: 1
    Letzter Beitrag: 04.01.2006, 22:09
  4. Ich weiß nicht ob das hier her gehört
    Von Zwerg im Forum Off Topic und Quasselbox
    Antworten: 10
    Letzter Beitrag: 27.07.2005, 13:45
  5. Ich weiß nicht was ich machen soll...
    Von Momo im Forum Off Topic und Quasselbox
    Antworten: 4
    Letzter Beitrag: 27.06.2004, 23:02

Stichworte

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •