mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-17 05:58:26 +00:00
Check for the adminer permission to increase security.
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
<?php
|
||||
|
||||
//includes
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
|
||||
//check permission
|
||||
if (permission_exists('adminer')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
/** Adminer - Compact database management
|
||||
* @link http://www.adminer.org/
|
||||
* @author Jakub Vrana, http://www.vrana.cz/
|
||||
|
||||
Reference in New Issue
Block a user