Update filenew.php

This commit is contained in:
FusionPBX
2019-08-21 01:28:11 -06:00
committed by GitHub
parent c1ca9eb9df
commit 0ca6d166bb
+4 -2
View File
@@ -25,6 +25,9 @@
James Rose <james.o.rose@gmail.com> James Rose <james.o.rose@gmail.com>
*/ */
//disable this feature
exit;
//includes //includes
include "root.php"; include "root.php";
require_once "resources/require.php"; require_once "resources/require.php";
@@ -64,10 +67,9 @@
$content = "<?php\n\n?>"; $content = "<?php\n\n?>";
fwrite($handle, $content); fwrite($handle, $content);
fclose($handle); fclose($handle);
header("Location: fileoptions.php"); header("Location: file_options.php");
} }
else { else {
//create a token //create a token
$key_name = '/app/edit/file_new'; $key_name = '/app/edit/file_new';
$_SESSION['keys'][$key_name] = bin2hex(random_bytes(32)); $_SESSION['keys'][$key_name] = bin2hex(random_bytes(32));