Hey All,
The strangest thing..
I have a file, which I include, and then refuses to recognize any of the preset variables:
index.php:
// Make sure the functions and other routines are loaded properly
define('mainpage', true);
require("/settings/websiteconfig.php");
require_once($datastructure);
require_once($databasesettings);
require_once($checkvar);
// set language:
$lan = getvar('l', 'nl', 2);
// From here, output is generated. Do not edit beyond this point
require($find_get_page);
if($pageid == 1)
{
include_once($news); // including the newsitems file
$webcontent .= $news_links;
}
newsitems:
$show = getvar('show', -1, 2);
require("includes/getnewsitems.php");
$limit_start = 0;
$limit_end = 5;
$whereclause = "";
$sortorder = "desc";
$show_all = true;
$newsitem = getnewsitems($limit_start, $limit_end, $whereclause, $sortorder, $show_all, $newsitems_table);
$news_links ="
<b>Latest news</b>
";
What I get when I run it..":
Fatal error: Call to undefined function: getvar() in d:\_websites\contentmanager\manager\news\news_include.php on line 3
Notice: Undefined variable: news_links in d:\_websites\contentmanager\manager\index.php on line 22
Both are odd:
getvar() was used in the main prog.
$news_links is defined in the include.
Anybody any idea what might be going on? What am I overlooking?