summaryrefslogtreecommitdiff
path: root/server/core
diff options
context:
space:
mode:
Diffstat (limited to 'server/core')
-rw-r--r--server/core/Compute.php1
-rw-r--r--server/core/Identity.php1
-rw-r--r--server/core/Image.php1
-rw-r--r--server/core/Network.php1
-rw-r--r--server/core/Plugin.php13
-rw-r--r--server/core/Plugin_Api.php24
6 files changed, 41 insertions, 0 deletions
diff --git a/server/core/Compute.php b/server/core/Compute.php
new file mode 100644
index 0000000..8d1c8b6
--- /dev/null
+++ b/server/core/Compute.php
@@ -0,0 +1 @@
+
diff --git a/server/core/Identity.php b/server/core/Identity.php
new file mode 100644
index 0000000..8d1c8b6
--- /dev/null
+++ b/server/core/Identity.php
@@ -0,0 +1 @@
+
diff --git a/server/core/Image.php b/server/core/Image.php
new file mode 100644
index 0000000..8d1c8b6
--- /dev/null
+++ b/server/core/Image.php
@@ -0,0 +1 @@
+
diff --git a/server/core/Network.php b/server/core/Network.php
new file mode 100644
index 0000000..8d1c8b6
--- /dev/null
+++ b/server/core/Network.php
@@ -0,0 +1 @@
+
diff --git a/server/core/Plugin.php b/server/core/Plugin.php
new file mode 100644
index 0000000..e6fd8a7
--- /dev/null
+++ b/server/core/Plugin.php
@@ -0,0 +1,13 @@
+<?php
+
+abstract class plugin{
+
+ public $api;
+
+ public function __construct($api){
+
+ $this->api = $api;
+
+ }
+
+}
diff --git a/server/core/Plugin_Api.php b/server/core/Plugin_Api.php
new file mode 100644
index 0000000..28e1407
--- /dev/null
+++ b/server/core/Plugin_Api.php
@@ -0,0 +1,24 @@
+<?php
+
+//Init plugin directory
+if (!defined('RCUBE_PLUGINS_DIR')) {
+ define('RCUBE_PLUGINS_DIR', RCUBE_INSTALL_PATH . 'plugins/');
+}
+
+class plugin_api{
+
+ static protected $instance;
+
+ protected function __construct(){
+
+ }
+
+ static function getInstance(){
+
+ if(!self::$instance){
+ self::$instance = new plugin_api();
+ }
+
+ return self::$instance;
+ }
+}