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

Thema: phpbb datei includen

  1. #1
    Gast

    Standard phpbb datei includen

    hallo, ich habe ein problem, ich will eine phpbb datei in ein anderes (darunterliegendes) verzeichnis zu includen, es kommt immer ein fehler... was soll ich tun??
    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
    gelöschter User
    Gast

    Standard

    moin,
    schreib uns doch mal den fehler dann können wir dir sicher helfen
    und am besten noch den quellcode ..

  3. #3
    Gast

    Standard

    ok warte mal kurz

  4. #4
    Gast

    Standard

    das ist der code der datei die ich includen will

    shoutbox.php
    Code:
    <?php
    /***************************************************************************
     *				shoutbox.php
     *				-------------------
     *   begin		&#58; Friday, Jul 12, 2003
     *   copyright	&#58; &#40;C&#41; 2003 Przemo &#40; http&#58;//www.przemo.org &#41;
     *   email		&#58; przemo@przemo.org
     *   version	&#58; 1.4
     *
     ***************************************************************************/
    
    define&#40;'IN_PHPBB', true&#41;;
    $phpbb_root_path = './';
    include&#40;$phpbb_root_path . 'extension.inc'&#41;;
    include&#40;$phpbb_root_path . 'common.'.$phpEx&#41;;
    $userdata = session_pagestart&#40;$user_ip, PAGE_INDEX&#41;;
    init_userprefs&#40;$userdata&#41;;
    
    ?>
    <frameset rows="77%, 13%" cols="*" scrolling=NO noresize framespacing=0 frameborder=NO border="0">
    
    		<frame src="shoutbox_view.php" name="ekran" noresize marginwidth="0" marginheight="0">
    
    		<frame src="shoutbox_send.php" scrolling="no" name="sender" noresize marginwidth="0" marginheight="0">
    
    </frameset>
    
    </frameset>
    <noframes>
    <body>Sie können keine Frames anzeigen!</body>
    </noframes>
    </html>
    das ist die datei1 im frame:

    shoutbox_send.php:
    Code:
    <?php
    /***************************************************************************
     *				shoutbox_send.php
     *				-------------------
     *   begin		&#58; Friday, Jul 12, 2003
     *   copyright	&#58; &#40;C&#41; 2003 Przemo &#40; http&#58;//www.przemo.org &#41;
     *   email		&#58; przemo@przemo.org
     *   version	&#58; 1.4
     *
     ***************************************************************************/
    
    define&#40;'IN_PHPBB', true&#41;;
    $phpbb_root_path = './';
    include&#40;$phpbb_root_path . 'extension.inc'&#41;;
    include&#40;$phpbb_root_path . 'common.'.$phpEx&#41;;
    $userdata = session_pagestart&#40;$user_ip, PAGE_INDEX&#41;;
    init_userprefs&#40;$userdata&#41;;
    
    $hide_txt = '' . $lang&#91;'sb_hide'&#93; . '';
    
    if &#40; isset&#40;$HTTP_GET_VARS&#91;'mode'&#93;&#41; || isset&#40;$HTTP_POST_VARS&#91;'mode'&#93;&#41; &#41; 
    &#123; 
       $mode = &#40; isset&#40;$HTTP_GET_VARS&#91;'mode'&#93;&#41; &#41; ? $HTTP_GET_VARS&#91;'mode'&#93; &#58; $HTTP_POST_VARS&#91;'mode'&#93;; 
    &#125; 
    
    if &#40; $mode == "hide" &#41;
    &#123;
    	@setcookie&#40;'shoutbox',off , &#40;time&#40;&#41;+3600*9000&#41;, $board_config&#91;'cookie_path'&#93;, $board_config&#91;'cookie_domain'&#93;, $board_config&#91;'cookie_secure'&#93;&#41;;
    	$hide_txt = $lang&#91;'sb_hide_done'&#93;;
    &#125;
    
    $template->set_filenames&#40;array&#40;
    	'body' => 'shoutbox_send_body.tpl'&#41;
    &#41;;
    
    $template->assign_vars&#40;array&#40;
    	'S_CONTENT_ENCODING' => $lang&#91;'ENCODING'&#93;,
    	'L_SEND' => $lang&#91;'Submit'&#93;,
    	'L_GG_MES' => $lang&#91;'gg_mes'&#93;,
    	'NICK' => $userdata&#91;'username'&#93;,
    	'MAXLENGHT' => $shoutbox_config&#91;'text_lenght'&#93;,
    	'SB_USER_ID' => $userdata&#91;'user_id'&#93;,
    	'SB_HIDE' => $hide_txt,
    	'SHOUTBOX_ACTION' => append_sid&#40;'shoutbox_view.'.$phpEx&#41;&#41;
    &#41;;
    
    $template->pparse&#40;'body'&#41;;
    ?>
    frame 2

    shoutbox_view.php
    Code:
    <?php
    /***************************************************************************
     *				shoutbox_view.php
     *				-------------------
     *   begin		&#58; Friday, Jul 12, 2003
     *   copyright	&#58; &#40;C&#41; 2003 Przemo
     *   website	&#58; http&#58;//www.przemo.org
     *   email		&#58; przemo@przemo.org
     *   version	&#58; 1.4
     *
     ***************************************************************************/
    
    /***************************************************************************
     *
     *   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 = './';
    include&#40;$phpbb_root_path . 'extension.inc'&#41;;
    include&#40;$phpbb_root_path . 'common.'.$phpEx&#41;;
    include_once&#40;$phpbb_root_path . 'includes/bbcode.'.$phpEx&#41;;
    $userdata = session_pagestart&#40;$user_ip, PAGE_INDEX&#41;;
    init_userprefs&#40;$userdata&#41;;
    
    
    
    if &#40; isset&#40;$HTTP_GET_VARS&#91;'mode'&#93;&#41; || isset&#40;$HTTP_POST_VARS&#91;'mode'&#93;&#41; &#41; 
    &#123; 
       $mode = &#40; isset&#40;$HTTP_GET_VARS&#91;'mode'&#93;&#41; &#41; ? $HTTP_GET_VARS&#91;'mode'&#93; &#58; $HTTP_POST_VARS&#91;'mode'&#93;; 
    &#125; 
    if &#40; isset&#40;$HTTP_GET_VARS&#91;'name'&#93;&#41; || isset&#40;$HTTP_POST_VARS&#91;'name'&#93;&#41; &#41; 
    &#123; 
       $name = &#40; isset&#40;$HTTP_GET_VARS&#91;'name'&#93;&#41; &#41; ? $HTTP_GET_VARS&#91;'name'&#93; &#58; $HTTP_POST_VARS&#91;'name'&#93;; 
    &#125; 
    if &#40; isset&#40;$HTTP_GET_VARS&#91;'message'&#93;&#41; || isset&#40;$HTTP_POST_VARS&#91;'message'&#93;&#41; &#41; 
    &#123; 
       $message = &#40; isset&#40;$HTTP_GET_VARS&#91;'message'&#93;&#41; &#41; ? $HTTP_GET_VARS&#91;'message'&#93; &#58; $HTTP_POST_VARS&#91;'message'&#93;; 
    &#125; 
    if &#40; isset&#40;$HTTP_GET_VARS&#91;'msg'&#93;&#41; || isset&#40;$HTTP_POST_VARS&#91;'msg'&#93;&#41; &#41; 
    &#123; 
       $msg = &#40; isset&#40;$HTTP_GET_VARS&#91;'msg'&#93;&#41; &#41; ? $HTTP_GET_VARS&#91;'msg'&#93; &#58; $HTTP_POST_VARS&#91;'msg'&#93;; 
    &#125; 
    if &#40; isset&#40;$HTTP_GET_VARS&#91;'id'&#93;&#41; || isset&#40;$HTTP_POST_VARS&#91;'id'&#93;&#41; &#41; 
    &#123; 
       $id = &#40; isset&#40;$HTTP_GET_VARS&#91;'id'&#93;&#41; &#41; ? $HTTP_GET_VARS&#91;'id'&#93; &#58; $HTTP_POST_VARS&#91;'id'&#93;; 
    &#125; 
    if &#40; isset&#40;$HTTP_GET_VARS&#91;'del_sb_id'&#93;&#41; || isset&#40;$HTTP_POST_VARS&#91;'del_sb_id'&#93;&#41; &#41; 
    &#123; 
       $del_sb_id = &#40; isset&#40;$HTTP_GET_VARS&#91;'del_sb_id'&#93;&#41; &#41; ? $HTTP_GET_VARS&#91;'del_sb_id'&#93; &#58; $HTTP_POST_VARS&#91;'del_sb_id'&#93;; 
    &#125; 
    if &#40; isset&#40;$HTTP_GET_VARS&#91;'name_id'&#93;&#41; || isset&#40;$HTTP_POST_VARS&#91;'name_id'&#93;&#41; &#41; 
    &#123; 
       $name_id = &#40; isset&#40;$HTTP_GET_VARS&#91;'name_id'&#93;&#41; &#41; ? $HTTP_GET_VARS&#91;'name_id'&#93; &#58; $HTTP_POST_VARS&#91;'name_id'&#93;; 
    &#125; 
    if &#40; isset&#40;$HTTP_GET_VARS&#91;'date_edit'&#93;&#41; || isset&#40;$HTTP_POST_VARS&#91;'date_edit'&#93;&#41; &#41; 
    &#123; 
       $date_edit = &#40; isset&#40;$HTTP_GET_VARS&#91;'date_edit'&#93;&#41; &#41; ? $HTTP_GET_VARS&#91;'date_edit'&#93; &#58; $HTTP_POST_VARS&#91;'date_edit'&#93;; 
    &#125; 
    if &#40; isset&#40;$HTTP_GET_VARS&#91;'name_edit'&#93;&#41; || isset&#40;$HTTP_POST_VARS&#91;'name_edit'&#93;&#41; &#41; 
    &#123; 
       $name_edit = &#40; isset&#40;$HTTP_GET_VARS&#91;'name_edit'&#93;&#41; &#41; ? $HTTP_GET_VARS&#91;'name_edit'&#93; &#58; $HTTP_POST_VARS&#91;'name_edit'&#93;; 
    &#125; 
    if &#40; isset&#40;$HTTP_GET_VARS&#91;'clean_msg'&#93;&#41; || isset&#40;$HTTP_POST_VARS&#91;'clean_msg'&#93;&#41; &#41; 
    &#123; 
       $clean_msg = &#40; isset&#40;$HTTP_GET_VARS&#91;'clean_msg'&#93;&#41; &#41; ? $HTTP_GET_VARS&#91;'clean_msg'&#93; &#58; $HTTP_POST_VARS&#91;'clean_msg'&#93;; 
    &#125; 
    if &#40; isset&#40;$HTTP_GET_VARS&#91;'submit_button'&#93;&#41; || isset&#40;$HTTP_POST_VARS&#91;'submit_button'&#93;&#41; &#41; 
    &#123; 
       $submit_button = &#40; isset&#40;$HTTP_GET_VARS&#91;'submit_button'&#93;&#41; &#41; ? $HTTP_GET_VARS&#91;'submit_button'&#93; &#58; $HTTP_POST_VARS&#91;'submit_button'&#93;; 
    &#125;
    
    
    $sb_user_id = $userdata&#91;'user_id'&#93;;
    
    if &#40; $mode == "show" &#41;
    &#123;
    	@setcookie&#40;'shoutbox',on , &#40;time&#40;&#41;+3600*9000&#41;, $board_config&#91;'cookie_path'&#93;, $board_config&#91;'cookie_domain'&#93;, $board_config&#91;'cookie_secure'&#93;&#41;;
    	header&#40;"Location&#58; " . append_sid&#40;"index.$phpEx?redirect=shoutbox_view.$phpEx", true&#41;&#41;;
    &#125;
    
    if &#40; $mode == "submit" && $msg &#41;
    &#123;
    	if &#40; !$shoutbox_config&#91;'allow_guest'&#93; && !$userdata&#91;'session_logged_in'&#93; &#41;
    	&#123;
    		echo '<body onload="window.scrollTo&#40;0,0&#41;;" />
    			<table align="center"><tr><td align="left"><span class="gensmall">
    			' . $lang&#91;'login_to_shoutcast'&#93; . '</span></td></tr></table>';
    	&#125;
    
    	$check_lenght=explode&#40;" ",$msg&#41;;
    	$total=sizeof&#40;$check_lenght&#41;;
    	for&#40;$i=0; $total > $i; $i++&#41;
    	if &#40;strlen&#40;$check_lenght&#91;$i&#93;&#41;>$shoutbox_config&#91;'word_lenght'&#93;&#41;
    	&#123;
    		$too_long = true;
    		echo '<body onload="window.scrollTo&#40;0,0&#41;;" />
    			<table align="center"><tr><form name="post" action="shoutbox_view.php" method="POST"><td align="left"><span class="gensmall">
    			' . $lang&#91;'too_long_word'&#93; . '</span></td></tr></table>';
    	&#125;
    
    	$current_time = time&#40;&#41;;
    	$sql = "SELECT MAX&#40;timestamp&#41; AS last_msg_time
    		FROM " . SHOUTBOX_TABLE . "
    		WHERE sb_user_id = $sb_user_id";
    	if &#40; $result = $db->sql_query&#40;$sql&#41; &#41;
    	&#123;
    		if &#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41;
    		&#123;
    			if &#40; $row&#91;'last_msg_time'&#93; > 0 && &#40; $current_time - $row&#91;'last_msg_time'&#93; &#41; < $board_config&#91;'flood_interval'&#93; &#41;
    			&#123;
    				$flood_msg = true;
    				echo '<body onload="window.scrollTo&#40;0,0&#41;;" />
    					<table align="center"><tr><td align="left"><span class="gensmall">
    					' . $lang&#91;'Flood_Error'&#93; . '</span></td></tr></table>';
    			&#125;
    		&#125;
    	&#125;
    
    	$shoutbox_config&#91;'banned_user_id'&#93; = $GLOBALS&#91;'shoutbox_config'&#93;&#91;'banned_user_id'&#93;;
    	if&#40; strstr&#40;$shoutbox_config&#91;'banned_user_id'&#93;, ','&#41; &#41;
    	&#123;
    		$fids = explode&#40;',', $shoutbox_config&#91;'banned_user_id'&#93;&#41;;
    	
    		while&#40; list&#40;$foo, $id&#41; = each&#40;$fids&#41; &#41;
    		&#123;
    			$fid&#91;&#93; = intval&#40; trim&#40;$id&#41; &#41;;
    		&#125;
    	&#125;
    	else
    	&#123;
    		$fid&#91;&#93; = intval&#40; trim&#40;$shoutbox_config&#91;'banned_user_id'&#93;&#41; &#41;;
    	&#125;
    	reset&#40;$fid&#41;;
    	if &#40; in_array&#40;$sb_user_id, $fid&#41; != false &#41;
    	&#123;
    		echo '<body onload="window.scrollTo&#40;0,0&#41;;" />
    			<table align="center"><tr><td align="left"><span class="gensmall">
    			' . $lang&#91;'sb_banned_send'&#93; . '</span></td></tr></table>';
    		$shoutbox_banned = true;
    	&#125;
    
    	if &#40; !$too_long && !$flood_msg && !$shoutbox_banned &#41; if &#40; $shoutbox_config&#91;'allow_guest'&#93; || $userdata&#91;'session_logged_in'&#93; &#41;
    	&#123;
    		$sql = "INSERT INTO " . SHOUTBOX_TABLE . "
    		       VALUES&#40;'', '$sb_user_id', '$msg', '".time&#40;&#41;."', '$name'&#41;";
    		if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
    		&#123; message_die&#40;GENERAL_ERROR, 'Could not insert shoutbox message', '', __LINE__, __FILE__, $sql&#41;; &#125;
    
    		$start = time&#40;&#41; - $shoutbox_config&#91;'delete_days'&#93; * 86400;
    		$sql = "DELETE FROM " . SHOUTBOX_TABLE . "
    			WHERE timestamp < $start";
    		if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
    		&#123; message_die&#40;GENERAL_ERROR, 'Could not delete shoutbox messages', '', __LINE__, __FILE__, $sql&#41;; &#125;
    	&#125;
    &#125;
    
    if &#40; $shoutbox_config&#91;'allow_edit_all'&#93; && $username != Anonymous &#41; $aedit = 1; else $aedit = 0;
    if &#40; $shoutbox_config&#91;'allow_delete_all'&#93; && $username != Anonymous &#41; $adel = 1; else $adel = 0;
    if &#40; $shoutbox_config&#91;'allow_edit'&#93; &#41; if &#40; $userdata&#91;'user_level'&#93; == MOD || $userdata&#91;'user_level'&#93; == ADMIN &#41; $aedit = 1;
    if &#40; $shoutbox_config&#91;'allow_delete'&#93; &#41; if &#40; $userdata&#91;'user_level'&#93; == MOD || $userdata&#91;'user_level'&#93; == ADMIN &#41; $adel = 1;
    else $del_mod = "AND sb_user_id = $sb_user_id";
    
    if &#40; $mode == "delete" && $adel &#41;
    &#123;
    	$sql = "DELETE FROM " . SHOUTBOX_TABLE . "
    	      WHERE id = $id $del_mod";
    	if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
    	&#123; message_die&#40;GENERAL_ERROR, 'Could not delete shoutbox message', '', __LINE__, __FILE__, $sql&#41;; &#125;
    &#125;
    
    if &#40; $mode == "edit" && $aedit &#41;
    &#123;
    	echo '<body onload="window.scrollTo&#40;0,0&#41;;" />
    		<table><tr><form name="post" action="shoutbox_view.php" method="POST"><td align="left"><span class="gensmall">
    		' . $lang&#91;'Edit_pm'&#93; . '&#58; <input type="text" name="message" style="height&#58;15px" size="60" maxlength="150" " value="' . $clean_msg . '" class="editbox"><input type="hidden" name="mode" value="edited_msg"><input type="hidden" name="id" value="' . $id . '"><input type="hidden" name="name_edit" value="' . $name_edit . '">
    		<input type="hidden" name="date_edit" value="' . $date_edit . '">
    		<input type="hidden" name="name_id" value="' . $name_id . '">
    		<input type="submit" name="submit_button" value="' . $lang&#91;'Submit'&#93; . '" style="font-size&#58;9px; height&#58;16px;" class="button"></span></td>
    		</form></tr></table>';
    &#125;
    
    if &#40; $mode == "edited_msg" && $aedit &#41;
    &#123;
    	$sql = "REPLACE INTO " . SHOUTBOX_TABLE . "
    	       VALUES&#40;'$id', '$name_id', '$message', '$date_edit', '$name_edit'&#41;";
    	if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
    	&#123; message_die&#40;GENERAL_ERROR, 'Could not replace shoutbox message', '', __LINE__, __FILE__, $sql&#41;; &#125;
    &#125;
    
    $template->set_filenames&#40;array&#40;
    	'body' => 'shoutbox_view_body.tpl'&#41;
    &#41;;
    
    $shoutbox_config&#91;'banned_user_id_view'&#93; = $GLOBALS&#91;'shoutbox_config'&#93;&#91;'banned_user_id_view'&#93;;
    if&#40; strstr&#40;$shoutbox_config&#91;'banned_user_id_view'&#93;, ','&#41; &#41;
    &#123;
    	$fids = explode&#40;',', $shoutbox_config&#91;'banned_user_id_view'&#93;&#41;;
    
    	while&#40; list&#40;$foo, $id&#41; = each&#40;$fids&#41; &#41;
    	&#123;
    		$fid&#91;&#93; = intval&#40; trim&#40;$id&#41; &#41;;
    	&#125;
    &#125;
    else
    &#123;
    	$fid&#91;&#93; = intval&#40; trim&#40;$shoutbox_config&#91;'banned_user_id_view'&#93;&#41; &#41;;
    &#125;
    reset&#40;$fid&#41;;
    if &#40; in_array&#40;$sb_user_id, $fid&#41; != false &#41;
    &#123;
    	$shoutbox_banned_view = true;
    &#125;
    
    if &#40; $shoutbox_config&#91;'shoutbox_on'&#93; && $shoutbox != "off" && !$shoutbox_banned_view &#41; if &#40; $shoutbox_config&#91;'allow_guest'&#93; || $shoutbox_config&#91;'allow_guest_view'&#93; || $userdata&#91;'session_logged_in'&#93; &#41;
    &#123;
    	function get_shout_msg&#40;&#41;
    	&#123;
    		global $db;
    		$sql = "SELECT COUNT&#40;id&#41; AS total
    			FROM " . SHOUTBOX_TABLE . "";
    		if &#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
    		&#123; message_die&#40;GENERAL_ERROR, 'Could not query shoutbox count messages', '', __LINE__, __FILE__, $sql&#41;; &#125;
    		$row = $db->sql_fetchrow&#40;$result&#41;;
    		return $row&#91;'total'&#93;;
    	&#125;
    
    	$msg_count = get_shout_msg&#40;&#41;;
    	$number = $shoutbox_config&#91;'count_msg'&#93;;
    	$start = $msg_count - $number;
    	if &#40; $msg_count < $number &#41; $start = 0;
    	$sql = "SELECT id, sb_user_id, msg, timestamp, sb_username
    		FROM " . SHOUTBOX_TABLE . "
    		ORDER by timestamp LIMIT $start, $number";
    	if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
    	&#123; message_die&#40;GENERAL_ERROR, 'Could not query shoutbox messages', '', __LINE__, __FILE__, $sql&#41;; &#125;
    
    	if &#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41;
    	&#123;
    		$i = 0;
    		do
    		&#123;
    			$name_id = $row&#91;'sb_user_id'&#93;;
    			$username = $row&#91;'sb_username'&#93;;
    			$username = stripslashes&#40;htmlspecialchars&#40;trim&#40;$username&#41;&#41;&#41;;
    
    			if &#40; $shoutbox_config&#91;'links_names'&#93; &#41; $name = '' . $username . '';
    			else $name = $username;
    
    			if &#40; $username == Anonymous &#41; $name = '' . $lang&#91;'Guest'&#93; . '';
    
    			$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;;
    			if &#40; $shoutbox_config&#91;'date_on'&#93; &#41; 
    			&#123;
    				$make_date = create_date&#40;$shoutbox_config&#91;'date_format'&#93;, $row&#91;'timestamp'&#93;, $board_config&#91;'board_timezone'&#93;&#41;;
    				$date = '&#91;' . $make_date . '&#93;';
    			&#125;
    			$msg = $row&#91;'msg'&#93;;
    			$msg = htmlspecialchars&#40;trim&#40;$msg&#41;&#41;;
    
    			if &#40; $shoutbox_config&#91;'allow_smilies'&#93; &#41;
    			&#123;
    				$msg = smilies_pass&#40;$msg&#41;;
    				$msg = preg_replace&#40;'/images\/smiles/', 'images/smiles', $msg&#41;;
    			&#125;
    
    			if &#40; $shoutbox_config&#91;'make_links'&#93; &#41; $msg = make_clickable&#40;$msg&#41;;
    			if &#40; $shoutbox_config&#91;'allow_bbcode'&#93; &#41;
    			&#123;
    				$msg = str_replace&#40;"&#91;/i&#93;","[/i]",$msg&#41;; $msg = str_replace&#40;"&#91;i&#93;","[i]",$msg&#41;;
    				$msg = str_replace&#40;"&#91;/b&#93;","[/b]",$msg&#41;; $msg = str_replace&#40;"&#91;b&#93;","[b]",$msg&#41;;
    				$msg = str_replace&#40;"&#91;/u&#93;","</u>",$msg&#41;; $msg = str_replace&#40;"&#91;u&#93;","<u>",$msg&#41;;
    			&#125;
    			else
    			&#123;
    				$msg = str_replace&#40;"&#91;/i&#93;","",$msg&#41;; $msg = str_replace&#40;"&#91;i&#93;","",$msg&#41;;
    				$msg = str_replace&#40;"&#91;/b&#93;","",$msg&#41;; $msg = str_replace&#40;"&#91;b&#93;","",$msg&#41;;
    				$msg = str_replace&#40;"&#91;/u&#93;","",$msg&#41;; $msg = str_replace&#40;"&#91;u&#93;","",$msg&#41;;
    			&#125;
    
    			$id = $row&#91;'id'&#93;;
    			if &#40; $shoutbox_config&#91;'allow_edit_all'&#93; && $username != Anonymous && $sb_user_id == $name_id &#41; $aedit = 1; else $aedit = 0;
    			if &#40; $shoutbox_config&#91;'allow_delete_all'&#93; && $username != Anonymous && $sb_user_id == $name_id &#41; $adel = 1; else $adel = 0;
    			if &#40; $shoutbox_config&#91;'allow_edit'&#93; &#41; if &#40; $userdata&#91;'user_level'&#93; == MOD || $userdata&#91;'user_level'&#93; == ADMIN &#41; $aedit = 1;
    			if &#40; $shoutbox_config&#91;'allow_delete'&#93; &#41; if &#40; $userdata&#91;'user_level'&#93; == MOD || $userdata&#91;'user_level'&#93; == ADMIN &#41; $adel = 1;
    			if &#40; $adel &#41;
    			&#123;
    				$temp_url = append_sid&#40;"shoutbox_view.$phpEx?mode=delete&id=$id&del_sb_id=$sb_user_id"&#41;;
    				$delmsg = 'X';
    			&#125;
    			else
    			&#123;
    				$delmsg = '';
    			&#125;
    			if &#40; $aedit &#41;
    			&#123;
    				$date_edit = $row&#91;'timestamp'&#93;;
    				$name_edit = $row&#91;'sb_username'&#93;;
    				$clean_msg = $row&#91;'msg'&#93;;
    				$temp_url_e = append_sid&#40;"shoutbox_view.$phpEx?mode=edit&id=$id&name_id=$name_id&date_edit=$date_edit&name_edit=$name_edit&clean_msg=$clean_msg"&#41;;
    				$editmsg = 'E';
    			&#125;
    			else
    			&#123;
    				$editmsg = '';
    			&#125;
    
    			$template->assign_block_vars&#40;'shoutrow', array&#40;
    				'DELMSG' => $delmsg,
    				'EDITMSG' => $editmsg,
    				'ROW_CLASS' => $row_class,
    				'NAME' => $name,
    				'DATE' => $date,
    				'MSG' => $msg
    				&#41;
    			&#41;;
    
    			$i++;
    		&#125;
    		while &#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41;;
    	&#125;
    &#125;
    
    $template->assign_vars&#40;array&#40; 
    'S_CONTENT_ENCODING' => $lang&#91;'ENCODING'&#93;&#41; 
    &#41;;
    
    $template->pparse&#40;'body'&#41;;
    
    ?>

    es kommt immer folgender fehler:

    Warning: main(./extension.inc): failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/froozingphp/phpBB2/shoutbox.php on line 14

    Warning: main(): Failed opening './extension.inc' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/froozingphp/phpBB2/shoutbox.php on line 14

    Warning: main(./common.): failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/froozingphp/phpBB2/shoutbox.php on line 15

    Warning: main(): Failed opening './common.' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/froozingphp/phpBB2/shoutbox.php on line 15

    Fatal error: Call to undefined function: session_pagestart() in /usr/export/www/vhosts/funnetwork/hosting/froozingphp/phpBB2/shoutbox.php on line 16

    das mach eich mit diesem code:

    Code:
    <?php
    include&#40;"phpBB2/shoutbox.php"&#41;;
    ?>

    weiß wer ne antwort

    (es geht übrigens mit garkeiner datei von phpbb

  5. #5
    Forum Guru
    Registriert seit
    28.12.2004
    Ort
    Ringgenberg(bei Interlaken) / Schweiz
    Beiträge
    4.787
    Danke
    0
    Bekam 0 mal "Danke" in 0 Postings

    Standard

    dir fehlen die datein:

    extension.inc
    common.php

  6. #6
    Gast

    Standard

    das ist mir auch aufegafllen also hab ich den pfad so gändert

    Code:
    $phpbb_root_path = 'phpBB2/'; 
    include&#40;$phpbb_root_path . 'extension.inc'&#41;; 
    include&#40;$phpbb_root_path . 'common.'.$phpEx&#41;;
    dann kommt eine warung, irgendwas mit header darf nicht umdefiniert werden...

  7. #7
    Forum Guru
    Registriert seit
    28.12.2004
    Ort
    Ringgenberg(bei Interlaken) / Schweiz
    Beiträge
    4.787
    Danke
    0
    Bekam 0 mal "Danke" in 0 Postings

    Standard

    ja das ganze ehist bloß, das sich die datein im selben ordner befinden müssen wie die datein die du im browser aufrufst

  8. #8
    Gast

    Standard

    gibts nicht was besseres als include?

  9. #9
    Forum Guru
    Registriert seit
    28.12.2004
    Ort
    Ringgenberg(bei Interlaken) / Schweiz
    Beiträge
    4.787
    Danke
    0
    Bekam 0 mal "Danke" in 0 Postings

    Standard

    wiso was gefällt dir daran nicht?

  10. #10
    Gast

    Standard

    weil ich keine luist habe etwas an den verzeichnissen zu ändern - ich hab genug anderes zu tun da hab ich keine zeit alles in ein verzeichnis zu tun - außerdem = unübersichtlich

Ähnliche Themen

  1. PHP INCLUDEn
    Von GET LOUDER im Forum PHP Forum - Apache - CGI - Perl - JavaScript und Co.
    Antworten: 2
    Letzter Beitrag: 09.10.2007, 20:16
  2. mit php includen...
    Von lippl im Forum PHP Forum - Apache - CGI - Perl - JavaScript und Co.
    Antworten: 15
    Letzter Beitrag: 06.07.2007, 17:29
  3. [url]www.phpbb-moddb.de[/url] - deutsche phpBB 2 Mods
    Von langeweile im Forum Eure Homepages und Foren - Vorstellung und Bewertungen
    Antworten: 0
    Letzter Beitrag: 27.02.2007, 19:51
  4. includen
    Von frankhell im Forum PHP Forum - Apache - CGI - Perl - JavaScript und Co.
    Antworten: 5
    Letzter Beitrag: 28.10.2006, 11:15
  5. HTML-Datei in Div-Box includen
    Von Anfaenger87 im Forum PHP Forum - Apache - CGI - Perl - JavaScript und Co.
    Antworten: 1
    Letzter Beitrag: 22.04.2006, 22:52

Stichworte

Berechtigungen

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