Ping.php api auth added, apache_request_headers function check and function replacment added