|
@@ -24,19 +24,23 @@
|
|
Mark J Crane <[email protected]>
|
|
Mark J Crane <[email protected]>
|
|
Luis Daniel Lucio Quiroz <[email protected]>
|
|
Luis Daniel Lucio Quiroz <[email protected]>
|
|
*/
|
|
*/
|
|
-include "root.php";
|
|
|
|
-require_once "resources/require.php";
|
|
|
|
-require_once "resources/check_auth.php";
|
|
|
|
-if (permission_exists("user_add") ||
|
|
|
|
- permission_exists("user_edit") ||
|
|
|
|
- permission_exists("user_delete") ||
|
|
|
|
- if_group("superadmin")) {
|
|
|
|
- //access allowed
|
|
|
|
-}
|
|
|
|
-else {
|
|
|
|
- echo "access denied";
|
|
|
|
- return;
|
|
|
|
-}
|
|
|
|
|
|
+
|
|
|
|
+//includes
|
|
|
|
+ include "root.php";
|
|
|
|
+ require_once "resources/require.php";
|
|
|
|
+ require_once "resources/check_auth.php";
|
|
|
|
+
|
|
|
|
+//check permisions
|
|
|
|
+ if (permission_exists("user_add") ||
|
|
|
|
+ permission_exists("user_edit") ||
|
|
|
|
+ permission_exists("user_delete") ||
|
|
|
|
+ if_group("superadmin")) {
|
|
|
|
+ //access allowed
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ echo "access denied";
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
|
|
//add multi-lingual support
|
|
//add multi-lingual support
|
|
$language = new text;
|
|
$language = new text;
|