Location: PHPKode > projects > Aratix > aratix/inc/pages.inc.php
<?php
/*
** Aratix
** Version 0.1.0beta8 (Anubis)
**
** Autor: Manuel Burghammer
** E-Mail: hide@address.com
** Homepage: http://www.xitara.net
**
** File: pages.inc.php - Version 0.1.0 build 7
** Position: /inc/
** Last Modified: 11.06.2006 - 19:09:23
*/

function check_page_acc($db, $page_id, $user_status){
	if($user_status == 99999)
		return TRUE;

	$page_status = $db->read(TB_PAGES, "groups", "id='" . $page_id . "'");
	$user_status_array = explode(" ", $user_status);

	foreach($user_status_array as $user_status_){
// 		echo $page_status[0] . " -- ". $user_status_ . " :: ";

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