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/groups_perm.php
<?php
session_start();
include("../_functions.php");
dbconnect();
if (!is_logged()) auto_login();

echo "<html>\n";
echo "<head>\n";
echo "<title>".COMPANY_NAME." : Permission Groups</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_delete(id) {\n";
	echo "  input_box=confirm(\"Are you sure you want to delete this Employee Category?\");\n";
	echo "  if (input_box==true) {\n";
	echo "    self.location=\"employee_categories.php?del=\"+id;\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 (!admin_panel($_SESSION["auth_user"])) {
	echo "<br><br><br><br>".error("You must be logged in to access the administration panel!");
} else {
	
	if (isset($_GET["del"])) {
		quickUPDATE("UPDATE tbl_employees SET emp_type_id=0 WHERE emp_type_id=".$_GET["del"]);
		quickUPDATE("DELETE FROM tbl_emp_types WHERE emp_type_id=".$_GET["del"]);
	}
	
	if (isset($_POST["newcatgo"])) {
		quickUPDATE("INSERT INTO tbl_emp_types (emp_type) VALUES ('".$_POST["newcat"]."')");
	}
	
	echo "<P><img src=\"/gui/icons/cog.gif\" align=\"left\">\n";
	echo "<div class=\"headline\">Permission Groups</div>\n";
	echo "<P>From this control panel, you have the ability to add/remove employee categories.\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";
?>