Close include hole on some insecure PHP configurations
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 6 Aug 2004 22:02:11 +0000 (22:02 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 6 Aug 2004 22:02:11 +0000 (22:02 +0000)
includes/SkinPHPTal.php

index ad717d5..3206b5e 100644 (file)
@@ -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";
                        $this->skinname = "myskin";
                }
        }
-
+}
 ?>