Location: PHPKode > projects > Dominant Creature RPG > class/data_class.php
<?php



class Data {

	

var $gameurl = "http://evil.bbgdev.com";

	

	function GetUserData () {

	

		$c = mysql_query("SELECT * FROM player_creatures WHERE user_id = '".$_SESSION["id"]."'");

		$this->creature = mysql_fetch_assoc($c);

		

		$c = mysql_query("SELECT * FROM users WHERE id = '".$_SESSION["id"]."'");

		$this->user = mysql_fetch_assoc($c);



	}



	

	function DefineLang() {

		

		

		$this->GetUserData();

		

		$this->lang = "lang/".$this->user[lang].".php";

		

		

	}

	

} // class end



?>
Return current item: Dominant Creature RPG