Location: PHPKode > projects > Aratix > aratix/classes/My.class.php
<?php
/*
** Aratix
** Version 0.1.0beta8 (Anubis)
**
** Autor: Manuel Burghammer
** E-Mail: hide@address.com
** Homepage: http://www.xitara.net
**
** File: My.class.php - Version 0.1.0 build 13
** Position: /classes/
** Last Modified: 27.05.2006 - 23:21:42
*/

class My{
	function __contruct(){

	}
	function table($my_table){
		$this->table = TB_PREFIX . $my_table;
	}
	function menu_text($my_item){
		$menu_list = $GLOBALS['db']->read(TB_LANG . "_" . $GLOBALS['language'], "text", "var='block_" . $GLOBALS['block']['name'] . "_" . $my_item . "'");
		$GLOBALS['debug']->write(DEBUG, "Menütext: " . $menu_list['text'], __FILE__, __CLASS__, __METHOD__, __FUNCTION__, __LINE__);
		return $menu_list['text'];
	}
	function id(){
		$my_id = $GLOBALS['db']->read(TB_SESSION, "user_id", "session='" . get('session') . "' AND user_md5='" . get('ident') . "'");
		$GLOBALS['debug']->write(DEBUG, "Id: " . $my_id['user_id'], __FILE__, __CLASS__, __METHOD__, __FUNCTION__, __LINE__);
		return $my_id['user_id'];
	}
	function login(){
		$my_name = $GLOBALS['db']->read(TB_SESSION, "user", "session='" . get('session') . "' AND user_md5='" . get('ident') . "'");
		$GLOBALS['debug']->write(DEBUG, "Login: " . $my_name['user'], __FILE__, __CLASS__, __METHOD__, __FUNCTION__, __LINE__);
		return $my_name['user'];
	}
}
?>
Return current item: Aratix