diff --git a/api/v1/statistic.php b/api/v1/statistic.php deleted file mode 100644 index 8d25664..0000000 --- a/api/v1/statistic.php +++ /dev/null @@ -1,80 +0,0 @@ -loadStatistics(); - - if (($name = $controller->getStatisticName($_POST['id'])) !== false) { - if (isset($_POST['plugin']) && trim($_POST['plugin']) != '') - pluginLanguage(trim($_POST['plugin'])); - - $builder = new StatisticBuilder(); - $builder->loadFromFile($name, (isset($_POST['plugin']) && trim($_POST['plugin']) != '') ? $_POST['plugin'] : NULL); - $statistic = $builder->getArray(); - - $log = new LogStatistic(); - $log->setFile(LOG_PATH . $statistic['raw'] . '.csv'); - $logData = $log->getAll(); - - $arr = $info = array(); - - foreach ($statistic['columns'] as $column) { - $arr['cols'][] = array('id' => '', 'label' => _t($column['label']), 'type' => $column['type']); - } - - getRowsFromLog($arr, $info, $logData, $statistic['columns'], $statistic['cycle']); - - if (isset($arr['rows'])) { - if (isset($_POST['type']) && $_POST['type'] == 'googleChart') - $arr['rows'] = convertForGoogleChart($arr['rows']); - - $arr['rows'] = array_slice($arr['rows'], -2016); - $arr['periods'] = $info['periods']; - - foreach (array('min', 'max') as $type) { - if ($statistic['limits'][$type]['use'] == 'multiply') - $arr[$type] = round($info[$type] * $statistic['limits'][$type]['value']); - elseif ($statistic['limits'][$type]['use'] == 'fix') { - if ($statistic['limits'][$type]['fix'] == true) - $arr[$type] = $statistic['limits'][$type]['value']; - else - $arr[$type] = round($info[$type]); - } - } - - $api->addData('statistic', $arr); - } else - $api->setError('error', 'Empty data.'); - } else - $api->setError('error', 'Data not found.'); -} else { - $statistics = array(); - $hiddenStatistics = unserialize(htmlspecialchars_decode(getConfig('main:statistic.hidden', 'a:0:{}'))); - - $controller = new StatisticController(); - $controller->loadStatistics(); - - foreach ($controller->getStatistics() as $statistic) { - $builder = new StatisticBuilder(); - $builder->loadFromFile($statistic); - - $array = $builder->getArray(); - if (!in_array($builder->getId(), $hiddenStatistics)) - $statistics[] = array('array' => $array); - } - - $api->addData('statistics', $statistics); - $api->addData('hidden', $hiddenStatistics); -} - -$api->display(); diff --git a/README.md b/backend/README.md similarity index 100% rename from README.md rename to backend/README.md diff --git a/api/v1/detailed_overview.php b/backend/api/v1/detailed_overview.php similarity index 100% rename from api/v1/detailed_overview.php rename to backend/api/v1/detailed_overview.php diff --git a/api/v1/discover_plugins.php b/backend/api/v1/discover_plugins.php similarity index 100% rename from api/v1/discover_plugins.php rename to backend/api/v1/discover_plugins.php diff --git a/api/v1/feedback.php b/backend/api/v1/feedback.php similarity index 100% rename from api/v1/feedback.php rename to backend/api/v1/feedback.php diff --git a/api/v1/login.php b/backend/api/v1/login.php similarity index 100% rename from api/v1/login.php rename to backend/api/v1/login.php diff --git a/api/v1/logs.php b/backend/api/v1/logs.php similarity index 100% rename from api/v1/logs.php rename to backend/api/v1/logs.php diff --git a/api/v1/logs_download.php b/backend/api/v1/logs_download.php similarity index 100% rename from api/v1/logs_download.php rename to backend/api/v1/logs_download.php diff --git a/api/v1/main.php b/backend/api/v1/main.php similarity index 100% rename from api/v1/main.php rename to backend/api/v1/main.php diff --git a/api/v1/network.php b/backend/api/v1/network.php similarity index 100% rename from api/v1/network.php rename to backend/api/v1/network.php diff --git a/api/v1/network_configuration_interface.php b/backend/api/v1/network_configuration_interface.php similarity index 100% rename from api/v1/network_configuration_interface.php rename to backend/api/v1/network_configuration_interface.php diff --git a/api/v1/network_connect_wlan.php b/backend/api/v1/network_connect_wlan.php similarity index 100% rename from api/v1/network_connect_wlan.php rename to backend/api/v1/network_connect_wlan.php diff --git a/api/v1/overview.php b/backend/api/v1/overview.php similarity index 100% rename from api/v1/overview.php rename to backend/api/v1/overview.php diff --git a/api/v1/ping.php b/backend/api/v1/ping.php similarity index 100% rename from api/v1/ping.php rename to backend/api/v1/ping.php diff --git a/api/v1/plugins.php b/backend/api/v1/plugins.php similarity index 100% rename from api/v1/plugins.php rename to backend/api/v1/plugins.php diff --git a/api/v1/processes.php b/backend/api/v1/processes.php similarity index 100% rename from api/v1/processes.php rename to backend/api/v1/processes.php diff --git a/api/v1/shutdown.php b/backend/api/v1/shutdown.php similarity index 100% rename from api/v1/shutdown.php rename to backend/api/v1/shutdown.php diff --git a/api/v1/ssh.php b/backend/api/v1/ssh.php similarity index 100% rename from api/v1/ssh.php rename to backend/api/v1/ssh.php diff --git a/backend/api/v1/statistic.php b/backend/api/v1/statistic.php new file mode 100644 index 0000000..db36119 --- /dev/null +++ b/backend/api/v1/statistic.php @@ -0,0 +1,101 @@ +setFile(LOG_PATH . 'statistic/' . $_GET['statistic'] . '.csv'); + $data = array(); + $data['data'] = array(); + $limit = 2016; + if (isset($_GET['limit'])) { + $limit = $_GET['limit']; + } + $i = 0; + foreach ($log->getAll() as $row) { + if ($i >= 2016 - $limit) { + array_push($data['data'], array('time' => (int)$row[0], 'value' => (float)$row[1])); + } + $i++; + } + echo json_encode($data); +} else { + $api = new API; + + if (isset($_POST['id'])) { + $controller = new StatisticController(); + $controller->loadStatistics(); + + if (($name = $controller->getStatisticName($_POST['id'])) !== false) { + if (isset($_POST['plugin']) && trim($_POST['plugin']) != '') + pluginLanguage(trim($_POST['plugin'])); + + $builder = new StatisticBuilder(); + $builder->loadFromFile($name, (isset($_POST['plugin']) && trim($_POST['plugin']) != '') ? $_POST['plugin'] : NULL); + $statistic = $builder->getArray(); + + $log = new LogStatistic(); + $log->setFile(LOG_PATH . $statistic['raw'] . '.csv'); + $logData = $log->getAll(); + + $arr = $info = array(); + + foreach ($statistic['columns'] as $column) { + $arr['cols'][] = array('id' => '', 'label' => _t($column['label']), 'type' => $column['type']); + } + + getRowsFromLog($arr, $info, $logData, $statistic['columns'], $statistic['cycle']); + + if (isset($arr['rows'])) { + if (isset($_POST['type']) && $_POST['type'] == 'googleChart') + $arr['rows'] = convertForGoogleChart($arr['rows']); + + $arr['rows'] = array_slice($arr['rows'], -2016); + $arr['periods'] = $info['periods']; + + foreach (array('min', 'max') as $type) { + if ($statistic['limits'][$type]['use'] == 'multiply') + $arr[$type] = round($info[$type] * $statistic['limits'][$type]['value']); + elseif ($statistic['limits'][$type]['use'] == 'fix') { + if ($statistic['limits'][$type]['fix'] == true) + $arr[$type] = $statistic['limits'][$type]['value']; + else + $arr[$type] = round($info[$type]); + } + } + + $api->addData('statistic', $arr); + } else + $api->setError('error', 'Empty data.'); + } else + $api->setError('error', 'Data not found.'); + } else { + $statistics = array(); + $hiddenStatistics = unserialize(htmlspecialchars_decode(getConfig('main:statistic.hidden', 'a:0:{}'))); + + $controller = new StatisticController(); + $controller->loadStatistics(); + + foreach ($controller->getStatistics() as $statistic) { + $builder = new StatisticBuilder(); + $builder->loadFromFile($statistic); + + $array = $builder->getArray(); + if (!in_array($builder->getId(), $hiddenStatistics)) + $statistics[] = array('array' => $array); + } + + $api->addData('statistics', $statistics); + $api->addData('hidden', $hiddenStatistics); + } + + $api->display(); +} diff --git a/api/v1/statistic_download.php b/backend/api/v1/statistic_download.php similarity index 100% rename from api/v1/statistic_download.php rename to backend/api/v1/statistic_download.php diff --git a/api/v1/users_groups.php b/backend/api/v1/users_groups.php similarity index 100% rename from api/v1/users_groups.php rename to backend/api/v1/users_groups.php diff --git a/api/versions.php b/backend/api/versions.php similarity index 100% rename from api/versions.php rename to backend/api/versions.php diff --git a/index.php b/backend/index.php similarity index 100% rename from index.php rename to backend/index.php diff --git a/install/api/v1/feedback.php b/backend/install/api/v1/feedback.php similarity index 100% rename from install/api/v1/feedback.php rename to backend/install/api/v1/feedback.php diff --git a/install/api/versions.php b/backend/install/api/versions.php similarity index 100% rename from install/api/versions.php rename to backend/install/api/versions.php diff --git a/install/index.php b/backend/install/index.php similarity index 100% rename from install/index.php rename to backend/install/index.php diff --git a/install/public_html/css/style.css.php b/backend/install/public_html/css/style.css.php similarity index 100% rename from install/public_html/css/style.css.php rename to backend/install/public_html/css/style.css.php diff --git a/install/public_html/img/arrow-icon.svg b/backend/install/public_html/img/arrow-icon.svg similarity index 100% rename from install/public_html/img/arrow-icon.svg rename to backend/install/public_html/img/arrow-icon.svg diff --git a/install/public_html/img/cross-icon.svg b/backend/install/public_html/img/cross-icon.svg similarity index 100% rename from install/public_html/img/cross-icon.svg rename to backend/install/public_html/img/cross-icon.svg diff --git a/install/public_html/img/favicon/android-chrome-144x144.png b/backend/install/public_html/img/favicon/android-chrome-144x144.png similarity index 100% rename from install/public_html/img/favicon/android-chrome-144x144.png rename to backend/install/public_html/img/favicon/android-chrome-144x144.png diff --git a/install/public_html/img/favicon/android-chrome-192x192.png b/backend/install/public_html/img/favicon/android-chrome-192x192.png similarity index 100% rename from install/public_html/img/favicon/android-chrome-192x192.png rename to backend/install/public_html/img/favicon/android-chrome-192x192.png diff --git a/install/public_html/img/favicon/android-chrome-36x36.png b/backend/install/public_html/img/favicon/android-chrome-36x36.png similarity index 100% rename from install/public_html/img/favicon/android-chrome-36x36.png rename to backend/install/public_html/img/favicon/android-chrome-36x36.png diff --git a/install/public_html/img/favicon/android-chrome-48x48.png b/backend/install/public_html/img/favicon/android-chrome-48x48.png similarity index 100% rename from install/public_html/img/favicon/android-chrome-48x48.png rename to backend/install/public_html/img/favicon/android-chrome-48x48.png diff --git a/install/public_html/img/favicon/android-chrome-72x72.png b/backend/install/public_html/img/favicon/android-chrome-72x72.png similarity index 100% rename from install/public_html/img/favicon/android-chrome-72x72.png rename to backend/install/public_html/img/favicon/android-chrome-72x72.png diff --git a/install/public_html/img/favicon/android-chrome-96x96.png b/backend/install/public_html/img/favicon/android-chrome-96x96.png similarity index 100% rename from install/public_html/img/favicon/android-chrome-96x96.png rename to backend/install/public_html/img/favicon/android-chrome-96x96.png diff --git a/install/public_html/img/favicon/apple-touch-icon-120x120.png b/backend/install/public_html/img/favicon/apple-touch-icon-120x120.png similarity index 100% rename from install/public_html/img/favicon/apple-touch-icon-120x120.png rename to backend/install/public_html/img/favicon/apple-touch-icon-120x120.png diff --git a/install/public_html/img/favicon/apple-touch-icon-152x152.png b/backend/install/public_html/img/favicon/apple-touch-icon-152x152.png similarity index 100% rename from install/public_html/img/favicon/apple-touch-icon-152x152.png rename to backend/install/public_html/img/favicon/apple-touch-icon-152x152.png diff --git a/install/public_html/img/favicon/apple-touch-icon-180x180.png b/backend/install/public_html/img/favicon/apple-touch-icon-180x180.png similarity index 100% rename from install/public_html/img/favicon/apple-touch-icon-180x180.png rename to backend/install/public_html/img/favicon/apple-touch-icon-180x180.png diff --git a/install/public_html/img/favicon/apple-touch-icon-57x57.png b/backend/install/public_html/img/favicon/apple-touch-icon-57x57.png similarity index 100% rename from install/public_html/img/favicon/apple-touch-icon-57x57.png rename to backend/install/public_html/img/favicon/apple-touch-icon-57x57.png diff --git a/install/public_html/img/favicon/favicon-96x96.png b/backend/install/public_html/img/favicon/favicon-96x96.png similarity index 100% rename from install/public_html/img/favicon/favicon-96x96.png rename to backend/install/public_html/img/favicon/favicon-96x96.png diff --git a/install/public_html/img/favicon/favicon.ico b/backend/install/public_html/img/favicon/favicon.ico similarity index 100% rename from install/public_html/img/favicon/favicon.ico rename to backend/install/public_html/img/favicon/favicon.ico diff --git a/install/public_html/img/favicon/manifest.json b/backend/install/public_html/img/favicon/manifest.json similarity index 100% rename from install/public_html/img/favicon/manifest.json rename to backend/install/public_html/img/favicon/manifest.json diff --git a/install/public_html/img/favicon/safari-pinned-tab.svg b/backend/install/public_html/img/favicon/safari-pinned-tab.svg similarity index 100% rename from install/public_html/img/favicon/safari-pinned-tab.svg rename to backend/install/public_html/img/favicon/safari-pinned-tab.svg diff --git a/install/public_html/img/help-icon.svg b/backend/install/public_html/img/help-icon.svg similarity index 100% rename from install/public_html/img/help-icon.svg rename to backend/install/public_html/img/help-icon.svg diff --git a/install/public_html/img/info-icon.svg b/backend/install/public_html/img/info-icon.svg similarity index 100% rename from install/public_html/img/info-icon.svg rename to backend/install/public_html/img/info-icon.svg diff --git a/install/public_html/img/loader.svg b/backend/install/public_html/img/loader.svg similarity index 100% rename from install/public_html/img/loader.svg rename to backend/install/public_html/img/loader.svg diff --git a/install/public_html/img/logo.svg b/backend/install/public_html/img/logo.svg similarity index 100% rename from install/public_html/img/logo.svg rename to backend/install/public_html/img/logo.svg diff --git a/install/public_html/img/update-loader.svg b/backend/install/public_html/img/update-loader.svg similarity index 100% rename from install/public_html/img/update-loader.svg rename to backend/install/public_html/img/update-loader.svg diff --git a/install/public_html/js/feedback.js b/backend/install/public_html/js/feedback.js similarity index 100% rename from install/public_html/js/feedback.js rename to backend/install/public_html/js/feedback.js diff --git a/install/public_html/js/install.language.js b/backend/install/public_html/js/install.language.js similarity index 100% rename from install/public_html/js/install.language.js rename to backend/install/public_html/js/install.language.js diff --git a/install/public_html/js/jquery.min.js b/backend/install/public_html/js/jquery.min.js similarity index 100% rename from install/public_html/js/jquery.min.js rename to backend/install/public_html/js/jquery.min.js diff --git a/install/public_html/js/main.js b/backend/install/public_html/js/main.js similarity index 100% rename from install/public_html/js/main.js rename to backend/install/public_html/js/main.js diff --git a/install/public_html/js/translation.js b/backend/install/public_html/js/translation.js similarity index 100% rename from install/public_html/js/translation.js rename to backend/install/public_html/js/translation.js diff --git a/install/public_html/templates/error.tpl.php b/backend/install/public_html/templates/error.tpl.php similarity index 100% rename from install/public_html/templates/error.tpl.php rename to backend/install/public_html/templates/error.tpl.php diff --git a/install/public_html/templates/html_footer.tpl.php b/backend/install/public_html/templates/html_footer.tpl.php similarity index 100% rename from install/public_html/templates/html_footer.tpl.php rename to backend/install/public_html/templates/html_footer.tpl.php diff --git a/install/public_html/templates/html_header.tpl.php b/backend/install/public_html/templates/html_header.tpl.php similarity index 100% rename from install/public_html/templates/html_header.tpl.php rename to backend/install/public_html/templates/html_header.tpl.php diff --git a/install/public_html/templates/install.tpl.php b/backend/install/public_html/templates/install.tpl.php similarity index 100% rename from install/public_html/templates/install.tpl.php rename to backend/install/public_html/templates/install.tpl.php diff --git a/install/public_html/templates/install_cron.tpl.php b/backend/install/public_html/templates/install_cron.tpl.php similarity index 100% rename from install/public_html/templates/install_cron.tpl.php rename to backend/install/public_html/templates/install_cron.tpl.php diff --git a/install/public_html/templates/install_cron_info.tpl.php b/backend/install/public_html/templates/install_cron_info.tpl.php similarity index 100% rename from install/public_html/templates/install_cron_info.tpl.php rename to backend/install/public_html/templates/install_cron_info.tpl.php diff --git a/install/public_html/templates/install_finish.tpl.php b/backend/install/public_html/templates/install_finish.tpl.php similarity index 100% rename from install/public_html/templates/install_finish.tpl.php rename to backend/install/public_html/templates/install_finish.tpl.php diff --git a/install/public_html/templates/install_language.tpl.php b/backend/install/public_html/templates/install_language.tpl.php similarity index 100% rename from install/public_html/templates/install_language.tpl.php rename to backend/install/public_html/templates/install_language.tpl.php diff --git a/install/public_html/templates/install_requirement.tpl.php b/backend/install/public_html/templates/install_requirement.tpl.php similarity index 100% rename from install/public_html/templates/install_requirement.tpl.php rename to backend/install/public_html/templates/install_requirement.tpl.php diff --git a/install/public_html/templates/install_troubleshooting.tpl.php b/backend/install/public_html/templates/install_troubleshooting.tpl.php similarity index 100% rename from install/public_html/templates/install_troubleshooting.tpl.php rename to backend/install/public_html/templates/install_troubleshooting.tpl.php diff --git a/install/public_html/templates/install_user.tpl.php b/backend/install/public_html/templates/install_user.tpl.php similarity index 100% rename from install/public_html/templates/install_user.tpl.php rename to backend/install/public_html/templates/install_user.tpl.php diff --git a/install/public_html/templates/install_user_info.tpl.php b/backend/install/public_html/templates/install_user_info.tpl.php similarity index 100% rename from install/public_html/templates/install_user_info.tpl.php rename to backend/install/public_html/templates/install_user_info.tpl.php diff --git a/install/public_html/templates/msg.tpl.php b/backend/install/public_html/templates/msg.tpl.php similarity index 100% rename from install/public_html/templates/msg.tpl.php rename to backend/install/public_html/templates/msg.tpl.php diff --git a/install/public_html/templates/single_box.tpl.php b/backend/install/public_html/templates/single_box.tpl.php similarity index 100% rename from install/public_html/templates/single_box.tpl.php rename to backend/install/public_html/templates/single_box.tpl.php diff --git a/install/resources/cache/language.cache.php b/backend/install/resources/cache/language.cache.php similarity index 100% rename from install/resources/cache/language.cache.php rename to backend/install/resources/cache/language.cache.php diff --git a/install/resources/content/html_footer.php b/backend/install/resources/content/html_footer.php similarity index 100% rename from install/resources/content/html_footer.php rename to backend/install/resources/content/html_footer.php diff --git a/install/resources/content/html_header.php b/backend/install/resources/content/html_header.php similarity index 100% rename from install/resources/content/html_header.php rename to backend/install/resources/content/html_header.php diff --git a/install/resources/content/install.php b/backend/install/resources/content/install.php similarity index 100% rename from install/resources/content/install.php rename to backend/install/resources/content/install.php diff --git a/install/resources/content/install_cron.php b/backend/install/resources/content/install_cron.php similarity index 100% rename from install/resources/content/install_cron.php rename to backend/install/resources/content/install_cron.php diff --git a/install/resources/content/install_finish.php b/backend/install/resources/content/install_finish.php similarity index 100% rename from install/resources/content/install_finish.php rename to backend/install/resources/content/install_finish.php diff --git a/install/resources/content/install_language.php b/backend/install/resources/content/install_language.php similarity index 100% rename from install/resources/content/install_language.php rename to backend/install/resources/content/install_language.php diff --git a/install/resources/content/install_requirement.php b/backend/install/resources/content/install_requirement.php similarity index 93% rename from install/resources/content/install_requirement.php rename to backend/install/resources/content/install_requirement.php index 1544dff..2346472 100644 --- a/install/resources/content/install_requirement.php +++ b/backend/install/resources/content/install_requirement.php @@ -7,7 +7,7 @@ $tpl->setHeaderTitle(_t('Anforderungen')); // PHP $phpVersion = array('version' => PHP_VERSION, 'status' => false); -$phpSSH = array('status' => false); +$phpSSH = array('status' => true); $phpMcrypt = array('status' => false); $phpCLI = array('status' => false); $phpCURL = array('status' => false); @@ -28,7 +28,7 @@ if (extension_loaded('ssh2')) #if (function_exists('mcrypt_encrypt') !== false) # $phpMcrypt['status'] = true; -if (trim(exec('dpkg -s php7.3-cli | grep Status: ')) != '' || trim(exec('dpkg -s php7.4-cli | grep Status: ')) != '') +if (trim(exec('dpkg -s php7.3-cli | grep Status: ')) != '' || trim(exec('dpkg -s php7.4-cli | grep Status: ')) != '' || trim(exec('dpkg -s php8.0-cli | grep Status: ')) != '' || trim(exec('dpkg -s php8.1-cli | grep Status: ')) != '' || trim(exec('dpkg -s php8.2-cli | grep Status: ')) != '') $phpCLI['status'] = true; if (function_exists('curl_init') !== false) diff --git a/install/resources/content/install_troubleshooting.php b/backend/install/resources/content/install_troubleshooting.php similarity index 100% rename from install/resources/content/install_troubleshooting.php rename to backend/install/resources/content/install_troubleshooting.php diff --git a/install/resources/content/install_user.php b/backend/install/resources/content/install_user.php similarity index 100% rename from install/resources/content/install_user.php rename to backend/install/resources/content/install_user.php diff --git a/install/resources/init.php b/backend/install/resources/init.php similarity index 100% rename from install/resources/init.php rename to backend/install/resources/init.php diff --git a/install/resources/languages/en.php b/backend/install/resources/languages/en.php similarity index 100% rename from install/resources/languages/en.php rename to backend/install/resources/languages/en.php diff --git a/install/resources/library/curl/curl.class.php b/backend/install/resources/library/curl/curl.class.php similarity index 100% rename from install/resources/library/curl/curl.class.php rename to backend/install/resources/library/curl/curl.class.php diff --git a/install/resources/library/install/install.function.php b/backend/install/resources/library/install/install.function.php similarity index 100% rename from install/resources/library/install/install.function.php rename to backend/install/resources/library/install/install.function.php diff --git a/install/resources/library/main/main.function.php b/backend/install/resources/library/main/main.function.php similarity index 100% rename from install/resources/library/main/main.function.php rename to backend/install/resources/library/main/main.function.php diff --git a/install/resources/library/main/password.function.php b/backend/install/resources/library/main/password.function.php similarity index 100% rename from install/resources/library/main/password.function.php rename to backend/install/resources/library/main/password.function.php diff --git a/install/resources/library/main/rpi.function.php b/backend/install/resources/library/main/rpi.function.php similarity index 100% rename from install/resources/library/main/rpi.function.php rename to backend/install/resources/library/main/rpi.function.php diff --git a/install/resources/library/main/sites.php b/backend/install/resources/library/main/sites.php similarity index 100% rename from install/resources/library/main/sites.php rename to backend/install/resources/library/main/sites.php diff --git a/install/resources/library/main/tpl.class.php b/backend/install/resources/library/main/tpl.class.php similarity index 100% rename from install/resources/library/main/tpl.class.php rename to backend/install/resources/library/main/tpl.class.php diff --git a/install/resources/library/main/tpl.function.php b/backend/install/resources/library/main/tpl.function.php similarity index 100% rename from install/resources/library/main/tpl.function.php rename to backend/install/resources/library/main/tpl.function.php diff --git a/install/resources/library/terminal/Crypt/AES.php b/backend/install/resources/library/terminal/Crypt/AES.php similarity index 100% rename from install/resources/library/terminal/Crypt/AES.php rename to backend/install/resources/library/terminal/Crypt/AES.php diff --git a/install/resources/library/terminal/Crypt/Base.php b/backend/install/resources/library/terminal/Crypt/Base.php similarity index 100% rename from install/resources/library/terminal/Crypt/Base.php rename to backend/install/resources/library/terminal/Crypt/Base.php diff --git a/install/resources/library/terminal/Crypt/Blowfish.php b/backend/install/resources/library/terminal/Crypt/Blowfish.php similarity index 100% rename from install/resources/library/terminal/Crypt/Blowfish.php rename to backend/install/resources/library/terminal/Crypt/Blowfish.php diff --git a/install/resources/library/terminal/Crypt/DES.php b/backend/install/resources/library/terminal/Crypt/DES.php similarity index 100% rename from install/resources/library/terminal/Crypt/DES.php rename to backend/install/resources/library/terminal/Crypt/DES.php diff --git a/install/resources/library/terminal/Crypt/Hash.php b/backend/install/resources/library/terminal/Crypt/Hash.php similarity index 100% rename from install/resources/library/terminal/Crypt/Hash.php rename to backend/install/resources/library/terminal/Crypt/Hash.php diff --git a/install/resources/library/terminal/Crypt/RC2.php b/backend/install/resources/library/terminal/Crypt/RC2.php similarity index 100% rename from install/resources/library/terminal/Crypt/RC2.php rename to backend/install/resources/library/terminal/Crypt/RC2.php diff --git a/install/resources/library/terminal/Crypt/RC4.php b/backend/install/resources/library/terminal/Crypt/RC4.php similarity index 100% rename from install/resources/library/terminal/Crypt/RC4.php rename to backend/install/resources/library/terminal/Crypt/RC4.php diff --git a/install/resources/library/terminal/Crypt/RSA.php b/backend/install/resources/library/terminal/Crypt/RSA.php similarity index 100% rename from install/resources/library/terminal/Crypt/RSA.php rename to backend/install/resources/library/terminal/Crypt/RSA.php diff --git a/install/resources/library/terminal/Crypt/Random.php b/backend/install/resources/library/terminal/Crypt/Random.php similarity index 100% rename from install/resources/library/terminal/Crypt/Random.php rename to backend/install/resources/library/terminal/Crypt/Random.php diff --git a/install/resources/library/terminal/Crypt/Rijndael.php b/backend/install/resources/library/terminal/Crypt/Rijndael.php similarity index 100% rename from install/resources/library/terminal/Crypt/Rijndael.php rename to backend/install/resources/library/terminal/Crypt/Rijndael.php diff --git a/install/resources/library/terminal/Crypt/TripleDES.php b/backend/install/resources/library/terminal/Crypt/TripleDES.php similarity index 100% rename from install/resources/library/terminal/Crypt/TripleDES.php rename to backend/install/resources/library/terminal/Crypt/TripleDES.php diff --git a/install/resources/library/terminal/Crypt/Twofish.php b/backend/install/resources/library/terminal/Crypt/Twofish.php similarity index 100% rename from install/resources/library/terminal/Crypt/Twofish.php rename to backend/install/resources/library/terminal/Crypt/Twofish.php diff --git a/install/resources/library/terminal/File/ANSI.php b/backend/install/resources/library/terminal/File/ANSI.php similarity index 100% rename from install/resources/library/terminal/File/ANSI.php rename to backend/install/resources/library/terminal/File/ANSI.php diff --git a/install/resources/library/terminal/File/ASN1.php b/backend/install/resources/library/terminal/File/ASN1.php similarity index 100% rename from install/resources/library/terminal/File/ASN1.php rename to backend/install/resources/library/terminal/File/ASN1.php diff --git a/install/resources/library/terminal/File/X509.php b/backend/install/resources/library/terminal/File/X509.php similarity index 100% rename from install/resources/library/terminal/File/X509.php rename to backend/install/resources/library/terminal/File/X509.php diff --git a/install/resources/library/terminal/Math/BigInteger.php b/backend/install/resources/library/terminal/Math/BigInteger.php similarity index 100% rename from install/resources/library/terminal/Math/BigInteger.php rename to backend/install/resources/library/terminal/Math/BigInteger.php diff --git a/install/resources/library/terminal/Net/SCP.php b/backend/install/resources/library/terminal/Net/SCP.php similarity index 100% rename from install/resources/library/terminal/Net/SCP.php rename to backend/install/resources/library/terminal/Net/SCP.php diff --git a/install/resources/library/terminal/Net/SFTP.php b/backend/install/resources/library/terminal/Net/SFTP.php similarity index 100% rename from install/resources/library/terminal/Net/SFTP.php rename to backend/install/resources/library/terminal/Net/SFTP.php diff --git a/install/resources/library/terminal/Net/SFTP/Stream.php b/backend/install/resources/library/terminal/Net/SFTP/Stream.php similarity index 100% rename from install/resources/library/terminal/Net/SFTP/Stream.php rename to backend/install/resources/library/terminal/Net/SFTP/Stream.php diff --git a/install/resources/library/terminal/Net/SSH1.php b/backend/install/resources/library/terminal/Net/SSH1.php similarity index 100% rename from install/resources/library/terminal/Net/SSH1.php rename to backend/install/resources/library/terminal/Net/SSH1.php diff --git a/install/resources/library/terminal/Net/SSH2.php b/backend/install/resources/library/terminal/Net/SSH2.php similarity index 100% rename from install/resources/library/terminal/Net/SSH2.php rename to backend/install/resources/library/terminal/Net/SSH2.php diff --git a/install/resources/library/terminal/System/SSH/Agent.php b/backend/install/resources/library/terminal/System/SSH/Agent.php similarity index 100% rename from install/resources/library/terminal/System/SSH/Agent.php rename to backend/install/resources/library/terminal/System/SSH/Agent.php diff --git a/install/resources/library/terminal/System/SSH_Agent.php b/backend/install/resources/library/terminal/System/SSH_Agent.php similarity index 100% rename from install/resources/library/terminal/System/SSH_Agent.php rename to backend/install/resources/library/terminal/System/SSH_Agent.php diff --git a/license.txt b/backend/license.txt similarity index 100% rename from license.txt rename to backend/license.txt diff --git a/public_html/css/style.css.php b/backend/public_html/css/style.css.php similarity index 100% rename from public_html/css/style.css.php rename to backend/public_html/css/style.css.php diff --git a/public_html/img/arrow-icon.svg b/backend/public_html/img/arrow-icon.svg similarity index 100% rename from public_html/img/arrow-icon.svg rename to backend/public_html/img/arrow-icon.svg diff --git a/public_html/img/control-icons.svg b/backend/public_html/img/control-icons.svg similarity index 100% rename from public_html/img/control-icons.svg rename to backend/public_html/img/control-icons.svg diff --git a/public_html/img/cross-icon.svg b/backend/public_html/img/cross-icon.svg similarity index 100% rename from public_html/img/cross-icon.svg rename to backend/public_html/img/cross-icon.svg diff --git a/public_html/img/favicon/android-chrome-144x144.png b/backend/public_html/img/favicon/android-chrome-144x144.png similarity index 100% rename from public_html/img/favicon/android-chrome-144x144.png rename to backend/public_html/img/favicon/android-chrome-144x144.png diff --git a/public_html/img/favicon/android-chrome-192x192.png b/backend/public_html/img/favicon/android-chrome-192x192.png similarity index 100% rename from public_html/img/favicon/android-chrome-192x192.png rename to backend/public_html/img/favicon/android-chrome-192x192.png diff --git a/public_html/img/favicon/android-chrome-36x36.png b/backend/public_html/img/favicon/android-chrome-36x36.png similarity index 100% rename from public_html/img/favicon/android-chrome-36x36.png rename to backend/public_html/img/favicon/android-chrome-36x36.png diff --git a/public_html/img/favicon/android-chrome-48x48.png b/backend/public_html/img/favicon/android-chrome-48x48.png similarity index 100% rename from public_html/img/favicon/android-chrome-48x48.png rename to backend/public_html/img/favicon/android-chrome-48x48.png diff --git a/public_html/img/favicon/android-chrome-72x72.png b/backend/public_html/img/favicon/android-chrome-72x72.png similarity index 100% rename from public_html/img/favicon/android-chrome-72x72.png rename to backend/public_html/img/favicon/android-chrome-72x72.png diff --git a/public_html/img/favicon/android-chrome-96x96.png b/backend/public_html/img/favicon/android-chrome-96x96.png similarity index 100% rename from public_html/img/favicon/android-chrome-96x96.png rename to backend/public_html/img/favicon/android-chrome-96x96.png diff --git a/public_html/img/favicon/apple-touch-icon-120x120.png b/backend/public_html/img/favicon/apple-touch-icon-120x120.png similarity index 100% rename from public_html/img/favicon/apple-touch-icon-120x120.png rename to backend/public_html/img/favicon/apple-touch-icon-120x120.png diff --git a/public_html/img/favicon/apple-touch-icon-152x152.png b/backend/public_html/img/favicon/apple-touch-icon-152x152.png similarity index 100% rename from public_html/img/favicon/apple-touch-icon-152x152.png rename to backend/public_html/img/favicon/apple-touch-icon-152x152.png diff --git a/public_html/img/favicon/apple-touch-icon-180x180.png b/backend/public_html/img/favicon/apple-touch-icon-180x180.png similarity index 100% rename from public_html/img/favicon/apple-touch-icon-180x180.png rename to backend/public_html/img/favicon/apple-touch-icon-180x180.png diff --git a/public_html/img/favicon/apple-touch-icon-57x57.png b/backend/public_html/img/favicon/apple-touch-icon-57x57.png similarity index 100% rename from public_html/img/favicon/apple-touch-icon-57x57.png rename to backend/public_html/img/favicon/apple-touch-icon-57x57.png diff --git a/public_html/img/favicon/favicon-96x96.png b/backend/public_html/img/favicon/favicon-96x96.png similarity index 100% rename from public_html/img/favicon/favicon-96x96.png rename to backend/public_html/img/favicon/favicon-96x96.png diff --git a/public_html/img/favicon/favicon.ico b/backend/public_html/img/favicon/favicon.ico similarity index 100% rename from public_html/img/favicon/favicon.ico rename to backend/public_html/img/favicon/favicon.ico diff --git a/public_html/img/favicon/manifest.json b/backend/public_html/img/favicon/manifest.json similarity index 100% rename from public_html/img/favicon/manifest.json rename to backend/public_html/img/favicon/manifest.json diff --git a/public_html/img/favicon/safari-pinned-tab.svg b/backend/public_html/img/favicon/safari-pinned-tab.svg similarity index 100% rename from public_html/img/favicon/safari-pinned-tab.svg rename to backend/public_html/img/favicon/safari-pinned-tab.svg diff --git a/public_html/img/gear-icon.svg b/backend/public_html/img/gear-icon.svg similarity index 100% rename from public_html/img/gear-icon.svg rename to backend/public_html/img/gear-icon.svg diff --git a/public_html/img/help-icon.svg b/backend/public_html/img/help-icon.svg similarity index 100% rename from public_html/img/help-icon.svg rename to backend/public_html/img/help-icon.svg diff --git a/public_html/img/info-icon.svg b/backend/public_html/img/info-icon.svg similarity index 100% rename from public_html/img/info-icon.svg rename to backend/public_html/img/info-icon.svg diff --git a/public_html/img/loader.svg b/backend/public_html/img/loader.svg similarity index 100% rename from public_html/img/loader.svg rename to backend/public_html/img/loader.svg diff --git a/public_html/img/logo.svg b/backend/public_html/img/logo.svg similarity index 100% rename from public_html/img/logo.svg rename to backend/public_html/img/logo.svg diff --git a/public_html/img/network-signal-icons.svg b/backend/public_html/img/network-signal-icons.svg similarity index 100% rename from public_html/img/network-signal-icons.svg rename to backend/public_html/img/network-signal-icons.svg diff --git a/public_html/img/refresh-icon.svg b/backend/public_html/img/refresh-icon.svg similarity index 100% rename from public_html/img/refresh-icon.svg rename to backend/public_html/img/refresh-icon.svg diff --git a/public_html/img/update-loader.svg b/backend/public_html/img/update-loader.svg similarity index 100% rename from public_html/img/update-loader.svg rename to backend/public_html/img/update-loader.svg diff --git a/public_html/img/weather/01d.svg b/backend/public_html/img/weather/01d.svg similarity index 100% rename from public_html/img/weather/01d.svg rename to backend/public_html/img/weather/01d.svg diff --git a/public_html/img/weather/01n.svg b/backend/public_html/img/weather/01n.svg similarity index 100% rename from public_html/img/weather/01n.svg rename to backend/public_html/img/weather/01n.svg diff --git a/public_html/img/weather/02d.svg b/backend/public_html/img/weather/02d.svg similarity index 100% rename from public_html/img/weather/02d.svg rename to backend/public_html/img/weather/02d.svg diff --git a/public_html/img/weather/02n.svg b/backend/public_html/img/weather/02n.svg similarity index 100% rename from public_html/img/weather/02n.svg rename to backend/public_html/img/weather/02n.svg diff --git a/public_html/img/weather/03.svg b/backend/public_html/img/weather/03.svg similarity index 100% rename from public_html/img/weather/03.svg rename to backend/public_html/img/weather/03.svg diff --git a/public_html/img/weather/04.svg b/backend/public_html/img/weather/04.svg similarity index 100% rename from public_html/img/weather/04.svg rename to backend/public_html/img/weather/04.svg diff --git a/public_html/img/weather/09.svg b/backend/public_html/img/weather/09.svg similarity index 100% rename from public_html/img/weather/09.svg rename to backend/public_html/img/weather/09.svg diff --git a/public_html/img/weather/10d.svg b/backend/public_html/img/weather/10d.svg similarity index 100% rename from public_html/img/weather/10d.svg rename to backend/public_html/img/weather/10d.svg diff --git a/public_html/img/weather/10n.svg b/backend/public_html/img/weather/10n.svg similarity index 100% rename from public_html/img/weather/10n.svg rename to backend/public_html/img/weather/10n.svg diff --git a/public_html/img/weather/11.svg b/backend/public_html/img/weather/11.svg similarity index 100% rename from public_html/img/weather/11.svg rename to backend/public_html/img/weather/11.svg diff --git a/public_html/img/weather/13.svg b/backend/public_html/img/weather/13.svg similarity index 100% rename from public_html/img/weather/13.svg rename to backend/public_html/img/weather/13.svg diff --git a/public_html/img/weather/50.svg b/backend/public_html/img/weather/50.svg similarity index 100% rename from public_html/img/weather/50.svg rename to backend/public_html/img/weather/50.svg diff --git a/public_html/img/weather/darksky.png b/backend/public_html/img/weather/darksky.png similarity index 100% rename from public_html/img/weather/darksky.png rename to backend/public_html/img/weather/darksky.png diff --git a/public_html/img/weather/wunderground.png b/backend/public_html/img/weather/wunderground.png similarity index 100% rename from public_html/img/weather/wunderground.png rename to backend/public_html/img/weather/wunderground.png diff --git a/public_html/img/weather/yahoo.png b/backend/public_html/img/weather/yahoo.png similarity index 100% rename from public_html/img/weather/yahoo.png rename to backend/public_html/img/weather/yahoo.png diff --git a/public_html/js/feedback.js b/backend/public_html/js/feedback.js similarity index 100% rename from public_html/js/feedback.js rename to backend/public_html/js/feedback.js diff --git a/public_html/js/jquery.min.js b/backend/public_html/js/jquery.min.js similarity index 100% rename from public_html/js/jquery.min.js rename to backend/public_html/js/jquery.min.js diff --git a/public_html/js/main.js b/backend/public_html/js/main.js similarity index 100% rename from public_html/js/main.js rename to backend/public_html/js/main.js diff --git a/public_html/js/network_configuration.interface_refresh.js b/backend/public_html/js/network_configuration.interface_refresh.js similarity index 100% rename from public_html/js/network_configuration.interface_refresh.js rename to backend/public_html/js/network_configuration.interface_refresh.js diff --git a/public_html/js/network_configuration.method_select.js b/backend/public_html/js/network_configuration.method_select.js similarity index 100% rename from public_html/js/network_configuration.method_select.js rename to backend/public_html/js/network_configuration.method_select.js diff --git a/public_html/js/network_connect.wlan.js b/backend/public_html/js/network_connect.wlan.js similarity index 100% rename from public_html/js/network_connect.wlan.js rename to backend/public_html/js/network_connect.wlan.js diff --git a/public_html/js/overview.status_refresh.js b/backend/public_html/js/overview.status_refresh.js similarity index 100% rename from public_html/js/overview.status_refresh.js rename to backend/public_html/js/overview.status_refresh.js diff --git a/public_html/js/settings.overview.weather.js b/backend/public_html/js/settings.overview.weather.js similarity index 100% rename from public_html/js/settings.overview.weather.js rename to backend/public_html/js/settings.overview.weather.js diff --git a/public_html/js/settings.pi-control.theme.js b/backend/public_html/js/settings.pi-control.theme.js similarity index 100% rename from public_html/js/settings.pi-control.theme.js rename to backend/public_html/js/settings.pi-control.theme.js diff --git a/public_html/js/settings.troubleshooting.cron_selection.js b/backend/public_html/js/settings.troubleshooting.cron_selection.js similarity index 100% rename from public_html/js/settings.troubleshooting.cron_selection.js rename to backend/public_html/js/settings.troubleshooting.cron_selection.js diff --git a/public_html/js/shutdown.restart.js b/backend/public_html/js/shutdown.restart.js similarity index 100% rename from public_html/js/shutdown.restart.js rename to backend/public_html/js/shutdown.restart.js diff --git a/public_html/js/statistic_builder.js b/backend/public_html/js/statistic_builder.js similarity index 100% rename from public_html/js/statistic_builder.js rename to backend/public_html/js/statistic_builder.js diff --git a/public_html/js/terminal.websocket.js b/backend/public_html/js/terminal.websocket.js similarity index 100% rename from public_html/js/terminal.websocket.js rename to backend/public_html/js/terminal.websocket.js diff --git a/public_html/js/translation.js b/backend/public_html/js/translation.js similarity index 100% rename from public_html/js/translation.js rename to backend/public_html/js/translation.js diff --git a/public_html/templates/detailed_overview.tpl.php b/backend/public_html/templates/detailed_overview.tpl.php similarity index 100% rename from public_html/templates/detailed_overview.tpl.php rename to backend/public_html/templates/detailed_overview.tpl.php diff --git a/public_html/templates/discover_plugins.tpl.php b/backend/public_html/templates/discover_plugins.tpl.php similarity index 100% rename from public_html/templates/discover_plugins.tpl.php rename to backend/public_html/templates/discover_plugins.tpl.php diff --git a/public_html/templates/discover_plugins_info.tpl.php b/backend/public_html/templates/discover_plugins_info.tpl.php similarity index 100% rename from public_html/templates/discover_plugins_info.tpl.php rename to backend/public_html/templates/discover_plugins_info.tpl.php diff --git a/public_html/templates/error.tpl.php b/backend/public_html/templates/error.tpl.php similarity index 100% rename from public_html/templates/error.tpl.php rename to backend/public_html/templates/error.tpl.php diff --git a/public_html/templates/html_footer.tpl.php b/backend/public_html/templates/html_footer.tpl.php similarity index 100% rename from public_html/templates/html_footer.tpl.php rename to backend/public_html/templates/html_footer.tpl.php diff --git a/public_html/templates/html_header.tpl.php b/backend/public_html/templates/html_header.tpl.php similarity index 100% rename from public_html/templates/html_header.tpl.php rename to backend/public_html/templates/html_header.tpl.php diff --git a/public_html/templates/installed_packages.tpl.php b/backend/public_html/templates/installed_packages.tpl.php similarity index 100% rename from public_html/templates/installed_packages.tpl.php rename to backend/public_html/templates/installed_packages.tpl.php diff --git a/public_html/templates/login.tpl.php b/backend/public_html/templates/login.tpl.php similarity index 100% rename from public_html/templates/login.tpl.php rename to backend/public_html/templates/login.tpl.php diff --git a/public_html/templates/logs.tpl.php b/backend/public_html/templates/logs.tpl.php similarity index 100% rename from public_html/templates/logs.tpl.php rename to backend/public_html/templates/logs.tpl.php diff --git a/public_html/templates/logs_view.tpl.php b/backend/public_html/templates/logs_view.tpl.php similarity index 100% rename from public_html/templates/logs_view.tpl.php rename to backend/public_html/templates/logs_view.tpl.php diff --git a/public_html/templates/msg.tpl.php b/backend/public_html/templates/msg.tpl.php similarity index 100% rename from public_html/templates/msg.tpl.php rename to backend/public_html/templates/msg.tpl.php diff --git a/public_html/templates/network.tpl.php b/backend/public_html/templates/network.tpl.php similarity index 100% rename from public_html/templates/network.tpl.php rename to backend/public_html/templates/network.tpl.php diff --git a/public_html/templates/network_configuration.tpl.php b/backend/public_html/templates/network_configuration.tpl.php similarity index 100% rename from public_html/templates/network_configuration.tpl.php rename to backend/public_html/templates/network_configuration.tpl.php diff --git a/public_html/templates/network_configuration_add.tpl.php b/backend/public_html/templates/network_configuration_add.tpl.php similarity index 100% rename from public_html/templates/network_configuration_add.tpl.php rename to backend/public_html/templates/network_configuration_add.tpl.php diff --git a/public_html/templates/network_configuration_delete.tpl.php b/backend/public_html/templates/network_configuration_delete.tpl.php similarity index 100% rename from public_html/templates/network_configuration_delete.tpl.php rename to backend/public_html/templates/network_configuration_delete.tpl.php diff --git a/public_html/templates/network_configuration_edit.tpl.php b/backend/public_html/templates/network_configuration_edit.tpl.php similarity index 100% rename from public_html/templates/network_configuration_edit.tpl.php rename to backend/public_html/templates/network_configuration_edit.tpl.php diff --git a/public_html/templates/network_connect.tpl.php b/backend/public_html/templates/network_connect.tpl.php similarity index 100% rename from public_html/templates/network_connect.tpl.php rename to backend/public_html/templates/network_connect.tpl.php diff --git a/public_html/templates/network_hostname.tpl.php b/backend/public_html/templates/network_hostname.tpl.php similarity index 100% rename from public_html/templates/network_hostname.tpl.php rename to backend/public_html/templates/network_hostname.tpl.php diff --git a/public_html/templates/overview.tpl.php b/backend/public_html/templates/overview.tpl.php similarity index 100% rename from public_html/templates/overview.tpl.php rename to backend/public_html/templates/overview.tpl.php diff --git a/public_html/templates/plugins.tpl.php b/backend/public_html/templates/plugins.tpl.php similarity index 100% rename from public_html/templates/plugins.tpl.php rename to backend/public_html/templates/plugins.tpl.php diff --git a/public_html/templates/processes.tpl.php b/backend/public_html/templates/processes.tpl.php similarity index 100% rename from public_html/templates/processes.tpl.php rename to backend/public_html/templates/processes.tpl.php diff --git a/public_html/templates/restart.tpl.php b/backend/public_html/templates/restart.tpl.php similarity index 100% rename from public_html/templates/restart.tpl.php rename to backend/public_html/templates/restart.tpl.php diff --git a/public_html/templates/settings.tpl.php b/backend/public_html/templates/settings.tpl.php similarity index 100% rename from public_html/templates/settings.tpl.php rename to backend/public_html/templates/settings.tpl.php diff --git a/public_html/templates/settings/cache.tpl.php b/backend/public_html/templates/settings/cache.tpl.php similarity index 100% rename from public_html/templates/settings/cache.tpl.php rename to backend/public_html/templates/settings/cache.tpl.php diff --git a/public_html/templates/settings/notification.tpl.php b/backend/public_html/templates/settings/notification.tpl.php similarity index 100% rename from public_html/templates/settings/notification.tpl.php rename to backend/public_html/templates/settings/notification.tpl.php diff --git a/public_html/templates/settings/overview.tpl.php b/backend/public_html/templates/settings/overview.tpl.php similarity index 100% rename from public_html/templates/settings/overview.tpl.php rename to backend/public_html/templates/settings/overview.tpl.php diff --git a/public_html/templates/settings/pi-control.tpl.php b/backend/public_html/templates/settings/pi-control.tpl.php similarity index 100% rename from public_html/templates/settings/pi-control.tpl.php rename to backend/public_html/templates/settings/pi-control.tpl.php diff --git a/public_html/templates/settings/plugin_delete.tpl.php b/backend/public_html/templates/settings/plugin_delete.tpl.php similarity index 100% rename from public_html/templates/settings/plugin_delete.tpl.php rename to backend/public_html/templates/settings/plugin_delete.tpl.php diff --git a/public_html/templates/settings/plugins.tpl.php b/backend/public_html/templates/settings/plugins.tpl.php similarity index 100% rename from public_html/templates/settings/plugins.tpl.php rename to backend/public_html/templates/settings/plugins.tpl.php diff --git a/public_html/templates/settings/statistic.tpl.php b/backend/public_html/templates/settings/statistic.tpl.php similarity index 100% rename from public_html/templates/settings/statistic.tpl.php rename to backend/public_html/templates/settings/statistic.tpl.php diff --git a/public_html/templates/settings/statistic_reset.tpl.php b/backend/public_html/templates/settings/statistic_reset.tpl.php similarity index 100% rename from public_html/templates/settings/statistic_reset.tpl.php rename to backend/public_html/templates/settings/statistic_reset.tpl.php diff --git a/public_html/templates/settings/troubleshooting.tpl.php b/backend/public_html/templates/settings/troubleshooting.tpl.php similarity index 100% rename from public_html/templates/settings/troubleshooting.tpl.php rename to backend/public_html/templates/settings/troubleshooting.tpl.php diff --git a/public_html/templates/settings/update.tpl.php b/backend/public_html/templates/settings/update.tpl.php similarity index 100% rename from public_html/templates/settings/update.tpl.php rename to backend/public_html/templates/settings/update.tpl.php diff --git a/public_html/templates/settings/user.tpl.php b/backend/public_html/templates/settings/user.tpl.php similarity index 100% rename from public_html/templates/settings/user.tpl.php rename to backend/public_html/templates/settings/user.tpl.php diff --git a/public_html/templates/settings/user_add.tpl.php b/backend/public_html/templates/settings/user_add.tpl.php similarity index 100% rename from public_html/templates/settings/user_add.tpl.php rename to backend/public_html/templates/settings/user_add.tpl.php diff --git a/public_html/templates/settings/user_delete.tpl.php b/backend/public_html/templates/settings/user_delete.tpl.php similarity index 100% rename from public_html/templates/settings/user_delete.tpl.php rename to backend/public_html/templates/settings/user_delete.tpl.php diff --git a/public_html/templates/settings/user_edit.tpl.php b/backend/public_html/templates/settings/user_edit.tpl.php similarity index 100% rename from public_html/templates/settings/user_edit.tpl.php rename to backend/public_html/templates/settings/user_edit.tpl.php diff --git a/public_html/templates/shutdown.tpl.php b/backend/public_html/templates/shutdown.tpl.php similarity index 100% rename from public_html/templates/shutdown.tpl.php rename to backend/public_html/templates/shutdown.tpl.php diff --git a/public_html/templates/single_box.tpl.php b/backend/public_html/templates/single_box.tpl.php similarity index 100% rename from public_html/templates/single_box.tpl.php rename to backend/public_html/templates/single_box.tpl.php diff --git a/public_html/templates/ssh_login.tpl.php b/backend/public_html/templates/ssh_login.tpl.php similarity index 100% rename from public_html/templates/ssh_login.tpl.php rename to backend/public_html/templates/ssh_login.tpl.php diff --git a/public_html/templates/statistic.tpl.php b/backend/public_html/templates/statistic.tpl.php similarity index 100% rename from public_html/templates/statistic.tpl.php rename to backend/public_html/templates/statistic.tpl.php diff --git a/public_html/templates/terminal.tpl.php b/backend/public_html/templates/terminal.tpl.php similarity index 100% rename from public_html/templates/terminal.tpl.php rename to backend/public_html/templates/terminal.tpl.php diff --git a/public_html/templates/users_groups.tpl.php b/backend/public_html/templates/users_groups.tpl.php similarity index 100% rename from public_html/templates/users_groups.tpl.php rename to backend/public_html/templates/users_groups.tpl.php diff --git a/resources/config/cache.config.ini.php b/backend/resources/config/cache.config.ini.php similarity index 100% rename from resources/config/cache.config.ini.php rename to backend/resources/config/cache.config.ini.php diff --git a/resources/config/cron.config.ini.php b/backend/resources/config/cron.config.ini.php similarity index 100% rename from resources/config/cron.config.ini.php rename to backend/resources/config/cron.config.ini.php diff --git a/resources/config/init.config.ini.php b/backend/resources/config/init.config.ini.php similarity index 100% rename from resources/config/init.config.ini.php rename to backend/resources/config/init.config.ini.php diff --git a/resources/config/login.config.ini.php b/backend/resources/config/login.config.ini.php similarity index 100% rename from resources/config/login.config.ini.php rename to backend/resources/config/login.config.ini.php diff --git a/resources/config/main.config.ini.php b/backend/resources/config/main.config.ini.php similarity index 100% rename from resources/config/main.config.ini.php rename to backend/resources/config/main.config.ini.php diff --git a/resources/config/ssh.config.ini.php b/backend/resources/config/ssh.config.ini.php similarity index 100% rename from resources/config/ssh.config.ini.php rename to backend/resources/config/ssh.config.ini.php diff --git a/resources/config/terminal.config.ini.php b/backend/resources/config/terminal.config.ini.php similarity index 100% rename from resources/config/terminal.config.ini.php rename to backend/resources/config/terminal.config.ini.php diff --git a/resources/config/user.config.ini.php b/backend/resources/config/user.config.ini.php similarity index 100% rename from resources/config/user.config.ini.php rename to backend/resources/config/user.config.ini.php diff --git a/resources/content/detailed_overview.php b/backend/resources/content/detailed_overview.php similarity index 100% rename from resources/content/detailed_overview.php rename to backend/resources/content/detailed_overview.php diff --git a/resources/content/discover_plugins.php b/backend/resources/content/discover_plugins.php similarity index 100% rename from resources/content/discover_plugins.php rename to backend/resources/content/discover_plugins.php diff --git a/resources/content/discover_plugins_info.php b/backend/resources/content/discover_plugins_info.php similarity index 100% rename from resources/content/discover_plugins_info.php rename to backend/resources/content/discover_plugins_info.php diff --git a/resources/content/html_footer.php b/backend/resources/content/html_footer.php similarity index 100% rename from resources/content/html_footer.php rename to backend/resources/content/html_footer.php diff --git a/resources/content/html_header.php b/backend/resources/content/html_header.php similarity index 100% rename from resources/content/html_header.php rename to backend/resources/content/html_header.php diff --git a/resources/content/installed_packages.php b/backend/resources/content/installed_packages.php similarity index 100% rename from resources/content/installed_packages.php rename to backend/resources/content/installed_packages.php diff --git a/resources/content/login.php b/backend/resources/content/login.php similarity index 100% rename from resources/content/login.php rename to backend/resources/content/login.php diff --git a/resources/content/logs.php b/backend/resources/content/logs.php similarity index 100% rename from resources/content/logs.php rename to backend/resources/content/logs.php diff --git a/resources/content/msg.php b/backend/resources/content/msg.php similarity index 100% rename from resources/content/msg.php rename to backend/resources/content/msg.php diff --git a/resources/content/network.php b/backend/resources/content/network.php similarity index 100% rename from resources/content/network.php rename to backend/resources/content/network.php diff --git a/resources/content/network_configuration.php b/backend/resources/content/network_configuration.php similarity index 100% rename from resources/content/network_configuration.php rename to backend/resources/content/network_configuration.php diff --git a/resources/content/network_configuration_add.php b/backend/resources/content/network_configuration_add.php similarity index 100% rename from resources/content/network_configuration_add.php rename to backend/resources/content/network_configuration_add.php diff --git a/resources/content/network_configuration_delete.php b/backend/resources/content/network_configuration_delete.php similarity index 100% rename from resources/content/network_configuration_delete.php rename to backend/resources/content/network_configuration_delete.php diff --git a/resources/content/network_configuration_edit.php b/backend/resources/content/network_configuration_edit.php similarity index 100% rename from resources/content/network_configuration_edit.php rename to backend/resources/content/network_configuration_edit.php diff --git a/resources/content/network_connect.php b/backend/resources/content/network_connect.php similarity index 100% rename from resources/content/network_connect.php rename to backend/resources/content/network_connect.php diff --git a/resources/content/overview.php b/backend/resources/content/overview.php similarity index 100% rename from resources/content/overview.php rename to backend/resources/content/overview.php diff --git a/resources/content/plugins.php b/backend/resources/content/plugins.php similarity index 100% rename from resources/content/plugins.php rename to backend/resources/content/plugins.php diff --git a/resources/content/processes.php b/backend/resources/content/processes.php similarity index 100% rename from resources/content/processes.php rename to backend/resources/content/processes.php diff --git a/resources/content/settings.php b/backend/resources/content/settings.php similarity index 100% rename from resources/content/settings.php rename to backend/resources/content/settings.php diff --git a/resources/content/settings/cache.php b/backend/resources/content/settings/cache.php similarity index 100% rename from resources/content/settings/cache.php rename to backend/resources/content/settings/cache.php diff --git a/resources/content/settings/notification.php b/backend/resources/content/settings/notification.php similarity index 100% rename from resources/content/settings/notification.php rename to backend/resources/content/settings/notification.php diff --git a/resources/content/settings/overview.php b/backend/resources/content/settings/overview.php similarity index 100% rename from resources/content/settings/overview.php rename to backend/resources/content/settings/overview.php diff --git a/resources/content/settings/pi-control.php b/backend/resources/content/settings/pi-control.php similarity index 100% rename from resources/content/settings/pi-control.php rename to backend/resources/content/settings/pi-control.php diff --git a/resources/content/settings/plugins.php b/backend/resources/content/settings/plugins.php similarity index 100% rename from resources/content/settings/plugins.php rename to backend/resources/content/settings/plugins.php diff --git a/resources/content/settings/plugins_delete.php b/backend/resources/content/settings/plugins_delete.php similarity index 100% rename from resources/content/settings/plugins_delete.php rename to backend/resources/content/settings/plugins_delete.php diff --git a/resources/content/settings/plugins_status.php b/backend/resources/content/settings/plugins_status.php similarity index 100% rename from resources/content/settings/plugins_status.php rename to backend/resources/content/settings/plugins_status.php diff --git a/resources/content/settings/statistic.php b/backend/resources/content/settings/statistic.php similarity index 100% rename from resources/content/settings/statistic.php rename to backend/resources/content/settings/statistic.php diff --git a/resources/content/settings/troubleshooting.php b/backend/resources/content/settings/troubleshooting.php similarity index 100% rename from resources/content/settings/troubleshooting.php rename to backend/resources/content/settings/troubleshooting.php diff --git a/resources/content/settings/update.php b/backend/resources/content/settings/update.php similarity index 100% rename from resources/content/settings/update.php rename to backend/resources/content/settings/update.php diff --git a/resources/content/settings/user.php b/backend/resources/content/settings/user.php similarity index 100% rename from resources/content/settings/user.php rename to backend/resources/content/settings/user.php diff --git a/resources/content/shutdown.php b/backend/resources/content/shutdown.php similarity index 100% rename from resources/content/shutdown.php rename to backend/resources/content/shutdown.php diff --git a/resources/content/ssh_login.php b/backend/resources/content/ssh_login.php similarity index 100% rename from resources/content/ssh_login.php rename to backend/resources/content/ssh_login.php diff --git a/resources/content/statistic.php b/backend/resources/content/statistic.php similarity index 100% rename from resources/content/statistic.php rename to backend/resources/content/statistic.php diff --git a/resources/content/terminal.php b/backend/resources/content/terminal.php similarity index 100% rename from resources/content/terminal.php rename to backend/resources/content/terminal.php diff --git a/resources/content/users_groups.php b/backend/resources/content/users_groups.php similarity index 100% rename from resources/content/users_groups.php rename to backend/resources/content/users_groups.php diff --git a/resources/cron/30-user.php b/backend/resources/cron/30-user.php similarity index 100% rename from resources/cron/30-user.php rename to backend/resources/cron/30-user.php diff --git a/resources/cron/5-coretemp.php b/backend/resources/cron/5-coretemp.php similarity index 100% rename from resources/cron/5-coretemp.php rename to backend/resources/cron/5-coretemp.php diff --git a/resources/cron/5-cpufrequency.php b/backend/resources/cron/5-cpufrequency.php similarity index 100% rename from resources/cron/5-cpufrequency.php rename to backend/resources/cron/5-cpufrequency.php diff --git a/resources/cron/5-cpuload.php b/backend/resources/cron/5-cpuload.php similarity index 100% rename from resources/cron/5-cpuload.php rename to backend/resources/cron/5-cpuload.php diff --git a/resources/cron/5-memory.php b/backend/resources/cron/5-memory.php similarity index 100% rename from resources/cron/5-memory.php rename to backend/resources/cron/5-memory.php diff --git a/resources/cron/5-network.php b/backend/resources/cron/5-network.php similarity index 100% rename from resources/cron/5-network.php rename to backend/resources/cron/5-network.php diff --git a/resources/cron/5-ram.php b/backend/resources/cron/5-ram.php similarity index 100% rename from resources/cron/5-ram.php rename to backend/resources/cron/5-ram.php diff --git a/resources/cron/init.php b/backend/resources/cron/init.php similarity index 78% rename from resources/cron/init.php rename to backend/resources/cron/init.php index 20c82a7..aebfb84 100644 --- a/resources/cron/init.php +++ b/backend/resources/cron/init.php @@ -31,5 +31,5 @@ foreach ($fileArray as $file) } } -if (trim(exec('dpkg -s php7.4-cli | grep Status: ')) != '' || trim(exec('dpkg -s php7.3-cli | grep Status: ')) != '') +if (trim(exec('dpkg -s php7.4-cli | grep Status: ')) != '' || trim(exec('dpkg -s php7.3-cli | grep Status: ')) != '' || trim(exec('dpkg -s php8.0-cli | grep Status: ')) != '' || trim(exec('dpkg -s php8.1-cli | grep Status: ')) != '' || trim(exec('dpkg -s php8.2-cli | grep Status: ')) != '') setConfig('cron:execution.cron', time()); diff --git a/resources/init.php b/backend/resources/init.php similarity index 72% rename from resources/init.php rename to backend/resources/init.php index 7265c8a..3d93a11 100644 --- a/resources/init.php +++ b/backend/resources/init.php @@ -10,8 +10,8 @@ if (!isset($config)) 'ssh_ip' => '127.0.0.1' ), 'version' => array( - 'version' => '2.3.1', - 'versioncode' => 36, + 'version' => '2.3.2', + 'versioncode' => 37, 'android_comp_level' => 25 ), 'url' => array( @@ -26,20 +26,20 @@ if (!isset($config)) ); } -defined('PICONTROL_PATH') or define('PICONTROL_PATH', realpath(dirname(__FILE__).'/../').'/'); -defined('RESOURCE_PATH') or define('RESOURCE_PATH', realpath(dirname(__FILE__)).'/'); -defined('LIBRARY_PATH') or define('LIBRARY_PATH', realpath(dirname(__FILE__).'/library/').'/'); -defined('CONTENT_PATH') or define('CONTENT_PATH', realpath(dirname(__FILE__).'/content/').'/'); -defined('CONFIG_PATH') or define('CONFIG_PATH', realpath(dirname(__FILE__).'/config/').'/'); -defined('PLUGINS_PATH') or define('PLUGINS_PATH', realpath(dirname(__FILE__).'/plugins/').'/'); -defined('UPDATE_PATH') or define('UPDATE_PATH', realpath(dirname(__FILE__).'/update/').'/'); -defined('TEMPLATES_PATH') or define('TEMPLATES_PATH', realpath(dirname(__FILE__).'/../public_html/templates/').'/'); -defined('TEMPLATES2_PATH') or define('TEMPLATES2_PATH',realpath(dirname(__FILE__).'/templates/').'/'); -defined('LOG_PATH') or define('LOG_PATH', realpath(dirname(__FILE__).'/log/').'/'); -defined('CRON_PATH') or define('CRON_PATH', realpath(dirname(__FILE__).'/cron/').'/'); -defined('LANGUAGE_PATH') or define('LANGUAGE_PATH', realpath(dirname(__FILE__).'/languages/').'/'); -defined('CACHE_PATH') or define('CACHE_PATH', realpath(dirname(__FILE__).'/cache/').'/'); -defined('INSTALL_PATH') or define('INSTALL_PATH', realpath(dirname(__FILE__).'/../').'/install/'); +defined('PICONTROL_PATH') || define('PICONTROL_PATH', realpath(dirname(__FILE__).'/../').'/'); +defined('RESOURCE_PATH') || define('RESOURCE_PATH', realpath(dirname(__FILE__)).'/'); +defined('LIBRARY_PATH') || define('LIBRARY_PATH', realpath(dirname(__FILE__).'/library/').'/'); +defined('CONTENT_PATH') || define('CONTENT_PATH', realpath(dirname(__FILE__).'/content/').'/'); +defined('CONFIG_PATH') || define('CONFIG_PATH', realpath(dirname(__FILE__).'/config/').'/'); +defined('PLUGINS_PATH') || define('PLUGINS_PATH', realpath(dirname(__FILE__).'/plugins/').'/'); +defined('UPDATE_PATH') || define('UPDATE_PATH', realpath(dirname(__FILE__).'/update/').'/'); +defined('TEMPLATES_PATH') || define('TEMPLATES_PATH', realpath(dirname(__FILE__).'/../public_html/templates/').'/'); +defined('TEMPLATES2_PATH') || define('TEMPLATES2_PATH',realpath(dirname(__FILE__).'/templates/').'/'); +defined('LOG_PATH') || define('LOG_PATH', realpath(dirname(__FILE__).'/log/').'/'); +defined('CRON_PATH') || define('CRON_PATH', realpath(dirname(__FILE__).'/cron/').'/'); +defined('LANGUAGE_PATH') || define('LANGUAGE_PATH', realpath(dirname(__FILE__).'/languages/').'/'); +defined('CACHE_PATH') || define('CACHE_PATH', realpath(dirname(__FILE__).'/cache/').'/'); +defined('INSTALL_PATH') || define('INSTALL_PATH', realpath(dirname(__FILE__).'/../').'/install/'); $globalLanguage = isset($initConfig['language']) ? $initConfig['language'] : 'de'; $globalLanguageArray = array(); diff --git a/resources/languages/en.php b/backend/resources/languages/en.php similarity index 100% rename from resources/languages/en.php rename to backend/resources/languages/en.php diff --git a/backend/resources/library/api/StatisticController.php b/backend/resources/library/api/StatisticController.php new file mode 100644 index 0000000..0b4ba92 --- /dev/null +++ b/backend/resources/library/api/StatisticController.php @@ -0,0 +1,6 @@ +file) || !is_file($this->file)) touch($this->file); - $this->stream = fopen($this->file, 'r+') or exit(_t('Konnte Log-Datei nicht öffnen: %s', $this->file)); + $this->stream = fopen($this->file, 'r+');# || exit(_t('Konnte Log-Datei nicht öffnen: %s', $this->file)); } } diff --git a/resources/library/statistic/statistic.config.php b/backend/resources/library/statistic/statistic.config.php similarity index 100% rename from resources/library/statistic/statistic.config.php rename to backend/resources/library/statistic/statistic.config.php diff --git a/resources/library/statistic/statistic.function.php b/backend/resources/library/statistic/statistic.function.php similarity index 100% rename from resources/library/statistic/statistic.function.php rename to backend/resources/library/statistic/statistic.function.php diff --git a/resources/library/terminal/Crypt/AES.php b/backend/resources/library/terminal/Crypt/AES.php similarity index 100% rename from resources/library/terminal/Crypt/AES.php rename to backend/resources/library/terminal/Crypt/AES.php diff --git a/resources/library/terminal/Crypt/Base.php b/backend/resources/library/terminal/Crypt/Base.php similarity index 100% rename from resources/library/terminal/Crypt/Base.php rename to backend/resources/library/terminal/Crypt/Base.php diff --git a/resources/library/terminal/Crypt/Blowfish.php b/backend/resources/library/terminal/Crypt/Blowfish.php similarity index 100% rename from resources/library/terminal/Crypt/Blowfish.php rename to backend/resources/library/terminal/Crypt/Blowfish.php diff --git a/resources/library/terminal/Crypt/DES.php b/backend/resources/library/terminal/Crypt/DES.php similarity index 100% rename from resources/library/terminal/Crypt/DES.php rename to backend/resources/library/terminal/Crypt/DES.php diff --git a/resources/library/terminal/Crypt/Hash.php b/backend/resources/library/terminal/Crypt/Hash.php similarity index 100% rename from resources/library/terminal/Crypt/Hash.php rename to backend/resources/library/terminal/Crypt/Hash.php diff --git a/resources/library/terminal/Crypt/RC2.php b/backend/resources/library/terminal/Crypt/RC2.php similarity index 100% rename from resources/library/terminal/Crypt/RC2.php rename to backend/resources/library/terminal/Crypt/RC2.php diff --git a/resources/library/terminal/Crypt/RC4.php b/backend/resources/library/terminal/Crypt/RC4.php similarity index 100% rename from resources/library/terminal/Crypt/RC4.php rename to backend/resources/library/terminal/Crypt/RC4.php diff --git a/resources/library/terminal/Crypt/RSA.php b/backend/resources/library/terminal/Crypt/RSA.php similarity index 100% rename from resources/library/terminal/Crypt/RSA.php rename to backend/resources/library/terminal/Crypt/RSA.php diff --git a/resources/library/terminal/Crypt/Random.php b/backend/resources/library/terminal/Crypt/Random.php similarity index 100% rename from resources/library/terminal/Crypt/Random.php rename to backend/resources/library/terminal/Crypt/Random.php diff --git a/resources/library/terminal/Crypt/Rijndael.php b/backend/resources/library/terminal/Crypt/Rijndael.php similarity index 100% rename from resources/library/terminal/Crypt/Rijndael.php rename to backend/resources/library/terminal/Crypt/Rijndael.php diff --git a/resources/library/terminal/Crypt/TripleDES.php b/backend/resources/library/terminal/Crypt/TripleDES.php similarity index 100% rename from resources/library/terminal/Crypt/TripleDES.php rename to backend/resources/library/terminal/Crypt/TripleDES.php diff --git a/resources/library/terminal/Crypt/Twofish.php b/backend/resources/library/terminal/Crypt/Twofish.php similarity index 100% rename from resources/library/terminal/Crypt/Twofish.php rename to backend/resources/library/terminal/Crypt/Twofish.php diff --git a/resources/library/terminal/File/ANSI.php b/backend/resources/library/terminal/File/ANSI.php similarity index 100% rename from resources/library/terminal/File/ANSI.php rename to backend/resources/library/terminal/File/ANSI.php diff --git a/resources/library/terminal/File/ASN1.php b/backend/resources/library/terminal/File/ASN1.php similarity index 100% rename from resources/library/terminal/File/ASN1.php rename to backend/resources/library/terminal/File/ASN1.php diff --git a/resources/library/terminal/File/X509.php b/backend/resources/library/terminal/File/X509.php similarity index 100% rename from resources/library/terminal/File/X509.php rename to backend/resources/library/terminal/File/X509.php diff --git a/resources/library/terminal/Math/BigInteger.php b/backend/resources/library/terminal/Math/BigInteger.php similarity index 100% rename from resources/library/terminal/Math/BigInteger.php rename to backend/resources/library/terminal/Math/BigInteger.php diff --git a/resources/library/terminal/Net/SCP.php b/backend/resources/library/terminal/Net/SCP.php similarity index 100% rename from resources/library/terminal/Net/SCP.php rename to backend/resources/library/terminal/Net/SCP.php diff --git a/resources/library/terminal/Net/SFTP.php b/backend/resources/library/terminal/Net/SFTP.php similarity index 100% rename from resources/library/terminal/Net/SFTP.php rename to backend/resources/library/terminal/Net/SFTP.php diff --git a/resources/library/terminal/Net/SFTP/Stream.php b/backend/resources/library/terminal/Net/SFTP/Stream.php similarity index 100% rename from resources/library/terminal/Net/SFTP/Stream.php rename to backend/resources/library/terminal/Net/SFTP/Stream.php diff --git a/resources/library/terminal/Net/SSH1.php b/backend/resources/library/terminal/Net/SSH1.php similarity index 100% rename from resources/library/terminal/Net/SSH1.php rename to backend/resources/library/terminal/Net/SSH1.php diff --git a/resources/library/terminal/Net/SSH2.php b/backend/resources/library/terminal/Net/SSH2.php similarity index 100% rename from resources/library/terminal/Net/SSH2.php rename to backend/resources/library/terminal/Net/SSH2.php diff --git a/resources/library/terminal/System/SSH/Agent.php b/backend/resources/library/terminal/System/SSH/Agent.php similarity index 100% rename from resources/library/terminal/System/SSH/Agent.php rename to backend/resources/library/terminal/System/SSH/Agent.php diff --git a/resources/library/terminal/System/SSH_Agent.php b/backend/resources/library/terminal/System/SSH_Agent.php similarity index 100% rename from resources/library/terminal/System/SSH_Agent.php rename to backend/resources/library/terminal/System/SSH_Agent.php diff --git a/resources/library/terminal/terminal.php b/backend/resources/library/terminal/terminal.php similarity index 100% rename from resources/library/terminal/terminal.php rename to backend/resources/library/terminal/terminal.php diff --git a/resources/library/troubleshooting/troubleshooting.function.php b/backend/resources/library/troubleshooting/troubleshooting.function.php similarity index 100% rename from resources/library/troubleshooting/troubleshooting.function.php rename to backend/resources/library/troubleshooting/troubleshooting.function.php diff --git a/resources/library/update/update.class.php b/backend/resources/library/update/update.class.php similarity index 100% rename from resources/library/update/update.class.php rename to backend/resources/library/update/update.class.php diff --git a/resources/library/user/user.function.php b/backend/resources/library/user/user.function.php similarity index 100% rename from resources/library/user/user.function.php rename to backend/resources/library/user/user.function.php diff --git a/resources/plugins/download_plugin.php b/backend/resources/plugins/download_plugin.php similarity index 100% rename from resources/plugins/download_plugin.php rename to backend/resources/plugins/download_plugin.php diff --git a/resources/plugins/fritzbox/api/v1/status.php b/backend/resources/plugins/fritzbox/api/v1/status.php similarity index 100% rename from resources/plugins/fritzbox/api/v1/status.php rename to backend/resources/plugins/fritzbox/api/v1/status.php diff --git a/resources/plugins/fritzbox/plugin.config.php b/backend/resources/plugins/fritzbox/plugin.config.php similarity index 100% rename from resources/plugins/fritzbox/plugin.config.php rename to backend/resources/plugins/fritzbox/plugin.config.php diff --git a/resources/plugins/fritzbox/plugin.statistic.config.php b/backend/resources/plugins/fritzbox/plugin.statistic.config.php similarity index 100% rename from resources/plugins/fritzbox/plugin.statistic.config.php rename to backend/resources/plugins/fritzbox/plugin.statistic.config.php diff --git a/resources/plugins/fritzbox/public_html/css/style.css b/backend/resources/plugins/fritzbox/public_html/css/style.css similarity index 100% rename from resources/plugins/fritzbox/public_html/css/style.css rename to backend/resources/plugins/fritzbox/public_html/css/style.css diff --git a/resources/plugins/fritzbox/public_html/js/status_refresh.js b/backend/resources/plugins/fritzbox/public_html/js/status_refresh.js similarity index 100% rename from resources/plugins/fritzbox/public_html/js/status_refresh.js rename to backend/resources/plugins/fritzbox/public_html/js/status_refresh.js diff --git a/resources/plugins/fritzbox/public_html/templates/index.tpl.php b/backend/resources/plugins/fritzbox/public_html/templates/index.tpl.php similarity index 100% rename from resources/plugins/fritzbox/public_html/templates/index.tpl.php rename to backend/resources/plugins/fritzbox/public_html/templates/index.tpl.php diff --git a/resources/plugins/fritzbox/public_html/templates/settings/settings.tpl.php b/backend/resources/plugins/fritzbox/public_html/templates/settings/settings.tpl.php similarity index 100% rename from resources/plugins/fritzbox/public_html/templates/settings/settings.tpl.php rename to backend/resources/plugins/fritzbox/public_html/templates/settings/settings.tpl.php diff --git a/resources/plugins/fritzbox/public_html/templates/settings/statistic_reset.tpl.php b/backend/resources/plugins/fritzbox/public_html/templates/settings/statistic_reset.tpl.php similarity index 100% rename from resources/plugins/fritzbox/public_html/templates/settings/statistic_reset.tpl.php rename to backend/resources/plugins/fritzbox/public_html/templates/settings/statistic_reset.tpl.php diff --git a/resources/plugins/fritzbox/resources/content/index.php b/backend/resources/plugins/fritzbox/resources/content/index.php similarity index 100% rename from resources/plugins/fritzbox/resources/content/index.php rename to backend/resources/plugins/fritzbox/resources/content/index.php diff --git a/resources/plugins/fritzbox/resources/content/settings/settings.php b/backend/resources/plugins/fritzbox/resources/content/settings/settings.php similarity index 100% rename from resources/plugins/fritzbox/resources/content/settings/settings.php rename to backend/resources/plugins/fritzbox/resources/content/settings/settings.php diff --git a/resources/plugins/fritzbox/resources/languages/en.php b/backend/resources/plugins/fritzbox/resources/languages/en.php similarity index 100% rename from resources/plugins/fritzbox/resources/languages/en.php rename to backend/resources/plugins/fritzbox/resources/languages/en.php diff --git a/resources/plugins/fritzbox/resources/library/main/main.function.php b/backend/resources/plugins/fritzbox/resources/library/main/main.function.php similarity index 100% rename from resources/plugins/fritzbox/resources/library/main/main.function.php rename to backend/resources/plugins/fritzbox/resources/library/main/main.function.php diff --git a/resources/plugins/fritzbox/resources/templates/traffic_monitoring.tmp.php b/backend/resources/plugins/fritzbox/resources/templates/traffic_monitoring.tmp.php similarity index 100% rename from resources/plugins/fritzbox/resources/templates/traffic_monitoring.tmp.php rename to backend/resources/plugins/fritzbox/resources/templates/traffic_monitoring.tmp.php diff --git a/resources/plugins/update_plugin.php b/backend/resources/plugins/update_plugin.php similarity index 100% rename from resources/plugins/update_plugin.php rename to backend/resources/plugins/update_plugin.php diff --git a/resources/templates/coretemp_monitoring.tmp.php b/backend/resources/templates/coretemp_monitoring.tmp.php similarity index 100% rename from resources/templates/coretemp_monitoring.tmp.php rename to backend/resources/templates/coretemp_monitoring.tmp.php diff --git a/resources/templates/notification.tmp.php b/backend/resources/templates/notification.tmp.php similarity index 100% rename from resources/templates/notification.tmp.php rename to backend/resources/templates/notification.tmp.php diff --git a/resources/update/update_picontrol.php b/backend/resources/update/update_picontrol.php similarity index 100% rename from resources/update/update_picontrol.php rename to backend/resources/update/update_picontrol.php diff --git a/frontend/.browserslistrc b/frontend/.browserslistrc new file mode 100644 index 0000000..9dee646 --- /dev/null +++ b/frontend/.browserslistrc @@ -0,0 +1,3 @@ +> 1% +last 2 versions +not ie <= 8 diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js new file mode 100644 index 0000000..9b10e0c --- /dev/null +++ b/frontend/.eslintrc.js @@ -0,0 +1,14 @@ +module.exports = { + root: true, + env: { + node: true, + }, + extends: ["plugin:vue/essential", "@vue/prettier"], + rules: { + "no-console": process.env.NODE_ENV === "production" ? "error" : "off", + "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off", + }, + parserOptions: { + parser: "babel-eslint", + }, +}; diff --git a/frontend/.github/workflows/main.yml b/frontend/.github/workflows/main.yml new file mode 100644 index 0000000..b801c72 --- /dev/null +++ b/frontend/.github/workflows/main.yml @@ -0,0 +1,12 @@ +name: Autocloser +on: [issues] +jobs: + autoclose: + runs-on: ubuntu-latest + steps: + - name: Issue auto-closer + uses: roots/issue-closer-action@v1.1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-close-message: "@${issue.user.login} this issue was automatically closed because it did not follow our rules:\n\n
\n\n\n\nIMPORTANT: Please use the following link to create a new issue:\n\nhttps://www.creative-tim.com/new-issue/vue-material-dashboard\n\n**If your issue was not created using the app above, it will be closed immediately.**\n\n\n\nLove Creative Tim? Do you need Angular, React, Vuejs or HTML? You can visit:\n👉 https://www.creative-tim.com/bundles\n👉 https://www.creative-tim.com\n\n\n\n\n" + issue-pattern: (\#\#\# Version([\S\s.*]*?)\#\#\# Reproduction link([\S\s.*]*?)\#\#\# Operating System([\S\s.*]*?)\#\#\# Device([\S\s.*]*?)\#\#\# Browser & Version([\S\s.*]*?)\#\#\# Steps to reproduce([\S\s.*]*?)\#\#\# What is expected([\S\s.*]*?)\#\#\# What is actually happening([\S\s.*]*?)---([\S\s.*]*?)\#\#\# Solution([\S\s.*]*?)\#\#\# Additional comments([\S\s.*]*?)\<\!-- generated by creative-tim-issues\. DO NOT REMOVE --\>)|(\#\#\# What is your enhancement([\S\s.*]*?)\<\!-- generated by creative-tim-issues\. DO NOT REMOVE --\>) diff --git a/frontend/.gitignore b/frontend/.gitignore new file mode 100644 index 0000000..68fd03a --- /dev/null +++ b/frontend/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +package-lock.json +/docs +/dist diff --git a/frontend/.jshintrc b/frontend/.jshintrc new file mode 100644 index 0000000..5db9558 --- /dev/null +++ b/frontend/.jshintrc @@ -0,0 +1,3 @@ +{ + "esversion": 6 +} diff --git a/frontend/.npmrc b/frontend/.npmrc new file mode 100644 index 0000000..e9ee3cb --- /dev/null +++ b/frontend/.npmrc @@ -0,0 +1 @@ +legacy-peer-deps=true \ No newline at end of file diff --git a/frontend/CHANGELOG.md b/frontend/CHANGELOG.md new file mode 100644 index 0000000..18f982f --- /dev/null +++ b/frontend/CHANGELOG.md @@ -0,0 +1,77 @@ +# Change Log + +## [1.5.1] 2023-01-10 + +- Update dependencies and devDependencies. +- Fix issue when running `npm install`. + +## [1.5.0] 2022-03-18 + +### Dependencies Updates + +- Updated all out of date dependencies from `package.json` file + +## [1.4.0] 2020-03-12 + +### Dependencies Updates + +- Updated all out of date dependencies from `package.json` file +- Add `API_KEY` file +- Add new structure for google maps plugin + +## [1.3.2] 2019-12-13 + +### Dependencies Updates + +- Updated all out of date dependencies from `package.json` file +- The version is now `v1.3.2` to have the same versioning line with the PRO version of this product + +## [1.2.1] 2019-06-14 + +### Dependencies Updates, Vue Material Update + +- Updated all out of date dependencies from `package.json` file +- The framework `Vuematerial.io` was updated to the latest beta version `1.0.0-beta-11` + +## [1.2.0] 2019-04-30 + +### Dependencies Updates + +- Updated all out of date dependencies from `package.json` file + +## [1.1.0] 2019-02-08 + +### Dependencies Updates, Improvements + +- Updated all out of date dependencies from `package.json` file +- Removed all `to=""` and replaced with `href=""` props from non router-link components for avoid this error `[Vue warn]: Error in render: "TypeError: Cannot read property 'options' of undefined"` +- Changed links from footer + +## [1.0.3] 2018-11-26 + +### Bug Fixing + +- Fixed error `[Vue warn]: Error in render: "TypeError: Cannot read property 'options' of undefined"` + +## [1.0.2] 2018-11-19 + +### Plugin Updates, BugFixing + +- Updated all `dependencies` and `devDependencies` to the latest versions +- Cleaned `package.json` file +- Removed all lint warnings and errors +- Github issues fixed +- Other bug fixes + +## [1.0.1] 2018-07-13 + +### BugFixing and Updates + +- updated all the npm packages +- scroll issue on mobile devices fixed +- added button `Upgrade to PRO` in the sidebar +- another small bug fixes + +## [1.0.0] 2018-05-03 + +- Initial Release diff --git a/frontend/ISSUE_TEMPLATE.md b/frontend/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..4235f95 --- /dev/null +++ b/frontend/ISSUE_TEMPLATE.md @@ -0,0 +1,13 @@ + + + diff --git a/frontend/README.md b/frontend/README.md new file mode 100644 index 0000000..4adec80 --- /dev/null +++ b/frontend/README.md @@ -0,0 +1,199 @@ +# [Vue Material Dashboard](https://demos.creative-tim.com/vue-material-dashboard) [](https://twitter.com/home?status=Vue%20Material%20Dashboard,%20a%20free%20Material%20Admin%20Template%20%E2%9D%A4%EF%B8%8F%20https%3A//bit.ly/2Nh5aVy%20%20%23vue%20%23material%20%23design%20%23developers%20%23freebie%20%20via%20%40CreativeTim) + + +   [](https://github.com/creativetimofficial/vue-material-dashboard/issues?q=is%3Aopen+is%3Aissue) [](https://github.com/creativetimofficial/vue-material-dashboard/issues?q=is%3Aissue+is%3Aclosed) [](https://gitter.im/creative-tim-general/Lobby) [](https://discord.gg/E4aHAQy) + + + + +Vue Material Dashboard is a beautiful resource built over [Vue Material](https://vuematerial.io/) and [Vuejs](https://vuejs.org/v2/guide/). It will help you get started developing dashboards in no time. Vue Material Dashboard is the official Vuejs version of the Original Material Dashboard. Using the Dashboard is pretty simple but requires basic knowledge of Javascript, [Vuejs](https://vuejs.org/v2/guide/) and [Vue Router](https://router.vuejs.org/en/). + +We have created it thinking about things you actually need in a dashboard. Vue Material Dashboard contains handpicked and optimised Vuejs plugins. Everything is designed to fit with one another. As you will be able to see, the dashboard you can access on Creative Tim is a customisation of this product. + +Let us know what you think and what we can improve below. And good luck with development! + + +## Table of Contents + +* [Versions](#versions) +* [Demo](#demo) +* [Quick Start](#quick-start) +* [Documentation](#documentation) +* [File Structure](#file-structure) +* [Browser Support](#browser-support) +* [Resources](#resources) +* [Reporting Issues](#reporting-issues) +* [Technical Support or Questions](#technical-support-or-questions) +* [Licensing](#licensing) +* [Useful Links](#useful-links) + + + +## Versions + +[
](https://www.creative-tim.com/product/material-kit)[
](https://www.creative-tim.com/product/vue-material-dashboard)
+[
](https://www.creative-tim.com/product/material-dashboard-angular2)
+
+
+| HTML | React |
+| --- | --- |
+| [](https://www.creative-tim.com/product/material-dashboard) | [](https://www.creative-tim.com/product/material-dashboard-react)
+
+| Vue | Angular |
+| --- | --- |
+| [](https://www.creative-tim.com/product/vue-material-dashboard) | [](https://www.creative-tim.com/product/material-dashboard-angular2)
+
+
+
+## Demo
+
+| Dashboard | User Profile | Tables | Maps | Notification |
+| --- | --- | --- | --- | --- |
+| [](https://demos.creative-tim.com/vue-material-dashboard) | [](https://demos.creative-tim.com/vue-material-dashboard/#/user) | [](https://demos.creative-tim.com/vue-material-dashboard/#/table) | [](https://demos.creative-tim.com/vue-material-dashboard/#/maps) | [](https://demos.creative-tim.com/vue-material-dashboard/#/notifications)
+
+[View More](https://demos.creative-tim.com/vue-material-dashboard).
+
+
+## Quick start
+
+## :cloud: Build Setup
+
+### install dependencies
+`npm install`
+### serve with hot reload at localhost:8080
+`npm run dev`
+### build for production with minification
+`npm run build`
+
+- [Download from Github](https://github.com/creativetimofficial/vue-material-dashboard/archive/master.zip).
+- [Download from Creative Tim](https://www.creative-tim.com/product/vue-material-dashboard).
+- Clone the repo: `git clone https://github.com/creativetimofficial/vue-material-dashboard.git`.
+
+For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
+
+
+## Documentation
+The documentation for the Vue Material Dashboard is hosted at our [website](https://demos.creative-tim.com/vue-material-dashboard/documentation).
+
+
+## File Structure
+Within the download you'll find the following directories and files:
+
+```
+vue-material-dashboard
+├── README.md
+├── babel.config.js
+├── package.json
+├── postcss.config.js
+├── public
+│ └── index.html
+└── src
+ ├── App.vue
+ ├── assets
+ │ ├── img
+ │ └── scss
+ │ ├── material-dashboard.scss
+ │ └── md
+ ├── components
+ │ ├── Cards
+ │ │ ├── ChartCard.vue
+ │ │ ├── NavTabsCard.vue
+ │ │ └── StatsCard.vue
+ │ ├── Dropdown.vue
+ │ ├── NotificationPlugin
+ │ │ ├── Notification.vue
+ │ │ ├── Notifications.vue
+ │ │ └── index.js
+ │ ├── SidebarPlugin
+ │ │ ├── SideBar.vue
+ │ │ ├── SidebarLink.vue
+ │ │ └── index.js
+ │ ├── Tables
+ │ │ ├── NavTabsTable.vue
+ │ │ ├── OrderedTable.vue
+ │ │ └── SimpleTable.vue
+ │ └── index.js
+ ├── globalComponents.js
+ ├── globalDirectives.js
+ ├── main.js
+ ├── material-dashboard.js
+ ├── pages
+ │ ├── Dashboard.vue
+ │ ├── Icons.vue
+ │ ├── Layout
+ │ │ ├── Content.vue
+ │ │ ├── ContentFooter.vue
+ │ │ ├── DashboardLayout.vue
+ │ │ ├── MobileMenu.vue
+ │ │ └── TopNavbar.vue
+ │ ├── Maps.vue
+ │ ├── Notifications.vue
+ │ ├── TableList.vue
+ │ ├── Typography.vue
+ │ ├── UpgradeToPRO.vue
+ │ ├── UserProfile
+ │ │ ├── EditProfileForm.vue
+ │ │ └── UserCard.vue
+ │ ├── UserProfile.vue
+ │ └── index.js
+ └── routes
+ └── routes.js
+```
+
+
+## Browser Support
+
+At present, we officially aim to support the last two versions of the following browsers:
+
+
+
+
+## Resources
+- Demo: