本文整理汇总了PHP中html_admin函数的典型用法代码示例。如果您正苦于以下问题:PHP html_admin函数的具体用法?PHP html_admin怎么用?PHP html_admin使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_admin函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setTmpConfig
// 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');
示例2: tpl_admin
/**
* Handle the admin page contents
*
* @author Andreas Gohr <andi@splitbrain.org>
*/
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;
}
示例3: tpl_admin
/**
* Handle the admin page contents
*
* @author Andreas Gohr <andi@splitbrain.org>
*/
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;
}