mirror of
https://github.com/kanaka/mal.git
synced 2024-09-21 02:27:10 +03:00
9 lines
240 B
PHP
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);
|
|
}
|
|
?>
|