OSDN Git Service

NP_gallery v0.95
[nucleus-jp/nucleus-plugins.git] / NP_gallery / tags / v0.95 / gallery / config.php
diff --git a/NP_gallery/tags/v0.95/gallery/config.php b/NP_gallery/tags/v0.95/gallery/config.php
new file mode 100644 (file)
index 0000000..dde0d23
--- /dev/null
@@ -0,0 +1,28 @@
+<?php\r
+//NP_gallery config\r
+\r
+global $DIR_NUCLEUS,$DIR_LIBS;\r
+\r
+global $NP_GALLERY_DIR, $NP_BASE_DIR;\r
+$NP_GALLERY_DIR = dirname(__FILE__) . '/';\r
+$NP_BASE_DIR = dirname(dirname(dirname(dirname(__FILE__)))) . '/';\r
+\r
+\r
+include_once($NP_GALLERY_DIR.'functions.php');\r
+include_once($NP_GALLERY_DIR.'list_class.php');\r
+include_once($NP_GALLERY_DIR.'album_class.php');\r
+include_once($NP_GALLERY_DIR.'picture_class.php');\r
+include_once($NP_GALLERY_DIR.'member_class.php');\r
+include_once($NP_GALLERY_DIR.'forms.php');\r
+include_once($NP_GALLERY_DIR.'admin.php');\r
+include_once($NP_GALLERY_DIR.'template.php');\r
+include_once($NP_GALLERY_DIR.'comments.php');\r
+include_once($NP_GALLERY_DIR.'language/english.php'); //change this for different language\r
+\r
+global $NPG_CONF, $member, $gmember;\r
+$NPG_CONF = getNPGConfig();\r
+$gmember = new GALLERY_MEMBER;\r
+if($member->getID()) $gmember->readFromID($member->getID()); else $gmember->makeguest();\r
+$gmember->loggedin = $member->isloggedin();\r
+\r
+?>\r