Location: PHPKode > projects > Athena Research Assistant > athena-dev-0.1pre-alpha/includes/get_group_info.inc.php
<?php
$gID = $_SESSION["userGROUPID"];

$query = mysql_query("SELECT * FROM ath_groups WHERE ath_groups_id=$gID");

if (!$query){
	echo("<p class=\"red\">\$query failed to retrieve group permission data in get_group_info.inc.php</p>");
	echo(mysql_error());
	exit();
}

$ROWpermissions = mysql_fetch_array($query);

$_SESSION["ADDUSER"] = $ROWpermissions["ath_groups_addUSERS"];
$_SESSION["VIEWUSERS"] = $ROWpermissions["ath_groups_viewUSERS"];

$_SESSION["ADDGROUPS"] = $ROWpermissions["ath_groups_addGROUPS"];
$_SESSION["VIEWGROUPS"] = $ROWpermissions["ath_groups_viewGROUPS"];

$_SESSION["ADDPROJECT"] = $ROWpermissions["ath_groups_addPROJECT"];
$_SESSION["ADDNOTES"] = $ROWpermissions["ath_groups_addNOTES"];
$_SESSION["ADDRESRC"] = $ROWpermissions["ath_groups_addRESRC"];
$_SESSION["ADDTOPUBLIC"] = $ROWpermissions["ath_groups_addtoPUBLIC"];

$_SESSION["ADMINISTRATE"] = $ROWpermissions["ath_groups_ADMINISTRATE"];
?>
Return current item: Athena Research Assistant