95 lines
3.2 KiB
PHP
95 lines
3.2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Copyright (C) 2008-2012 FluxBB
|
|
* based on code by Rickard Andersson copyright (C) 2002-2008 PunBB
|
|
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
|
|
*/
|
|
|
|
// Tell header.php to use the admin template
|
|
define('PUN_ADMIN_CONSOLE', 1);
|
|
|
|
define('PUN_ROOT', dirname(__FILE__).'/');
|
|
require PUN_ROOT.'include/common.php';
|
|
require PUN_ROOT.'include/common_admin.php';
|
|
|
|
|
|
if (!$pun_user['is_admmod'])
|
|
message($lang_common['No permission'], false, '403 Forbidden');
|
|
|
|
// Load the admin_index.php language file
|
|
require PUN_ROOT.'lang/'.$admin_language.'/admin_index.php';
|
|
|
|
$action = $_GET['action'] ?? null;
|
|
|
|
// Remove install.php
|
|
if ($action === 'remove_install_file')
|
|
{
|
|
$deleted = @unlink(PUN_ROOT.'install.php');
|
|
|
|
if ($deleted)
|
|
redirect('admin_index.php', $lang_admin_index['Deleted install.php redirect']);
|
|
else
|
|
message($lang_admin_index['Delete install.php failed']);
|
|
}
|
|
|
|
$install_file_exists = is_file(PUN_ROOT.'install.php');
|
|
|
|
$page_title = array(pun_htmlspecialchars($pun_config['o_board_title']), $lang_admin_common['Admin'], $lang_admin_common['Index']);
|
|
define('PUN_ACTIVE_PAGE', 'admin');
|
|
require PUN_ROOT.'header.php';
|
|
|
|
generate_admin_menu('index');
|
|
|
|
?>
|
|
<div class="block">
|
|
<h2><span><?php echo $lang_admin_index['Forum admin head'] ?></span></h2>
|
|
<div id="adintro" class="box">
|
|
<div class="inbox">
|
|
<p><?php echo $lang_admin_index['Welcome to admin'] ?></p>
|
|
<ul>
|
|
<li><span><?php echo $lang_admin_index['Welcome 1'] ?></span></li>
|
|
<li><span><?php echo $lang_admin_index['Welcome 2'] ?></span></li>
|
|
<li><span><?php echo $lang_admin_index['Welcome 3'] ?></span></li>
|
|
<li><span><?php echo $lang_admin_index['Welcome 4'] ?></span></li>
|
|
<li><span><?php echo $lang_admin_index['Welcome 5'] ?></span></li>
|
|
<li><span><?php echo $lang_admin_index['Welcome 6'] ?></span></li>
|
|
<li><span><?php echo $lang_admin_index['Welcome 7'] ?></span></li>
|
|
<li><span><?php echo $lang_admin_index['Welcome 8'] ?></span></li>
|
|
<li><span><?php echo $lang_admin_index['Welcome 9'] ?></span></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<?php if ($install_file_exists) : ?>
|
|
<h2 class="block2"><span><?php echo $lang_admin_index['Alerts head'] ?></span></h2>
|
|
<div id="adalerts" class="box">
|
|
<p><?php printf($lang_admin_index['Install file exists'], '<a href="admin_index.php?action=remove_install_file">'.$lang_admin_index['Delete install file'].'</a>') ?></p>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<h2 class="block2"><span><?php echo $lang_admin_index['About head'] ?></span></h2>
|
|
<div id="adstats" class="box">
|
|
<div class="inbox">
|
|
<dl>
|
|
<dt><?php echo $lang_admin_index['FluxBB version label'] ?></dt>
|
|
<dd>
|
|
<?php printf($lang_admin_index['FluxBB version data']."\n", $pun_config['o_cur_version'].'.'.$pun_config['o_cur_ver_revision']) ?>
|
|
</dd>
|
|
<dt><?php echo $lang_admin_index['Server statistics label'] ?></dt>
|
|
<dd>
|
|
<a href="admin_statistics.php"><?php echo $lang_admin_index['View server statistics'] ?></a>
|
|
</dd>
|
|
<dt><?php echo $lang_admin_index['Support label'] ?></dt>
|
|
<dd>
|
|
<a href="https://github.com/MioVisman/FluxBB_by_Visman">GitHub</a>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="clearer"></div>
|
|
</div>
|
|
<?php
|
|
|
|
require PUN_ROOT.'footer.php';
|