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

Difference between revisions of "Installation"

From Galaxytool wiki
Jump to: navigation, search
Line 39: Line 39:
 
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.
 
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 = 'playerstats';  
+
  $playertable = 'players';  
  
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.
+
Write the name of the players table in the quotation marks. It is recommended to use a significant name like u15_players to know what the tables are used for if you look in your database.
  
  $astablename = 'allystats';  
+
  $allytable = 'alliances';  
  
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.
+
Write the name of the players table in the quotation marks. It is recommended to use a significant name like u15_players to know what the tables are used for if you look in your database.
  
 
  $noticetable = 'notices';  
 
  $noticetable = 'notices';  
Line 62: Line 62:
  
 
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.
 
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.
 +
 +
$allyhistory = 'allyhistory';
 +
 +
Write the name of the allyhistory table in the quotation marks. It is recommended to use a significant name like u15_allyhistory to know what the tables are used for if you look in your database.
 +
 +
If you leave this field empty, no statistic records are saved. You can save webspace by keeping this field empty. The tables for statistics can become 20 MB / year for an average alliance with 10 members.
 +
 +
$playerhistory = 'playerhistory';
 +
 +
 +
Write the name of the playerhistory table in the quotation marks. It is recommended to use a significant name like u15_playerhistory to know what the tables are used for if you look in your database.
 +
 +
If you leave this field empty, no statistic records are saved. You can save webspace by keeping this field empty. The tables for statistics can become 20 MB / year for an average alliance with 10 members.
  
 
  $dbhost = 'localhost';  
 
  $dbhost = 'localhost';  
Line 83: Line 96:
 
This is the number of shouts shown in the shoutbox on the overview page. All shouts which are not shown are deleted!
 
This is the number of shouts shown in the shoutbox on the overview page. All shouts which are not shown are deleted!
  
  $statspage = 100;  
+
  $email_to = 'admin@yourdomain.com';
  
Number of entries at the statistics page. If you don't like to scroll down use a smaller number.
+
Enter your admin Email address where you want to receive emails about newly registered users.
  
 
  $email_from = 'email@provider.xxx';  
 
  $email_from = 'email@provider.xxx';  
Line 96: Line 109:
  
 
Write the default language for the tool in the quotation marks.
 
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.
+
You can choose between: german, english, spanish, dutch, balkan, french, portugues, turkish, danish, italian,polish, danish, brazil, russian, swedish or greek.
 
 
$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.org'
 
);
 
 
 
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.org',
 
'Allyboard' => 'http://www.yourallypage.com/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.
+
$global_universe = 15;
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 = '25';
+
This is your Universe number.
$ostat_server = 'org';
 
  
This is an example for the english universe 25.
 
  
 
== After installation ==
 
== After installation ==

Revision as of 20:48, 19 April 2007

After downloading 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

http://address.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.

Please note that special characters like ' are not allowed except for those already present there!


config.php

Note you can find the file in the folder: /secret/

Go to your folder where you have downloaded galaxy tool (if you didn't download it yet go to the Download section on our page). In the folder you will find the "readme.txt" and some more files (including "install.php"). Well first we are going to find "config.php". Open in and then change the following:

$dbusername = 'username';

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

$dbpassword = 'password';

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

$dbname = 'database'; 

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

$dbtablename = 'galaxy'; 

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 = 'user'; 

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.

$playertable = 'players'; 

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

$allytable = 'alliances'; 

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

$noticetable = 'notices'; 

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 = 'reports'; 

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 = 'ips'; 

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 = 'shoutbox'; 

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.

$allyhistory = 'allyhistory';

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

If you leave this field empty, no statistic records are saved. You can save webspace by keeping this field empty. The tables for statistics can become 20 MB / year for an average alliance with 10 members.

$playerhistory = 'playerhistory';


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

If you leave this field empty, no statistic records are saved. You can save webspace by keeping this field empty. The tables for statistics can become 20 MB / year for an average alliance with 10 members.

$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

Note you can find the file in the folder: /secret/

Now if you have edited "config.php" it is time to edit some stuff to give galaxy tool another look. Now in the same folder ("secret") there is a file called "attributes.php". Open in and we are going to change some things:

$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!

$email_to = 'admin@yourdomain.com';

Enter your admin Email address where you want to receive emails about newly registered users.

$email_from = 'email@provider.xxx'; 

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 = 'english'; 

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,polish, danish, brazil, russian, swedish or greek.


$global_universe = 15;

This is your Universe number.


After installation

After the installation you have to delete the install.php and the 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!