JS new user process example added

This commit is contained in:
Matt Pass
2019-09-21 23:42:50 +01:00
committed by GitHub
parent f25b5f225e
commit 0519cde4df

View File

@@ -3,8 +3,11 @@ if (!isset($_SESSION['loggedIn'])) {
die('Sorry, not logged in.');
}
// Purpose: This file is run when a new user sets up
// Langs: PHP only
// Langs: PHP (tho can concat JS within $doNext string, see below)
// Example:
// $fh = fopen(dirname(__FILE__)."/../user-access.log", 'a');
// fwrite($fh, "NEW >>> ".date("D dS M Y h:i:sa").": ".$_SESSION['username']."\n");
// fclose($fh);
// If JS is needed, add within $doNext string below, eg $doNext .= ";alert('new user');";
$doNext .= "";