Run testdriver only on CLI
This commit is contained in:
parent
e50edc09f9
commit
0cbb8e4c22
1 changed files with 2 additions and 0 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
require 'season.php';
|
||||
|
||||
php_sapi_name() == 'cli' || die('Forbidden');
|
||||
|
||||
$jz = new Season();
|
||||
for ($j = 2000; $j < 2100; $j++) {
|
||||
$jz->calc($j);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue