Ergebnis 1 bis 7 von 7

Thema: parse error!hilfe!

  1. #1
    sleddi
    Gast

    Standard parse error!hilfe!

    also bei mir kommt nach dem installioeren einer chatbox folgender fehler:

    Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting '(' in /usr/export/www/vhosts/funnetwork/hosting/sleddi/phpBB2/includes/page_header.php on line 346

    ich weiß nicht was falsch is ! me->newbie!! hier is nen auszug aus dem bereich von der page_header.php


    Code:
    // The following assigns all _common_ variables that may be used at any point
    // in a template.
    //
    $template->assign_vars(array
    	'S_JOIN_CHAT' => append_sid("chatbox_mod/chatbox.$phpEx"),
    	'CHATBOX_NAME' => $userdata['user_id'] . '_ChatBox',
    
    	'SITENAME' => $board_config['sitename'],
    	'SITE_DESCRIPTION' => $board_config['site_desc'],
    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
    Meister(in)
    Registriert seit
    30.05.2004
    Ort
    Wien
    Beiträge
    346
    Danke
    0
    Bekam 0 mal "Danke" in 0 Postings

    Standard

    Du hast irgendwo ein '(' vergessen.
    Welche Zeile ist Nr. 346?

  3. #3
    König(in)
    Registriert seit
    05.04.2004
    Ort
    Salzgitter
    Beiträge
    1.454
    Danke
    0
    Bekam 0 mal "Danke" in 0 Postings

    Standard

    Leider kann man anhand dieses Auszuges keinen Fehler finden, da auch der Befehl assign_vars nicht komplett zu sehen ist. Poste mal ein paar mehr Zeilen.
    Beatz
    my $favorite_homepage = array(
    "Multigaming Playhouse" => "http://www.playhouse-multigaming.de"
    );
    my $homepage = array(http://www.mohaa-wiki.de, http://www.berufe-portal.de, http://www.mywibb.de);

  4. #4
    sleddi
    Gast

    Standard mehr zeilen!

    Code:
     // Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility
    $l_timezone = explode('.', $board_config['board_timezone']);
    $l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])];
    //
    // The following assigns all _common_ variables that may be used at any point
    // in a template.
    //
    $template->assign_vars(array
    346->	'S_JOIN_CHAT' => append_sid("chatbox_mod/chatbox.$phpEx"),
    	'CHATBOX_NAME' => $userdata['user_id'] . '_ChatBox',
    
    	'SITENAME' => $board_config['sitename'],
    	'SITE_DESCRIPTION' => $board_config['site_desc'],
    	'PAGE_TITLE' => $page_title,
    	'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit),
    	'CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])),
    	'TOTAL_USERS_ONLINE' => $l_online_users,
    	'LOGGED_IN_USER_LIST' => $online_userlist,
    	'RECORD_USERS' => sprintf($lang['Record_online_users'], $board_config['record_online_users'], create_date($board_config['default_dateformat'], $board_config['record_online_date'], $board_config['board_timezone'])),
    	'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['Username'],
    	'L_PASSWORD' => $lang['Password'],
    	'L_LOGIN_LOGOUT' => $l_login_logout,
    	'L_LOGIN' => $lang['Login'],
    	'L_LOG_ME_IN' => $lang['Log_me_in'],
    	'L_AUTO_LOGIN' => $lang['Log_me_in'],
    	'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']),
    	'L_REGISTER' => $lang['Register'],
    	'L_PROFILE' => $lang['Profile'],
    	'L_SEARCH' => $lang['Search'],
    	'L_PRIVATEMSGS' => $lang['Private_Messages'],
    	'L_WHO_IS_ONLINE' => $lang['Who_is_Online'],
    	'L_MEMBERLIST' => $lang['Memberlist'],
    	'L_FAQ' => $lang['FAQ'],
             'L_USERGROUPS' => $lang['Usergroups'],
    	'L_SEARCH_NEW' => $lang['Search_new'],
    	'L_SEARCH_UNANSWERED' => $lang['Search_unanswered'],
    	'L_SEARCH_SELF' => $lang['Search_your_posts'],
    	'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;,
    
    	'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;,
    
    	'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;;

    hier sind mehr zeilen!

  5. #5
    König(in)
    Registriert seit
    05.04.2004
    Ort
    Salzgitter
    Beiträge
    1.454
    Danke
    0
    Bekam 0 mal "Danke" in 0 Postings

    Standard

    Ebenfalls nichts zu finden ... bevor ich nochmal nach ein paar mehr Zeilen frage, poste lieber mal den gesamten Quelltext.
    Beatz
    my $favorite_homepage = array(
    "Multigaming Playhouse" => "http://www.playhouse-multigaming.de"
    );
    my $homepage = array(http://www.mohaa-wiki.de, http://www.berufe-portal.de, http://www.mywibb.de);

  6. #6
    sleddi
    Gast

    Standard der quelltext!

    Code:
    <?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.20 2003/06/10 20&#58;48&#58;19 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;$_SERVER&#91;"HTTP_USER_AGENT"&#93;&#41; &#41; ? $_SERVER&#91;"HTTP_USER_AGENT"&#93; &#58; $HTTP_USER_AGENT;
    
    	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; ? 'overall_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; . ' &#91; ' . $userdata&#91;'username'&#93; . ' &#93;';
    &#125;
    else
    &#123;
    	$u_login_logout = 'login.'.$phpEx;
    	$l_login_logout = $lang&#91;'Login'&#93;;
    &#125;
    
    $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 = '';
    
    if &#40;defined&#40;'SHOW_ONLINE'&#41;&#41;
    &#123;
    
    	$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 = '';
    
    	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;
    				$style_color = '';
    				if &#40; $row&#91;'user_level'&#93; == ADMIN &#41;
    				&#123;
    					$row&#91;'username'&#93; = '' . $row&#91;'username'&#93; . '';
    					$style_color = 'style="color&#58;#' . $theme&#91;'fontcolor3'&#93; . '"';
    				&#125;
    				else if &#40; $row&#91;'user_level'&#93; == MOD &#41;
    				&#123;
    					$row&#91;'username'&#93; = '' . $row&#91;'username'&#93; . '';
    					$style_color = 'style="color&#58;#' . $theme&#91;'fontcolor2'&#93; . '"';
    				&#125;
    
    				if &#40; $row&#91;'user_allow_viewonline'&#93; &#41;
    				&#123;
    					$user_online_link = '' . $row&#91;'username'&#93; . '';
    					$logged_visible_online++;
    				&#125;
    				else
    				&#123;
    					$user_online_link = '' . $row&#91;'username'&#93; . '';
    					$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;
    
    //
    // 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
    	'S_JOIN_CHAT' => append_sid&#40;"chatbox_mod/chatbox.$phpEx"&#41;,
    	'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,
    	'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;,
    	'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_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;,
    
    	'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;,
    
    	'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;$_SERVER&#91;'SERVER_SOFTWARE'&#93;&#41; && strstr&#40;$_SERVER&#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;;
    
    $template->pparse&#40;'overall_header'&#41;;
    
    ?>

  7. #7
    König(in)
    Registriert seit
    05.04.2004
    Ort
    Salzgitter
    Beiträge
    1.454
    Danke
    0
    Bekam 0 mal "Danke" in 0 Postings

    Standard

    Bin mal kurz drüber geflogen.

    Code:
    'NAV_LINKS' => $nav_links_html&#41;
    sollte eigentlich heissen
    Code:
    'NAV_LINKS' => $nav_links_html
    Probier das erstmal, wenns nicht geht, muss ich mal genauer drüber schauen.
    Beatz
    my $favorite_homepage = array(
    "Multigaming Playhouse" => "http://www.playhouse-multigaming.de"
    );
    my $homepage = array(http://www.mohaa-wiki.de, http://www.berufe-portal.de, http://www.mywibb.de);

Ähnliche Themen

  1. Parse error: syntax error, unexpected T_INC
    Von cyberkuh im Forum PHP Forum - Apache - CGI - Perl - JavaScript und Co.
    Antworten: 2
    Letzter Beitrag: 05.12.2007, 19:08
  2. PARSE Error
    Von arminb im Forum PHP Forum - Apache - CGI - Perl - JavaScript und Co.
    Antworten: 8
    Letzter Beitrag: 20.10.2007, 19:36
  3. Parse error: syntax error, unexpected
    Von wolfw11 im Forum PHP Forum - Apache - CGI - Perl - JavaScript und Co.
    Antworten: 14
    Letzter Beitrag: 28.03.2007, 21:38
  4. Parse error: syntax error, unexpected ','
    Von XSnakeX im Forum PHP Forum - Apache - CGI - Perl - JavaScript und Co.
    Antworten: 2
    Letzter Beitrag: 12.03.2007, 14:36
  5. Parse error: syntax error, unexpected '=', expecting ',' or
    Von Dragon23 im Forum PHP Forum - Apache - CGI - Perl - JavaScript und Co.
    Antworten: 19
    Letzter Beitrag: 25.11.2006, 20:14

Stichworte

Berechtigungen

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