Avoid execution outside phpMyAdmin

This is hacky, but avoids path disclossure on direct access to the
scripts.

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-01-27 09:00:22 +01:00
parent d4b9c22c1f
commit 5a3de108f2
2 changed files with 6 additions and 0 deletions

View File

@ -46,6 +46,9 @@
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @link http://phpseclib.sourceforge.net
*/
if (! defined('PHPMYADMIN')) {
exit;
}
namespace phpseclib\Crypt;

View File

@ -51,6 +51,9 @@
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @link http://phpseclib.sourceforge.net
*/
if (! defined('PHPMYADMIN')) {
exit;
}
namespace phpseclib\Crypt;