OSDN Git Service

FIX:緊急時スキンインポート専用画面の修正
[nucleus-jp/nucleus-next.git] / nucleus / index.php
index 15f9a44..6bc8c7e 100644 (file)
@@ -84,6 +84,19 @@ sendContentType('text/html', 'admin-' . $action);
 
 if ( !Admin::initialize() )
 {
+       $skin = new Skin(0, 'AdminActions', 'AdminSkin');
+       if ( $bNeedsLogin )
+       {
+               $skin->parse('fileparse', $DIR_SKINS . 'admin/showlogin.skn');
+       }
+       else if ($action == 'adminskinieimport' )
+       {
+               Admin::action($action);
+       }
+       else
+       {
+               $skin->parse('importAdmin', $DIR_SKINS . 'admin/defaultimporter.skn');
+       }
        /* TODO: something to handling errors */
        exit;
 }