Location: PHPKode > projects > Aratix > aratix/classes/Link.class.php
<?php
/*
** Aratix
** Version 0.1.0beta8 (Anubis)
**
** Autor: Manuel Burghammer
** E-Mail: hide@address.com
** Homepage: http://www.xitara.net
**
** File: Link.class.php - Version 0.1.0 build 1
** Position: /classes/
** Last Modified: 02.01.2006 - 20:37:07
*/

class Link{
	function __contruct(){

	}
	function generate($page_id){
		if(ereg("[0-9]", $page_id))
			$link = "index.php?" . $GLOBALS['session_string'] . "id=" . $page_id;
		else
			$link = "index.php?" . $GLOBALS['session_string'] . "module=" . $page_id;

		return $link;
	}
// 	function admin($module){
// 		$link = "index.php?" . $GLOBALS['session_string'] . "module=" . $module;
//
// 		return $link;
// 	}
}
?>
Return current item: Aratix