Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 04-08-2005, 11:45 PM Class Help!
Novice Talker

Posts: 7
Trades: 0
i need some help with some classes...

Fatal error: Cannot instantiate non-existent class: gim_page in /home/.mabeloven/mecharpg/mechaasylum.com/global/game/prepare.php on line 50


is the error i get... this is the codding for that one...:

Code:
 /*_______________________________________________________________________
 | Implementation headers.
  ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ*/
  	srand((double)microtime()*1000000);

	/* Modules
	ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ*/
	$dir = "http://www.mechaasylum.com/global/game";

	//$dir = "http://www.mechaasylum.com/global/game";

    include("$dir/modules/page/page.php");
    include("$dir/modules/db/db.php");
	include("$dir/modules/info/info.php");

	include("$dir/modules/user/user.php");
	include("$dir/modules/events/events.php");
	include("$dir/modules/country/country.php");
	include("$dir/modules/province/province.php");
	include("$dir/modules/script/script.php");
	include("$dir/modules/provarlist/provarlist.php");
	include("$dir/modules/uservarlist/uservarlist.php");
	include("$dir/modules/bank/bank.php");

	include("$dir/functions/functions.php");

/*_______________________________________________________________________
 | Definitions.
  ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ*/
    $time_scale = 0.05;			 // Global timescale to fasten build/traning times...

    /* Default modules.
	ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ*/
    $page			= new GIM_Page;
	$db				= new GIM_DB;
	$db1			= new GIM_DB;
	$user			= new GIM_User;
	$country		= new GIM_Country;
	$events			= new GIM_Events;
 	$province		= new GIM_Province;
	$script			= new GIM_Script;
	$info			= new GIM_Info;
	$provarlist		= new GIM_provarlist;
	$uservarlist	= new GIM_uservarlist;
/*_______________________________________________________________________
 | Objects.
  ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ*/

  // Pause game
/*_______________________________________________________________________
 | Functions.
  ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ*/
/*_______________________________________________________________________
 | Preparation.
  ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ*/
	/* Do we got our username and password? If so, fill the user module.
	ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ*/
	if ($gi__un != "" && $gi__pw != "") {

		if ($user->Link($gi__un, $gi__pw)) {
			$user->Fill("*");
			// Update last seen as well...
			// Select parent last_seen
			$db->Query("SELECT last_seen FROM users WHERE id='$user->id'");
			$db->Next();
			$user->last_seen = $db->get("last_seen");
			$db->Query("UPDATE users SET last_seen = NOW() WHERE id='" . $user->id . "'");


		} else {
			setcookie("gi__un", "", 0,  "/");
			setcookie("gi__pw", "", 0,  "/");
			header("location: http://www.mechaasylum.com/global/game/");
			exit;
		}

	} else {
		header("location: http://www.mechaasylum.com/global/game/");
		exit;
	}


	// Update menu...


	if ($menu) {
		$gi__mainmenu = $menu;
		setcookie("gi__mainmenu", $menu, 0,  "/");
	}

	// Ready cookie..

	// Update all scripts.
	$script->Execute();

	// Update our events module.

	$events->link($user);
	$events->Update();
	$province->link($user);
	$provarlist->link($province);
	$uservarlist->link($user);

	$page->load_module("building");
	$building = new GIM_Building;
	$building->linktoprovince($province);

	$country->link($user->location);
	$country->fill("*");

/*
  $page->load_header();
	?>
	<table class="border2" width="95%">
		<tr>
			<td class="error_msg" align="center">PAUSED<br><br>
			Site maintenance: <br>
			I didnt have time to complete until real work so the game is paused until evning (about 10hours)<br><br>
			Sorry if it happend in a very bad time for you.

			</td>
		</tr>

	</table>
	<?
  $page->load_footer();
  exit;

*/

/*_______________________________________________________________________
 | Presentation.
  ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ*/
/*_______________________________________________________________________
 | End of file.
  ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ*/

?>
bobman is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Class Help!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.07903 seconds with 12 queries