Update and rename filesave.php to file_save.php
This commit is contained in:
parent
d66998d738
commit
c577d887e9
|
|
@ -31,7 +31,7 @@
|
||||||
require_once "resources/check_auth.php";
|
require_once "resources/check_auth.php";
|
||||||
|
|
||||||
//check permissions
|
//check permissions
|
||||||
if (permission_exists('script_editor_save')) {
|
if (permission_exists('edit_save')) {
|
||||||
//access granted
|
//access granted
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
@ -54,7 +54,6 @@
|
||||||
//run the code if file path exists
|
//run the code if file path exists
|
||||||
$file_path = $_POST["filepath"];
|
$file_path = $_POST["filepath"];
|
||||||
if ($file_path != '') {
|
if ($file_path != '') {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
//save file content
|
//save file content
|
||||||
$file_path = realpath($file_path);
|
$file_path = realpath($file_path);
|
||||||
Loading…
Reference in New Issue