- Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- Parse error: syntax error, unexpected token "public", expecting end of file in /in/NudD4 on line 45
Process exited with code 255.
<?php
/**
* This file must be included on line 1 of the page, usage:
* <?php include("./lib/global-header.php");
*
* Core Features:
* - Create the core [output buffer]
* - Begins the core [session]
* - TODO: Wrapper functions:
- print_r($lib->get[$WS_OUTPUT]["title"];
- $lib->output["title"] = [
"Morgue",
" | Web Service",
" - Dead on Release"
];
- $lib->[$WS_OUTPUT]["title"][0] = "Morgue";
- echo $lib->session["fingerprint"];
- echo $lib->get[$WS_SESSION]["fingerprint"];
- $lib->set[$WS_SESSION]["fingerprint"] = "generated by js";
* - Handle the analytics software.
*/
// Begin the PHP session.
if (isset($_SESSION)) {
fail("session conflict..?");
}
session_name("WebService");
session_start();
// Handle fingerprint setup.
$fingerprint = get_fingerprint();
if (is_empty($fingerprint)) {
$fingerprint = "";
log4($LOG4_RD, "No fingerprint");
} else {
$_SESSION["fingerprint"] = $fingerprint;
}
// Set token for "persistent anonymous session"
$_SESSION["token"] = get_uuid($WS_UUID_V4);
public function get_uuid(? int $version): string {
switch ($version ?? $WS_UUID_V5) {
case $WS_UUID_V4:
return uuid_v4();
default:
return uuid_v5();
}
}
private function get_uuid_v4(): string {
return "TODO";
}
private function get_uuid_v5() {
return "TODO";
}