Får följande felmeddelanden när jag ska inkludera ett nyhetsscript på en sida:
Notice: Undefined variable: pathtoscript in g:\home\nmtisverige.se\wwwroot\test\news\mynews.inc.php on line 34
Notice: Undefined variable: datelang in g:\home\nmtisverige.se\wwwroot\test\news\mynews.inc.php on line 35
Notice: Undefined variable: secret in g:\home\nmtisverige.se\wwwroot\test\news\mynews.inc.php on line 44
Så här ser mynews.inc.php ut:
<?
/*
############################### MyNews ##############################
### |-----------------------------------------------------------| ###
### | COPYRIGHT 2004 by Lukas Stalder, planetluc.com | ###
### | DO NOT REDISTRIBUTE OR RESELL THIS SCRIPT | ###
### | ANY WAYS WITHOUT MY EXPLICIT PERMISSION! | ###
### | For support use support@planetluc.com but | ###
### | please read README.txt for installation first! | ###
### | Or visit the board at https://www.planetluc.com | ###
### |-----------------------------------------------------------| ###
#####################################################################
*/
// ************************** misc other variables - do not change **********************
// ************************************ below here! *************************************
// ************************* unless you know what you're doing **************************
$dir=substr(_FILE_, 0, strrpos(_FILE_, "/")+1);
// load config
include_once($dir."config.inc.php");
include_once($dir."FCKeditor/fckeditor.php") ;
$dat=$dir."data.dat";
$templatefile=$dir."templates.inc.php";
$log=$dir."log.dat.php";
$pathtowysiwyg=$pathtoscript."wysiwyg/";
setlocale(LC_TIME, $datelang);
$me= $_SERVER['PHP_SELF'];
$empty=false;
$now=time();
$version="1.6.4";
if (!isset($_GET['hash']) || $_GET['hash']=="") {
srand($now);
for ($i=0; $i<16 ; $i++) $secret.=chr(rand(60, 127));
$secret=md5($secret);
$hash=md5($_SERVER['HTTP_USER_AGENT'].$now.$secret);
}else $hash= $_GET['hash'];
$getvars="?hash=$hash";
if (isset($_REQUEST['do'])) $do=$_REQUEST['do'];
if (isset($_REQUEST['id'])) $id=$_REQUEST['id'];
if (isset($_REQUEST['action'])) $action=$_REQUEST['action'];
if (isset($_REQUEST['title'])) $title=$_REQUEST['title'];
if (isset($_REQUEST['name'])) $name=$_REQUEST['name'];
if (isset($_REQUEST['pwd'])) $pwd=$_REQUEST['pwd'];
if (isset($_REQUEST['email'])) $email=$_REQUEST['email'];
if (isset($_REQUEST['www'])) $www=$_REQUEST['www'];
if (isset($_REQUEST['story'])) $story=$_REQUEST['story'];
if (isset($_REQUEST['teaser'])) $teaser=$_REQUEST['teaser'];
if (isset($_REQUEST['time'])) $time=$_REQUEST['time'];
if (isset($_REQUEST['date'])) $date=$_REQUEST['date'];