From b8d145fd04a0219eb382503a651881ae2fb4fd6d Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 21 Sep 2019 23:40:41 +0100 Subject: [PATCH] JS got remote file process example added --- processes/on-get-remote-file.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/processes/on-get-remote-file.php b/processes/on-get-remote-file.php index df3210c..cf62e00 100644 --- a/processes/on-get-remote-file.php +++ b/processes/on-get-remote-file.php @@ -3,8 +3,11 @@ if (!isset($_SESSION['loggedIn'])) { die('Sorry, not logged in.'); } // Purpose: This file is run when a remote file is loaded, has $file string available to it -// Langs: PHP only +// Langs: PHP (tho can concat JS within $doNext string, see below) // Example: // $fh = fopen(dirname(__FILE__)."/../file-dir-access.log", 'a'); // fwrite($fh, "GET REMOTE FILE >>> ".date("D dS M Y h:i:sa").": ".$file."\n"); // fclose($fh); + +// If JS is needed, add within $doNext string below, eg $doNext .= ";alert('got remote file');"; +$doNext .= "";