statics data
This commit is contained in:
17
www/internals/programs.php
Normal file
17
www/internals/programs.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user