'; $loggedin = 0; if (isset($_COOKIE['user'])) { $userinfo = json_decode(preg_replace('/\\\\/','',$_COOKIE['user'])); //echo "THE UINFO:\n";print_r($userinfo); if ( (isset($userinfo->username)) && (isset($userinfo->id)) && (isset($userinfo->username)) ) { $jsuserpart = "var loggedin=true;\nvar username = '".$userinfo->username. "';\nvar userid = ".$userinfo->id.";\n"; echo "Hello ".$userinfo->username."
\n"; $loggedin = 1; } } if (!$loggedin) { $jsuserpart = "var loggedin=false;var username = '';\nvar userid = '';"; echo ''; echo '

Click anywhere to get started

'; } echo ""; echo '
Star Date: '. date('Y-m-d H:i').''. ($loggedin?' logout':'')."
\n"; echo 'Status: Initializing ...
'; $starjs = ''; ?>
'; } ?>