Files
ICEcoder/processes/on-file-dir-rename.php
Rafael Rotelok 51ab472142 PSR-2 Compliance, removing the closing tag ( ?> ) on php only files
inserting a blank line on the end of php only files
2018-06-16 00:19:49 -03:00

11 lines
389 B
PHP

<?php
if (!isset($_SESSION['loggedIn'])) {
die('Sorry, not logged in.');
}
// Purpose: This file is run when a file or dir is renamed, has $fileLoc and $fileName strings available to it
// Langs: PHP only
// Example:
// $fh = fopen(dirname(__FILE__)."/../file-dir-access.log", 'a');
// fwrite($fh, "RENAMED >>> ".date("D dS M Y h:i:sa").": ".$fileLoc."/".$fileName."\n");
// fclose($fh);