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.
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ*/
?>
|