$isadmin=0;
$logname=NULL;
$expire=NULL;
-$cookie=$_COOKIE[getenv("APPNAME")];
-$cookie=htmlspecialchars($cookie);
+$cookie=NULL;
$phase=0;
$proceed=true;
while ($proceed==true) {
//rou_alert(0,"$OPEP, JMPDBG phase=$phase");
switch ($phase) {
case 0 : //do we have a cookie
- if ($cookie==NULL)
+ if (isset($_COOKIE[getenv("APPNAME")])==0)
$phase=999;
break;
case 1 : //is the cookie within database
+ $cookie=$_COOKIE[getenv("APPNAME")];
+ $cookie=htmlspecialchars($cookie);
$stmt=$dbsql->Select("Select * from cookies where cookuuid='$cookie'");
$expire=$stmt->fetch(PDO::FETCH_ASSOC)['expire'];
if ($expire==null) {
//==============================================================
include_once "subrou.php";
include_once "unienv.php";
-include_once "scrfun.php";
+include_once "unidis.php";
include_once "gessql.php";
//section to generate the main screen body
//==============================================================
include_once "subrou.php";
include_once "unienv.php";
-include_once "scrfun.php";
+include_once "unidis.php";
include_once "gessql.php";
//section to generate the main screen body
//==============================================================
//
-// all screen functions implementation
+// Basic display function
//
//==============================================================
+//==============================================================
+//
+// To display header screeen part
+//
+//==============================================================
+function topper($admin,$pageref)
+
+{
+return "";
+}
+
//==============================================================
//
// To display screen footer