Check for the adminer permission to increase security.

This commit is contained in:
markjcrane 2016-06-02 09:54:47 -06:00
parent 207e7616b1
commit e21d344cfd
1 changed files with 10 additions and 0 deletions

View File

@ -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/