Folgende Warnungen sind aufgetreten:
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.19 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/printthread.php(287) : eval()'d code 2 errorHandler->error_callback
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



net-board.net Archiv
Brauche Dringend Hilfe !!! - Druckversion

+- net-board.net Archiv (https://net-board.net)
+-- Forum: Deine eigene Homepage (https://net-board.net/forumdisplay.php?fid=26)
+--- Forum: Scriptsprachen (+Datenbanksysteme) (https://net-board.net/forumdisplay.php?fid=19)
+--- Thema: Brauche Dringend Hilfe !!! (/showthread.php?tid=3001)

Seiten: 1 2 3


Brauche Dringend Hilfe !!! - eXistenz` - 06.11.2003

wollt grade n newsscript installen
hab jetzt aber das hier

Warning: Unable to access ./config.php in /home/www/web38/html/v1.0/script/index.php on line 7

Warning: Failed opening './config.php' for inclusion (include_path='.:/usr/share/php') in /home/www/web38/html/v1.0/script/index.php on line 7

Warning: Unable to access ./functions.php in /home/www/web38/html/v1.0/script/index.php on line 8

Warning: Failed opening './functions.php' for inclusion (include_path='.:/usr/share/php') in /home/www/web38/html/v1.0/script/index.php on line 8

Fatal error: Call to undefined function: gettemplate() in /home/www/web38/html/v1.0/script/index.php on line 94


- cHAp - 06.11.2003

gibt mal die datei von den script Smile

Ansonsten können wir nich helfen Smile


- pattex - 06.11.2003

Kann es sein das die dateien functions.php und config.php fehlen?


- eXistenz` - 06.11.2003

hy,
nein die sind da
http://www.insane.sunsonic.de/v1.0/script/index.php
http://www.insane.sunsonic.de/v1.0/script/functions.php
http://www.insane.sunsonic.de/v1.0/script/config.php
sollten alle da sein



edit:
hier is mal der code von der index.php
<?PHP
/******************************************************************************************************
King News
Copyright © 2003 by Marcel Frank - http:/www.PHPKing.de
Alle Copyright-Hinweise im Header jeder Datei müssen sichtbar sein und dürfen nicht gelöscht werden!
******************************************************************************************************/
include(".config.php");
include(".functions.php");

$PHP_SELF = $_SERVER['PHP_SELF'];
$news_file = $pfad."/data/news.dat";

if($_GET['action']=="comment") {
if($_GET['id']!="") {
if($_GET['id']<count(file($news_file))) {
$news_data = file($news_file);
$news_daten = explode("|***|", $news_data[$_GET['id']]);
$news_daten[3] = eregi_replace("\r\n", "", $news_daten[3]);
$kommentar_datei = $pfad."/data/kommentare/".$news_daten[3].".dat";
if(!file_exists($kommentar_datei)) {
writeFILE($kommentar_datei,"");
chmod($kommentar_datei, 0666);
}
$id = $news_daten[3];
eval ("\$show_page = \"".gettemplate("comment_header")."\";");
$kommentar_data = file($kommentar_datei);
for($i=0;$i<count($kommentar_data);$i++) {
$kommentar_data[$i] = eregi_replace("\r\n", "", $kommentar_data[$i]);
if($kommentar_data[$i]!="") {
$kommentar_daten = explode("|***|", $kommentar_data[$i]);
$name = $kommentar_daten[0];
$email = $kommentar_daten[1];
$kommentar = eregi_replace("<br>", "\r\n", $kommentar_daten[2]);
$zeit = date("d.m.Y", $kommentar_daten[4]).", ".date("H:i", $kommentar_daten[4]);
eval ("\$show_page .= \"".gettemplate("comment")."\";");
}
}
eval ("\$show_page .= \"".gettemplate("comment_footer")."\";");
} else {
$status = "Fehler!";
$status_text = "Diese News-ID gibt es nicht in unserem System!";
eval ("\$show_page = \"".gettemplate("status")."\";");
}
} else {
$status = "Fehler!";
$status_text = "Bitte gebe eine News-ID an!";
eval ("\$show_page = \"".gettemplate("status")."\";");
}
} elseif($_GET['action']=="addcomment") {
if($_POST['name']=="" OR $_POST['email']=="" OR $_POST['comment']=="" OR $_POST['id']=="") {
$status = "Fehler!";
$status_text = "Bitte fülle alle Felder aus!<br><br>[ <a href=\"javascript:history.go('-1')\">Zurück</a> ]";
eval ("\$show_page = \"".gettemplate("status")."\";");
} elseif(!eregi("^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}$", $_POST['email'])) {
$status = "Fehler!";
$status_text = "Bitte gebe eine korrekte E-Mail Adresse an!<br><br>[ <a href=\"javascript:history.go('-1')\">Zurück</a> ]";
eval ("\$show_page = \"".gettemplate("status")."\";");
} elseif(!file_exists($pfad."/data/kommentare/".$_POST['id'].".dat")) {
$status = "Fehler!";
$status_text = "Zu diesen News kannst du kein Kommentar schreiben!";
eval ("\$show_page = \"".gettemplate("status")."\";");
} else {
$_POST['name'] = strip_tags($_POST['name']);
$_POST['name'] = stripslashes($_POST['name']);
$_POST['comment'] = strip_tags($_POST['comment']);
$_POST['comment'] = stripslashes($_POST['comment']);
$_POST['comment'] = eregi_replace("\r\n", "<br>", $_POST['comment']);
$kommentar_datei = $pfad."/data/kommentare/".$_POST['id'].".dat";
$kommentar_data = file($kommentar_datei);
$kommentar_daten = $kommentar_daten = explode("|***|", $kommentar_data[count($kommentar_data)-1]);
if($kommentar_daten[3]!=$_SERVER['REMOTE_ADDR']) {
if(count($kommentar_data)==0) {
writeFILE($kommentar_datei,$_POST['name']."|***|".$_POST['email']."|***|".$_POST['comment']."|***|".$_SERVER['REMOTE_ADDR']."|***|".time()."|***|");
} else {
for($i=0;$i<count($kommentar_data);$i++) {
$kommentar .= $kommentar_data[$i];
}
$kommentar .= "\r\n".$_POST['name']."|***|".$_POST['email']."|***|".$_POST['comment']."|***|".$_SERVER['REMOTE_ADDR']."|***|".time()."|***|";
writeFILE($kommentar_datei,$kommentar);
}
$status = "Erfolgreich!";
$status_text = "Dein Kommentar wurde erfolgreich hinzugefügt!<br><br>[ <a href=\"javascript:window.close();\">Fenster schließen</a> ]";
eval ("\$show_page = \"".gettemplate("status")."\";");
} else {
$status = "Fehler!";
$status_text = "Es ist nicht möglich mit einer IP<br>2 drauffolgende Kommentare zu schreiben!<br><br>[ <a href=\"javascript:history.go('-1')\">Zurück</a> ]";
eval ("\$show_page = \"".gettemplate("status")."\";");
}
}
} else {
if($_GET['page']=="") $page = "0";
else $page = $_GET['page'];
$max_news = $page + $maxnews;
eval ("\$show_page = \"".gettemplate("news_header")."\";");
$news_data = file($news_file);
for($i=$page;$i<$max_news;$i++) {
$news_data[$i] = eregi_replace("\r\n", "", $news_data[$i]);
if($news_data[$i]!="") {
$id = $i;
$news_daten = explode("|***|", $news_data[$i]);
$titel = $news_daten[0];
$news = $news_daten[1];
$autor = $news_daten[2];
if($smilies=="1") $news = smilies($news);
if($bbcodes=="1") $news = bbcodes($news);
$zeit = date("d.m.Y", $news_daten[3]).", ".date("H:i", $news_daten[3]);
$kommentar_datei = $pfad."/data/kommentare/".$news_daten[3].".dat";
if(!file_exists($kommentar_datei)) $kommentare = 0;
else $kommentare = count(file($kommentar_datei));
eval ("\$show_page .= \"".gettemplate("news")."\";");
}
}
$count = count($news_data);
if($page >= $maxnews) {
$back = $page - $maxnews;
$go_back = "<a href=\"".$_SERVER['PHP_SELF']."?page=".$back."\"><< Zurück</a>";
}
if($count > $page + $i) {
$forward = $page +$maxnews;
$go_forward = "<a href=\"".$_SERVER['PHP_SELF']."?page=".$forward."\">Weiter >></a>";
}
$from_entry = $page + 1;
$to_entry = $page + $i;
eval ("\$show_page .= \"".gettemplate("news_footer")."\";");
}
echo $show_page;
?>


- cHAp - 06.11.2003

Hast du die zip datei oder was das wahr noch ???
wenn ja stell die hier mal rein.
dann downe ich mir das mal und lade es mal auf meinen space
und gucke mir das mal an Smile


- pattex - 06.11.2003

Musst du evtl. eine adresse in der config angeben?

kannst du bitte den namen des scripts geben Smile


änder mal:
include(".config.php");
include(".functions.php");

in
include("./config.php");
include("./functions.php");

um Smile


- eXistenz` - 06.11.2003

http://www.insane.sunsonic.de/v1.0/script/index.php

das script an sich geht
nur wenn ich es include geht es netmehr


- kickedINtheHEAD - 06.11.2003

von wo includest du es? von dem selben ordner aus oder von nem andern?


- pattex - 06.11.2003

Wie includest du denn?


- eXistenz` - 06.11.2003

hab jetzt nur noch diesen fehler hier

Warning: Unable to access /script/index.php in /home/www/web38/html/v1.0/index.php on line 390

Warning: Failed opening '/script/index.php' for inclusion (include_path='.:/usr/share/php') in /home/www/web38/html/v1.0/index.php on line 390


einen teil hab ich schon wegbekommen