Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.02.02 Distro
Author Message
exciting
Hangin' Around



Joined: Nov 14, 2006
Posts: 32

PostPosted: Thu Nov 16, 2006 3:54 am Reply with quote

hello,

i run ravennuke 76 2.00.02, but some modules like the code (it is a simple impressum script that points to an html) here show only white blank page, other modules work fine.
on search i found one thread here, but there i can not solve my problem.

the same white blank is properly on amazon-module.

anyone maybe know why?


Code:
<?php


echo "test";

//$index = 1; right side on
$index = 1;
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
if(!IsSet($mainfile)) { include ("mainfile.php"); }
include("header.php");
OpenTable();
/////////////////////////////////////////////////////////////
$webpage = "modules/Impressum/impressum.htm";
$fp = fopen( $webpage, "r" ) or die("Konnte $webpage nicht öffnen");
while ( ! feof( $fp))
print fgets( $fp, 1024);

////////////////////////////////////////////////////////////
CloseTable();

OpenTable();

/////////////////////////////////////////////////////////////

echo "<font color=white>";
$haftung = "http://www.disclaimer.de/disclaimer.htm?farbe=FFFFFF/FFFFFF/FFFFFF/FFFFFF";

$fp = fopen( $haftung, "r" ) or die("Konnte $haftung nicht öffnen");

while ( ! feof( $fp))

print fgets( $fp, 1024);

echo "</font>";

////////////////////////////////////////////////////////////

CloseTable();



include("footer.php");
?>
 
View user's profile Send private message
wiz
Involved
Involved



Joined: Oct 09, 2006
Posts: 413
Location: UK

PostPosted: Thu Nov 16, 2006 4:05 am Reply with quote

could it be that the font is set to white?
What colour is your background?
 
View user's profile Send private message Visit poster's website AIM Address
exciting







PostPosted: Thu Nov 16, 2006 4:08 am Reply with quote

the background is black/brown.
 
wiz







PostPosted: Thu Nov 16, 2006 4:10 am Reply with quote

ok..just had to check the obvious Smile
 
exciting







PostPosted: Thu Nov 16, 2006 4:28 am Reply with quote

for testing i had insert
echo "test";

this is shown, rest not.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Thu Nov 16, 2006 6:00 am Reply with quote

Well, some mods can be quite old. Replace this code here:

Code:


//$index = 1; right side on
$index = 1;
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
if(!IsSet($mainfile)) { include ("mainfile.php"); }


With:

Code:


if ( !defined('MODULE_FILE') )
{
   die("You can't access this file directly...");
}
require_once('mainfile.php');
define('INDEX_FILE', true);


On this one, it is also very possible that the fopen() function is disabled in your host environment. Try turning display errors to TRUE in config.php and see if you get an error message.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
exciting







PostPosted: Thu Nov 16, 2006 6:10 am Reply with quote

cool thx, it works

i hope in the greater amazonnuke-module is the same to edit.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.02.02 Distro

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©