<?php
$do = @$_GET['do'];
if ('init' == $do)
{
echo 'var ping_server = \'http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'].'\';';
echo "\n";
echo @file_get_contents('./ping.code.js');
return;
}
if ('ping' == $do)
{
echo 'ok';
}
?>