diff --git a/dashboard/.gitignore b/dashboard/.gitignore
deleted file mode 100644
index cd2946ad..00000000
--- a/dashboard/.gitignore
+++ /dev/null
@@ -1,47 +0,0 @@
-# Windows image file caches
-Thumbs.db
-ehthumbs.db
-
-# Folder config file
-Desktop.ini
-
-# Recycle Bin used on file shares
-$RECYCLE.BIN/
-
-# Windows Installer files
-*.cab
-*.msi
-*.msm
-*.msp
-
-# Windows shortcuts
-*.lnk
-
-# =========================
-# Operating System Files
-# =========================
-
-# OSX
-# =========================
-
-.DS_Store
-.AppleDouble
-.LSOverride
-
-# Thumbnails
-._*
-
-# Files that might appear in the root of a volume
-.DocumentRevisions-V100
-.fseventsd
-.Spotlight-V100
-.TemporaryItems
-.Trashes
-.VolumeIcon.icns
-
-# Directories potentially created on remote AFP share
-.AppleDB
-.AppleDesktop
-Network Trash Folder
-Temporary Items
-.apdisk
diff --git a/dashboard/.htaccess b/dashboard/.htaccess
deleted file mode 100644
index 536dce8a..00000000
--- a/dashboard/.htaccess
+++ /dev/null
@@ -1,3 +0,0 @@
-RewriteEngine On
-RewriteCond %{HTTPS} !=on
-RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
diff --git a/dashboard/custom/.gitignore b/dashboard/custom/.gitignore
deleted file mode 100644
index a99203a2..00000000
--- a/dashboard/custom/.gitignore
+++ /dev/null
@@ -1,7 +0,0 @@
-# Ignore everything in this directory
-*
-# Except this file
-!.gitignore
-#!custom.menu.php
-#!custom.css
-#!url.override.php
diff --git a/dashboard/db/.gitignore b/dashboard/db/.gitignore
deleted file mode 100644
index 0db493a9..00000000
--- a/dashboard/db/.gitignore
+++ /dev/null
@@ -1,9 +0,0 @@
-# Ignore everything in this directory
-*
-# Except this file
-!.gitignore
-!branding-l.php
-!branding-m.php
-#!domain.list
-!.defaulted.lock
-#!interface.txt
diff --git a/dashboard/db/branding-m.php b/dashboard/db/branding-m.php
deleted file mode 100644
index a91dae47..00000000
--- a/dashboard/db/branding-m.php
+++ /dev/null
@@ -1,9 +0,0 @@
-
diff --git a/dashboard/fileshare/.htaccess b/dashboard/fileshare/.htaccess
deleted file mode 100644
index dc366edd..00000000
--- a/dashboard/fileshare/.htaccess
+++ /dev/null
@@ -1 +0,0 @@
-Satisfy Any
diff --git a/dashboard/fileshare/share.php b/dashboard/fileshare/share.php
deleted file mode 100644
index 762b731b..00000000
--- a/dashboard/fileshare/share.php
+++ /dev/null
@@ -1,32 +0,0 @@
-data[$_GET['s']]) || ($f->data[$_GET['s']]['expire'] < time())) {die('No such file or it expired');}
-
-function authenticate() {
- header('WWW-Authenticate: Basic realm="LEAVE USERNAME EMPTY!! Password only!"');
- header('HTTP/1.0 401 Unauthorized');
- echo "Not permitted\n";
- exit;
-}
-
-
-if (!isset($_SERVER['PHP_AUTH_USER']) || ($_SERVER['PHP_AUTH_PW'] != $f->data[$_GET['s']]['password'])) {authenticate();} else {
-
-
-
-$f->workdir = '';
-
-$f->send_file($f->data[$_GET['s']]['file']);
-
-}
-?>
diff --git a/dashboard/img/brands/btsync.png b/dashboard/img/brands/btsync.png
deleted file mode 100644
index 627ed123..00000000
Binary files a/dashboard/img/brands/btsync.png and /dev/null differ
diff --git a/dashboard/img/brands/couchpotato.png b/dashboard/img/brands/couchpotato.png
deleted file mode 100644
index ba9e5aa5..00000000
Binary files a/dashboard/img/brands/couchpotato.png and /dev/null differ
diff --git a/dashboard/img/brands/csf.png b/dashboard/img/brands/csf.png
deleted file mode 100644
index 6efda367..00000000
Binary files a/dashboard/img/brands/csf.png and /dev/null differ
diff --git a/dashboard/img/brands/deluge.png b/dashboard/img/brands/deluge.png
deleted file mode 100644
index 973e2f77..00000000
Binary files a/dashboard/img/brands/deluge.png and /dev/null differ
diff --git a/dashboard/img/brands/emby.png b/dashboard/img/brands/emby.png
deleted file mode 100644
index 4ca4de24..00000000
Binary files a/dashboard/img/brands/emby.png and /dev/null differ
diff --git a/dashboard/img/brands/jackett.png b/dashboard/img/brands/jackett.png
deleted file mode 100644
index d2c6db03..00000000
Binary files a/dashboard/img/brands/jackett.png and /dev/null differ
diff --git a/dashboard/img/brands/nextcloud.png b/dashboard/img/brands/nextcloud.png
deleted file mode 100644
index 44b19e4c..00000000
Binary files a/dashboard/img/brands/nextcloud.png and /dev/null differ
diff --git a/dashboard/img/brands/nzbhydra.png b/dashboard/img/brands/nzbhydra.png
deleted file mode 100644
index ff1943d1..00000000
Binary files a/dashboard/img/brands/nzbhydra.png and /dev/null differ
diff --git a/dashboard/img/brands/plex.png b/dashboard/img/brands/plex.png
deleted file mode 100644
index ea2a49b2..00000000
Binary files a/dashboard/img/brands/plex.png and /dev/null differ
diff --git a/dashboard/img/brands/plexpy.png b/dashboard/img/brands/plexpy.png
deleted file mode 100644
index 29d92463..00000000
Binary files a/dashboard/img/brands/plexpy.png and /dev/null differ
diff --git a/dashboard/img/brands/plexrequests-net.png b/dashboard/img/brands/plexrequests-net.png
deleted file mode 100644
index 0259bc87..00000000
Binary files a/dashboard/img/brands/plexrequests-net.png and /dev/null differ
diff --git a/dashboard/img/brands/pyload.png b/dashboard/img/brands/pyload.png
deleted file mode 100644
index 5254821c..00000000
Binary files a/dashboard/img/brands/pyload.png and /dev/null differ
diff --git a/dashboard/img/brands/quickbox.png b/dashboard/img/brands/quickbox.png
deleted file mode 100644
index e5f3276e..00000000
Binary files a/dashboard/img/brands/quickbox.png and /dev/null differ
diff --git a/dashboard/img/brands/rapidleech.png b/dashboard/img/brands/rapidleech.png
deleted file mode 100644
index a0999747..00000000
Binary files a/dashboard/img/brands/rapidleech.png and /dev/null differ
diff --git a/dashboard/img/brands/rtorrent.png b/dashboard/img/brands/rtorrent.png
deleted file mode 100644
index 9d456bf7..00000000
Binary files a/dashboard/img/brands/rtorrent.png and /dev/null differ
diff --git a/dashboard/img/brands/sabnzbd.png b/dashboard/img/brands/sabnzbd.png
deleted file mode 100644
index 5257b5fb..00000000
Binary files a/dashboard/img/brands/sabnzbd.png and /dev/null differ
diff --git a/dashboard/img/brands/sickrage.png b/dashboard/img/brands/sickrage.png
deleted file mode 100644
index 4dd2dea1..00000000
Binary files a/dashboard/img/brands/sickrage.png and /dev/null differ
diff --git a/dashboard/img/brands/sonarr.png b/dashboard/img/brands/sonarr.png
deleted file mode 100644
index eff693fa..00000000
Binary files a/dashboard/img/brands/sonarr.png and /dev/null differ
diff --git a/dashboard/img/brands/subsonic.png b/dashboard/img/brands/subsonic.png
deleted file mode 100644
index 8db716c5..00000000
Binary files a/dashboard/img/brands/subsonic.png and /dev/null differ
diff --git a/dashboard/img/brands/syncthing.png b/dashboard/img/brands/syncthing.png
deleted file mode 100644
index ddb5480a..00000000
Binary files a/dashboard/img/brands/syncthing.png and /dev/null differ
diff --git a/dashboard/img/brands/znc.png b/dashboard/img/brands/znc.png
deleted file mode 100644
index 08c60ac6..00000000
Binary files a/dashboard/img/brands/znc.png and /dev/null differ
diff --git a/dashboard/img/favicon/android-chrome-192x192.png b/dashboard/img/favicon/android-chrome-192x192.png
deleted file mode 100644
index 05599c92..00000000
Binary files a/dashboard/img/favicon/android-chrome-192x192.png and /dev/null differ
diff --git a/dashboard/img/favicon/android-chrome-512x512.png b/dashboard/img/favicon/android-chrome-512x512.png
deleted file mode 100644
index 08350878..00000000
Binary files a/dashboard/img/favicon/android-chrome-512x512.png and /dev/null differ
diff --git a/dashboard/img/favicon/apple-touch-icon.png b/dashboard/img/favicon/apple-touch-icon.png
deleted file mode 100644
index fa62f0ed..00000000
Binary files a/dashboard/img/favicon/apple-touch-icon.png and /dev/null differ
diff --git a/dashboard/img/favicon/browserconfig.xml b/dashboard/img/favicon/browserconfig.xml
deleted file mode 100644
index ffbd3429..00000000
--- a/dashboard/img/favicon/browserconfig.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
- #222222
-
-
-
diff --git a/dashboard/img/favicon/favicon-16x16.png b/dashboard/img/favicon/favicon-16x16.png
deleted file mode 100644
index 6ce66812..00000000
Binary files a/dashboard/img/favicon/favicon-16x16.png and /dev/null differ
diff --git a/dashboard/img/favicon/favicon-32x32.png b/dashboard/img/favicon/favicon-32x32.png
deleted file mode 100644
index 863e0fd8..00000000
Binary files a/dashboard/img/favicon/favicon-32x32.png and /dev/null differ
diff --git a/dashboard/img/favicon/favicon.ico b/dashboard/img/favicon/favicon.ico
deleted file mode 100644
index 81a752df..00000000
Binary files a/dashboard/img/favicon/favicon.ico and /dev/null differ
diff --git a/dashboard/img/favicon/manifest.json b/dashboard/img/favicon/manifest.json
deleted file mode 100644
index 8177a629..00000000
--- a/dashboard/img/favicon/manifest.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "name": "QuickBox",
- "icons": [
- {
- "src": "/android-chrome-192x192.png",
- "sizes": "192x192",
- "type": "image/png"
- },
- {
- "src": "/android-chrome-512x512.png",
- "sizes": "512x512",
- "type": "image/png"
- }
- ],
- "theme_color": "#ffffff",
- "background_color": "#ffffff",
- "display": "standalone"
-}
\ No newline at end of file
diff --git a/dashboard/img/favicon/mstile-150x150.png b/dashboard/img/favicon/mstile-150x150.png
deleted file mode 100644
index 022320f7..00000000
Binary files a/dashboard/img/favicon/mstile-150x150.png and /dev/null differ
diff --git a/dashboard/img/favicon/safari-pinned-tab.svg b/dashboard/img/favicon/safari-pinned-tab.svg
deleted file mode 100644
index 91e285f2..00000000
--- a/dashboard/img/favicon/safari-pinned-tab.svg
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
diff --git a/dashboard/img/logo-dark.png b/dashboard/img/logo-dark.png
deleted file mode 100644
index 4063950d..00000000
Binary files a/dashboard/img/logo-dark.png and /dev/null differ
diff --git a/dashboard/img/logo-light.png b/dashboard/img/logo-light.png
deleted file mode 100644
index d00fb80d..00000000
Binary files a/dashboard/img/logo-light.png and /dev/null differ
diff --git a/dashboard/inc/config.php b/dashboard/inc/config.php
deleted file mode 100644
index db0d8a52..00000000
--- a/dashboard/inc/config.php
+++ /dev/null
@@ -1,557 +0,0 @@
- 'QuickBox Seedbox',
- 'author' => 'Everyone that contributes to the open QuickBox project!',
- 'robots' => 'noindex, nofollow',
- 'title' => 'Quickbox Dashboard',
- 'description' => 'QuickBox is an open-source seedbox project that is developed and maintained by anyone who so choses to provide time and energy. For more QuickBox, checkout https://plaza.quickbox.io',
- 'active_page' => basename($_SERVER['PHP_SELF']),
-);
-
-$time_start = microtime_float();
-
-// Timing
-function microtime_float() {
- $mtime = microtime();
- $mtime = explode(' ', $mtime);
- return $mtime[1] + $mtime[0];
-}
-
-//Unit Conversion
-function formatsize($size) {
- $danwei=array(' B ',' KB ',' MB ',' GB ',' TB ');
- $allsize=array();
- $i=0;
- for($i = 0; $i <5; $i++) {
- if(floor($size/pow(1024,$i))==0){break;}
- }
- for($l = $i-1; $l >=0; $l--) {
- $allsize1[$l]=floor($size/pow(1024,$l));
- $allsize[$l]=$allsize1[$l]-$allsize1[$l+1]*1024;
- }
- $len=count($allsize);
- for($j = $len-1; $j >=0; $j--) {
- $fsize=$fsize.$allsize[$j].$danwei[$j];
- }
- return $fsize;
-}
-
-function GetCoreInformation() {$data = file('/proc/stat');$cores = array();foreach( $data as $line ) {if( preg_match('/^cpu[0-9]/', $line) ){$info = explode(' ', $line);$cores[]=array('user'=>$info[1],'nice'=>$info[2],'sys' => $info[3],'idle'=>$info[4],'iowait'=>$info[5],'irq' => $info[6],'softirq' => $info[7]);}}return $cores;}
-function GetCpuPercentages($stat1, $stat2) {if(count($stat1)!==count($stat2)){return;}$cpus=array();for( $i = 0, $l = count($stat1); $i < $l; $i++) { $dif = array(); $dif['user'] = $stat2[$i]['user'] - $stat1[$i]['user'];$dif['nice'] = $stat2[$i]['nice'] - $stat1[$i]['nice']; $dif['sys'] = $stat2[$i]['sys'] - $stat1[$i]['sys'];$dif['idle'] = $stat2[$i]['idle'] - $stat1[$i]['idle'];$dif['iowait'] = $stat2[$i]['iowait'] - $stat1[$i]['iowait'];$dif['irq'] = $stat2[$i]['irq'] - $stat1[$i]['irq'];$dif['softirq'] = $stat2[$i]['softirq'] - $stat1[$i]['softirq'];$total = array_sum($dif);$cpu = array();foreach($dif as $x=>$y) $cpu[$x] = round($y / $total * 100, 2);$cpus['cpu' . $i] = $cpu;}return $cpus;}
-$stat1 = GetCoreInformation();sleep(1);$stat2 = GetCoreInformation();$data = GetCpuPercentages($stat1, $stat2);
-$cpu_show = $data['cpu0']['user']."%us, ".$data['cpu0']['idle']."%id, ";
-
-// Information obtained depending on the system CPU
-switch(PHP_OS)
-{
- case "Linux":
- $sysReShow = (false !== ($sysInfo = sys_linux()))?"show":"none";
- break;
-
- case "FreeBSD":
- $sysReShow = (false !== ($sysInfo = sys_freebsd()))?"show":"none";
- break;
-
- default:
- break;
-}
-
-//linux system detects
-function sys_linux()
-{
- // CPU
- if (false === ($str = @file("/proc/cpuinfo"))) return false;
- $str = implode("", $str);
- @preg_match_all("/model\s+name\s{0,}\:+\s{0,}([^\:]+)([\r\n]+)/s", $str, $model);
- @preg_match_all("/cpu\s+MHz\s{0,}\:+\s{0,}([\d\.]+)[\r\n]+/", $str, $mhz);
- @preg_match_all("/cache\s+size\s{0,}\:+\s{0,}([\d\.]+\s{0,}[A-Z]+[\r\n]+)/", $str, $cache);
- if (false !== is_array($model[1]))
- {
- $res['cpu']['num'] = sizeof($model[1]);
-
- if($res['cpu']['num']==1)
- $x1 = '';
- else
- $x1 = ' ×'.$res['cpu']['num'];
- $mhz[1][0] = ' Frequency: '.$mhz[1][0];
- $cache[1][0] = '
Secondary cache: '.$cache[1][0];
- $res['cpu']['model'][] = ''.$model[1][0].'
'.$mhz[1][0].$cache[1][0].$x1;
- if (false !== is_array($res['cpu']['model'])) $res['cpu']['model'] = implode("
", $res['cpu']['model']);
- if (false !== is_array($res['cpu']['mhz'])) $res['cpu']['mhz'] = implode("
", $res['cpu']['mhz']);
- if (false !== is_array($res['cpu']['cache'])) $res['cpu']['cache'] = implode("
", $res['cpu']['cache']);
- }
-
- return $res;
-}
-
-//FreeBSD system detects
-function sys_freebsd()
-{
- //CPU
- if (false === ($res['cpu']['num'] = get_key("hw.ncpu"))) return false;
- $res['cpu']['model'] = get_key("hw.model");
- return $res;
-}
-
-//Obtain the parameter values FreeBSD
-function get_key($keyName)
-{
- return do_command('sysctl', "-n $keyName");
-}
-
-//Determining the location of the executable file FreeBSD
-function find_command($commandName)
-{
- $path = array('/bin', '/sbin', '/usr/bin', '/usr/sbin', '/usr/local/bin', '/usr/local/sbin');
- foreach($path as $p)
- {
- if (@is_executable("$p/$commandName")) return "$p/$commandName";
- }
- return false;
-}
-
-//Order Execution System FreeBSD
-function do_command($commandName, $args)
-{
- $buffer = "";
- if (false === ($command = find_command($commandName))) return false;
- if ($fp = @popen("$command $args", 'r'))
- {
- while (!@feof($fp))
- {
- $buffer .= @fgets($fp, 4096);
- }
- return trim($buffer);
- }
- return false;
-}
-
-
-function GetWMI($wmi,$strClass, $strValue = array()) {
- $arrData = array();
-
- $objWEBM = $wmi->Get($strClass);
- $arrProp = $objWEBM->Properties_;
- $arrWEBMCol = $objWEBM->Instances_();
- foreach($arrWEBMCol as $objItem) {
- @reset($arrProp);
- $arrInstance = array();
- foreach($arrProp as $propItem) {
- eval("\$value = \$objItem->" . $propItem->Name . ";");
- if (empty($strValue)) {
- $arrInstance[$propItem->Name] = trim($value);
- } else {
- if (in_array($propItem->Name, $strValue)) {
- $arrInstance[$propItem->Name] = trim($value);
- }
- }
- }
- $arrData[] = $arrInstance;
- }
- return $arrData;
-}
-
-//NIC flow
-$strs = @file("/proc/net/dev");
-
-for ($i = 2; $i < count($strs); $i++ ) {
- preg_match_all( "/([^\s]+):[\s]{0,}(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)/", $strs[$i], $info );
- $NetOutSpeed[$i] = $info[10][0];
- $NetInputSpeed[$i] = $info[2][0];
- $NetInput[$i] = formatsize($info[2][0]);
- $NetOut[$i] = formatsize($info[10][0]);
-}
-
-//Real-time refresh ajax calls
-if ($_GET['act'] == "rt") {
- $arr=array('NetOut2'=>"$NetOut[2]",'NetOut3'=>"$NetOut[3]",'NetOut4'=>"$NetOut[4]",'NetOut5'=>"$NetOut[5]",'NetOut6'=>"$NetOut[6]",'NetOut7'=>"$NetOut[7]",'NetOut8'=>"$NetOut[8]",'NetOut9'=>"$NetOut[9]",'NetOut10'=>"$NetOut[10]",'NetInput2'=>"$NetInput[2]",'NetInput3'=>"$NetInput[3]",'NetInput4'=>"$NetInput[4]",'NetInput5'=>"$NetInput[5]",'NetInput6'=>"$NetInput[6]",'NetInput7'=>"$NetInput[7]",'NetInput8'=>"$NetInput[8]",'NetInput9'=>"$NetInput[9]",'NetInput10'=>"$NetInput[10]",'NetOutSpeed2'=>"$NetOutSpeed[2]",'NetOutSpeed3'=>"$NetOutSpeed[3]",'NetOutSpeed4'=>"$NetOutSpeed[4]",'NetOutSpeed5'=>"$NetOutSpeed[5]",'NetInputSpeed2'=>"$NetInputSpeed[2]",'NetInputSpeed3'=>"$NetInputSpeed[3]",'NetInputSpeed4'=>"$NetInputSpeed[4]",'NetInputSpeed5'=>"$NetInputSpeed[5]");
- $jarr=json_encode($arr);
- $_GET['callback'] = htmlspecialchars($_GET['callback']);
- echo $_GET['callback'],'(',$jarr,')';
- exit;
-}
-
-function session_start_timeout($timeout=5, $probability=100, $cookie_domain='/') {
- ini_set("session.gc_maxlifetime", $timeout);
- ini_set("session.cookie_lifetime", $timeout);
- $seperator = strstr(strtoupper(substr(PHP_OS, 0, 3)), "WIN") ? "\\" : "/";
- $path = ini_get("session.save_path") . $seperator . "session_" . $timeout . "sec";
- if(!file_exists($path)) {
- if(!mkdir($path, 600)) {
- trigger_error("Failed to create session save path directory '$path'. Check permissions.", E_USER_ERROR);
- }
- }
- ini_set("session.save_path", $path);
- ini_set("session.gc_probability", $probability);
- ini_set("session.gc_divisor", 100);
- session_start();
- if(isset($_COOKIE[session_name()])) {
- setcookie(session_name(), $_COOKIE[session_name()], time() + $timeout, $cookie_domain);
- }
-}
-
-session_start_timeout(5);
-$MSGFILE = session_id();
-
-function processExists($processName, $username) {
- $exists= false;
- exec("ps axo user:20,pid,pcpu,pmem,vsz,rss,tty,stat,start,time,comm,cmd|grep $username | grep -iE $processName | grep -v grep", $pids);
- if (count($pids) > 0) {
- $exists = true;
- }
- return $exists;
-}
-
-$btsync = processExists("resilio-sync",rslsync);
-$deluged = processExists("deluged",$username);
-$delugedweb = processExists("deluge-web",$username);
-$emby = processExists("emby-server",$username);
-$irssi = processExists("irssi",$username);
-$plex = processExists("Plex",plex);
-$plexpy = processExists("plexpy",plexpy);
-$ombi = processExists("ombi",$username);
-$pyload = processExists("pyload",$username);
-$rtorrent = processExists("rtorrent",$username);
-$sabnzbd = processExists("sabnzbd",$username);
-$sickrage = processExists("sickrage",$username);
-$sonarr = processExists("nzbdrone",$username);
-$subsonic = processExists("subsonic",$username);
-$syncthing = processExists("syncthing",$username);
-$jackett = processExists("jackett",$username);
-$couchpotato = processExists("couchpotato",$username);
-$quassel = processExists("quassel",$username);
-$shellinabox = processExists("shellinabox",shellinabox);
-$csf = processExists("lfd",root);
-$znc = processExists("znc",$username);
-
-function isEnabled($process, $username){
- $service = $process;
- if(file_exists('/etc/systemd/system/multi-user.target.wants/'.$process.'@'.$username.'.service') || file_exists('/etc/systemd/system/multi-user.target.wants/'.$process.'.service')){
- return " ";
- } else {
- return " ";
- }
-}
-
-if(file_exists('/srv/rutorrent/home/custom/url.override.php')){
- // BEGIN CUSTOM URL OVERRIDES //
- include ($_SERVER['DOCUMENT_ROOT'].'/custom/url.override.php');
- // END CUSTOM URL OVERRIDES ////
-} else {
- $btsyncURL = "https://" . $_SERVER['HTTP_HOST'] . ":8888/gui/";
- $cpURL = "https://" . $_SERVER['HTTP_HOST'] . "/couchpotato";
- $csfURL = "https://" . $_SERVER['HTTP_HOST'] . ":3443";
- if ($dwssl == "true") { $dwURL = "https://" . $_SERVER['HTTP_HOST'] . ":$dwport"; }
- if ($dwssl == "false") { $dwURL = "http://" . $_SERVER['HTTP_HOST'] . ":$dwport"; }
- $embyURL = "https://" . $_SERVER['HTTP_HOST'] . "/emby";
- $jackettURL = "https://" . $_SERVER['HTTP_HOST'] . "/jackett/Admin/Dashboard";
- $nextcloudURL = "https://" . $_SERVER['HTTP_HOST'] . "/nextcloud";
- $nzbhydraURL = "https://" . $_SERVER['HTTP_HOST'] . "/nzbhydra";
- $plexURL = "http://" . $_SERVER['HTTP_HOST'] . ":31400/web/";
- $plexpyURL = "https://" . $_SERVER['HTTP_HOST'] . "/plexpy";
- $ombiURL = "https://" . $_SERVER['HTTP_HOST'] . "/ombi";
- $pyloadURL = "http://" . $_SERVER['HTTP_HOST'] . ":8000";
- $rapidleechURL = "https://" . $_SERVER['HTTP_HOST'] . "/rapidleech";
- $sabnzbdURL = "https://" . $_SERVER['HTTP_HOST'] . "/sabnzbd";
- $sickrageURL = "https://" . $_SERVER['HTTP_HOST'] . "/sickrage";
- $sonarrURL = "https://" . $_SERVER['HTTP_HOST'] . "/sonarr";
- $subsonicURL = "https://" . $_SERVER['HTTP_HOST'] . "/subsonic";
- $syncthingURL = "https://" . $_SERVER['HTTP_HOST'] . "/syncthing/";
- if ($zssl == "true") { $zncURL = "https://" . $_SERVER['HTTP_HOST'] . ":$zport"; }
- if ($zssl == "false") { $zncURL = "http://" . $_SERVER['HTTP_HOST'] . ":$zport"; }
-}
-
-
-$reload='';
-$service='';
-if ($rtorrent == "1") { $rval = "";
-} else { $rval = "";
-}
-
-if ($irssi == "1") { $ival = "";
-} else { $ival = "";
-}
-
-if ($deluged == "1") { $dval = "";
-} else { $dval = "";
-}
-
-if ($delugedweb == "1") { $dwval = "";
-} else { $dwval = "";
-}
-
-if ($shellinabox == "1") { $wcval = "";
-} else { $wcval = "";
-}
-
-if ($btsync == "1") { $bval = "";
-} else { $bval = "";
-}
-
-if ($couchpotato == "1") { $cpval = "";
-} else { $cpval = "";
-}
-
-if ($emby == "1") { $eval = "";
-} else { $eval = "";
-}
-
-if ($jackett == "1") { $jval = "";
-} else { $jval = "";
-}
-
-if ($plex == "1") { $pval = "";
-} else { $pval = "";
-}
-
-if ($plexpy == "1") { $ppval = "";
-} else { $ppval = "";
-}
-
-if ($ombi == "1") { $prval = "";
-} else { $prval = "";
-}
-
-if ($pyload == "1") { $plval = "";
-} else { $plval = "";
-}
-
-if ($quassel == "1") { $qval = "";
-} else { $qval = "";
-}
-
-if (file_exists('/install/.rapidleech.lock')) { $rlval = "";
-} else { $rlval = "";
-}
-
-if ($sabnzbd == "1") { $szval = "";
-} else { $szval = "";
-}
-
-if ($sickrage == "1") { $srval = "";
-} else { $srval = "";
-}
-
-if ($sonarr == "1") { $sval = "";
-} else { $sval = "";
-}
-
-if ($subsonic == "1") { $ssval = "";
-} else { $ssval = "";
-}
-
-if ($syncthing == "1") { $stval = "";
-} else { $stval = "";
-}
-
-if ($x2go == "1") { $xval = "";
-} else { $xval = "";
-}
-
-if ($znc == "1") { $zval = "";
-} else { $zval = "";
-}
-
-
-
-include ($_SERVER['DOCUMENT_ROOT'].'/widgets/lang_select.php');
-include ($_SERVER['DOCUMENT_ROOT'].'/widgets/plugin_data.php');
-include ($_SERVER['DOCUMENT_ROOT'].'/widgets/package_data.php');
-include ($_SERVER['DOCUMENT_ROOT'].'/widgets/sys_data.php');
-$base = 1024;
-$location = "/home";
-
-/* check for services */
-switch (intval($_GET['id'])) {
-case 0:
- $rtorrent = isEnabled("rtorrent", $username);
- $cbodyr .= $rtorrent;
- $irssi = isEnabled("irssi", $username);
- $cbodyi .= $irssi;
- $deluged = isEnabled("deluged", $username);
- $cbodyd .= $deluged;
- $delugedweb = isEnabled("deluge-web", $username);
- $cbodydw .= $delugedweb;
- $shellinabox = isEnabled("shellinabox",shellinabox);
- $wcbodyb .= $shellinabox;
- $btsync = isEnabled("resilio-sync",rslsync);
- $cbodyb .= $btsync;
- $couchpotato = isEnabled("couchpotato", $username);
- $cbodycp .= $couchpotato;
- $emby = isEnabled("emby-server", $username);
- $cbodye .= $emby;
- $jackett = isEnabled("jackett", $username);
- $cbodyj .= $jackett;
- $plex = isEnabled("plexmediaserver",plex);
- $cbodyp .= $plex;
- $plexpy = isEnabled("plexpy",plexpy);
- $cbodypp .= $plexpy;
- $ombi = isEnabled("ombi", $username);
- $cbodypr .= $ombi;
- $pyload = isEnabled("pyload", $username);
- $cbodypl .= $pyload;
- $quassel = isEnabled("quassel", $username);
- $cbodyq .= $quassel;
- $rapidleech = isEnabled("rapidleech", $username);
- $cbodyrl .= $rapidleech;
- $sabnzbd = isEnabled("sabnzbd", $username);
- $cbodysz .= $sabnzbd;
- $sickrage = isEnabled("sickrage", $username);
- $cbodysr .= $sickrage;
- $sonarr = isEnabled("sonarr", $username);
- $cbodys .= $sonarr;
- $subsonic = isEnabled("subsonic", root);
- $cbodyss .= $subsonic;
- $syncthing = isEnabled("syncthing", $username);
- $cbodyst .= $syncthing;
- $x2go = isEnabled("x2go", $username);
- $cbodyx .= $x2go;
- $znc = isEnabled("znc", $username);
- $cbodyz .= $znc;
-
-break;
-
-/* enable & start services */
-case 66:
- $process = $_GET['serviceenable'];
- if ($process == "resilio-sync"){
- shell_exec("sudo systemctl enable $process");
- shell_exec("sudo systemctl start $process");
- } elseif ($process == "shellinabox"){
- shell_exec("sudo systemctl enable $process");
- shell_exec("sudo systemctl start $process");
- } elseif ($process == "emby-server"){
- shell_exec("sudo systemctl enable $process");
- shell_exec("sudo systemctl start $process");
- } elseif ($process == "plexmediaserver"){
- shell_exec("sudo systemctl enable $process");
- shell_exec("sudo systemctl start $process");
- } elseif ($process == "plexpy"){
- shell_exec("sudo systemctl enable $process");
- shell_exec("sudo systemctl start $process");
- } elseif ($process == "ombi"){
- shell_exec("sudo systemctl enable $process");
- shell_exec("sudo systemctl start $process");
- } elseif ($process == "subsonic"){
- shell_exec("sudo systemctl enable $process");
- shell_exec("sudo systemctl start $process");
- } else {
- shell_exec("sudo systemctl enable $process@$username");
- shell_exec("sudo systemctl start $process@$username");
- }
- header('Location: https://' . $_SERVER['HTTP_HOST'] . '/');
-break;
-
-/* disable & stop services */
-case 77:
- $process = $_GET['servicedisable'];
- if ($process == "resilio-sync"){
- shell_exec("sudo systemctl stop $process");
- shell_exec("sudo systemctl disable $process");
- } elseif ($process == "shellinabox"){
- shell_exec("sudo systemctl stop $process");
- shell_exec("sudo systemctl disable $process");
- } elseif ($process == "emby-server"){
- shell_exec("sudo systemctl stop $process");
- shell_exec("sudo systemctl disable $process");
- } elseif ($process == "plexmediaserver"){
- shell_exec("sudo systemctl stop $process");
- shell_exec("sudo systemctl disable $process");
- } elseif ($process == "plexpy"){
- shell_exec("sudo systemctl stop $process");
- shell_exec("sudo systemctl disable $process");
- } elseif ($process == "ombi"){
- shell_exec("sudo systemctl stop $process");
- shell_exec("sudo systemctl disable $process");
- } elseif ($process == "subsonic"){
- shell_exec("sudo systemctl stop $process");
- shell_exec("sudo systemctl disable $process");
- } else {
- shell_exec("sudo systemctl stop $process@$username");
- shell_exec("sudo systemctl disable $process@$username");
- }
- header('Location: https://' . $_SERVER['HTTP_HOST'] . '/');
-break;
-
-/* restart services */
-case 88:
- $process = $_GET['servicestart'];
- if ($process == "resilio-sync"){
- shell_exec("sudo systemctl enable $process");
- shell_exec("sudo systemctl restart $process");
- } elseif ($process == "shellinabox"){
- shell_exec("sudo systemctl enable $process");
- shell_exec("sudo systemctl restart $process");
- } elseif ($process == "emby-server"){
- shell_exec("sudo systemctl enable $process");
- shell_exec("sudo systemctl restart $process");
- } elseif ($process == "plexmediaserver"){
- shell_exec("sudo systemctl enable $process");
- shell_exec("sudo systemctl restart $process");
- } elseif ($process == "plexpy"){
- shell_exec("sudo systemctl enable $process");
- shell_exec("sudo systemctl restart $process");
- } elseif ($process == "ombi"){
- shell_exec("sudo systemctl enable $process");
- shell_exec("sudo systemctl restart $process");
- } elseif ($process == "subsonic"){
- shell_exec("sudo systemctl enable $process");
- shell_exec("sudo systemctl restart $process");
- } else {
- shell_exec("sudo systemctl restart $process@$username");
- }
- header('Location: https://' . $_SERVER['HTTP_HOST'] . '/');
-break;
-
-}
-
-?>
diff --git a/dashboard/inc/localize.php b/dashboard/inc/localize.php
deleted file mode 100644
index b47fe742..00000000
--- a/dashboard/inc/localize.php
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/dashboard/inc/panel.end.php b/dashboard/inc/panel.end.php
deleted file mode 100644
index eda73c35..00000000
--- a/dashboard/inc/panel.end.php
+++ /dev/null
@@ -1,4 +0,0 @@
-
-