Prevent direct execution of some files.

This commit is contained in:
Michal Čihař
2010-04-02 09:03:46 +02:00
parent c9465ae77c
commit 2691e959c1
3 changed files with 13 additions and 0 deletions

View File

@@ -15,6 +15,10 @@ define('PMA_MINIMUM_COMMON', TRUE);
define('PMA_SETUP', TRUE);
chdir('..');
if (!file_exists('./libraries/common.inc.php')) {
die('Bad invocation!');
}
require_once './libraries/common.inc.php';
require_once './libraries/url_generating.lib.php';
require_once './setup/lib/messages.inc.php';