1
0
www.mikescher.com/www/internals/programs.php

17 lines
317 B
PHP
Raw Normal View History

2017-11-08 17:39:50 +01:00
<?php if(count(get_included_files()) ==1) exit("Direct access not permitted.");
class Programs
{
public static function readSingle($f)
{
$a = require $f;
return $a;
}
public static function listAll()
{
$files = glob(__DIR__ . '/../statics/programs/*.php');
return array_map(readSingle, $files);
}
}