Files
ICEcoder/processes/on-file-dir-perms.php
2020-02-01 13:25:33 +00:00

17 lines
646 B
PHP

<?php
if (!isset($_SESSION['loggedIn'])) {
die('Sorry, not logged in.');
}
// Purpose: This file is run when a file or dir has its perms changed, has $fileLoc, $fileName and $_GET['perms'] strings 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, "PERMS >>> ".date("D dS M Y h:i:sa").": ".$fileLoc."/".$fileName." = ".$_GET['perms']."\n");
// fclose($fh);
if (false === isset($doNext)) {
$doNext = "";
}
// If JS is needed, add within $doNext string below, eg $doNext .= ";alert('perms changed');";
$doNext .= "";