mirror of
https://github.com/fruithost/Panel.git
synced 2026-11-07 04:22:35 +09:00
Adding Ajax API, fix some module handlings, add new load method for modules
This commit is contained in:
1 parent
ecc278de48
commit
6723246bf2
7 files changed
+109
-30
No files matched your search
@@ -5,6 +5,7 @@
|
||||
private $path = null;
|
||||
private $info = null;
|
||||
private $instance = null;
|
||||
private $enabled = false;
|
||||
|
||||
public function __construct($path) {
|
||||
$this->path = $path;
|
||||
@@ -23,6 +24,14 @@
|
||||
return $this->instance;
|
||||
}
|
||||
|
||||
public function isEnabled() {
|
||||
return $this->enabled;
|
||||
}
|
||||
|
||||
public function setEnabled($state) {
|
||||
$this->enabled = $state;
|
||||
}
|
||||
|
||||
public function init($core) {
|
||||
$script = sprintf('%s%smodule.php', $this->path, DS);
|
||||
|
||||
|
||||
Reference in new issue
Block a user