Recent versions: ||| Galaxytool: v5.1 ||| Galaxytoolbar: v2.6.32 |||

Installation

From Galaxytool wiki
Revision as of 21:39, 25 November 2006 by Krischanlp (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

After donwloading the file, you need to extract it. After that you will have to modify the config.php to suit your needs. You receive the required information for the database connection from your webhoster. If the modification of your config.php is finished, you need to upload all files to your server. Start the install.php on your webserver by typing adress.of.your.webspace/path/to/galaxytool/install.php in your browser and see what happens (of course with your specific address and path). If there are any problems during the installation, you have to look what is wrong with your config.php! After the installation you should delete the install.php and the update.php. The attributes.php allows to modify the Galaxytool, but you donÄt need to change anything there.

And now a detailed description of the config.php:


config.php

$dbusername = 'username'; 

Write the username for your MySQL database in the quotation marks (you get the username from your webhoster).

$dbpassword = 'userpasswort'; 

Write the password for your MySQL database in the quotation marks (you get the password from your webhoster, too).

$dbname = 'datenbank'; 

Write the name of your MySQL database in the quotation marks (again, you get the name from your webhoster).

$dbtablename = 'tabelle'; 

Write the name of the galaxy table (all the data like planets and coordinates) in the quotation marks. It is recommended to use a significant name like u15_galaxy to know what the tables are used for if you look in your database.

$utablename = 'tabelle2'; 

Write the name of the user table (the users of the tool) in the quotation marks. It is recommended to use a significant name like u15_user to know what the tables are used for if you look in your database.

$pstablename = 'tabelle3'; 

Write the name of the playerstats table in the quotation marks. It is recommended to use a significant name like u15_playerstats to know what the tables are used for if you look in your database.

$astablename = 'tabelle4'; 

Write the name of the allystats table in the quotation marks. It is recommended to use a significant name like u15_allystats to know what the tables are used for if you look in your database.

$noticetable = 'tabelle5'; 

Write the name of the notices table in the quotation marks. It is recommended to use a significant name like u15_notices to know what the tables are used for if you look in your database.

$reporttable = 'tabelle6'; 

Write the name of the espionage reports table in the quotation marks. It is recommended to use a significant name like u15_reports to know what the tables are used for if you look in your database.

$iptablename = 'tabelle7'; 

Write the name of the IP addresses table (IP addresses from the users of the tool) in the quotation marks. It is recommended to use a significant name like u15_ip to know what the tables are used for if you look in your database.

$shouttable = 'tabelle8'; 

Write the name of the shoutbox table (the shoutbox on the overview page of the tool) in the quotation marks. It is recommended to use a significant name like u15_shoutbox to know what the tables are used for if you look in your database.

$dbhost = 'localhost'; 

Write the address (e.g. localhost) for your MySQL database in the quotation marks. You will get the address from your webhoster.

attributes.php

$owner = 'yourname'; 

Write your alliance or OGame nickname in the quotation marks. It is shown at the login screen to show which tool you are using if you play in different univereses.

$maxshouts = 15; 

This is the number of shouts shown in the shoutbox on the overview page. All shouts which are not shown are deleted!

$statspage = 100; 

Number of entries at the statistics page. If you don't like to scroll down use a smaller number.

$email_from = $_SERVER['SERVER_ADMIN']; 

Here you can add an email address which should be shown in the FROM field of registration emails. Put the address between quotation marks. If someone registers himself at the galaxytool, an email is sent to this address showing that someone registered and needs to be activated. If you want to disable registering, you have to delete the register.php file.

$default_language = 'german'; 

Write the default language for the tool in the quotation marks. You can choose between: german, english, spanish, dutch, balkan, french, portugues, turkish, danish, italian and polish.

$default_charset = 'iso-8859-1'; 

This iso-code should work for most languages. If not - adjust it for your needs.

Modify the main menu

$additional_links_english = array( 

'Ogame' => 'http://www.ogame.de'

);

In this example the main menu gets an additional link to the OGame startpage. If you like, you can add new links (e.g. to your alliance board) by adding a new entry.

$additional_links_english = array( 
'Ogame' => 'http://www.ogame.de',
'Allyboard' => 'http://www.yourallypage.de/path/to/board'
); 


The more links you add, the more complex the main menu will get. You modify only the english main menu in this example. If you want to have the extension in other languages too, you need to modify their array too.

Ostat

After several requests to add links to ostat these links are integrated now. You need to modify the ostat-server ("de" for german, or "org" for english universes). You should always fill in the universe value, to help other users to know for which universe the tool is used. The universe is shown above the main menu if you have filled in a value.

$ostat_universe = '2'; 
$ostat_server = 'org'; 

This is an example for the english universe 2.

After installation

After the installation you should install.php and update.php!

The first login:

Loginname: admin
Password: galatool

You should change the password for the admin account after you log in the first time!