Location: PHPKode > projects > Aratix > inc/modules.inc.php
<?php
/*
** Aratix
** Version 0.1.0beta8 (Anubis)
**
** Autor: Manuel Burghammer
** E-Mail: hide@address.com
** Homepage: http://www.xitara.net
**
** File: modules.inc.php - Version 0.1.0 build 12
** Position: /inc/
** Last Modified: 16.06.2006 - 16:20:11
*/

function check_module_acc($db, $module, $user_status){
	if($user_status == 99999)
		return TRUE;

	$page_status = $db->read(TB_MODULES, "groups", "name='" . $module . "'");
	$user_status_array = $GLOBALS['user']->group_array($user_status);

	foreach($user_status_array as $user_status_){
		if(strpos($page_status[0], $user_status_) !== FALSE || strpos($page_status[0], "|2|") !== FALSE)
			return TRUE;
	}
	return FALSE;
}
?>
Return current item: Aratix