<?php\r
\r
-include('.\..\..\..\..\config.php');\r
-global $DIR_PLUGINS;\r
-include_once ($DIR_PLUGINS.'gallery/config.php');\r
+require_once('./../../../../config.php');\r
+global $member;\r
+if (!($member->isLoggedIn() && $member->isAdmin())) exit('You are not admin.');\r
+include_once (dirname(__FILE__).'/../config.php');\r
\r
//from 0.61a to 0.75\r
global $NPG_CONF;\r
\r
setNPGoption('currentversion',75);\r
\r
-include('np_gallery_update075.php');\r
+include(dirname(__FILE__).'/np_gallery_update075.php');\r
?>\r