Merge pull request #201 from akshay9/master

NEW MYSQLi Database
Update Ranking.php

FIX: Warning: Illegal string offset 'userid' in
Merge pull request #203 from mafiadek/patch-1

Update Ranking.php
fix beginner protection when register before server start time
fix ally def points average
fix ally attack and defence statistics
fix getARanking
some fix for ally forum
update
more update
more update
more update
more update
add cranny capacity to install
update Automation.php (should to optimize the server speed, especially when server have big map)
more update
more update
update for master builder
more update for master builder: now when completed with gold you lose one more gold for the building
update