Apache function on NGINX

Fatal error: Call to undefined function getallheaders() in
C:\Users\Vitalijs.Kudrjasovs\Documents\Porter_0515\projects\veetallian-mvc-16pl\core\mvc\Controller.php
on line 67

NGINX server does not implement this function

http://www.php.net/manual/en/function.getallheaders.php#84262
Some fixes