HEX
Server: Apache
System: Linux www3.pit.tblive.com 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User: awaldron (1020)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/awaldron/public_html/archive/demo/admin/stats.php
<?php
session_start();
include("../_functions.php");
dbconnect();
if (!is_logged()) auto_login();

echo "<html>\n";
echo "<head>\n";
echo "<title>".COMPANY_NAME." : Administration Index</title>\n";
	echo "<script language=\"JavaScript\" type=\"text/javascript\">\n";
	echo "<!--\n";
	echo "function openWindow(theURL,winName,features) { //v2.0\n";
	echo "	window.open(theURL,winName,features);\n";
	echo "}\n";
	echo "function confirm_shutdown() {\n";
	echo "  input_box=confirm(\"Are you sure you want to shut down the intranet?\");\n";
	echo "  if (input_box==true) {\n";
	echo "    self.location=\"stats.php?site_live=0\";\n";
	echo "  }\n";
	echo "}\n";
	echo "-->\n";
	echo "</script>\n";
echo "</head>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../default.css\">\n";
echo "<body style=\"margin:15px;\">\n";

if (isset($_GET["site_live"])) {
	quickUPDATE("UPDATE tbl_variables SET var_value=".$_GET["site_live"]." WHERE var_name='site_live'");
	update_constants();
}

if (!admin_panel($_SESSION["auth_user"])) {
	echo "<br><br><br><br>".error("You must be logged in to access the administration panel!");
} else {
	
	echo "<P><img src=\"/gui/icons/cog.gif\" align=\"left\">\n";
	echo "<div class=\"headline\">Welcome to IntraBreeze!</div>\n";
	echo "<P>Thank you for choosing IntraBreeze as your intranet solution. This screen will give you a quick overview of all the various statistics of your intranet. You can get back to this page by clicking on the <u>Admin Index</u> link in the left pane. To return to the index of your intranet, click the IntraBreeze logo also in the left pane. The other links on the left hand side of this screen will allow you to control every aspect of your intranet experience. Each screen will have instructions on how to use its respective tools.\n";
	echo "<br><br><br><div class=\"headline\">Intranet Statistics</div>\n";
	echo "<P><center><table class=\"textdn\" width=85% border=1 cellspacing=0 cellpadding=4>\n";
	echo "<tr><td bgcolor=\"#EFEFEF\" width=25%>Number&nbsp;of&nbsp;Active&nbsp;Pages:</td><td width=25%><b>".num_pages(1)."</b></td><td bgcolor=\"#EFEFEF\" width=25%>Number&nbsp;of&nbsp;Discussion&nbsp;Boards:</td><td width=25%><b>".num_boards(1)."</b></td></tr>\n";
	echo "<tr><td bgcolor=\"#EFEFEF\" width=25%>Number&nbsp;of&nbsp;Inactive&nbsp;Pages:</td><td width=25%><b>".num_pages(0)."</b></td><td bgcolor=\"#EFEFEF\" width=25%>Number&nbsp;of&nbsp;Discussion&nbsp;Messages:</td><td width=25%><b>".num_notices(1)."</b></td></tr>\n";
	echo "<tr><td bgcolor=\"#EFEFEF\" width=25%>Number&nbsp;of&nbsp;Noticeboards:</td><td width=25%><b>".num_boards(0)."</b></td><td bgcolor=\"#EFEFEF\" width=25%>Number&nbsp;of&nbsp;Discussion&nbsp;Threads:</td><td width=25%><b>".num_discussions()."</b></td></tr>\n";
	echo "<tr><td bgcolor=\"#EFEFEF\" width=25%>Number&nbsp;of&nbsp;Noticeboard&nbsp;Messages:</td><td width=25%><b>".num_notices(0)."</b></td><td bgcolor=\"#EFEFEF\" width=25%>Number&nbsp;of&nbsp;Thread&nbsp;Messages:</td><td width=25%><b>".num_thread_mesg()."</b></td></tr>\n";
	echo "<tr><td bgcolor=\"#EFEFEF\" width=25%>Number&nbsp;of&nbsp;Active Users:</td><td width=25%><b>".num_employees(1)."</b></td><td bgcolor=\"#EFEFEF\" width=25%>Database&nbsp;Size:</td><td width=25%><b>".db_size(0)."</b></td></tr>\n";
	echo "<tr><td bgcolor=\"#EFEFEF\" width=25%>Number&nbsp;of&nbsp;Deleted Users:</td><td width=25%><b>".num_employees(0)."</b></td><td bgcolor=\"#EFEFEF\" width=25%>Site&nbsp;Created:</td><td width=25%><b>".date("F j, Y h:i a",SITE_CREATED)."</b></td></tr>\n";
	echo "</table>";
	
	echo "<P>The time is now <b>".date("l, F j, Y h:i a",time())."</b>";
	
	echo "</center>\n";
	
	echo "<br><br><br><div class=\"headline\">Recent Users</div>\n"	;
	echo "<br>The following users have been active within the past 10 minutes:<P>\n";
	$active_users = active_users();
	for ($i=0; $i < count($active_users); $i++) {
		if ($i != 0) echo ", ";
		echo "<a href=\"/profile.php?u=".$active_users[$i]."\" target=\"profile\">".$active_users[$i]."</a>";
	}
	
	$status = (isset($_GET[site_live])?$_GET["site_live"]:SITE_LIVE);
	echo "<br><br><br><div class=\"headline\">Intranet Status : ".($status==1?"<span style=\"color:009900\">Up And Running</span>":"<span style=\"color:CC0000\">Down for Maintenance</span>")."</div>\n";
	echo "<P><table class=\"textdn\" border=0><tr>";
	echo "<td><img src=\"../gui/clear.gif\" width=25 height=1></td>\n";
	
	if ($status == 0) echo "<td align=center><a href=\"stats.php?site_live=1\"><img src=\"../gui/btn_on_".($status==0?"off":"on").".gif\" border=0></a></td>\n";
	else echo "<td align=center><img src=\"../gui/btn_on_".($status==0?"off":"on").".gif\"></td>\n";
	
	echo "<td><img src=\"../gui/clear.gif\" width=50 height=1></td>\n";
	
	if ($status == 1) echo "<td align=center><a href=\"#\" onClick=\"confirm_shutdown()\"><img src=\"../gui/btn_off_".($status==1?"off":"on").".gif\" border=0></a></td>\n";
	else echo "<td align=center><img src=\"../gui/btn_off_".($status==1?"off":"on").".gif\"></td>\n";
	
	echo "</tr></table>\n";
	echo "<br><br><br><br>\n";
	echo "<center>Powered by <a href=\"http://www.intrabreeze.com\">IntraBreeze</a> &copy; 2005 IntraBreeze, LLC</center>\n";
}

echo "</body>\n</html>\n";
?>