// add finished flag to config setTmpConfig('install_finished', 'done'); // redirect to last page header('Location: install.php?step=' . ($step + 1)); exit; } } html_header(); if ($error != '') { html_error(); } else { if (isset($config['admin_username'])) { setTmpConfig('step', STEP_FINALISE); } } html_admin(); html_footer(); break; case STEP_FINALISE: // Finally check if everything is set up properly and tell the user so // write real config file writeConfig(); $page_title = $language['title_finished']; html_header(); if ($error != '') { html_error(); } html_finish(); html_footer(); // delete temp config + created test images!! $files_to_remove = array('albums/combined_generated.jpg', 'albums/giftest_generated.gif', 'albums/giftest_generated.jpg', 'albums/jpgtest_generated.jpg', 'albums/pngtest_generated.jpg', 'albums/pngtest_generated.png', 'albums/scaled_generated.jpg', 'albums/texttest_generated.jpg', 'include/config.tmp.php');
/** * Handle the admin page contents * * @author Andreas Gohr <*****@*****.**> */ function tpl_admin() { global $INFO; global $TOC; global $INPUT; $plugin = null; $class = $INPUT->str('page'); if (!empty($class)) { $pluginlist = plugin_list('admin'); if (in_array($class, $pluginlist)) { // attempt to load the plugin /** @var $plugin DokuWiki_Admin_Plugin */ $plugin =& plugin_load('admin', $class); } } if ($plugin !== null) { if (!is_array($TOC)) { $TOC = $plugin->getTOC(); } //if TOC wasn't requested yet if ($INFO['prependTOC']) { tpl_toc(); } $plugin->html(); } else { html_admin(); } return true; }
/** * Handle the admin page contents * * @author Andreas Gohr <*****@*****.**> */ function tpl_admin() { global $INFO; global $TOC; $plugin = null; if (!empty($_REQUEST['page'])) { $pluginlist = plugin_list('admin'); if (in_array($_REQUEST['page'], $pluginlist)) { // attempt to load the plugin $plugin =& plugin_load('admin', $_REQUEST['page']); } } if ($plugin !== null) { if ($plugin->forAdminOnly() && !$INFO['isadmin']) { msg('For admins only', -1); html_admin(); } else { if (!is_array($TOC)) { $TOC = $plugin->getTOC(); } //if TOC wasn't requested yet if ($INFO['prependTOC']) { tpl_toc(); } $plugin->html(); } } else { html_admin(); } return true; }