From a0f7b51ba180f2e425a0c5c7f6d2610ef2b6af40 Mon Sep 17 00:00:00 2001 From: Romano Schoonheim Date: Thu, 7 Jan 2021 10:19:32 -0800 Subject: [PATCH] 3.0: Remove old code base. --- .docker | 1 - .editorconfig | 18 - .ftpignore | 6 - .gitignore | 22 - .gitmodules | 3 - .htaccess | 22 - .todo | 13 - LICENSE | 21 - New_JS_EDITOR_ TEST.php | 255 -- adminer.php | 2044 ----------- app/Bootstrap.php | 119 - app/Routes.php | 66 - app/api/AuthApi.php | 25 - app/api/CronApi.php | 63 - app/api/DevicesApi.php | 15 - app/api/EndpointsApi.php | 194 -- app/api/ExampleApi.php | 24 - app/api/GoogleHomeApi.php | 56 - app/api/PluginsApi.php | 12 - app/api/RecordApi.php | 26 - app/api/RoomsApi.php | 74 - app/api/ServerApi.php | 43 - app/api/UpdatesApi.php | 85 - app/api/UsersApi.php | 47 - app/api/WidgetApi.php | 137 - app/controllers/ExampleController.php | 14 - app/controllers/automationController.php | 77 - app/controllers/deviceController.php | 36 - app/controllers/loginController.php | 50 - app/controllers/oauthController.php | 75 - app/controllers/pluginsController.php | 28 - app/controllers/settingController.php | 45 - app/models/ChartJS.php | 194 -- app/models/ChartJS_Line.php | 21 - app/models/ChartManager.php | 129 - app/models/Form.php | 121 - app/models/GoogleHome.php | 480 --- app/models/Partial.php | 34 - app/models/Utilities.php | 217 -- app/models/managers/AuthManager.php | 70 - app/models/managers/AutomationManager.php | 175 - app/models/managers/ChartManager.php | 129 - app/models/managers/DashboardManager.php | 41 - app/models/managers/DeviceManager.php | 110 - app/models/managers/EmailManager.php | 11 - app/models/managers/FallbackManager.php | 44 - app/models/managers/LanguageManager.php | 60 - app/models/managers/LogMaintainer.php | 78 - app/models/managers/LogManager.php | 42 - app/models/managers/NetworkManager.php | 18 - app/models/managers/NotificationManager.php | 109 - app/models/managers/RecordManager.php | 119 - app/models/managers/RoomManager.php | 44 - app/models/managers/SceneManager.php | 41 - app/models/managers/SettingsManager.php | 47 - app/models/managers/SubDeviceManager.php | 117 - app/models/managers/UserManager.php | 225 -- app/models/managers/VirtualDeviceManager.php | 19 - app/models/types/GoogleHomeDeviceTypes.php | 185 - app/models/types/LogRecordTypes.php | 19 - app/models/types/WidgetTypes.php | 45 - app/plugins/!AirQuality.php | 52 - app/plugins/AirQuality.php | 60 - app/plugins/CovidV2.php | 53 - app/plugins/DatabaseBackup.php | 78 - app/plugins/ExamplePlugin.php | 11 - app/plugins/N7day.php | 42 - app/plugins/OpenWeatherMap.php | 72 - app/plugins/Spotify.php | 66 - app/plugins/UsaElection.php | 66 - app/plugins/_Covid.php | 39 - app/views/Ajax.php | 223 -- app/views/Automation.php | 67 - app/views/Device.php | 120 - app/views/Log.php | 48 - app/views/Login.php | 22 - app/views/Logout.php | 11 - app/views/Oauth.php | 28 - app/views/Plugins.php | 38 - app/views/Server.php | 56 - app/views/Setting.php | 85 - app/views/layouts/default.phtml | 20 - app/views/templates/automation.phtml | 68 - app/views/templates/device.phtml | 136 - app/views/templates/example.phtml | 1 - app/views/templates/loading.css | 20 - app/views/templates/log.phtml | 93 - app/views/templates/login.phtml | 31 - app/views/templates/oauth.phtml | 34 - .../templates/part/automationButton.phtml | 70 - .../templates/part/automationCreate.phtml | 69 - .../part/automationCreateFinal.phtml | 44 - app/views/templates/part/automationEdit.phtml | 85 - app/views/templates/part/footer.phtml | 5 - app/views/templates/part/head.phtml | 29 - app/views/templates/part/loginForm.phtml | 24 - app/views/templates/part/loginOta.phtml | 13 - app/views/templates/part/menu.phtml | 47 - app/views/templates/part/oauthLoginForm.phtml | 22 - app/views/templates/part/oauthLoginOta.phtml | 16 - app/views/templates/part/pluginButton.phtml | 29 - app/views/templates/part/test.phtml | 3 - app/views/templates/plugins.phtml | 54 - app/views/templates/server.phtml | 55 - app/views/templates/setting.phtml | 234 -- app/views/templates/template.phtml | 11 - backup/.gitkeep | 0 composer.json | 10 - composer.lock | 207 -- config/application.php | 5 - config/config_sample.php | 134 - core/Application/Application.php | 26 - core/Configuration/Configurations.php | 11 - lang/cs.php | 130 - lang/en.php | 130 - lang/nl.php | 104 - lang/pl.php | 112 - library/ApiController.php | 42 - library/Controller.php | 9 - library/DB.php | 98 - library/Debugger.php | 63 - library/Partial.php | 34 - library/Router.php | 106 - library/Template.php | 34 - library/View.php | 63 - .../vendor/PHPGangsta_GoogleAuthenticator.php | 252 -- logs/.gitkeep | 0 make.sh | 34 - public/.htaccess | 18 - public/Elementum/scss/elements/_buttons.scss | 69 - public/adminer.php | 2044 ----------- public/css/font-awesome.min.css | 6 - public/css/loading.css | 19 - public/css/main.css | 3019 ----------------- public/css/main.css.map | 44 - public/css/modal.css | 28 - public/css/override.css | 21 - public/css/pre.css | 17 - public/fonts/FontAwesome.otf | Bin 134808 -> 0 bytes public/fonts/Metropolis-Medium.otf | Bin 23240 -> 0 bytes public/fonts/Metropolis-Regular.otf | Bin 23124 -> 0 bytes public/fonts/Metropolis-SemiBold.otf | Bin 23480 -> 0 bytes public/fonts/fontawesome-webfont.eot | Bin 165742 -> 0 bytes public/fonts/fontawesome-webfont.svg | 2671 --------------- public/fonts/fontawesome-webfont.ttf | Bin 165548 -> 0 bytes public/fonts/fontawesome-webfont.woff | Bin 98024 -> 0 bytes public/fonts/fontawesome-webfont.woff2 | Bin 77160 -> 0 bytes public/images/icon-192x192.png | Bin 7309 -> 0 bytes public/images/icon-512x512.png | Bin 3402 -> 0 bytes public/index.php | 33 - public/js/automation.js | 35 - public/js/jquery.js | 2 - public/js/jquery.redirect.js | 182 - public/js/post.js | 74 - public/js/script.js | 299 -- public/js/setting.js | 59 - public/manifest.json | 22 - public/serviceWorker.js | 64 - serviceWorker.js | 64 - updater/.gitkeep | 0 160 files changed, 19504 deletions(-) delete mode 160000 .docker delete mode 100644 .editorconfig delete mode 100644 .ftpignore delete mode 100644 .gitmodules delete mode 100644 .htaccess delete mode 100644 .todo delete mode 100644 LICENSE delete mode 100644 New_JS_EDITOR_ TEST.php delete mode 100644 adminer.php delete mode 100644 app/Bootstrap.php delete mode 100644 app/Routes.php delete mode 100644 app/api/AuthApi.php delete mode 100644 app/api/CronApi.php delete mode 100644 app/api/DevicesApi.php delete mode 100644 app/api/EndpointsApi.php delete mode 100644 app/api/ExampleApi.php delete mode 100644 app/api/GoogleHomeApi.php delete mode 100644 app/api/PluginsApi.php delete mode 100644 app/api/RecordApi.php delete mode 100644 app/api/RoomsApi.php delete mode 100644 app/api/ServerApi.php delete mode 100644 app/api/UpdatesApi.php delete mode 100644 app/api/UsersApi.php delete mode 100644 app/api/WidgetApi.php delete mode 100644 app/controllers/ExampleController.php delete mode 100644 app/controllers/automationController.php delete mode 100644 app/controllers/deviceController.php delete mode 100644 app/controllers/loginController.php delete mode 100644 app/controllers/oauthController.php delete mode 100644 app/controllers/pluginsController.php delete mode 100644 app/controllers/settingController.php delete mode 100644 app/models/ChartJS.php delete mode 100644 app/models/ChartJS_Line.php delete mode 100644 app/models/ChartManager.php delete mode 100644 app/models/Form.php delete mode 100644 app/models/GoogleHome.php delete mode 100644 app/models/Partial.php delete mode 100644 app/models/Utilities.php delete mode 100644 app/models/managers/AuthManager.php delete mode 100644 app/models/managers/AutomationManager.php delete mode 100644 app/models/managers/ChartManager.php delete mode 100644 app/models/managers/DashboardManager.php delete mode 100644 app/models/managers/DeviceManager.php delete mode 100644 app/models/managers/EmailManager.php delete mode 100644 app/models/managers/FallbackManager.php delete mode 100644 app/models/managers/LanguageManager.php delete mode 100644 app/models/managers/LogMaintainer.php delete mode 100644 app/models/managers/LogManager.php delete mode 100644 app/models/managers/NetworkManager.php delete mode 100644 app/models/managers/NotificationManager.php delete mode 100644 app/models/managers/RecordManager.php delete mode 100644 app/models/managers/RoomManager.php delete mode 100644 app/models/managers/SceneManager.php delete mode 100644 app/models/managers/SettingsManager.php delete mode 100644 app/models/managers/SubDeviceManager.php delete mode 100644 app/models/managers/UserManager.php delete mode 100644 app/models/managers/VirtualDeviceManager.php delete mode 100644 app/models/types/GoogleHomeDeviceTypes.php delete mode 100644 app/models/types/LogRecordTypes.php delete mode 100644 app/models/types/WidgetTypes.php delete mode 100644 app/plugins/!AirQuality.php delete mode 100644 app/plugins/AirQuality.php delete mode 100644 app/plugins/CovidV2.php delete mode 100644 app/plugins/DatabaseBackup.php delete mode 100644 app/plugins/ExamplePlugin.php delete mode 100644 app/plugins/N7day.php delete mode 100644 app/plugins/OpenWeatherMap.php delete mode 100644 app/plugins/Spotify.php delete mode 100644 app/plugins/UsaElection.php delete mode 100644 app/plugins/_Covid.php delete mode 100644 app/views/Ajax.php delete mode 100644 app/views/Automation.php delete mode 100644 app/views/Device.php delete mode 100644 app/views/Log.php delete mode 100644 app/views/Login.php delete mode 100644 app/views/Logout.php delete mode 100644 app/views/Oauth.php delete mode 100644 app/views/Plugins.php delete mode 100644 app/views/Server.php delete mode 100644 app/views/Setting.php delete mode 100644 app/views/layouts/default.phtml delete mode 100644 app/views/templates/automation.phtml delete mode 100644 app/views/templates/device.phtml delete mode 100644 app/views/templates/example.phtml delete mode 100644 app/views/templates/loading.css delete mode 100644 app/views/templates/log.phtml delete mode 100644 app/views/templates/login.phtml delete mode 100644 app/views/templates/oauth.phtml delete mode 100644 app/views/templates/part/automationButton.phtml delete mode 100644 app/views/templates/part/automationCreate.phtml delete mode 100644 app/views/templates/part/automationCreateFinal.phtml delete mode 100644 app/views/templates/part/automationEdit.phtml delete mode 100644 app/views/templates/part/footer.phtml delete mode 100644 app/views/templates/part/head.phtml delete mode 100644 app/views/templates/part/loginForm.phtml delete mode 100644 app/views/templates/part/loginOta.phtml delete mode 100644 app/views/templates/part/menu.phtml delete mode 100644 app/views/templates/part/oauthLoginForm.phtml delete mode 100644 app/views/templates/part/oauthLoginOta.phtml delete mode 100644 app/views/templates/part/pluginButton.phtml delete mode 100644 app/views/templates/part/test.phtml delete mode 100644 app/views/templates/plugins.phtml delete mode 100644 app/views/templates/server.phtml delete mode 100644 app/views/templates/setting.phtml delete mode 100644 app/views/templates/template.phtml delete mode 100644 backup/.gitkeep delete mode 100644 composer.json delete mode 100644 composer.lock delete mode 100644 config/application.php delete mode 100644 config/config_sample.php delete mode 100644 core/Application/Application.php delete mode 100644 core/Configuration/Configurations.php delete mode 100644 lang/cs.php delete mode 100644 lang/en.php delete mode 100644 lang/nl.php delete mode 100644 lang/pl.php delete mode 100644 library/ApiController.php delete mode 100644 library/Controller.php delete mode 100644 library/DB.php delete mode 100644 library/Debugger.php delete mode 100644 library/Partial.php delete mode 100644 library/Router.php delete mode 100644 library/Template.php delete mode 100644 library/View.php delete mode 100644 library/vendor/PHPGangsta_GoogleAuthenticator.php delete mode 100644 logs/.gitkeep delete mode 100644 make.sh delete mode 100644 public/.htaccess delete mode 100644 public/Elementum/scss/elements/_buttons.scss delete mode 100644 public/adminer.php delete mode 100644 public/css/font-awesome.min.css delete mode 100644 public/css/loading.css delete mode 100644 public/css/main.css delete mode 100644 public/css/main.css.map delete mode 100644 public/css/modal.css delete mode 100644 public/css/override.css delete mode 100644 public/css/pre.css delete mode 100644 public/fonts/FontAwesome.otf delete mode 100644 public/fonts/Metropolis-Medium.otf delete mode 100644 public/fonts/Metropolis-Regular.otf delete mode 100644 public/fonts/Metropolis-SemiBold.otf delete mode 100644 public/fonts/fontawesome-webfont.eot delete mode 100644 public/fonts/fontawesome-webfont.svg delete mode 100644 public/fonts/fontawesome-webfont.ttf delete mode 100644 public/fonts/fontawesome-webfont.woff delete mode 100644 public/fonts/fontawesome-webfont.woff2 delete mode 100644 public/images/icon-192x192.png delete mode 100644 public/images/icon-512x512.png delete mode 100644 public/index.php delete mode 100644 public/js/automation.js delete mode 100644 public/js/jquery.js delete mode 100644 public/js/jquery.redirect.js delete mode 100644 public/js/post.js delete mode 100644 public/js/script.js delete mode 100644 public/js/setting.js delete mode 100644 public/manifest.json delete mode 100644 public/serviceWorker.js delete mode 100644 serviceWorker.js delete mode 100644 updater/.gitkeep diff --git a/.docker b/.docker deleted file mode 160000 index 0ee345e..0000000 --- a/.docker +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0ee345e496ed3bd468ae9bcb583352c7561ce368 diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index f9002a0..0000000 --- a/.editorconfig +++ /dev/null @@ -1,18 +0,0 @@ -# https://editorconfig.org/ - -root = true - -[*] -indent_style = tab -indent_size = 3 -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -max_line_length = 80 - -[COMMIT_EDITMSG] -indent_size = 4 -max_line_length = 80 diff --git a/.ftpignore b/.ftpignore deleted file mode 100644 index 5408dcf..0000000 --- a/.ftpignore +++ /dev/null @@ -1,6 +0,0 @@ -.git -_FIRMWARE -_INSTALATION -_README_IMG -README.md -.todo diff --git a/.gitignore b/.gitignore index f4f5477..9f11b75 100644 --- a/.gitignore +++ b/.gitignore @@ -1,23 +1 @@ - -.ftpconfig -.ftpconfig2 -*.log -*.bin -config.php - -_nemazat/index.html -_nemazat/css/main.css.map -_nemazat/css/main.css -_nemazat/css/font-awesome.min.css - -.vscode/ -.vscode/sftp.json - -app/updater/*.bin -app/logs/*.log -backup/*.zip - - -vendor/ - .idea/ diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 616218f..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule ".docker"] - path = .docker - url = https://github.com/GamerClassN7/Docker-Xamp-Server.git diff --git a/.htaccess b/.htaccess deleted file mode 100644 index 289a0f5..0000000 --- a/.htaccess +++ /dev/null @@ -1,22 +0,0 @@ -RewriteEngine On - -# require https -#RewriteCond %{HTTPS} off -#RewriteCond %{REQUEST_URI} !^/api/update -#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] - -#token to HTTP_AUTHORIZATION -RewriteCond %{HTTP:Authorization} ^(.*) -RewriteRule . - [e=HTTP_AUTHORIZATION:%1] - -# serve all files from public subfolder -RewriteCond %{REQUEST_FILENAME} !.php -RewriteCond %{REQUEST_FILENAME} !.log -RewriteCond %{REQUEST_FILENAME} !.ttfnot -RewriteCond %{REQUEST_FILENAME} \. -RewriteRule (.*) ./public/$1 [L] - -# serve all other request as query parameters -RewriteRule (.*) ./public/index.php?url=$1 [L,QSA] - -AddType application/x-httpd-php .php .phtml diff --git a/.todo b/.todo deleted file mode 100644 index ae0cdf4..0000000 --- a/.todo +++ /dev/null @@ -1,13 +0,0 @@ -//TODO: Automation last Run Time -//TODO: Check if every automation type Works -//TODO: Add Switch to Setting For debug mode -//TODO: hide menu item Debug When Debug mode is disabled -//TODO: Check if every setting works -//TODO: Add slector to automation execute all To execute only utomation whitch contain same day (as actual to speed up process) -//TODO: Check and fix time based automation -//TODO: 404 same like in ENergo COunter Project -//TODO: @FILIP Fix Editation of all Automations -//TODO: @FILIP test if registration work without an isuu even with notification -//TODO: Fix Default Room selection -//TODO: Fix User Delete button -//TODO: Fix new add email form diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 3b6b6a1..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 JonatanRek :) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/New_JS_EDITOR_ TEST.php b/New_JS_EDITOR_ TEST.php deleted file mode 100644 index 7882174..0000000 --- a/New_JS_EDITOR_ TEST.php +++ /dev/null @@ -1,255 +0,0 @@ -
-	
-
- -
- - -
- - -
-
- - - -
- - -
-
- - - -
- - diff --git a/adminer.php b/adminer.php deleted file mode 100644 index 7475f6c..0000000 --- a/adminer.php +++ /dev/null @@ -1,2044 +0,0 @@ -$W){unset($vg[$y][$he]);if(is_array($W)){$vg[$y][stripslashes($he)]=$W;$vg[]=&$vg[$y][stripslashes($he)];}else$vg[$y][stripslashes($he)]=($Zc?$W:stripslashes($W));}}}}function -bracket_escape($u,$Pa=false){static$xi=array(':'=>':1',']'=>':2','['=>':3','"'=>':4');return -strtr($u,($Pa?array_flip($xi):$xi));}function -min_version($dj,$Ge="",$i=null){global$h;if(!$i)$i=$h;$qh=$i->server_info;if($Ge&&preg_match('~([\d.]+)-MariaDB~',$qh,$A)){$qh=$A[1];$dj=$Ge;}return(version_compare($qh,$dj)>=0);}function -charset($h){return(min_version("5.5.3",0,$h)?"utf8mb4":"utf8");}function -script($Ah,$wi="\n"){return"$Ah$wi";}function -script_src($Qi){return"\n";}function -nonce(){return' nonce="'.get_nonce().'"';}function -target_blank(){return' target="_blank" rel="noreferrer noopener"';}function -h($P){return -str_replace("\0","�",htmlspecialchars($P,ENT_QUOTES,'utf-8'));}function -nl_br($P){return -str_replace("\n","
",$P);}function -checkbox($B,$Y,$gb,$oe="",$xf="",$lb="",$pe=""){$H="".($xf?script("qsl('input').onclick = function () { $xf };",""):"");return($oe!=""||$lb?"$H".h($oe)."":$H);}function -optionlist($Cf,$kh=null,$Vi=false){$H="";foreach($Cf -as$he=>$W){$Df=array($he=>$W);if(is_array($W)){$H.='';$Df=$W;}foreach($Df -as$y=>$X)$H.=''.h($X);if(is_array($W))$H.='';}return$H;}function -html_select($B,$Cf,$Y="",$wf=true,$pe=""){if($wf)return"".(is_string($wf)?script("qsl('select').onchange = function () { $wf };",""):"");$H="";foreach($Cf -as$y=>$X)$H.="";return$H;}function -select_input($Ka,$Cf,$Y="",$wf="",$hg=""){$bi=($Cf?"select":"input");return"<$bi$Ka".($Cf?">