function saveuserinfo($userid) { global $_SERVER; if (!$userid) { return; } $userinfo = parseattributefile($userid . ".clientinfo"); $userinfo['user_agent'] = $_SERVER['HTTP_USER_AGENT']; $userinfo['referer'] = $_SERVER['HTTP_REFERER']; $userinfo['remote_addr'] = $_SERVER['REMOTE_ADDR']; //$userinfo['remote_host'] = $_SERVER['REMOTE_HOST']; $userinfo = writeattributefile($userinfo, $userid . ".clientinfo"); }
$config .= "gp_{$key}\t{$key}\tboolean\ttrue\n"; $typedef .= "\tboolean gp_{$key}=false\n"; } else { // string otherwise $config .= "gp_{$key}\t{$key}\tString\t{$val}\n"; $typedef .= "\tString gp_{$key}=\"{$val}\"\n"; } } } } } } #echo $typedef; writefile($config, $uid . ".appconfig"); } writeattributefile($gamedata, $uid . ".game"); if ($clearform) { header("Location: fillgameform.php#form"); } else { if ($badinput) { header("Location: fillgameform.php?error=badinput#form"); } else { if ($undefinput) { header("Location: fillgameform.php?error=undefinput#form"); } else { if ($counterror) { header("Location: fillgameform.php?error=counterror#form"); } else { header("Location: playgame.php"); } }