Files
ICEcoder/processes/on-get-remote-file.php
2019-09-21 23:40:41 +01:00

14 lines
522 B
PHP

<?php
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 (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 .= "";