Update and rename clipupdate.php to clip_update.php

This commit is contained in:
FusionPBX 2019-08-21 01:47:46 -06:00 committed by GitHub
parent da4a7d29f5
commit 67065e336b
1 changed files with 73 additions and 66 deletions

View File

@ -23,9 +23,13 @@
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
*/
//includes
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
//check permissions
if (permission_exists('script_editor_save')) {
//access granted
}
@ -38,6 +42,7 @@ else {
$language = new text;
$text = $language->get();
//process the HTTP POST
if (count($_POST) > 0) {
$clip_uuid = $_POST["id"];
$clip_name = $_POST["clip_name"];
@ -73,7 +78,7 @@ if (count($_POST)>0) {
//redirect the browser
require_once "header.php";
echo "<meta http-equiv=\"refresh\" content=\"1;url=clipoptions.php\">\n";
echo "<meta http-equiv=\"refresh\" content=\"1;url=clip_options.php\">\n";
echo $text['message-update'];
require_once "footer.php";
exit;
@ -149,5 +154,7 @@ else {
echo " </tr>";
echo "</table>";
//include the footer
require_once "footer.php";
?>