From 2f0a406f83beb4a4bfa6bd76fa783fd117a0656a Mon Sep 17 00:00:00 2001 From: Sergei Solovev Date: Tue, 21 Mar 2023 20:13:07 +0300 Subject: [PATCH] The admin theme is separated from the main one --- acp/index.php | 2 +- {template/acp => acp/template}/all.html | 0 {template/acp => acp/template}/cashback.html | 0 .../acp => acp/template}/css/bootbox.css | 0 {template/acp => acp/template}/css/fonts.css | 0 .../template}/css/jquery.datetimepicker.css | 0 {template/acp => acp/template}/css/style.css | 0 {template/acp => acp/template}/favicon.ico | Bin .../template}/fonts/FontAwesome.otf | Bin .../acp => acp/template}/fonts/cuprum.ttf | Bin .../acp => acp/template}/fonts/cuprum.woff | Bin .../acp => acp/template}/fonts/cuprum.woff2 | Bin .../acp => acp/template}/fonts/cuprumbold.ttf | Bin .../template}/fonts/cuprumbold.woff | Bin .../template}/fonts/cuprumbold.woff2 | Bin .../template}/fonts/cuprumbolditalic.ttf | Bin .../template}/fonts/cuprumbolditalic.woff | Bin .../template}/fonts/cuprumbolditalic.woff2 | Bin .../template}/fonts/cuprumitalic.ttf | Bin .../template}/fonts/cuprumitalic.woff | Bin .../template}/fonts/cuprumitalic.woff2 | Bin .../template}/fonts/fontawesome-webfont.eot | Bin .../template}/fonts/fontawesome-webfont.svg | 0 .../template}/fonts/fontawesome-webfont.ttf | Bin .../template}/fonts/fontawesome-webfont.woff | Bin .../template}/fonts/fontawesome-webfont.woff2 | Bin .../acp => acp/template}/images/.htaccess | 0 {template/acp => acp/template}/js/addons.js | 0 {template/acp => acp/template}/js/bootbox.js | 0 .../acp => acp/template}/js/bootstrap.js | 0 {template/acp => acp/template}/js/control.js | 0 .../js/date/jquery.datetimepicker.full.js | 0 {template/acp => acp/template}/js/form.js | 0 .../acp => acp/template}/js/functions.js | 0 {template/acp => acp/template}/js/jquery.js | 0 {template/acp => acp/template}/js/letter.js | 0 {template/acp => acp/template}/js/logs.js | 0 {template/acp => acp/template}/js/news.js | 0 {template/acp => acp/template}/js/notice.js | 0 {template/acp => acp/template}/js/pages.js | 0 {template/acp => acp/template}/js/promo.js | 0 {template/acp => acp/template}/js/servers.js | 0 {template/acp => acp/template}/js/system.js | 0 {template/acp => acp/template}/js/tarifs.js | 0 {template/acp => acp/template}/js/units.js | 0 {template/acp => acp/template}/js/users.js | 0 {template/acp => acp/template}/js/web.js | 0 {template/acp => acp/template}/js/wiki.js | 0 {template/acp => acp/template}/main.html | 0 {template/acp => acp/template}/pages.html | 0 .../template}/sections/addons/addcat.html | 0 .../template}/sections/addons/addpl.html | 0 .../template}/sections/addons/cats.html | 0 .../template}/sections/addons/index.html | 0 .../template}/sections/addons/menu.html | 0 .../template}/sections/addons/plugin.html | 0 .../template}/sections/addons/update.html | 0 .../template}/sections/addons/updmp.html | 0 .../template}/sections/boost/index.html | 0 .../template}/sections/boost/menu.html | 0 .../template}/sections/control/index.html | 0 .../template}/sections/control/menu.html | 0 .../template}/sections/control/server.html | 0 .../template}/sections/hosting/menu.html | 0 .../template}/sections/jobs/add.html | 0 .../template}/sections/jobs/edit.html | 0 .../template}/sections/jobs/index.html | 0 .../template}/sections/jobs/menu.html | 0 .../template}/sections/jobs/request.html | 0 .../template}/sections/jobs/request_edit.html | 0 .../template}/sections/letter/index.html | 0 .../template}/sections/letter/menu.html | 0 .../template}/sections/logs/index.html | 0 .../template}/sections/logs/logs.html | 0 .../template}/sections/logs/menu.html | 0 .../template}/sections/news/add.html | 0 .../template}/sections/news/index.html | 0 .../template}/sections/news/menu.html | 0 .../template}/sections/news/news.html | 0 .../template}/sections/notice/add.html | 0 .../template}/sections/notice/index.html | 0 .../template}/sections/notice/menu.html | 0 .../template}/sections/notice/notice.html | 0 .../template}/sections/pages/add.html | 0 .../template}/sections/pages/index.html | 0 .../template}/sections/pages/menu.html | 0 .../template}/sections/pages/page.html | 0 .../template}/sections/promo/add.html | 0 .../template}/sections/promo/index.html | 0 .../template}/sections/promo/menu.html | 0 .../template}/sections/promo/promo.html | 0 .../template}/sections/promo/stats.html | 0 .../template}/sections/servers/index.html | 0 .../template}/sections/servers/menu.html | 0 .../template}/sections/servers/overdue.html | 0 .../template}/sections/servers/server.html | 0 .../template}/sections/system/index.html | 0 .../template}/sections/tarifs/add.html | 0 .../template}/sections/tarifs/copy.html | 0 .../template}/sections/tarifs/index.html | 0 .../template}/sections/tarifs/menu.html | 0 .../template}/sections/tarifs/stats.html | 0 .../template}/sections/tarifs/tarif.html | 0 .../template}/sections/units/add.html | 0 .../template}/sections/units/index.html | 0 .../template}/sections/units/loading.html | 0 .../template}/sections/units/menu.html | 0 .../template}/sections/units/stats.html | 0 .../template}/sections/units/unit.html | 0 .../template}/sections/users/index.html | 0 .../template}/sections/users/menu.html | 0 .../template}/sections/users/offline.html | 0 .../template}/sections/users/online.html | 0 .../template}/sections/users/signup.html | 0 .../template}/sections/users/stats.html | 0 .../template}/sections/users/user.html | 0 .../template}/sections/web/index.html | 0 .../template}/sections/web/menu.html | 0 .../template}/sections/wiki/add.html | 0 .../template}/sections/wiki/addcat.html | 0 .../template}/sections/wiki/cat.html | 0 .../template}/sections/wiki/cats.html | 0 .../template}/sections/wiki/index.html | 0 .../template}/sections/wiki/menu.html | 0 .../template}/sections/wiki/wiki.html | 0 system/acp/engine/plugins.php | 41 ++++++++++++++++++ 126 files changed, 42 insertions(+), 1 deletion(-) rename {template/acp => acp/template}/all.html (100%) rename {template/acp => acp/template}/cashback.html (100%) rename {template/acp => acp/template}/css/bootbox.css (100%) rename {template/acp => acp/template}/css/fonts.css (100%) rename {template/acp => acp/template}/css/jquery.datetimepicker.css (100%) rename {template/acp => acp/template}/css/style.css (100%) rename {template/acp => acp/template}/favicon.ico (100%) rename {template/acp => acp/template}/fonts/FontAwesome.otf (100%) rename {template/acp => acp/template}/fonts/cuprum.ttf (100%) rename {template/acp => acp/template}/fonts/cuprum.woff (100%) rename {template/acp => acp/template}/fonts/cuprum.woff2 (100%) rename {template/acp => acp/template}/fonts/cuprumbold.ttf (100%) rename {template/acp => acp/template}/fonts/cuprumbold.woff (100%) rename {template/acp => acp/template}/fonts/cuprumbold.woff2 (100%) rename {template/acp => acp/template}/fonts/cuprumbolditalic.ttf (100%) rename {template/acp => acp/template}/fonts/cuprumbolditalic.woff (100%) rename {template/acp => acp/template}/fonts/cuprumbolditalic.woff2 (100%) rename {template/acp => acp/template}/fonts/cuprumitalic.ttf (100%) rename {template/acp => acp/template}/fonts/cuprumitalic.woff (100%) rename {template/acp => acp/template}/fonts/cuprumitalic.woff2 (100%) rename {template/acp => acp/template}/fonts/fontawesome-webfont.eot (100%) rename {template/acp => acp/template}/fonts/fontawesome-webfont.svg (100%) rename {template/acp => acp/template}/fonts/fontawesome-webfont.ttf (100%) rename {template/acp => acp/template}/fonts/fontawesome-webfont.woff (100%) rename {template/acp => acp/template}/fonts/fontawesome-webfont.woff2 (100%) rename {template/acp => acp/template}/images/.htaccess (100%) rename {template/acp => acp/template}/js/addons.js (100%) rename {template/acp => acp/template}/js/bootbox.js (100%) rename {template/acp => acp/template}/js/bootstrap.js (100%) rename {template/acp => acp/template}/js/control.js (100%) rename {template/acp => acp/template}/js/date/jquery.datetimepicker.full.js (100%) rename {template/acp => acp/template}/js/form.js (100%) rename {template/acp => acp/template}/js/functions.js (100%) rename {template/acp => acp/template}/js/jquery.js (100%) rename {template/acp => acp/template}/js/letter.js (100%) rename {template/acp => acp/template}/js/logs.js (100%) rename {template/acp => acp/template}/js/news.js (100%) rename {template/acp => acp/template}/js/notice.js (100%) rename {template/acp => acp/template}/js/pages.js (100%) rename {template/acp => acp/template}/js/promo.js (100%) rename {template/acp => acp/template}/js/servers.js (100%) rename {template/acp => acp/template}/js/system.js (100%) rename {template/acp => acp/template}/js/tarifs.js (100%) rename {template/acp => acp/template}/js/units.js (100%) rename {template/acp => acp/template}/js/users.js (100%) rename {template/acp => acp/template}/js/web.js (100%) rename {template/acp => acp/template}/js/wiki.js (100%) rename {template/acp => acp/template}/main.html (100%) rename {template/acp => acp/template}/pages.html (100%) rename {template/acp => acp/template}/sections/addons/addcat.html (100%) rename {template/acp => acp/template}/sections/addons/addpl.html (100%) rename {template/acp => acp/template}/sections/addons/cats.html (100%) rename {template/acp => acp/template}/sections/addons/index.html (100%) rename {template/acp => acp/template}/sections/addons/menu.html (100%) rename {template/acp => acp/template}/sections/addons/plugin.html (100%) rename {template/acp => acp/template}/sections/addons/update.html (100%) rename {template/acp => acp/template}/sections/addons/updmp.html (100%) rename {template/acp => acp/template}/sections/boost/index.html (100%) rename {template/acp => acp/template}/sections/boost/menu.html (100%) rename {template/acp => acp/template}/sections/control/index.html (100%) rename {template/acp => acp/template}/sections/control/menu.html (100%) rename {template/acp => acp/template}/sections/control/server.html (100%) rename {template/acp => acp/template}/sections/hosting/menu.html (100%) rename {template/acp => acp/template}/sections/jobs/add.html (100%) rename {template/acp => acp/template}/sections/jobs/edit.html (100%) rename {template/acp => acp/template}/sections/jobs/index.html (100%) rename {template/acp => acp/template}/sections/jobs/menu.html (100%) rename {template/acp => acp/template}/sections/jobs/request.html (100%) rename {template/acp => acp/template}/sections/jobs/request_edit.html (100%) rename {template/acp => acp/template}/sections/letter/index.html (100%) rename {template/acp => acp/template}/sections/letter/menu.html (100%) rename {template/acp => acp/template}/sections/logs/index.html (100%) rename {template/acp => acp/template}/sections/logs/logs.html (100%) rename {template/acp => acp/template}/sections/logs/menu.html (100%) rename {template/acp => acp/template}/sections/news/add.html (100%) rename {template/acp => acp/template}/sections/news/index.html (100%) rename {template/acp => acp/template}/sections/news/menu.html (100%) rename {template/acp => acp/template}/sections/news/news.html (100%) rename {template/acp => acp/template}/sections/notice/add.html (100%) rename {template/acp => acp/template}/sections/notice/index.html (100%) rename {template/acp => acp/template}/sections/notice/menu.html (100%) rename {template/acp => acp/template}/sections/notice/notice.html (100%) rename {template/acp => acp/template}/sections/pages/add.html (100%) rename {template/acp => acp/template}/sections/pages/index.html (100%) rename {template/acp => acp/template}/sections/pages/menu.html (100%) rename {template/acp => acp/template}/sections/pages/page.html (100%) rename {template/acp => acp/template}/sections/promo/add.html (100%) rename {template/acp => acp/template}/sections/promo/index.html (100%) rename {template/acp => acp/template}/sections/promo/menu.html (100%) rename {template/acp => acp/template}/sections/promo/promo.html (100%) rename {template/acp => acp/template}/sections/promo/stats.html (100%) rename {template/acp => acp/template}/sections/servers/index.html (100%) rename {template/acp => acp/template}/sections/servers/menu.html (100%) rename {template/acp => acp/template}/sections/servers/overdue.html (100%) rename {template/acp => acp/template}/sections/servers/server.html (100%) rename {template/acp => acp/template}/sections/system/index.html (100%) rename {template/acp => acp/template}/sections/tarifs/add.html (100%) rename {template/acp => acp/template}/sections/tarifs/copy.html (100%) rename {template/acp => acp/template}/sections/tarifs/index.html (100%) rename {template/acp => acp/template}/sections/tarifs/menu.html (100%) rename {template/acp => acp/template}/sections/tarifs/stats.html (100%) rename {template/acp => acp/template}/sections/tarifs/tarif.html (100%) rename {template/acp => acp/template}/sections/units/add.html (100%) rename {template/acp => acp/template}/sections/units/index.html (100%) rename {template/acp => acp/template}/sections/units/loading.html (100%) rename {template/acp => acp/template}/sections/units/menu.html (100%) rename {template/acp => acp/template}/sections/units/stats.html (100%) rename {template/acp => acp/template}/sections/units/unit.html (100%) rename {template/acp => acp/template}/sections/users/index.html (100%) rename {template/acp => acp/template}/sections/users/menu.html (100%) rename {template/acp => acp/template}/sections/users/offline.html (100%) rename {template/acp => acp/template}/sections/users/online.html (100%) rename {template/acp => acp/template}/sections/users/signup.html (100%) rename {template/acp => acp/template}/sections/users/stats.html (100%) rename {template/acp => acp/template}/sections/users/user.html (100%) rename {template/acp => acp/template}/sections/web/index.html (100%) rename {template/acp => acp/template}/sections/web/menu.html (100%) rename {template/acp => acp/template}/sections/wiki/add.html (100%) rename {template/acp => acp/template}/sections/wiki/addcat.html (100%) rename {template/acp => acp/template}/sections/wiki/cat.html (100%) rename {template/acp => acp/template}/sections/wiki/cats.html (100%) rename {template/acp => acp/template}/sections/wiki/index.html (100%) rename {template/acp => acp/template}/sections/wiki/menu.html (100%) rename {template/acp => acp/template}/sections/wiki/wiki.html (100%) create mode 100644 system/acp/engine/plugins.php diff --git a/acp/index.php b/acp/index.php index 2d3ebf5..4b47e7b 100644 --- a/acp/index.php +++ b/acp/index.php @@ -11,7 +11,7 @@ DEFINE('ROOT', '../'); DEFINE('SYS', ROOT.'system/'); DEFINE('ACP', ROOT.'system/acp/'); - DEFINE('TPL', ROOT.'template/acp/'); + DEFINE('TPL', ROOT.'acp/template/'); DEFINE('TEMP', ROOT.'temp/'); DEFINE('FILES', ROOT.'files/'); DEFINE('DATA', SYS.'data/'); diff --git a/template/acp/all.html b/acp/template/all.html similarity index 100% rename from template/acp/all.html rename to acp/template/all.html diff --git a/template/acp/cashback.html b/acp/template/cashback.html similarity index 100% rename from template/acp/cashback.html rename to acp/template/cashback.html diff --git a/template/acp/css/bootbox.css b/acp/template/css/bootbox.css similarity index 100% rename from template/acp/css/bootbox.css rename to acp/template/css/bootbox.css diff --git a/template/acp/css/fonts.css b/acp/template/css/fonts.css similarity index 100% rename from template/acp/css/fonts.css rename to acp/template/css/fonts.css diff --git a/template/acp/css/jquery.datetimepicker.css b/acp/template/css/jquery.datetimepicker.css similarity index 100% rename from template/acp/css/jquery.datetimepicker.css rename to acp/template/css/jquery.datetimepicker.css diff --git a/template/acp/css/style.css b/acp/template/css/style.css similarity index 100% rename from template/acp/css/style.css rename to acp/template/css/style.css diff --git a/template/acp/favicon.ico b/acp/template/favicon.ico similarity index 100% rename from template/acp/favicon.ico rename to acp/template/favicon.ico diff --git a/template/acp/fonts/FontAwesome.otf b/acp/template/fonts/FontAwesome.otf similarity index 100% rename from template/acp/fonts/FontAwesome.otf rename to acp/template/fonts/FontAwesome.otf diff --git a/template/acp/fonts/cuprum.ttf b/acp/template/fonts/cuprum.ttf similarity index 100% rename from template/acp/fonts/cuprum.ttf rename to acp/template/fonts/cuprum.ttf diff --git a/template/acp/fonts/cuprum.woff b/acp/template/fonts/cuprum.woff similarity index 100% rename from template/acp/fonts/cuprum.woff rename to acp/template/fonts/cuprum.woff diff --git a/template/acp/fonts/cuprum.woff2 b/acp/template/fonts/cuprum.woff2 similarity index 100% rename from template/acp/fonts/cuprum.woff2 rename to acp/template/fonts/cuprum.woff2 diff --git a/template/acp/fonts/cuprumbold.ttf b/acp/template/fonts/cuprumbold.ttf similarity index 100% rename from template/acp/fonts/cuprumbold.ttf rename to acp/template/fonts/cuprumbold.ttf diff --git a/template/acp/fonts/cuprumbold.woff b/acp/template/fonts/cuprumbold.woff similarity index 100% rename from template/acp/fonts/cuprumbold.woff rename to acp/template/fonts/cuprumbold.woff diff --git a/template/acp/fonts/cuprumbold.woff2 b/acp/template/fonts/cuprumbold.woff2 similarity index 100% rename from template/acp/fonts/cuprumbold.woff2 rename to acp/template/fonts/cuprumbold.woff2 diff --git a/template/acp/fonts/cuprumbolditalic.ttf b/acp/template/fonts/cuprumbolditalic.ttf similarity index 100% rename from template/acp/fonts/cuprumbolditalic.ttf rename to acp/template/fonts/cuprumbolditalic.ttf diff --git a/template/acp/fonts/cuprumbolditalic.woff b/acp/template/fonts/cuprumbolditalic.woff similarity index 100% rename from template/acp/fonts/cuprumbolditalic.woff rename to acp/template/fonts/cuprumbolditalic.woff diff --git a/template/acp/fonts/cuprumbolditalic.woff2 b/acp/template/fonts/cuprumbolditalic.woff2 similarity index 100% rename from template/acp/fonts/cuprumbolditalic.woff2 rename to acp/template/fonts/cuprumbolditalic.woff2 diff --git a/template/acp/fonts/cuprumitalic.ttf b/acp/template/fonts/cuprumitalic.ttf similarity index 100% rename from template/acp/fonts/cuprumitalic.ttf rename to acp/template/fonts/cuprumitalic.ttf diff --git a/template/acp/fonts/cuprumitalic.woff b/acp/template/fonts/cuprumitalic.woff similarity index 100% rename from template/acp/fonts/cuprumitalic.woff rename to acp/template/fonts/cuprumitalic.woff diff --git a/template/acp/fonts/cuprumitalic.woff2 b/acp/template/fonts/cuprumitalic.woff2 similarity index 100% rename from template/acp/fonts/cuprumitalic.woff2 rename to acp/template/fonts/cuprumitalic.woff2 diff --git a/template/acp/fonts/fontawesome-webfont.eot b/acp/template/fonts/fontawesome-webfont.eot similarity index 100% rename from template/acp/fonts/fontawesome-webfont.eot rename to acp/template/fonts/fontawesome-webfont.eot diff --git a/template/acp/fonts/fontawesome-webfont.svg b/acp/template/fonts/fontawesome-webfont.svg similarity index 100% rename from template/acp/fonts/fontawesome-webfont.svg rename to acp/template/fonts/fontawesome-webfont.svg diff --git a/template/acp/fonts/fontawesome-webfont.ttf b/acp/template/fonts/fontawesome-webfont.ttf similarity index 100% rename from template/acp/fonts/fontawesome-webfont.ttf rename to acp/template/fonts/fontawesome-webfont.ttf diff --git a/template/acp/fonts/fontawesome-webfont.woff b/acp/template/fonts/fontawesome-webfont.woff similarity index 100% rename from template/acp/fonts/fontawesome-webfont.woff rename to acp/template/fonts/fontawesome-webfont.woff diff --git a/template/acp/fonts/fontawesome-webfont.woff2 b/acp/template/fonts/fontawesome-webfont.woff2 similarity index 100% rename from template/acp/fonts/fontawesome-webfont.woff2 rename to acp/template/fonts/fontawesome-webfont.woff2 diff --git a/template/acp/images/.htaccess b/acp/template/images/.htaccess similarity index 100% rename from template/acp/images/.htaccess rename to acp/template/images/.htaccess diff --git a/template/acp/js/addons.js b/acp/template/js/addons.js similarity index 100% rename from template/acp/js/addons.js rename to acp/template/js/addons.js diff --git a/template/acp/js/bootbox.js b/acp/template/js/bootbox.js similarity index 100% rename from template/acp/js/bootbox.js rename to acp/template/js/bootbox.js diff --git a/template/acp/js/bootstrap.js b/acp/template/js/bootstrap.js similarity index 100% rename from template/acp/js/bootstrap.js rename to acp/template/js/bootstrap.js diff --git a/template/acp/js/control.js b/acp/template/js/control.js similarity index 100% rename from template/acp/js/control.js rename to acp/template/js/control.js diff --git a/template/acp/js/date/jquery.datetimepicker.full.js b/acp/template/js/date/jquery.datetimepicker.full.js similarity index 100% rename from template/acp/js/date/jquery.datetimepicker.full.js rename to acp/template/js/date/jquery.datetimepicker.full.js diff --git a/template/acp/js/form.js b/acp/template/js/form.js similarity index 100% rename from template/acp/js/form.js rename to acp/template/js/form.js diff --git a/template/acp/js/functions.js b/acp/template/js/functions.js similarity index 100% rename from template/acp/js/functions.js rename to acp/template/js/functions.js diff --git a/template/acp/js/jquery.js b/acp/template/js/jquery.js similarity index 100% rename from template/acp/js/jquery.js rename to acp/template/js/jquery.js diff --git a/template/acp/js/letter.js b/acp/template/js/letter.js similarity index 100% rename from template/acp/js/letter.js rename to acp/template/js/letter.js diff --git a/template/acp/js/logs.js b/acp/template/js/logs.js similarity index 100% rename from template/acp/js/logs.js rename to acp/template/js/logs.js diff --git a/template/acp/js/news.js b/acp/template/js/news.js similarity index 100% rename from template/acp/js/news.js rename to acp/template/js/news.js diff --git a/template/acp/js/notice.js b/acp/template/js/notice.js similarity index 100% rename from template/acp/js/notice.js rename to acp/template/js/notice.js diff --git a/template/acp/js/pages.js b/acp/template/js/pages.js similarity index 100% rename from template/acp/js/pages.js rename to acp/template/js/pages.js diff --git a/template/acp/js/promo.js b/acp/template/js/promo.js similarity index 100% rename from template/acp/js/promo.js rename to acp/template/js/promo.js diff --git a/template/acp/js/servers.js b/acp/template/js/servers.js similarity index 100% rename from template/acp/js/servers.js rename to acp/template/js/servers.js diff --git a/template/acp/js/system.js b/acp/template/js/system.js similarity index 100% rename from template/acp/js/system.js rename to acp/template/js/system.js diff --git a/template/acp/js/tarifs.js b/acp/template/js/tarifs.js similarity index 100% rename from template/acp/js/tarifs.js rename to acp/template/js/tarifs.js diff --git a/template/acp/js/units.js b/acp/template/js/units.js similarity index 100% rename from template/acp/js/units.js rename to acp/template/js/units.js diff --git a/template/acp/js/users.js b/acp/template/js/users.js similarity index 100% rename from template/acp/js/users.js rename to acp/template/js/users.js diff --git a/template/acp/js/web.js b/acp/template/js/web.js similarity index 100% rename from template/acp/js/web.js rename to acp/template/js/web.js diff --git a/template/acp/js/wiki.js b/acp/template/js/wiki.js similarity index 100% rename from template/acp/js/wiki.js rename to acp/template/js/wiki.js diff --git a/template/acp/main.html b/acp/template/main.html similarity index 100% rename from template/acp/main.html rename to acp/template/main.html diff --git a/template/acp/pages.html b/acp/template/pages.html similarity index 100% rename from template/acp/pages.html rename to acp/template/pages.html diff --git a/template/acp/sections/addons/addcat.html b/acp/template/sections/addons/addcat.html similarity index 100% rename from template/acp/sections/addons/addcat.html rename to acp/template/sections/addons/addcat.html diff --git a/template/acp/sections/addons/addpl.html b/acp/template/sections/addons/addpl.html similarity index 100% rename from template/acp/sections/addons/addpl.html rename to acp/template/sections/addons/addpl.html diff --git a/template/acp/sections/addons/cats.html b/acp/template/sections/addons/cats.html similarity index 100% rename from template/acp/sections/addons/cats.html rename to acp/template/sections/addons/cats.html diff --git a/template/acp/sections/addons/index.html b/acp/template/sections/addons/index.html similarity index 100% rename from template/acp/sections/addons/index.html rename to acp/template/sections/addons/index.html diff --git a/template/acp/sections/addons/menu.html b/acp/template/sections/addons/menu.html similarity index 100% rename from template/acp/sections/addons/menu.html rename to acp/template/sections/addons/menu.html diff --git a/template/acp/sections/addons/plugin.html b/acp/template/sections/addons/plugin.html similarity index 100% rename from template/acp/sections/addons/plugin.html rename to acp/template/sections/addons/plugin.html diff --git a/template/acp/sections/addons/update.html b/acp/template/sections/addons/update.html similarity index 100% rename from template/acp/sections/addons/update.html rename to acp/template/sections/addons/update.html diff --git a/template/acp/sections/addons/updmp.html b/acp/template/sections/addons/updmp.html similarity index 100% rename from template/acp/sections/addons/updmp.html rename to acp/template/sections/addons/updmp.html diff --git a/template/acp/sections/boost/index.html b/acp/template/sections/boost/index.html similarity index 100% rename from template/acp/sections/boost/index.html rename to acp/template/sections/boost/index.html diff --git a/template/acp/sections/boost/menu.html b/acp/template/sections/boost/menu.html similarity index 100% rename from template/acp/sections/boost/menu.html rename to acp/template/sections/boost/menu.html diff --git a/template/acp/sections/control/index.html b/acp/template/sections/control/index.html similarity index 100% rename from template/acp/sections/control/index.html rename to acp/template/sections/control/index.html diff --git a/template/acp/sections/control/menu.html b/acp/template/sections/control/menu.html similarity index 100% rename from template/acp/sections/control/menu.html rename to acp/template/sections/control/menu.html diff --git a/template/acp/sections/control/server.html b/acp/template/sections/control/server.html similarity index 100% rename from template/acp/sections/control/server.html rename to acp/template/sections/control/server.html diff --git a/template/acp/sections/hosting/menu.html b/acp/template/sections/hosting/menu.html similarity index 100% rename from template/acp/sections/hosting/menu.html rename to acp/template/sections/hosting/menu.html diff --git a/template/acp/sections/jobs/add.html b/acp/template/sections/jobs/add.html similarity index 100% rename from template/acp/sections/jobs/add.html rename to acp/template/sections/jobs/add.html diff --git a/template/acp/sections/jobs/edit.html b/acp/template/sections/jobs/edit.html similarity index 100% rename from template/acp/sections/jobs/edit.html rename to acp/template/sections/jobs/edit.html diff --git a/template/acp/sections/jobs/index.html b/acp/template/sections/jobs/index.html similarity index 100% rename from template/acp/sections/jobs/index.html rename to acp/template/sections/jobs/index.html diff --git a/template/acp/sections/jobs/menu.html b/acp/template/sections/jobs/menu.html similarity index 100% rename from template/acp/sections/jobs/menu.html rename to acp/template/sections/jobs/menu.html diff --git a/template/acp/sections/jobs/request.html b/acp/template/sections/jobs/request.html similarity index 100% rename from template/acp/sections/jobs/request.html rename to acp/template/sections/jobs/request.html diff --git a/template/acp/sections/jobs/request_edit.html b/acp/template/sections/jobs/request_edit.html similarity index 100% rename from template/acp/sections/jobs/request_edit.html rename to acp/template/sections/jobs/request_edit.html diff --git a/template/acp/sections/letter/index.html b/acp/template/sections/letter/index.html similarity index 100% rename from template/acp/sections/letter/index.html rename to acp/template/sections/letter/index.html diff --git a/template/acp/sections/letter/menu.html b/acp/template/sections/letter/menu.html similarity index 100% rename from template/acp/sections/letter/menu.html rename to acp/template/sections/letter/menu.html diff --git a/template/acp/sections/logs/index.html b/acp/template/sections/logs/index.html similarity index 100% rename from template/acp/sections/logs/index.html rename to acp/template/sections/logs/index.html diff --git a/template/acp/sections/logs/logs.html b/acp/template/sections/logs/logs.html similarity index 100% rename from template/acp/sections/logs/logs.html rename to acp/template/sections/logs/logs.html diff --git a/template/acp/sections/logs/menu.html b/acp/template/sections/logs/menu.html similarity index 100% rename from template/acp/sections/logs/menu.html rename to acp/template/sections/logs/menu.html diff --git a/template/acp/sections/news/add.html b/acp/template/sections/news/add.html similarity index 100% rename from template/acp/sections/news/add.html rename to acp/template/sections/news/add.html diff --git a/template/acp/sections/news/index.html b/acp/template/sections/news/index.html similarity index 100% rename from template/acp/sections/news/index.html rename to acp/template/sections/news/index.html diff --git a/template/acp/sections/news/menu.html b/acp/template/sections/news/menu.html similarity index 100% rename from template/acp/sections/news/menu.html rename to acp/template/sections/news/menu.html diff --git a/template/acp/sections/news/news.html b/acp/template/sections/news/news.html similarity index 100% rename from template/acp/sections/news/news.html rename to acp/template/sections/news/news.html diff --git a/template/acp/sections/notice/add.html b/acp/template/sections/notice/add.html similarity index 100% rename from template/acp/sections/notice/add.html rename to acp/template/sections/notice/add.html diff --git a/template/acp/sections/notice/index.html b/acp/template/sections/notice/index.html similarity index 100% rename from template/acp/sections/notice/index.html rename to acp/template/sections/notice/index.html diff --git a/template/acp/sections/notice/menu.html b/acp/template/sections/notice/menu.html similarity index 100% rename from template/acp/sections/notice/menu.html rename to acp/template/sections/notice/menu.html diff --git a/template/acp/sections/notice/notice.html b/acp/template/sections/notice/notice.html similarity index 100% rename from template/acp/sections/notice/notice.html rename to acp/template/sections/notice/notice.html diff --git a/template/acp/sections/pages/add.html b/acp/template/sections/pages/add.html similarity index 100% rename from template/acp/sections/pages/add.html rename to acp/template/sections/pages/add.html diff --git a/template/acp/sections/pages/index.html b/acp/template/sections/pages/index.html similarity index 100% rename from template/acp/sections/pages/index.html rename to acp/template/sections/pages/index.html diff --git a/template/acp/sections/pages/menu.html b/acp/template/sections/pages/menu.html similarity index 100% rename from template/acp/sections/pages/menu.html rename to acp/template/sections/pages/menu.html diff --git a/template/acp/sections/pages/page.html b/acp/template/sections/pages/page.html similarity index 100% rename from template/acp/sections/pages/page.html rename to acp/template/sections/pages/page.html diff --git a/template/acp/sections/promo/add.html b/acp/template/sections/promo/add.html similarity index 100% rename from template/acp/sections/promo/add.html rename to acp/template/sections/promo/add.html diff --git a/template/acp/sections/promo/index.html b/acp/template/sections/promo/index.html similarity index 100% rename from template/acp/sections/promo/index.html rename to acp/template/sections/promo/index.html diff --git a/template/acp/sections/promo/menu.html b/acp/template/sections/promo/menu.html similarity index 100% rename from template/acp/sections/promo/menu.html rename to acp/template/sections/promo/menu.html diff --git a/template/acp/sections/promo/promo.html b/acp/template/sections/promo/promo.html similarity index 100% rename from template/acp/sections/promo/promo.html rename to acp/template/sections/promo/promo.html diff --git a/template/acp/sections/promo/stats.html b/acp/template/sections/promo/stats.html similarity index 100% rename from template/acp/sections/promo/stats.html rename to acp/template/sections/promo/stats.html diff --git a/template/acp/sections/servers/index.html b/acp/template/sections/servers/index.html similarity index 100% rename from template/acp/sections/servers/index.html rename to acp/template/sections/servers/index.html diff --git a/template/acp/sections/servers/menu.html b/acp/template/sections/servers/menu.html similarity index 100% rename from template/acp/sections/servers/menu.html rename to acp/template/sections/servers/menu.html diff --git a/template/acp/sections/servers/overdue.html b/acp/template/sections/servers/overdue.html similarity index 100% rename from template/acp/sections/servers/overdue.html rename to acp/template/sections/servers/overdue.html diff --git a/template/acp/sections/servers/server.html b/acp/template/sections/servers/server.html similarity index 100% rename from template/acp/sections/servers/server.html rename to acp/template/sections/servers/server.html diff --git a/template/acp/sections/system/index.html b/acp/template/sections/system/index.html similarity index 100% rename from template/acp/sections/system/index.html rename to acp/template/sections/system/index.html diff --git a/template/acp/sections/tarifs/add.html b/acp/template/sections/tarifs/add.html similarity index 100% rename from template/acp/sections/tarifs/add.html rename to acp/template/sections/tarifs/add.html diff --git a/template/acp/sections/tarifs/copy.html b/acp/template/sections/tarifs/copy.html similarity index 100% rename from template/acp/sections/tarifs/copy.html rename to acp/template/sections/tarifs/copy.html diff --git a/template/acp/sections/tarifs/index.html b/acp/template/sections/tarifs/index.html similarity index 100% rename from template/acp/sections/tarifs/index.html rename to acp/template/sections/tarifs/index.html diff --git a/template/acp/sections/tarifs/menu.html b/acp/template/sections/tarifs/menu.html similarity index 100% rename from template/acp/sections/tarifs/menu.html rename to acp/template/sections/tarifs/menu.html diff --git a/template/acp/sections/tarifs/stats.html b/acp/template/sections/tarifs/stats.html similarity index 100% rename from template/acp/sections/tarifs/stats.html rename to acp/template/sections/tarifs/stats.html diff --git a/template/acp/sections/tarifs/tarif.html b/acp/template/sections/tarifs/tarif.html similarity index 100% rename from template/acp/sections/tarifs/tarif.html rename to acp/template/sections/tarifs/tarif.html diff --git a/template/acp/sections/units/add.html b/acp/template/sections/units/add.html similarity index 100% rename from template/acp/sections/units/add.html rename to acp/template/sections/units/add.html diff --git a/template/acp/sections/units/index.html b/acp/template/sections/units/index.html similarity index 100% rename from template/acp/sections/units/index.html rename to acp/template/sections/units/index.html diff --git a/template/acp/sections/units/loading.html b/acp/template/sections/units/loading.html similarity index 100% rename from template/acp/sections/units/loading.html rename to acp/template/sections/units/loading.html diff --git a/template/acp/sections/units/menu.html b/acp/template/sections/units/menu.html similarity index 100% rename from template/acp/sections/units/menu.html rename to acp/template/sections/units/menu.html diff --git a/template/acp/sections/units/stats.html b/acp/template/sections/units/stats.html similarity index 100% rename from template/acp/sections/units/stats.html rename to acp/template/sections/units/stats.html diff --git a/template/acp/sections/units/unit.html b/acp/template/sections/units/unit.html similarity index 100% rename from template/acp/sections/units/unit.html rename to acp/template/sections/units/unit.html diff --git a/template/acp/sections/users/index.html b/acp/template/sections/users/index.html similarity index 100% rename from template/acp/sections/users/index.html rename to acp/template/sections/users/index.html diff --git a/template/acp/sections/users/menu.html b/acp/template/sections/users/menu.html similarity index 100% rename from template/acp/sections/users/menu.html rename to acp/template/sections/users/menu.html diff --git a/template/acp/sections/users/offline.html b/acp/template/sections/users/offline.html similarity index 100% rename from template/acp/sections/users/offline.html rename to acp/template/sections/users/offline.html diff --git a/template/acp/sections/users/online.html b/acp/template/sections/users/online.html similarity index 100% rename from template/acp/sections/users/online.html rename to acp/template/sections/users/online.html diff --git a/template/acp/sections/users/signup.html b/acp/template/sections/users/signup.html similarity index 100% rename from template/acp/sections/users/signup.html rename to acp/template/sections/users/signup.html diff --git a/template/acp/sections/users/stats.html b/acp/template/sections/users/stats.html similarity index 100% rename from template/acp/sections/users/stats.html rename to acp/template/sections/users/stats.html diff --git a/template/acp/sections/users/user.html b/acp/template/sections/users/user.html similarity index 100% rename from template/acp/sections/users/user.html rename to acp/template/sections/users/user.html diff --git a/template/acp/sections/web/index.html b/acp/template/sections/web/index.html similarity index 100% rename from template/acp/sections/web/index.html rename to acp/template/sections/web/index.html diff --git a/template/acp/sections/web/menu.html b/acp/template/sections/web/menu.html similarity index 100% rename from template/acp/sections/web/menu.html rename to acp/template/sections/web/menu.html diff --git a/template/acp/sections/wiki/add.html b/acp/template/sections/wiki/add.html similarity index 100% rename from template/acp/sections/wiki/add.html rename to acp/template/sections/wiki/add.html diff --git a/template/acp/sections/wiki/addcat.html b/acp/template/sections/wiki/addcat.html similarity index 100% rename from template/acp/sections/wiki/addcat.html rename to acp/template/sections/wiki/addcat.html diff --git a/template/acp/sections/wiki/cat.html b/acp/template/sections/wiki/cat.html similarity index 100% rename from template/acp/sections/wiki/cat.html rename to acp/template/sections/wiki/cat.html diff --git a/template/acp/sections/wiki/cats.html b/acp/template/sections/wiki/cats.html similarity index 100% rename from template/acp/sections/wiki/cats.html rename to acp/template/sections/wiki/cats.html diff --git a/template/acp/sections/wiki/index.html b/acp/template/sections/wiki/index.html similarity index 100% rename from template/acp/sections/wiki/index.html rename to acp/template/sections/wiki/index.html diff --git a/template/acp/sections/wiki/menu.html b/acp/template/sections/wiki/menu.html similarity index 100% rename from template/acp/sections/wiki/menu.html rename to acp/template/sections/wiki/menu.html diff --git a/template/acp/sections/wiki/wiki.html b/acp/template/sections/wiki/wiki.html similarity index 100% rename from template/acp/sections/wiki/wiki.html rename to acp/template/sections/wiki/wiki.html diff --git a/system/acp/engine/plugins.php b/system/acp/engine/plugins.php new file mode 100644 index 0000000..2a99758 --- /dev/null +++ b/system/acp/engine/plugins.php @@ -0,0 +1,41 @@ + Управление плагинами'; + +$html->get('menu', 'sections/plugins'); + + + + +$html->pack('menu'); + +include(SEC.'plugins/'.$section.'.php'); + + + + + + + + + + +if ($_FILES['plugin']['error'] === UPLOAD_ERR_OK) { + $zip = new ZipArchive(); + $res = $zip->open($_FILES['plugin']['tmp_name']); + if ($res === true) { + $zip->extractTo('/path/to/plugins/'); + $zip->close(); + // Проверяем, что в архиве есть файлы, необходимые для работы плагина + if (file_exists('/path/to/plugins/plugin.php')) { + // Загружаем класс плагина + require_once '/path/to/plugins/plugin.php'; + // Создаем экземпляр класса плагина + $plugin = new Plugin(); + // Регистрируем плагин в системе + PluginLoader::registerPlugin($plugin); + } + } +} \ No newline at end of file