X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=nucleus%2Findex.php;h=fed8f8dda343a962c86801baf924000c27998538;hb=refs%2Fheads%2Fmaster;hp=8c40df6c699fc69773203f451e1e5fe5a9679d3c;hpb=0d5b80e7835b1d7a9b47f60cdebeb871172d10d8;p=nucleus-jp%2Fnucleus-next.git diff --git a/nucleus/index.php b/nucleus/index.php index 8c40df6..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,12 +83,24 @@ if ( $bNeedsLogin ) $action = 'showlogin'; } -/* FIXME: Skin class also output this HTTP1.1 headers -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; }