Prechádzať zdrojové kódy

Update and rename clipdelete.php to clip_delete.php

FusionPBX 6 rokov pred
rodič
commit
3b53a45d6a
1 zmenil súbory, kde vykonal 17 pridanie a 13 odobranie
  1. 17 13
      clip_delete.php

+ 17 - 13
clipdelete.php → clip_delete.php

@@ -17,23 +17,27 @@
 
 	The Initial Developer of the Original Code is
 	Mark J Crane <[email protected]>
-	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.
 
 	Contributor(s):
 	Mark J Crane <[email protected]>
 	James Rose <[email protected]>
 */
-include "root.php";
-require_once "resources/require.php";
-require_once "resources/check_auth.php";
-if (permission_exists('script_editor_save')) {
-	//access granted
-}
-else {
-	echo "access denied";
-	exit;
-}
+
+//includes
+	include "root.php";
+	require_once "resources/require.php";
+	require_once "resources/check_auth.php";
+
+//check permissions
+	if (permission_exists('edit_save')) {
+		//access granted
+	}
+	else {
+		echo "access denied";
+		exit;
+	}
 
 //add multi-lingual support
 	$language = new text;
@@ -59,6 +63,6 @@ else {
 	}
 
 //redirect the browser
-	header("Location: clipoptions.php");
+	header("Location: clip_options.php");
 
-?>
+?>