1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-21 02:27:10 +03:00
mal/php/webrunner.php
2018-06-24 19:45:29 +08:00

9 lines
240 B
PHP

<?php
// if we're called in a webserver context, auto-resolve to mal file
if (php_sapi_name() != "cli") {
$malfile = str_replace(".php", ".mal", $_SERVER['SCRIPT_FILENAME']);
rep('(load-file "' . $malfile . '")');
exit(0);
}
?>