Requested Directory: " . dirname($filename) . '
';
echo "";
$date = new DateTime(); //this returns the current date time
$result = $date->format('Y-m-d H:i:s');
die("Error. Target folder was not found on the host device. Please close this tab and reopen if needed.
Request Time: " . $result . '');
}
if (!file_exists($filename)){
//File not found, creating a new one instead
$file = fopen($filename, 'w') or die('Error opening file: ' + $filename);
fclose($file);
}
$displayName = $filename;
$fileExt = pathinfo($filename, PATHINFO_EXTENSION);
//Handle the AOB Upload Manger type of naming methods
if (substr($filename,0,5) == "inith"){
$nameOnly = basename($filename, "." . $fileExt);
$nameOnly = str_replace("inith","",$nameOnly);
$displayName = hex2bin($nameOnly) . "." . $fileExt . " (Encoded Filename)";
}else{
$displayName = basename($filename);
}
//Set the mode of the editor to the extension of the file, but something this might be incorrect.
$mode = $fileExt;
}else{
//Creating a new file instead
$filename = "";
$displayName = "untitled";
}
if (mv("theme") != ""){
$theme = mv("theme");
}
if (mv("fontsize") != ""){
$fontsize = mv("fontsize");
}
?>