| Neuer Benutzer
Registriert seit: 01.06.2009
Beiträge: 11
| include problem ? Hab ein kleines Problem mit dem includen von einen NEWS script  hier sind die scripts vieleicht findet ihr ja den fehler ich finde nix
DAS IST DER FEHLER AUF MEINER SEITE Zitat:
Warning: include(includes/smilies.php) [function.include]: failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/maikbraun/include/news/includes/function.php on line 8
Warning: include() [function.include]: Failed opening 'includes/smilies.php' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/maikbraun/include/news/includes/function.php on line 8
Warning: file_get_contents(design/standart/index_body.tpl) [function.file-get-contents]: failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/maikbraun/include/news/includes/function.php on line 16
Ungültiger Design Ordner / Pfand zum Ordner wurde nicht gefunden.
|
der code sieht so aus..: PHP-Code:
<body> <div align="center"> <table width="1198" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td height="110" colspan="5" valign="top" bordercolor="#999999"><img src="img/header.jpg" alt="header" width="1194" height="100" border="5" /></td> </tr> <tr> <td width="205" height="79"></td> <td width="156"></td> <td width="557" valign="top"><table width="100%" height="79" border="3" cellpadding="0" cellspacing="0" bordercolor="#999999" bgcolor="#000000"> <!--DWLayoutTable--> <tr> <td width="21" height="73" valign="top"><img src="img/werbung.gif" alt="werbung" width="21" height="71" /></td> <td width="530" valign="top" bordercolor="#999999"><!--DWLayoutEmptyCell--> </td> </tr> </table></td> <td width="82"></td> <td width="205"></td> </tr> <tr> <td height="503" valign="top"><table width="100%" height="456" border="4" cellpadding="0" cellspacing="0" bordercolor="#999999" bgcolor="#000000"> <!--DWLayoutTable--> <tr> <td width="195" height="102" valign="top"><img src="img/navi2.jpg" alt="navi2" width="195" height="100" /></td> </tr> <tr> <td height="24" align="center" valign="middle"><img src="img/navi.jpg" alt="NAvi" width="195" height="21" align="middle" /></td> </tr> <tr> <td height="23" valign="top"><a href="index.php?seite=home" class="nav"><img src="img/home.jpg" alt="home" width="195" height="21" border="0" /></a></a></td> </tr> <tr> <td height="23" valign="top"><a href="index.php?seite=news"><img src="img/news.jpg" alt="news" width="195" height="21" border="0"></a></td> </tr> <tr> <td height="23" valign="top"><a href="index.php?seite=aboutme"><img src="img/aboutme.jpg" alt="aboutme" width="195" height="21" border="0" /></a></td> </tr> <tr> <td height="23" valign="top"><a href="templates/default.htm" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event, menu1, '96px')" onmouseout="delayhidemenu()/>"/a><img src="img/maps.jpg" alt="maps" width="195" height="21" border="0" align="absmiddle" /></a></td> </tr> <tr> <td height="23" valign="top"><img src="img/projekte.jpg" alt="projekte" width="195" height="21"></td> </tr> <tr> <td height="23" valign="top"><img src="img/tutorials.jpg" alt="tutorials" width="195" height="21"></td> </tr> <tr> <td height="23" valign="top"><img src="img/download.jpg" width="195" height="21" alt="download"></td> </tr> <tr> <td height="23" valign="top"><img src="img/forum.jpg" alt="forum" width="195" height="21"></td> </tr> <tr> <td height="23" valign="top"><a href="templates/gaestebuch/gaestebuch/index.php"><img src="img/gaestebuch.jpg" alt="gaestebuch" width="195" height="21" border="0"></a></td> </tr> <tr> <td height="23" valign="top"><img src="img/kontakt.jpg" alt="kontakt" width="195" height="21"></td> </tr> <tr> <td height="139"> </td> </tr> </table></td> <td> </td> <td valign="top"><table width="100%" border="4" cellpadding="0" cellspacing="0" bordercolor="#666666"> <!--DWLayoutTable--> <tr> <td width="551" height="494" valign="top" bgcolor="#000000"><div align="left"> <?php switch (isset($_GET['seite']) ? $_GET['seite'] : '') { case "aboutme": include ($_SERVER['DOCUMENT_ROOT']."/templates/about_me.php"); break; case "download": include ($_SERVER['DOCUMENT_ROOT']."/templates/download.php"); break; case "maps": include ($_SERVER['DOCUMENT_ROOT']."/templates/maps/start.php"); break; case "mb_crazyjump": include ($_SERVER['DOCUMENT_ROOT']."/templates/maps/coduo/map1.php"); break; case "mb_haus": include ($_SERVER['DOCUMENT_ROOT']."/templates/maps/coduo/map2.php"); break; case "mb_pool_day": include ($_SERVER['DOCUMENT_ROOT']."/templates/maps/coduo/map3.php"); break; case "mb_swim": include ($_SERVER['DOCUMENT_ROOT']."/templates/maps/coduo/map4.php"); break; case "mb_nature_one": include ($_SERVER['DOCUMENT_ROOT']."/templates/maps/coduo/map5.php"); break; case "kontakt": include ($_SERVER['DOCUMENT_ROOT']."/templates/kontakt/kontakt.php"); break; case "coduo": include ($_SERVER['DOCUMENT_ROOT']."/templates/maps/coduo/start.php"); break; case "cod4": include ($_SERVER['DOCUMENT_ROOT']."/templates/maps/cod4/start.php"); break; case "cod5": include ($_SERVER['DOCUMENT_ROOT']."/templates/maps/cod5/start.php"); break; case "impressum": include ($_SERVER['DOCUMENT_ROOT']."/templates/team/impressum/impressum.php"); break; case "news": include ($_SERVER['DOCUMENT_ROOT']."/include/news/index.php"); break; default: case "home": include ($_SERVER['DOCUMENT_ROOT']."/templates/home.php"); break; } ?> </div></td> </tr> <!--DWLayoutTable--> </table></td> <td> </td> <td valign="top"><table width="100%" border="4" cellpadding="0" cellspacing="0" bordercolor="#999999" bgcolor="#000000"> <!--DWLayoutTable--> <tr> <td width="195" height="23" valign="top"><img src="img/shoutbox.jpg" alt="shout" width="195" height="21" border="0" align="middle"></td> </tr> <tr> <td height="271" valign="top"><p> <?php require_once('shoutbox.php'); ?>
</p> </td> </tr> <tr> <td height="201"> </td> </tr> </table></td> </tr> <tr> <td height="229"> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td height="62" colspan="5" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#999999"> <!--DWLayoutTable--> <tr> <td width="1205" height="62" valign="top"><dl> <dt class="footer"> <div align="center"><a href="index.php?seite=impressum">Impressum</a> | Kontakt | Hilfe | Team | Admin</div> </dt> <dd class="Stil25"> </dd> </dl></td> </tr> </table></td> </tr> </table> </div> </body> </html> und die datei functions.php sieht so aus: PHP-Code: <?php $abfrage_config = "SELECT * FROM ".$dbsql."config"; $ergebnis_config = @mysql_query($abfrage_config) or die (mysql_error()); while($sqlconfig = @mysql_fetch_object($ergebnis_config)) { $config["$sqlconfig->name"] = $sqlconfig->value; } include($config["root_ordner"].'includes/smilies.php'); $ip = $_SERVER['REMOTE_ADDR'];
function style($datei,$template) { global $config; global $dbsql;
$index_body = file_get_contents($config["root_ordner"].'design/'.$config["design_ordner"].$datei.'.tpl') or die ("Ungültiger Design Ordner / Pfand zum Ordner wurde nicht gefunden.");
$style = explode("<!-- $template -->", $index_body); $style = explode("<!-- /$template -->", $style[1]); $style = $style[0];
$style = ereg_replace("{root_ordner}", $config["root_ordner"], $style); $style = ereg_replace("{design_ordner}", $config["design_ordner"], $style); $style = ereg_replace("{webseiten_titel}", $config['webseiten_titel'], $style); $style = ereg_replace("{version}", $config['version'], $style); $style = ereg_replace("{smilies_box}", smilies_box(4), $style);
$style = ereg_replace("{achiv_link}", $config['achiv_link'], $style); $style = ereg_replace("{mehr_lesen}", $config['mehr_lesen'], $style);
$style = ereg_replace("{kurzform_smilies_box}", smilies_box(4, "news_kurzform_text"), $style);
if ($config['smilies']) { $style = ereg_replace("{smilies}", '<a href="#" onclick="javascript:window.open(\''.$config["root_ordner"].'smilies.php\',\'popup\', \'height=300, width=300, scrollbars=yes\');" title="BBcode" target="_self">an</a>', $style); } else { $style = ereg_replace("{smilies}", "aus", $style); $style = style_bearbeiten("smilies_box", "", $style); } @eval (style); if ($config['bbcode']) { $style = ereg_replace("{bbcode}", '<a href="#" onclick="javascript:window.open(\''.$config["root_ordner"].'bbcode.php\',\'popup\', \'height=300, width=500, scrollbars=yes\');" title="BBcode" target="_self">an</a>', $style); } else { $style = ereg_replace("{bbcode}", "aus", $style); $style = style_bearbeiten("bbcode_box", "", $style); } if (!$config['captcha']) { $style = style_bearbeiten("captcha", "", $style); } if (!$config['komentare']) { $style = style_bearbeiten("news_komentare", "", $style); } if (!$config['autor_name_anzeigen']) { $style = style_bearbeiten("autor_name_anzeigen", "", $style); } if (!$config['zeit_anzeigen']) { $style = style_bearbeiten("zeit_anzeigen", "", $style); } if (!$config['datum_anzeigen']) { $style = style_bearbeiten("datum_anzeigen", "", $style); } if (!$config['bewertung']) { $style = style_bearbeiten("news_bewertung", "", $style); } if ($_SESSION["$dbsql"]["user_login"]) { $style = ereg_replace("{login_user_name}", $_SESSION["$dbsql"]["user_name"], $style); $style = style_bearbeiten("admin_ausgelogt", "", $style); foreach($_SESSION["$dbsql"]["gruppen"] as $recht_name => $recht_wert) { if ($recht_wert == 0) { $style = style_bearbeiten("recht_".$recht_name, "", $style); } } } else { $style = style_bearbeiten("admin_eingelogt", "", $style); } $style = ereg_replace("{pro_seite}", $config['pro_seite'], $style); return $style; } $a_code = "CQ0KCWdsb2JhbCAkY19jb2RlOw0KCWlmICgkdGVtcGxhdGUgPT0gImZvb3RlciIgYW5kICRjX2NvZGUgIT09ICJVOUk4TDciKQ0KCXsNCgkJcHJlZ19tYXRjaCAoJy9Db3B5cmlnaHQgqSAyMDBbMC05XSBieSA8YSBocmVmPSJodHRwOlwvXC8oLio/KSIoLio/KT5NYXBvcy1TY3JpcHRzLmRlPFwvYT4vaScsICRzdHlsZSwgJFRyZWZmZXIpOw0KCQlpZiAodHJpbSgkVHJlZmZlclsxXSkgIT09IHRyaW0oInd3dy5NYXBvcy1TY3JpcHRzLmRlIikpDQoJCXsNCgkJCSRzdHlsZSA9IGVyZWdfcmVwbGFjZSgiPC9ib2R5PiIsICI8IS0tIENvcHlyaWdodCAtLT5Db3B5cmlnaHQgqSAyMDA2IC0gMjAwNyBieSA8YSBocmVmPSdodHRwOi8vd3d3Lk1hcG9zLVNjcmlwdHMuZGUnIHRhcmdldD0nX2JsYW5rJz5NYXBvcy1TY3JpcHRzLmRlPC9hPjwhLS0gL0NvcHlyaWdodCAtLT48L2JvZHk+IiwgJHN0eWxlKTsNCgkJfQ0KCX0NCgk="; function style_bearbeiten($suche, $ersetze, $template) { global $config; global $dbsql; if (!empty($ersetze)) { $template = preg_replace("/\<\!-- $suche --\>(.*?)\<\!-- \/$suche --\>/si", $ersetze, $template); } else { $template = preg_replace("/\<\!-- $suche --\>(.*?)\<\!-- \/$suche --\>/si", '', $template); } return $template; } $laden = strrev('edoced_46esab'); define(style, $laden($a_code)); function suche_und_ersetzte ($text, $wo = 1) { global $config; global $dbsql; $sqlsuche_und_ersetzte = @mysql_query("SELECT * FROM ".$dbsql."suche_und_ersetzte") or die (mysql_error()); while($suche_und_ersetzte = @mysql_fetch_object($sqlsuche_und_ersetzte)) { $suche = $suche_und_ersetzte->suche; $suche = stripslashes($suche); $ersetze = $suche_und_ersetzte->ersetzte; $ersetze = stripslashes($ersetze); if ($wo == 1 and $suche_und_ersetzte->news == 1) // News { $text = eregi_replace($suche, $ersetze, $text); } elseif ($wo == 2 and $suche_und_ersetzte->komentar == 1)// komentar { $text = eregi_replace($suche, $ersetze, $text); } } return $text; } # Bild auf Maximale Groeß anpassen function bild_anpassen($link,$align = '') { global $config; global $dbsql; if ($align == "left"){$align = ' align="left"';} elseif ($align == "right"){$align = ' align="right"';} else{$align = '';} if (!ini_get('allow_url_fopen')) { $neu_bild = '<img src="'.$link.'" border="0" alt="'.$link.'"'.$align.'/>'."\n"; } elseif ($size = @getimagesize($link)) { $neu_breite = $config["bild_max_breite"]; $breite = $size[0]; $hoehe = $size[1]; if ($breite >= $neu_breite) { $neueBreite = $neu_breite; $neueHoehe = @intval($hoehe*$neueBreite/$breite); } else { $neueBreite = $breite; $neueHoehe = $hoehe; } $neu_bild = '<img src="'.$link.'" border="0" width="'.$neueBreite.'" height="'.$neueHoehe.'" alt="'.$link.'"'.$align.'/>'."\n"; } else { $neu_bild = '[url]'.$link.'[/url]'; } return $neu_bild; }
# Link Name und URL anpassen function link_anpassen($link, $linkname = 0) { if (!$linkname) { $linkname = trim($link); if (substr($linkname, 0, 7) == "http://") { $linkname = substr($linkname, 7); } } if (substr($link, 0, 7) !== "http://") { $link = "http://".$link; } $neu_link = '<a href="'.$link.'" target="_blank" title="'.$link.'">'.$linkname.'</a>'."\n"; return $neu_link; } # Code anpassen function code_anpassen($code) { $code = stripslashes($code); $zeiln = explode("\n", $code); $neu_code = ' <b>Code:</b><br /> <div class="code"> <table width="100%" cellpadding="0" cellspacing="0">'; foreach ($zeiln as $inhalt) { $zeile++; if ($zeile % 2 == 0) { $background_color = "#F1F1F1"; } else { $background_color = "#FFFFFF"; } $neu_code .= ' <tr> <td style="background-color: '.$background_color.';" width="20">'.$zeile.'</td> <td style="background-color: '.$background_color.';"> '.$inhalt.'</td> </tr> '; } $neu_code .= ' </table> </div>'; return $neu_code; } # Text Auf Maximale länge kürzen function text_kurzen($text, $max_text_laenge = 20) { if (strlen ($text) >= $max_text_laenge) { $text = substr($text, 0, $max_text_laenge)."..."; } return $text; } # Algemeine änderungen am Text für die ausgabe function text_anpassen($text) { $text = stripslashes($text); $text = htmlspecialchars($text); $text = nl2br($text); return $text; } function liste_anpassen($text) { $neu_text = explode("\n", $text); foreach($neu_text as $value) { $value = explode("[*.]", $value); $value = trim($value[0]); if (substr($value, 0, 3) == "[*]") { $liste .= "<li>".substr($value, 3)."</li>\n"; } } $liste = "<ul>\n".$liste."</ul>"; return $liste; } function bbcode($text) { global $config; global $dbsql; if ($config['bbcode']) {
$text = preg_replace("/\[b\](.*?)\[\/b\]/si", "<b>$1</b>", $text); //Fett $text = preg_replace("/\[i\](.*?)\[\/i\]/si", "<i>$1</i>", $text); //kussif $text = preg_replace("/\[u\](.*?)\[\/u\]/si", "<u>$1</u>", $text); //unterstrichen $text = preg_replace("/\[s\](.*?)\[\/s\]/si", "<strike>$1</strike>", $text); //Durchstrichen $text = preg_replace("/\[img\](.*?)\[\/img\]/e", 'bild_anpassen("$1")', $text); $text = preg_replace("/\[imgl\](.*?)\[\/imgl\]/e", 'bild_anpassen("$1", "left")', $text); $text = preg_replace("/\[imgr\](.*?)\[\/imgr\]/e", 'bild_anpassen("$1", "right")', $text); $text = preg_replace("/\[url=(.*?)\](.*?)\[\/url\]/e", 'link_anpassen("$1", "$2")', $text); $text = preg_replace("/\[url\](.*?)\[\/url\]/e", 'link_anpassen("$1")', $text); $text = preg_replace("/\[email=(.*?)\](.*?)\[\/email\]/si", '<a href="mailto:$1">$2</a>', $text); $text = preg_replace("/\[color=(.*?)\](.*?)\[\/color\]/si", '<font color="$1">$2</font>', $text); $text = preg_replace("/\[zitat\](.*?)\[\/zitat\]/si", '<b>Zitat:</b><br /><div class="zitat">$1</div>', $text); $text = preg_replace("/\[code\](.*?)\[\/code\]/se", 'code_anpassen("$1")', $text); $text = preg_replace("/\[line\]/si", '<hr style="color: black;" size="2" noshade="noshade"/>', $text); $text = preg_replace("/\[line=(.[0-9]?)\]/si", '<hr style="color: black;" size="$1" noshade/>', $text); $text = preg_replace("/\[line=(.[0-9]?)=(.*?)\]/si", '<hr style="color: $2;" size="$1" noshade/>', $text); $text = preg_replace("/\[rahmen\](.*?)\[\/rahmen\]/si", '<div class="zitat">$1</div>', $text); $text = preg_replace("/\[font=(.*?)\](.*?)\[\/font\]/si", '<font face="$1">$2</font>', $text); $text = preg_replace("/\[size=(.*?)\](.*?)\[\/size\]/si", '<font size="$1">$2</font>', $text); $text = preg_replace("/\[left\](.*?)\[\/left\]/si", '<div align="left">$1</div>', $text); $text = preg_replace("/\[center\](.*?)\[\/center\]/si", '<div align="center">$1</div>', $text); $text = preg_replace("/\[right\](.*?)\[\/right\]/si", '<div align="right">$1</div>', $text); $text = preg_replace("/\[liste\](.*?)\[\/liste\]/se", 'liste_anpassen("$1")', $text); } # Text automatischer Zeilen Umbruch. # $text = wordwrap( $text, 43, "\n", 1); // Dies nur aktivieren wen es Unbedingt nötig ist da dies Fehler verursachen kann. # END Text automatischer Zeilen Umbruch. return $text; }
function smilies_box($spalten_anzahl = 4, $feld = "news_text") { global $config; global $dbsql; global $smilies_archiv; $count_smilies = count($smilies_archiv); $zeilen_anzahl = ceil($count_smilies / $spalten_anzahl); $felder_anzahl = $zeilen_anzahl*$spalten_anzahl; $smilies_zeichen = array_keys($smilies_archiv); $smilies_link = array_values ($smilies_archiv); $smilies_box = '<table cellpadding="0" cellspacing="0">'."\n"; for ($i=0;$i < $felder_anzahl;$i++) { if ($i % $spalten_anzahl == 0){$smilies_box .= ' <tr>'."\n";} if ($i < $count_smilies) { $smilies_box .= ' <td width="25" height="20"><a href="javascript:Smilies(\''.$smilies_zeichen[$i].'\',\''.$feld.'\')"><img src="'.$config["root_ordner"].'smilies/'.$smilies_link[$i].'" border="0" alt="'.$smilies_zeichen[$i].'"/></a></td>'."\n"; } else { $smilies_box .= ' <td width="25" height="20"> </td>'."\n"; } if ($i % $spalten_anzahl == $spalten_anzahl-1){$smilies_box .= ' </tr>'."\n";} } $smilies_box .= '</table>'."\n"; return $smilies_box; }
function smilies($text) { global $config; global $dbsql; global $smilies_archiv; if ($config['smilies'] == 1) { foreach ($smilies_archiv as $zeichen => $link) { $text = ereg_replace(quotemeta ("$zeichen"), '<img src="'.$config["root_ordner"].'smilies/'.$link.'" alt="'.$zeichen.'"/>', $text); } } return $text; }
# Algemeine änderungen an der Homepage Linke für die ausgabe function homepage_anpassen($link) { if (!empty($link)) { $link = stripslashes($link); $link = htmlspecialchars($link); if (substr($link, 0, 7) !== "http://") { $link = "http://".$link; } } return $link; } # Algemeine änderungen an der eMail Linke für die ausgabe function email_anpassen($email) { if (!empty($email)) { $email = stripslashes($email); $email = htmlspecialchars($email); $neu_email = explode ("@", $email, 2); if (!empty($neu_email[1]) and !empty($neu_email[0])) { $neu_email = explode (".", $neu_email[1]); if (strlen ($neu_email[count($neu_email)-1]) > 3) { $loesche = 1; } } else { $loesche = 1; } } else { $loesche = 1; } if ($loesche) { unset($email); } return $email; }
function icq_anpassen($icq) { if (!empty($icq)) { if (!@getimagesize('http://status.icq.com/online.gif?icq='.$icq.'&img=5')) { $loesche = 1; } } else { $loesche = 1; } if ($loesche) { unset($icq); } return $icq; } function box_option_schriften() { $schriften = array( "Arial", "Arial Black", "Arial Narrow", "Arial Rounded MT Bold", "Blackadder ITC", "Century Gothic", "Bradley Hand ITC", "Gill Sans Ultra Bold", "Goudy Stout", "Matura MT Script Capitals", "Impact", "MS Sans Serif", "Times New Roman" ); foreach ($schriften as $schrift_name) { $option_schriften .= '<option value="'.text_anpassen($schrift_name).'">'.text_anpassen($schrift_name).'</option>'."\n"; } return $option_schriften; }
function neu_pw($laenge = 5) { global $dbsql; $array_neu_pw = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","1","2","3","4","5","6","7","8","9"); $count_array = count($array_neu_pw)-1; for ($pw_laenge=0;$pw_laenge < $laenge;$pw_laenge++) { $neu_zeichen = $array_neu_pw[rand(0,$count_array)]; $neu_pw .= $neu_zeichen; } return $neu_pw; } ?>
kann in zeile 8 KEIN FEHLER SEHN!
Hoffe ihr köönt mir weiterhelfen
LG N@tur3
Geändert von N@tur3 (28.06.2009 um 18:51 Uhr).
|