X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=nucleus%2Findex.php;h=fed8f8dda343a962c86801baf924000c27998538;hb=refs%2Fheads%2Fmaster;hp=938a97c985f36b06f357e0e61d9f935b17afd523;hpb=18cb189cad944f436b11a58a2afe8fd73434fa92;p=nucleus-jp%2Fnucleus-next.git diff --git a/nucleus/index.php b/nucleus/index.php index 938a97c..fed8f8d 100644 --- a/nucleus/index.php +++ b/nucleus/index.php @@ -1,7 +1,7 @@ >>>>>> skinnable-master */ // we are using admin stuff: @@ -44,7 +49,6 @@ if ( $CONF['alertOnSecurityRisk'] == 1 ) } if ( sizeof($aFound) > 0 ) { - sendContentType('text/html', 'startUpError'); startUpError( _ERRORS_STARTUPERROR1. implode($aFound, '
  • ')._ERRORS_STARTUPERROR2, _ERRORS_STARTUPERROR3 @@ -79,7 +83,27 @@ if ( $bNeedsLogin ) $action = 'showlogin'; } -sendContentType('text/html', 'admin-' . $action); +if ( !Admin::initialize() ) +{ + /* TODO: this is a bad way... */ + sendContentType('text/html', 'admin-' . $action); + + $skin =& $manager->getSkin(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; +} -$admin = new Admin(); -$admin->action($action); +Admin::action($action); +exit;