Update filenew.php
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user