Update clipadd.php

This commit is contained in:
FusionPBX
2019-08-21 01:43:55 -06:00
committed by GitHub
parent 1eecc261ce
commit 05f68bc7a3
+19 -13
View File
@@ -17,23 +17,27 @@
The Initial Developer of the Original Code is The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2012 Portions created by the Initial Developer are Copyright (C) 2008-2019
the Initial Developer. All Rights Reserved. the Initial Developer. All Rights Reserved.
Contributor(s): Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
James Rose <james.o.rose@gmail.com> James Rose <james.o.rose@gmail.com>
*/ */
include "root.php";
require_once "resources/require.php"; //includes
require_once "resources/check_auth.php"; include "root.php";
if (permission_exists('script_editor_save')) { require_once "resources/require.php";
//access granted require_once "resources/check_auth.php";
}
else { //check permissions
echo "access denied"; if (permission_exists('script_editor_save')) {
exit; //access granted
} }
else {
echo "access denied";
exit;
}
//add multi-lingual support //add multi-lingual support
$language = new text; $language = new text;
@@ -73,7 +77,7 @@ if (count($_POST)>0) {
$p->add('clip_add', 'temp'); $p->add('clip_add', 'temp');
require_once "header.php"; 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-add']; echo $text['message-add'];
require_once "footer.php"; require_once "footer.php";
exit; exit;
@@ -128,5 +132,7 @@ if (count($_POST)>0) {
echo "<script>document.getElementById('clip_name').focus();</script>"; echo "<script>document.getElementById('clip_name').focus();</script>";
//include the footer
require_once "footer.php"; require_once "footer.php";
?>
?>