From: Brion Vibber Date: Fri, 6 Aug 2004 22:02:11 +0000 (+0000) Subject: Close include hole on some insecure PHP configurations X-Git-Tag: 1.5.0alpha1~2494 X-Git-Url: https://git.cyclocoop.org/?a=commitdiff_plain;h=b11ce40f4bef7bb415e24ef60517097ca99781c1;p=lhc%2Fweb%2Fwiklou.git Close include hole on some insecure PHP configurations --- diff --git a/includes/SkinPHPTal.php b/includes/SkinPHPTal.php index ad717d56f8..3206b5e700 100644 --- a/includes/SkinPHPTal.php +++ b/includes/SkinPHPTal.php @@ -26,6 +26,7 @@ # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # http://www.gnu.org/copyleft/gpl.html +if( defined( "MEDIAWIKI" ) ) { require_once "GlobalFunctions.php"; global $IP; require_once $IP."/PHPTAL-NP-0.7.0/libs/PHPTAL.php"; @@ -630,5 +631,5 @@ $this->skinname = "myskin"; } } - +} ?>