";
if ((MAINSCRIPT == "") && (SCRIPTPATH == ""))
die ("If you want to include the Guestbook,
you must change the constants at the top of index.php ! See
readme.txt for details
");
else
die ("
Inclusion error ! You've either opened index.php instead
of your mainscript or the include constants have wrong values.
");
}
}
include($incpath."lang/".$langDIR."langindex".$langID.".inc");
vgb_connectDB($relpath,$incpath);
if (!$settings['USECOOKIES'])
$cookie = array();
if ($settings['HIDESTATS']) {
$a = 0;
if (isset($arg["statswohs"])) {
$q = vgb_query("select SESSIONID from VGB_SESSION where substring(SESSIONID,1,10) = '".addSlashes($arg["statswohs"])."'");
$a = vgb_numrows($q);
}
if (!$a) {
if (!$settings['USEFRAMES'])
unset($arg[PFIX."stats"]);
if (isset($arg[PFIX."detail"])) {
unset($arg[PFIX."detail"]);
$arg[PFIX."mask"] = 1;
}
}
}
// register visitor
vgb_registerVisitor();
if ($settings['ASKCOUNTRY']) {
if (!file_exists($relpath."lang/".$langDIR."langcountry".$langID.".inc"))
die("