forked from wap-game/ogame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildings.php
50 lines (40 loc) · 1.5 KB
/
buildings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* buildings.php
*
* @version 1.3
* @copyright 2008 by Chlorel for XNova
*/
define('INSIDE' , true);
define('INSTALL' , false);
$xnova_root_path = './';
include($xnova_root_path . 'extension.inc');
include($xnova_root_path . 'common.' . $phpEx);
includeLang('buildings');
UpdatePlanetBatimentQueueList ( $planetrow, $user );
$IsWorking = HandleTechnologieBuild ( $planetrow, $user );
switch ($_GET['mode']) {
case 'fleet':
// --------------------------------------------------------------------------------------------------
FleetBuildingPage ( $planetrow, $user );
break;
case 'research':
// --------------------------------------------------------------------------------------------------
ResearchBuildingPage ( $planetrow, $user, $IsWorking['OnWork'], $IsWorking['WorkOn'] );
break;
case 'defense':
// --------------------------------------------------------------------------------------------------
DefensesBuildingPage ( $planetrow, $user );
break;
default:
// --------------------------------------------------------------------------------------------------
BatimentBuildingPage ( $planetrow, $user );
break;
}
// -----------------------------------------------------------------------------------------------------------
// History version
// 1.0 - Nettoyage modularisation
// 1.1 - Mise au point, mise en fonction pour linéarisation du fonctionnement
// 1.2 - Liste de construction batiments
?>
<?php /* Powered by OGameCN www.ogamecn.com */ ?>