3 require_once 'Pman.php';
5 class Pman_Builder_Modules extends Pman
8 // getAuth - everyone allowed in...
10 if (!$this->hasPerm('Builder.Builder', 'S')) {
11 $this->jerr("Permission denied");
17 function get($base, $opts = array())
19 // should just list the enabled modules.. - in theory we can not create modules???
21 // or should this be totally database related...
25 $enabled = array('Core') ;
26 $enabled = !empty($this->appModules) ? array_merge($enabled, explode(',', $this->appModules)) : $enabled;
29 $enabled = array_unique($enabled);
31 foreach($enabled as $r) {
32 $ret[] = array('name' => $r);