Files
Testing/arrowchat5/admin/layout/pages_header.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

275 lines
13 KiB
PHP

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<title><?php if (!empty($title)) echo $title; else echo "ArrowChat Administration Panel"; ?></title>
<link rel="stylesheet" type="text/css" href="includes/css/style.css" />
<link rel="stylesheet" href="includes/css/menu/core.css" type="text/css" media="screen">
<link rel="stylesheet" href="includes/css/menu/styles/sblue.css" type="text/css" media="screen">
<link rel="stylesheet" href="includes/css/itip/itip.css" type="text/css" media="screen">
<link rel="stylesheet" href="includes/css/itip/animate.css" type="text/css" media="screen">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
<script type="text/javascript" src="includes/css/itip/modernizr.js"></script>
<script type="text/javascript" src="includes/css/itip/itip.min.js"></script>
<!--[if (gt IE 9)|!(IE)]><!-->
<link rel="stylesheet" href="includes/css/menu/effects/slide.css" type="text/css" media="screen">
<!--<![endif]-->
<!-- This piece of code, makes the CSS3 effects available for IE -->
<!--[if lte IE 9]>
<script src="includes/js/menu.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(function() {
$("#menu").menu({ 'effect' : 'slide' });
});
</script>
<![endif]-->
<!-- responsive -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="includes/css/responsive.css">
<link rel="stylesheet" href="includes/css/slicknav.css">
<script src="includes/js/modernizr.min.js"></script>
<script src="includes/js/jquery.slicknav.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('#menu').slicknav();
});
</script>
<!-- end -->
</head>
<body>
<div id="wrapper">
<div id="topnav">
<div id="topnavcontent">
<div style="float: left; padding-top:8px; padding-left:20px;">
<img id="logo" style="width: 206px; height: 28px;" src="images/img-logo.png" height="28" width="206" border="0" alt="" />
</div>
<div style="float: left; position: relative; top: 17px; padding-left: 20px;">
<a href="../../">Visit Site &#187;</a>
</div>
<div style="float: right; padding-top:17px; margin-right:20px">
Howdy, <a href="system.php?do=adminsettings"><?php echo $admin_username; ?></a> | <a href="index.php?do=logout">Log Out</a>
</div>
</div>
</div>
<div id="subnavwrapper">
<div id="subnav">
<ul class="menu sblue" id="menu">
<li><a href="./">Overview</a>
<ul>
<li><a href="./general.php?do=embedcodes">Embed Codes</a></li>
<li><a href="./general.php?do=chatfeatures">General Features</a></li>
<li><a href="./general.php?do=chatsettings">General Settings</a></li>
</ul>
</li>
<?php
if (ARROWCHAT_EDITION != "lite")
{
?>
<li><a href="./manage.php?do=chatroomsettings">Manage</a>
<ul>
<li><a href="./manage.php?do=chatroomsettings">Chat Rooms</a></li>
<li><a href="./manage.php?do=notificationsettings">Notifications</a></li>
</ul>
</li>
<?php
}
?>
<li><a href="./users.php?do=manageusers">Users</a>
<ul>
<li><a href="./users.php?do=manageusers">Manage Users</a></li>
<li><a href="./users.php?do=manageadmins">Manage Mods/Admins</a></li>
<li><a href="./users.php?do=groups">Group Permissions</a></li>
<li><a href="./users.php?do=banusernames">Ban Usernames</a></li>
<li><a href="./users.php?do=banip">Ban IP Addresses</a></li>
</ul>
</li>
<li><a href="./general.php?do=chatstyle">Appearance<?php if ($themes_have_update) { ?><span class="bubble-top"><?php echo $themes_update_count; ?></span><?php } ?></a>
<ul>
<li><a href="./general.php?do=chatstyle">General Settings</a></li>
<li><a href="./themes.php?do=smilies">Emojis</a></li>
<li><a href="./themes.php?do=managethemes">Themes<?php if ($themes_have_update) { ?><span class="bubble"><?php echo $themes_update_count; ?></span><?php } ?></a></li>
</ul>
</li>
<li><a href="./system.php?do=configsettings">System<?php if ($arrowchat_has_update) { ?><span class="bubble-top">1</span><?php } ?></a>
<ul>
<li><a href="./system.php?do=adminsettings">Admin Settings</a></li>
<li><a href="./system.php?do=configsettings">Configuration</a></li>
<li><a href="./system.php?do=language">Languages</a></li>
<li><a href="./system.php?do=maintenance">Maintenance</a></li>
<li><a href="./system.php?do=update">Update ArrowChat<?php if ($arrowchat_has_update) { ?><span class="bubble">1</span><?php } ?></a></li>
</ul>
</li>
<ul>
</div>
</div>
<div class="breadcrumbs">
<div class="breadcrumbs_container">
<?php if (empty($_GET['do']) OR $_GET['do'] == '/' OR $_GET['do'] == 'delete_history') { ?>Overview<?php } ?>
<?php if ($_GET['do'] == 'embedcodes') { ?>Embed Codes<?php } ?>
<?php if ($_GET['do'] == 'chatfeatures') { ?>General Features<?php } ?>
<?php if ($_GET['do'] == 'chatsettings') { ?>General Settings<?php } ?>
<?php if ($_GET['do'] == 'chatroomsettings' OR $_GET['do'] == 'chatroomedit' OR $_GET['do'] == 'chatroomlogs') { ?>Chat Rooms<?php } ?>
<?php if ($_GET['do'] == 'notificationsettings' OR $_GET['do'] == 'notificationsedit') { ?>Notifications<?php } ?>
<?php if ($_GET['do'] == 'manageusers' OR $_GET['do'] == 'logs' OR $_GET['do'] == 'view') { ?>Manage Users<?php } ?>
<?php if ($_GET['do'] == 'manageadmins' OR $_GET['do'] == 'actions') { ?>Manage Mods/Admins<?php } ?>
<?php if ($_GET['do'] == 'groups' OR $_GET['do'] == 'groupsedit') { ?>Group Permissions<?php } ?>
<?php if ($_GET['do'] == 'banusernames') { ?>Ban Usernames<?php } ?>
<?php if ($_GET['do'] == 'banip') { ?>Ban IP Addresses<?php } ?>
<?php if ($_GET['do'] == 'chatstyle') { ?>General Appearance<?php } ?>
<?php if ($_GET['do'] == 'smilies') { ?>Emojis<?php } ?>
<?php if ($_GET['do'] == 'managethemes' OR $_GET['do'] == 'install' OR $_GET['do'] == 'edit' OR $_GET['do'] == 'color') { ?>Themes<?php } ?>
<?php if ($_GET['do'] == 'adminsettings') { ?>Admin Settings<?php } ?>
<?php if ($_GET['do'] == 'configsettings') { ?>Configuration<?php } ?>
<?php if ($_GET['do'] == 'language') { ?>Languages<?php } ?>
<?php if ($_GET['do'] == 'maintenance' OR $_GET['do'] == 'maintenance2') { ?>Maintenance<?php } ?>
<?php if ($_GET['do'] == 'repair') { ?>Repair ArrowChat<?php } ?>
<?php if ($_GET['do'] == 'update' OR $_GET['do'] == 'step1' OR $_GET['do'] == 'step2' OR $_GET['do'] == 'step3' OR $_GET['do'] == 'step5') { ?>Update ArrowChat<?php } ?>
</div>
</div>
<div id="content">
<div id="leftcontent">
<?php
if (empty($_GET['do']) OR $_GET['do'] == '/' OR $_GET['do'] == 'chatfeatures' OR $_GET['do'] == 'chatsettings' OR $_GET['do'] == 'delete_history' OR $_GET['do'] == 'embedcodes')
{
?>
<div class="admin_title_bg">
<ul id ="menu-general">
<li class="navHead">Home</li>
<li <?php if (empty($_GET['do']) OR $_GET['do'] == '/' OR $_GET['do'] == 'delete_history') { ?>class="active_nav"<?php } ?>><a href="./">Overview</a></li>
<li <?php if ($_GET['do'] == 'embedcodes') { ?>class="active_nav"<?php } ?>><a href="general.php?do=embedcodes">Embed Codes</a></li>
<li <?php if ($_GET['do'] == 'chatfeatures') { ?>class="active_nav"<?php } ?>><a href="general.php?do=chatfeatures">General Features</a></li>
<li <?php if ($_GET['do'] == 'chatsettings') { ?>class="active_nav"<?php } ?>><a href="general.php?do=chatsettings">General Settings</a></li>
</ul>
</div>
<?php
}
?>
<?php
if ($_GET['do'] == 'appsettings' OR $_GET['do'] == 'traylinks' OR $_GET['do'] == 'traylinksedit' OR $_GET['do'] == 'chatroomsettings' OR $_GET['do'] == 'notificationsettings' OR $_GET['do'] == 'appsedit' OR $_GET['do'] == 'chatroomedit' OR $_GET['do'] == 'chatroomlogs' OR $_GET['do'] == 'notificationsedit')
{
?>
<div class="admin_title_bg">
<ul id ="menu-manage">
<li class="navHead">Manage</li>
<li <?php if ($_GET['do'] == 'chatroomsettings' OR $_GET['do'] == 'chatroomedit' OR $_GET['do'] == 'chatroomlogs') { ?>class="active_nav"<?php } ?>><a href="manage.php?do=chatroomsettings">Chat Rooms</a></li>
<li <?php if ($_GET['do'] == 'notificationsettings' OR $_GET['do'] == 'notificationsedit') { ?>class="active_nav"<?php } ?>><a href="manage.php?do=notificationsettings">Notifications</a></li>
</ul>
<?php
if (!empty($feature_disabled))
{
?>
<div class="feature-disabled">
<b><?php echo $feature_disabled; ?> Disabled</b><br />This feature is disabled and will not display in the bar regardless of these settings. You can enable it under general features.
</div>
<?php
}
?>
</div>
<?php
}
?>
<?php
if ($_GET['do'] == 'banip' OR $_GET['do'] == 'banusernames' OR $_GET['do'] == 'manageusers' OR $_GET['do'] == 'manageadmins' OR $_GET['do'] == 'logs' OR $_GET['do'] == 'view' OR $_GET['do'] == 'actions' OR $_GET['do'] == 'groups' OR $_GET['do'] == 'groupsedit')
{
?>
<div class="admin_title_bg">
<ul id ="menu-users">
<li class="navHead">Users</li>
<li <?php if ($_GET['do'] == 'manageusers' OR $_GET['do'] == 'logs' OR $_GET['do'] == 'view') { ?>class="active_nav"<?php } ?>><a href="users.php?do=manageusers">Manage Users</a></li>
<li <?php if ($_GET['do'] == 'manageadmins' OR $_GET['do'] == 'actions') { ?>class="active_nav"<?php } ?>><a href="users.php?do=manageadmins">Manage Mods/Admins</a></li>
<li <?php if ($_GET['do'] == 'groups' OR $_GET['do'] == 'groupsedit') { ?>class="active_nav"<?php } ?>><a href="users.php?do=groups">Group Permissions</a></li>
<li <?php if ($_GET['do'] == 'banusernames') { ?>class="active_nav"<?php } ?>><a href="users.php?do=banusernames">Ban Usernames</a></li>
<li <?php if ($_GET['do'] == 'banip') { ?>class="active_nav"<?php } ?>><a href="users.php?do=banip">Ban IP Addresses</a></li>
</ul>
</div>
<?php
}
?>
<?php
if ($_GET['do'] == 'managethemes' OR $_GET['do'] == 'smilies' OR $_GET['do'] == 'chatstyle' OR $_GET['do'] == 'install' OR $_GET['do'] == 'edit' OR $_GET['do'] == 'color')
{
?>
<div class="admin_title_bg">
<ul id ="menu-themes">
<li class="navHead">Appearance</li>
<li <?php if ($_GET['do'] == 'chatstyle') { ?>class="active_nav"<?php } ?>><a href="general.php?do=chatstyle">General Settings</a></li>
<li <?php if ($_GET['do'] == 'smilies') { ?>class="active_nav"<?php } ?>><a href="themes.php?do=smilies">Emojis</a></li>
<li <?php if ($_GET['do'] == 'managethemes' OR $_GET['do'] == 'install' OR $_GET['do'] == 'edit' OR $_GET['do'] == 'color') { ?>class="active_nav"<?php } ?>><a href="themes.php?do=managethemes">Themes<?php if ($themes_have_update) { ?> (<?php echo $themes_update_count; ?>)<?php } ?></a></li>
</ul>
</div>
<?php
}
?>
<?php
if ($_GET['do'] == 'adminsettings' OR $_GET['do'] == 'configsettings' OR $_GET['do'] == 'language' OR $_GET['do'] == 'update' OR $_GET['do'] == 'repair' OR $_GET['do'] == 'maintenance' OR $_GET['do'] == 'maintenance2' OR $_GET['do'] == 'step1' OR $_GET['do'] == 'step2' OR $_GET['do'] == 'step3' OR $_GET['do'] == 'step5')
{
?>
<div class="admin_title_bg">
<ul id ="menu-system">
<li class="navHead">System</li>
<li <?php if ($_GET['do'] == 'adminsettings') { ?>class="active_nav"<?php } ?>><a href="system.php?do=adminsettings">Admin Settings</a></li>
<li <?php if ($_GET['do'] == 'configsettings') { ?>class="active_nav"<?php } ?>><a href="system.php?do=configsettings">Configuration</a></li>
<li <?php if ($_GET['do'] == 'language') { ?>class="active_nav"<?php } ?>><a href="system.php?do=language">Languages</a></li>
<li <?php if ($_GET['do'] == 'maintenance' OR $_GET['do'] == 'maintenance2') { ?>class="active_nav"<?php } ?>><a href="system.php?do=maintenance">Maintenance</a></li>
<li <?php if ($_GET['do'] == 'update' OR $_GET['do'] == 'step1' OR $_GET['do'] == 'step2' OR $_GET['do'] == 'step3' OR $_GET['do'] == 'step5') { ?>class="active_nav"<?php } ?>><a href="system.php?do=update">Update ArrowChat<?php if ($arrowchat_has_update) { ?> (1)<?php } ?></a></li>
</ul>
</div>
<?php
}
?>
</div>
<div id="rightcontent">
<?php
if (!$install)
{
?>
<div class="notify-msg">
You should immediately delete or rename the ArrowChat install directory for security reasons.
</div>
<?php
}
?>
<?php
if (!$write)
{
?>
<div class="notify-msg">
It is highly recommended that you CHMOD the includes/config.php file to 644 or 444 before using ArrowChat.
</div>
<?php
}
?>
<?php
if (!empty($error))
{
?>
<div class="error-msg-wrapper">
<div class="error-msg">
<?php echo $error; ?>
</div>
</div>
<?php
}
?>
<?php
if (!empty($msg))
{
?>
<div class="success-msg-wrapper">
<div class="success-msg">
<?php echo $msg; ?>
</div>
</div>
<?php
}
?>