Fixed multiple XSS injection vectors

There are multiple XSS injection vectors caused by `$_SERVER['PHP_SELF']`. 

E.g.: `miner.php/';%7Dalert(1);//`

Fixed it by not relying on `PHP_SELF` at all.