diff --git a/app/SupportedApps/Ghost/Ghost.php b/app/SupportedApps/Ghost/Ghost.php deleted file mode 100644 index 9e44ed7e..00000000 --- a/app/SupportedApps/Ghost/Ghost.php +++ /dev/null @@ -1,5 +0,0 @@ - - -image/svg+xml \ No newline at end of file diff --git a/app/SupportedApps/Mattermost/Mattermost.php b/app/SupportedApps/Mattermost/Mattermost.php deleted file mode 100644 index 87a4b931..00000000 --- a/app/SupportedApps/Mattermost/Mattermost.php +++ /dev/null @@ -1,5 +0,0 @@ -url('status')); - echo $test->status; - } - - public function livestats() - { - $status = 'inactive'; - $res = parent::execute($this->url('status')); - $details = json_decode($res->getBody()); - - $data = []; - - if($details) { - $size = $details->result->RemainingSizeMB; - $rate = $details->result->DownloadRate; - $data['queue_size'] = format_bytes($size*1000*1000, false, ' ', ''); - $data['current_speed'] = format_bytes($rate, false, ' '); - $status = ($size > 0 || $rate > 0) ? 'active' : 'inactive'; - } - - return parent::getLiveStats($status, $data); - - } - - public function url($endpoint) - { - $api_url = parent::normaliseurl($this->config->url); - $username = $this->config->username; - $password = $this->config->password; - $rebuild_url = str_replace('http://', 'http://'.$username.':'.$password.'@', $api_url); - $rebuild_url = str_replace('https://', 'https://'.$username.':'.$password.'@', $rebuild_url); - $rebuild_url = rtrim($rebuild_url, '/'); - - $api_url = $rebuild_url.'/jsonrpc/'.$endpoint; - return $api_url; - } -} diff --git a/app/SupportedApps/Privatebin/Privatebin.php b/app/SupportedApps/Privatebin/Privatebin.php deleted file mode 100644 index 30a377a3..00000000 --- a/app/SupportedApps/Privatebin/Privatebin.php +++ /dev/null @@ -1,5 +0,0 @@ - - - - - - - - - - - diff --git a/app/SupportedApps/Snibox/Snibox.php b/app/SupportedApps/Snibox/Snibox.php deleted file mode 100644 index ede5a734..00000000 --- a/app/SupportedApps/Snibox/Snibox.php +++ /dev/null @@ -1,5 +0,0 @@ -