Update Ranking.php

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

Update Ranking.php
merge upstream master
fix include to use absolute path(__DIR__ keyword)
fix php close tags
update
typo fix
fixed all include paths
Merge remote-tracking branch 'origin/develop' into develop