Skip to content
This repository has been archived by the owner on Feb 5, 2018. It is now read-only.

Installation

Danny Li edited this page Apr 9, 2014 · 9 revisions

1. Edit the details in ../core/config.php (database details and more)

2. Run ../install.php in your browser

Installation failed:

2a. On the installation page a SQL code will appear, execute this (e.g. via phpMyAdmin)

After installation

3. Delete ../install.php and ../SQL.TXT (!important)

4. Setup cronjobs:

  • ../cronjobs/limiters.php » Execute every 30 seconds!

  • ../crojobs/igcmds.php » Execute every 5 seconds!

Open up the crontab, I personally prefer to use the nano editor, so type this:

EDITOR=nano crontab -e

To run the limiters, type (on a new line):

* * * * * bash /path/to/cronjobs/limiters.sh

To run the in-game commands, type (on a new line):

* * * * * bash /path/to/cronjobs/igcmds.sh

5. (Optional) Run in browser instead of cronjobs

Run ../cronjobs/limiters_browser.php and / or ../cronjobs/igcmds_browser.php in your browser

And done! Enjoy!


Example

1. Edit ../core/config.php, These are fake details and some things are left out!

<?php

define('HOME_URL', 'http://localhost/path/to/this/tool/');

# Important to  change this! Just some random characters, shouldn't be too difficult, right?
define('RANDOM_STRING', 'D&*(;ShDF&^v&*)SDF[SDFc87&*^]');

$config = array(
    'db_host' => 'localhost',
    'db_username' => 'mydb_username',
    'db_password' => 'pass123',
    'db_name' => 'mydb_name',
);
?>

2. Run ../install.php in your browser

Step 2

2a. Installation failed

You'll get this message with the code, copy this Step 2a

Paste this in PhpMyAdmin and execute it Step 2a2

3. Delete install.php and SQL.TXT

Well... No example needed, right? ...

4. Setup cronjobs

Open up the crontab, I personally prefer to use the nano editor, so type this:

EDITOR=nano crontab -e

To run the limiters, type (on a new line):

* * * * * bash /path/to/cronjobs/limiters.sh

To run the in-game commands, type (on a new line):

* * * * * bash /path/to/cronjobs/igcmds.sh

Clone this wiki locally