codes****@googl*****
codes****@googl*****
2008年 10月 1日 (水) 02:04:15 JST
Author: hiror****@gmail***** Date: Tue Sep 30 10:03:56 2008 New Revision: 57 Modified: trunk/upkit/plugin_1.5.0/config.php trunk/upkit/plugin_1.5.0/functions.inc trunk/upkit/plugin_1.5.0/install_defaults.php Log: インクルード対策を追加 Modified: trunk/upkit/plugin_1.5.0/config.php ============================================================================== --- trunk/upkit/plugin_1.5.0/config.php (original) +++ trunk/upkit/plugin_1.5.0/config.php Tue Sep 30 10:03:56 2008 @@ -35,6 +35,10 @@ // | | // +---------------------------------------------------------------------------+ +if (strpos(strtolower($_SERVER['PHP_SELF']), 'config.php') !== false) { + die('This file can not be used on its own.'); +} + $_{conf_var_prefix}_CONF['version'] = '1.0.0'; // Plugin Version /* Modified: trunk/upkit/plugin_1.5.0/functions.inc ============================================================================== --- trunk/upkit/plugin_1.5.0/functions.inc (original) +++ trunk/upkit/plugin_1.5.0/functions.inc Tue Sep 30 10:03:56 2008 @@ -35,7 +35,7 @@ // | | // +---------------------------------------------------------------------------+ -if (strpos($_SERVER['PHP_SELF'], 'functions.inc') !== false) { +if (strpos(strtolower($_SERVER['PHP_SELF']), 'functions.inc') !== false) { die('This file can not be used on its own.'); } Modified: trunk/upkit/plugin_1.5.0/install_defaults.php ============================================================================== --- trunk/upkit/plugin_1.5.0/install_defaults.php (original) +++ trunk/upkit/plugin_1.5.0/install_defaults.php Tue Sep 30 10:03:56 2008 @@ -35,7 +35,7 @@ // | | // +---------------------------------------------------------------------------+ -if (strpos($_SERVER['PHP_SELF'], 'install_defaults.php') !== false) { +if (strpos(strtolower($_SERVER['PHP_SELF']), 'install_defaults.php') !== false) { die('This file can not be used on its own!'); }