From 529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 24 Aug 2021 15:38:16 +0200 Subject: Update --- Neutron-trunk/cms-special/.htaccess | 4 + .../cms-special/admin-v2/$panes/system.php | 51 ++ .../cms-special/admin-v2/$resources/admin.js | 16 + .../cms-special/admin-v2/$resources/common.css | 523 +++++++++++++++++++++ .../cms-special/admin-v2/$resources/header.php | 0 .../cms-special/admin-v2/$resources/index-auto.css | 3 + .../cms-special/admin-v2/$resources/index-dark.css | 45 ++ .../cms-special/admin-v2/$resources/index.css | 31 ++ .../admin-v2/$resources/postcontent.php | 6 + .../cms-special/admin-v2/$resources/precontent.php | 223 +++++++++ .../cms-special/admin-v2/$resources/responsive.css | 31 ++ .../admin-v2/$resources/spotlight-test.php | 14 + .../cms-special/admin-v2/$resources/spotlight.php | 24 + Neutron-trunk/cms-special/admin-v2/.htaccess | 4 + Neutron-trunk/cms-special/admin-v2/about/index.php | 116 +++++ .../cms-special/admin-v2/advanced/index.php | 8 + .../admin-v2/advanced/jsonconf/index.php | 59 +++ .../cms-special/admin-v2/appearance/index.php | 253 ++++++++++ .../cms-special/admin-v2/calendar/add/index.php | 140 ++++++ .../cms-special/admin-v2/calendar/index.php | 86 ++++ .../cms-special/admin-v2/calendar/manage/index.php | 78 +++ .../cms-special/admin-v2/customization/index.php | 214 +++++++++ Neutron-trunk/cms-special/admin-v2/error/index.php | 11 + Neutron-trunk/cms-special/admin-v2/flags/index.php | 75 +++ .../admin-v2/galery/addcategory/index.php | 2 + .../cms-special/admin-v2/galery/index.php | 2 + .../cms-special/admin-v2/galery/publish/index.php | 2 + .../admin-v2/gallery/addcategory/index.php | 39 ++ .../cms-special/admin-v2/gallery/index.php | 218 +++++++++ .../cms-special/admin-v2/gallery/publish/index.php | 57 +++ .../cms-special/admin-v2/home/all/db.json | 178 +++++++ .../cms-special/admin-v2/home/all/index.php | 4 + .../cms-special/admin-v2/home/appearance/index.php | 45 ++ .../cms-special/admin-v2/home/data/index.php | 27 ++ .../admin-v2/home/housekeeping/index.php | 27 ++ Neutron-trunk/cms-special/admin-v2/home/index.php | 58 +++ .../cms-special/admin-v2/housekeeping/index.php | 2 + .../admin-v2/housekeeping/reset/index.php | 2 + Neutron-trunk/cms-special/admin-v2/index.php | 126 +++++ .../cms-special/admin-v2/language/index.php | 57 +++ .../cms-special/admin-v2/login-old/index.php | 122 +++++ Neutron-trunk/cms-special/admin-v2/login/index.php | 219 +++++++++ .../cms-special/admin-v2/logout/index.php | 15 + Neutron-trunk/cms-special/admin-v2/logs/index.php | 17 + .../cms-special/admin-v2/pages/add/index.php | 145 ++++++ .../cms-special/admin-v2/pages/delete/index.php | 88 ++++ .../cms-special/admin-v2/pages/edit/index.php | 194 ++++++++ Neutron-trunk/cms-special/admin-v2/pages/index.php | 66 +++ .../cms-special/admin-v2/pages/rename/index.php | 89 ++++ .../cms-special/admin-v2/plugins/index.php | 79 ++++ Neutron-trunk/cms-special/admin-v2/reset/index.php | 118 +++++ .../cms-special/admin-v2/resetted/index.php | 21 + Neutron-trunk/cms-special/admin-v2/stats/index.php | 280 +++++++++++ .../cms-special/admin-v2/widgets/index.php | 5 + .../cms-special/admin/$resources/admin.js | 16 + .../cms-special/admin/$resources/common.css | 523 +++++++++++++++++++++ .../cms-special/admin/$resources/header.php | 0 .../cms-special/admin/$resources/index-auto.css | 3 + .../cms-special/admin/$resources/index-dark.css | 45 ++ .../cms-special/admin/$resources/index.css | 31 ++ .../cms-special/admin/$resources/postcontent.php | 6 + .../cms-special/admin/$resources/precontent.php | 223 +++++++++ .../cms-special/admin/$resources/responsive.css | 31 ++ .../admin/$resources/spotlight-test.php | 14 + .../cms-special/admin/$resources/spotlight.php | 24 + Neutron-trunk/cms-special/admin/.htaccess | 4 + Neutron-trunk/cms-special/admin/about/index.php | 116 +++++ Neutron-trunk/cms-special/admin/advanced/index.php | 8 + .../cms-special/admin/advanced/jsonconf/index.php | 59 +++ .../cms-special/admin/appearance/index.php | 253 ++++++++++ .../cms-special/admin/calendar/add/index.php | 140 ++++++ Neutron-trunk/cms-special/admin/calendar/index.php | 86 ++++ .../cms-special/admin/calendar/manage/index.php | 78 +++ .../cms-special/admin/customization/index.php | 214 +++++++++ Neutron-trunk/cms-special/admin/error/index.php | 11 + Neutron-trunk/cms-special/admin/flags/index.php | 75 +++ .../cms-special/admin/galery/addcategory/index.php | 2 + Neutron-trunk/cms-special/admin/galery/index.php | 2 + .../cms-special/admin/galery/publish/index.php | 2 + .../admin/gallery/addcategory/index.php | 39 ++ Neutron-trunk/cms-special/admin/gallery/index.php | 218 +++++++++ .../cms-special/admin/gallery/publish/index.php | 57 +++ Neutron-trunk/cms-special/admin/home/all/db.json | 178 +++++++ Neutron-trunk/cms-special/admin/home/all/index.php | 4 + .../cms-special/admin/home/appearance/index.php | 45 ++ .../cms-special/admin/home/data/index.php | 27 ++ .../cms-special/admin/home/housekeeping/index.php | 27 ++ Neutron-trunk/cms-special/admin/home/index.php | 58 +++ .../cms-special/admin/housekeeping/index.php | 2 + .../cms-special/admin/housekeeping/reset/index.php | 2 + Neutron-trunk/cms-special/admin/index.php | 135 ++++++ Neutron-trunk/cms-special/admin/language/index.php | 57 +++ .../cms-special/admin/login-old/index.php | 122 +++++ Neutron-trunk/cms-special/admin/login/index.php | 219 +++++++++ Neutron-trunk/cms-special/admin/logout/index.php | 15 + Neutron-trunk/cms-special/admin/logs/index.php | 17 + .../cms-special/admin/pages/add/index.php | 145 ++++++ .../cms-special/admin/pages/delete/index.php | 88 ++++ .../cms-special/admin/pages/edit/index.php | 194 ++++++++ Neutron-trunk/cms-special/admin/pages/index.php | 66 +++ .../cms-special/admin/pages/rename/index.php | 89 ++++ Neutron-trunk/cms-special/admin/plugins/index.php | 79 ++++ Neutron-trunk/cms-special/admin/reset/index.php | 118 +++++ Neutron-trunk/cms-special/admin/resetted/index.php | 21 + Neutron-trunk/cms-special/admin/stats/index.php | 280 +++++++++++ Neutron-trunk/cms-special/admin/widgets/index.php | 5 + Neutron-trunk/cms-special/calendar/index.php | 159 +++++++ Neutron-trunk/cms-special/error/index.php | 71 +++ Neutron-trunk/cms-special/galery/index.php | 5 + Neutron-trunk/cms-special/galery/preview/index.php | 5 + Neutron-trunk/cms-special/gallery/index.php | 61 +++ .../cms-special/gallery/preview/index.php | 129 +++++ Neutron-trunk/cms-special/setup/index.php | 156 ++++++ Neutron-trunk/cms-special/version/index.php | 36 ++ 114 files changed, 9214 insertions(+) create mode 100644 Neutron-trunk/cms-special/.htaccess create mode 100644 Neutron-trunk/cms-special/admin-v2/$panes/system.php create mode 100644 Neutron-trunk/cms-special/admin-v2/$resources/admin.js create mode 100644 Neutron-trunk/cms-special/admin-v2/$resources/common.css create mode 100644 Neutron-trunk/cms-special/admin-v2/$resources/header.php create mode 100644 Neutron-trunk/cms-special/admin-v2/$resources/index-auto.css create mode 100644 Neutron-trunk/cms-special/admin-v2/$resources/index-dark.css create mode 100644 Neutron-trunk/cms-special/admin-v2/$resources/index.css create mode 100644 Neutron-trunk/cms-special/admin-v2/$resources/postcontent.php create mode 100644 Neutron-trunk/cms-special/admin-v2/$resources/precontent.php create mode 100644 Neutron-trunk/cms-special/admin-v2/$resources/responsive.css create mode 100644 Neutron-trunk/cms-special/admin-v2/$resources/spotlight-test.php create mode 100644 Neutron-trunk/cms-special/admin-v2/$resources/spotlight.php create mode 100644 Neutron-trunk/cms-special/admin-v2/.htaccess create mode 100644 Neutron-trunk/cms-special/admin-v2/about/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/advanced/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/advanced/jsonconf/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/appearance/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/calendar/add/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/calendar/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/calendar/manage/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/customization/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/error/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/flags/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/galery/addcategory/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/galery/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/galery/publish/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/gallery/addcategory/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/gallery/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/gallery/publish/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/home/all/db.json create mode 100644 Neutron-trunk/cms-special/admin-v2/home/all/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/home/appearance/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/home/data/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/home/housekeeping/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/home/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/housekeeping/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/housekeeping/reset/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/language/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/login-old/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/login/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/logout/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/logs/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/pages/add/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/pages/delete/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/pages/edit/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/pages/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/pages/rename/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/plugins/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/reset/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/resetted/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/stats/index.php create mode 100644 Neutron-trunk/cms-special/admin-v2/widgets/index.php create mode 100644 Neutron-trunk/cms-special/admin/$resources/admin.js create mode 100644 Neutron-trunk/cms-special/admin/$resources/common.css create mode 100644 Neutron-trunk/cms-special/admin/$resources/header.php create mode 100644 Neutron-trunk/cms-special/admin/$resources/index-auto.css create mode 100644 Neutron-trunk/cms-special/admin/$resources/index-dark.css create mode 100644 Neutron-trunk/cms-special/admin/$resources/index.css create mode 100644 Neutron-trunk/cms-special/admin/$resources/postcontent.php create mode 100644 Neutron-trunk/cms-special/admin/$resources/precontent.php create mode 100644 Neutron-trunk/cms-special/admin/$resources/responsive.css create mode 100644 Neutron-trunk/cms-special/admin/$resources/spotlight-test.php create mode 100644 Neutron-trunk/cms-special/admin/$resources/spotlight.php create mode 100644 Neutron-trunk/cms-special/admin/.htaccess create mode 100644 Neutron-trunk/cms-special/admin/about/index.php create mode 100644 Neutron-trunk/cms-special/admin/advanced/index.php create mode 100644 Neutron-trunk/cms-special/admin/advanced/jsonconf/index.php create mode 100644 Neutron-trunk/cms-special/admin/appearance/index.php create mode 100644 Neutron-trunk/cms-special/admin/calendar/add/index.php create mode 100644 Neutron-trunk/cms-special/admin/calendar/index.php create mode 100644 Neutron-trunk/cms-special/admin/calendar/manage/index.php create mode 100644 Neutron-trunk/cms-special/admin/customization/index.php create mode 100644 Neutron-trunk/cms-special/admin/error/index.php create mode 100644 Neutron-trunk/cms-special/admin/flags/index.php create mode 100644 Neutron-trunk/cms-special/admin/galery/addcategory/index.php create mode 100644 Neutron-trunk/cms-special/admin/galery/index.php create mode 100644 Neutron-trunk/cms-special/admin/galery/publish/index.php create mode 100644 Neutron-trunk/cms-special/admin/gallery/addcategory/index.php create mode 100644 Neutron-trunk/cms-special/admin/gallery/index.php create mode 100644 Neutron-trunk/cms-special/admin/gallery/publish/index.php create mode 100644 Neutron-trunk/cms-special/admin/home/all/db.json create mode 100644 Neutron-trunk/cms-special/admin/home/all/index.php create mode 100644 Neutron-trunk/cms-special/admin/home/appearance/index.php create mode 100644 Neutron-trunk/cms-special/admin/home/data/index.php create mode 100644 Neutron-trunk/cms-special/admin/home/housekeeping/index.php create mode 100644 Neutron-trunk/cms-special/admin/home/index.php create mode 100644 Neutron-trunk/cms-special/admin/housekeeping/index.php create mode 100644 Neutron-trunk/cms-special/admin/housekeeping/reset/index.php create mode 100644 Neutron-trunk/cms-special/admin/index.php create mode 100644 Neutron-trunk/cms-special/admin/language/index.php create mode 100644 Neutron-trunk/cms-special/admin/login-old/index.php create mode 100644 Neutron-trunk/cms-special/admin/login/index.php create mode 100644 Neutron-trunk/cms-special/admin/logout/index.php create mode 100644 Neutron-trunk/cms-special/admin/logs/index.php create mode 100644 Neutron-trunk/cms-special/admin/pages/add/index.php create mode 100644 Neutron-trunk/cms-special/admin/pages/delete/index.php create mode 100644 Neutron-trunk/cms-special/admin/pages/edit/index.php create mode 100644 Neutron-trunk/cms-special/admin/pages/index.php create mode 100644 Neutron-trunk/cms-special/admin/pages/rename/index.php create mode 100644 Neutron-trunk/cms-special/admin/plugins/index.php create mode 100644 Neutron-trunk/cms-special/admin/reset/index.php create mode 100644 Neutron-trunk/cms-special/admin/resetted/index.php create mode 100644 Neutron-trunk/cms-special/admin/stats/index.php create mode 100644 Neutron-trunk/cms-special/admin/widgets/index.php create mode 100644 Neutron-trunk/cms-special/calendar/index.php create mode 100644 Neutron-trunk/cms-special/error/index.php create mode 100644 Neutron-trunk/cms-special/galery/index.php create mode 100644 Neutron-trunk/cms-special/galery/preview/index.php create mode 100644 Neutron-trunk/cms-special/gallery/index.php create mode 100644 Neutron-trunk/cms-special/gallery/preview/index.php create mode 100644 Neutron-trunk/cms-special/setup/index.php create mode 100644 Neutron-trunk/cms-special/version/index.php (limited to 'Neutron-trunk/cms-special') diff --git a/Neutron-trunk/cms-special/.htaccess b/Neutron-trunk/cms-special/.htaccess new file mode 100644 index 0000000..bc839cb --- /dev/null +++ b/Neutron-trunk/cms-special/.htaccess @@ -0,0 +1,4 @@ +ErrorDocument 401 /cms-special/error/?id=401&description=Accès%20refusé +ErrorDocument 403 /cms-special/error/?id=403&description=Accès%20interdit +ErrorDocument 404 /cms-special/error/?id=404&description=Ressource%20introuvable +ErrorDocument 500 /cms-special/error/?id=500&description=Erreur%20interne \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/$panes/system.php b/Neutron-trunk/cms-special/admin-v2/$panes/system.php new file mode 100644 index 0000000..916f798 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/$panes/system.php @@ -0,0 +1,51 @@ + + + + + + + /resources/css/admin_v2/main.css"> + /resources/css/admin_v2/inner.css"> + + + + +
+
+
+
+
+
+ Neutron 10
+ version +
+
+
+ +
+
+
+ /resources/image/admin2/about.png"> +
+
+
+ About Neutron
+ View Neutron versions and data usage +
+
+
+ /resources/image/admin2/enter.png"> +
+
+
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/$resources/admin.js b/Neutron-trunk/cms-special/admin-v2/$resources/admin.js new file mode 100644 index 0000000..bca683b --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/$resources/admin.js @@ -0,0 +1,16 @@ +window.onscroll = () => { + // console.log("> Scroll"); + if (window.scrollY >= 52 && !document.getElementById('portal-background').classList.contains('scrolled')) { + // console.log("> ADD"); + document.getElementById('portal-background').classList.add('scrolled'); + } else if (window.scrollY < 52 && document.getElementById('portal-background').classList.contains('scrolled')) { + // console.log("> REMOVE"); + document.getElementById('portal-background').classList.remove('scrolled'); + } else { + // console.log("> Nothing"); + } +} + +window.onbeforeunload = () => { + window.parent.$("#loader").fadeIn(200); +} \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/$resources/common.css b/Neutron-trunk/cms-special/admin-v2/$resources/common.css new file mode 100644 index 0000000..3826747 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/$resources/common.css @@ -0,0 +1,523 @@ +@import "./responsive.css"; + +html, body { + margin: 0; + color: var(--mpc-text) !important; + background-color: var(--mpc-background); +} + +.mdc-drawer { + color: var(--mpc-text) !important; + background-color: var(--mpc-menu-background) !important; + height: 100vh; + z-index: 99999999999 !important; +} + +.mdc-drawer .mdc-list-item--activated .mdc-list-item__graphic { + color: var(--mpc-menu-selected) !important; +} + +.mdc-list-item__graphic { + color: var(--mpc-icons) !important; +} + +.mdc-list-group__subheader { + color: var(--mpc-menu-header) !important; +} + +.mdc-drawer__subtitle { + color: var(--mpc-menu-subtitle) !important; +} + +.mdc-drawer__title { + color: var(--mpc-text) !important; +} + +.mdc-list-divider { + border-bottom-color: var(--mpc-separator); +} + +.mdc-list-item__text { + color: var(--mpc-text); +} + +.mdc-list-item.mdc-list-item--activated .mdc-list-item__text { + color: var(--mpc-menu-selected); +} + +.ttdemo { + padding: 10px; + font-family: "CMS", "Ubuntu", "Roboto", "Google Sans", "Segoe UI", "Noto Sans", Tahoma, Geneva, Verdana, sans-serif !important; +} + +* { + font-family: "CMS", "Ubuntu", "Roboto", "Google Sans", "Segoe UI", "Noto Sans", Tahoma, Geneva, Verdana, sans-serif; +} + +span, p, body, div, h1, h2, h3, h4, h5, h6 { + font-family: "CMS", "Ubuntu", "Roboto", "Google Sans", "Segoe UI", "Noto Sans", Tahoma, Geneva, Verdana, sans-serif !important; +} + +#main-content { + padding: 16px; + margin-top: 64px; + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; + overflow-y: auto; +} + +html, body, #app-grid { + height: 100%; +} + +#app-frame { + margin: -16px; + border: none; + width: calc(100% + 32px); + height: calc(100% + 32px); +} + +.mdc-top-app-bar--fixed-adjust { + margin: 0; + padding: 0; + height: calc(100% - 64px); +} + +.dualtitle-top { + margin-bottom: 4px; +} + +.dualtitle-bottom { + margin-top: 4px; +} + +.mdc-top-app-bar__section.mdc-top-app-bar__section--align-start > a { + color: inherit; + text-decoration: inherit; +} + +code { + font-family: monospace +} + +a { + color: slategray; +} + +a:hover { + color: gray; +} + +a:active { + color: lightgray; +} + +.mdc-card__primary-action { + padding: 0 16px; +} + +.mdc-icon-button.material-icons.mdc-card__action.mdc-card__action--icon--unbounded { + color: whitesmoke; +} + +img[width="128px"] { + border-radius: 9999px; +} + +.demo-card__primary { + display: grid; + grid-template-columns: 69.6px 1fr; +} + +.ccard_p1 { + margin-left: -15px; + border-top-right-radius: 2px; + border-top-left-radius: 2px; + height: 100%; + background-size: 100%; +} + +.ccard_p2 { + margin-left: 10px; +} + +.ccard_p2 h2 { + margin-bottom: 0; +} + +.ccard_p2 h3 { + margin-top: 0; +} + +.card_link, .card_link:hover, .card_link:active { + color: var(--mpc-text); + text-decoration: none; +} + +.mdc-list-item { + cursor: pointer; +} + +.mdc-list-item > i { + transform: rotate(0deg); + transition: transform 500ms; +} + +.mdc-list-item:hover > i { + transform: rotate(360deg) scale(125%); +} + +.mdc-drawer__header { + background: linear-gradient(to bottom, var(--mpc-menu-background-image) 50%, var(--mpc-menu-background)), url('../../../resources/image/codename.jpg'); + background-size: 100%; +} + +.mdc-top-app-bar__row { + width: 100% !important; +} + +#header-desktop { + height: 190px; + z-index: 2; +} + +#app-grid { + z-index: 5; + position: absolute; + width: 100%; + top: 170px; +} + +#main-content { + z-index: 5; + background: var(--mpc-background); + border-radius: 15px; + position: initial; + margin: 0; + min-height: 200px; +} + +#portal-background { + position: fixed; + top: -20px; + left: -20px; + right: -20px; + height: 230px; + background-image: linear-gradient(to bottom, var(--mpc-menu-background-image) 50%, var(--mpc-menu-background-image)), url('../../../resources/image/codename.jpg'); + background-size: 100%; + background-position: center; + transition: filter 200ms, background-size 200ms, background-image 200ms; + filter: none; +} + +#portal-background.updates { + z-index: 2; +} + +#portal-background.scrolled { + background-image: linear-gradient(to bottom, var(--mpc-menu-background-image-more) 50%, var(--mpc-menu-background-image-more)), url('../../../resources/image/codename.jpg'); + filter: blur(5px); + background-size: 110%; +} + +#header-desktop { + background: transparent; + color: var(--mpc-text); +} + +.mdc-top-app-bar__section.mdc-top-app-bar__section--align-end .material-icons-outlined.mdc-top-app-bar__navigation-icon.mdc-icon-button { + color: var(--mpc-text); +} + +#version-place { + position: absolute; + top: -20px; + font-size: 12px; + opacity: .5; +} + +#language-selector { + position: absolute; + font-size: 18px; + opacity: .5; + left: 0; + top: 0; +} + +#home-grid { + display: grid; + grid-template-columns: 1fr 1fr 1fr; +} + +.home-grid-item { + margin: 20px; +} + +#home-grid-item-pages { + color: var(--mpc-home-pages); + --mpc-icons: var(--mpc-home-pages); +} + +#home-grid-item-calendar { + color: var(--mpc-home-calendar); + --mpc-icons: var(--mpc-home-calendar); +} + +#home-grid-item-gallery { + color: var(--mpc-home-gallery); + --mpc-icons: var(--mpc-home-gallery); +} + +#home-grid-item-appearance { + color: var(--mpc-home-appearance); + --mpc-icons: var(--mpc-home-appearance); +} + +#home-grid-item-data { + color: var(--mpc-home-data); + --mpc-icons: var(--mpc-home-data); +} + +#home-grid-item-housekeeping { + color: var(--mpc-home-housekeeping); + --mpc-icons: var(--mpc-home-housekeeping); +} + +.home-grid-item-button { + font-size: 64px; + width: 86px; + height: 86px; +} + +a:not(.material-icons):not(.material-icons-outlined):not(.button):not(.spotlight-link) { + color: var(--codename-theme); + text-decoration-color: var(--codename-theme); +} + +a:not(.material-icons):not(.material-icons-outlined):not(.button):active, a:not(.material-icons):not(.material-icons-outlined):not(.button):focus:not(.spotlight-link) { + opacity: .75; +} + +.ck.ck-editor__main a { + color: inherit !important; + text-decoration-color: inherit !important; +} + +.all-item-icon { + margin-right: 5px; + vertical-align: middle; +} + +.all-item-text { + vertical-align: middle; +} + +.all-item-link { + color: white !important; + text-decoration: none !important; +} + +.nd_Field { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + min-width: 0; + position: relative; + margin: 1em 0; + border-radius: 4px; + -webkit-transition: border-color .25s; + transition: border-color .25s; + border: 1px solid var(--codename-theme); +} + +.nd_Field input { + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +.nd_Field input, .nd_Field select { + color: var(--mpc-text); +} + +.nd_Field input[type="password"], .nd_Field input[type="text"] { + color: var(--mpc-text); +} + +.nd_Field input, .nd_Field select, .nd_Field textarea { + font-weight: 400; + font-size: 1.4rem; + border: none; + border-radius: 4px; + padding: 8px 9px; + color: var(--mpc-text); + background-color: transparent; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + min-width: 0; +} + +.nd_Field input[type="password"], .nd_Field input[type="text"], .nd_Field textarea { + background-color: transparent; + color: var(--mpc-text); +} + +.nd_Field input[type="password"]::placeholder, .nd_Field input[type="text"]::placeholder, .nd_Field textarea::placeholder { + color: transparent; +} + +.nd_Field.fallback input[type="password"]::placeholder, .nd_Field.fallback input[type="text"]::placeholder, .nd_Field.fallback textarea::placeholder { + color: var(--codename-theme); + opacity: 1; +} + +.nd_Field input[type="password"], .nd_Field input[type="search"], .nd_Field input[type="text"] { + padding: 9px; + font-size: 14px; + font-weight: 600; + min-width: 0; +} + +.nd_Field_labelAlwaysTopLeft label, .nd_Field input:focus + label, .nd_Field input:not(:placeholder-shown) + label, .nd_Field select + label, .nd_Field textarea:focus + label, .nd_Field textarea:not(:placeholder-shown) + label { + background-color: transparent; +} + +.nd_Field_labelAlwaysTopLeft label, .nd_Field input:focus + label, .nd_Field input:not(:placeholder-shown) + label, .nd_Field select + label, .nd_Field textarea:focus + label, .nd_Field textarea:not(:placeholder-shown) + label { + -webkit-transition: font-size .25s ease-out 0s,color .25s ease-out 0s,top .25s ease-out 0s,background-color .25s ease-out 0s; + transition: font-size .25s ease-out 0s,width .25s ease-out 0s,color .25s ease-out 0s,top .25s ease-out 0s,background-color .25s ease-out 0s; + font-size: 14px; + top: -14px; + padding: 0 2px; + background-color: var(--mpc-background); + pointer-events: auto; +} + +.nd_Field label { + width: 100%; + -webkit-transition: font-size .25s ease-out .1s,color .25s ease-out .1s,top .25s ease-out .1s,background-color .25s ease-out .1s; + transition: font-size .25s ease-out .1s,color .25s ease-out .1s,top .25s ease-out .1s,background-color .25s ease-out .1s; + color: var(--codename-theme); + background-color: transparent; + font-size: 14px; + position: absolute; + left: 0; + top: 0; + margin: 7px 8px; + padding: 2px; + pointer-events: none; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + max-width: calc(100% - 20px); +} + +#search { + width: 256px; +} + +#searchbox { + width: 256px; + margin-left: auto; + margin-right: auto; +} + +.nd_Field input { + border: none !important; + font-weight: normal !important; +} + +.search-match { + color: var(--codename-theme); + text-decoration: underline; +} + +a.discreet, a.discreet:hover, a.discreet:active { + color: inherit !important; + text-decoration: none; +} + +.updates-status { + font-size: 64px; +} + +.separator { + border-bottom: none; + border-color: rgba(0, 0, 0, .5); +} + +#updates-available { + background-color: rgba(211, 211, 0, 0.5); + text-align: center; + z-index: 999999; + position: relative; +} + +.admin-pages-list { + display: grid; + grid-template-columns: 256px 256px 256px 256px 256px; + grid-column-gap: 20px; +} + +@media (max-width: 1424px) { + .admin-pages-list { + grid-template-columns: 256px 256px 256px 256px; + } +} + +@media (max-width: 968px) { + .admin-pages-list { + grid-template-columns: 256px 256px 256px; + } +} + +@media (max-width: 712px) { + .admin-pages-list { + grid-template-columns: 256px 256px; + } +} + +@media (max-width: 556px) { + .admin-pages-list { + grid-template-columns: 256px; + } +} + +.mdc-card__actions-pages-list { + position: absolute; + bottom: 0; +} + +.mdc-button--raised { + color: var(--mdc-theme-on-primary) !important; +} + +.nd_Field, .nd_Field * { + outline: none; +} + +.nd_Field input { + padding-top: 10px !important; +} + +.nd_Field { + width: 256px; +} + +.nd_Field label { + text-align: center; +} + +.nd_Field__centered { + margin-right: auto; + margin-left: auto; +} + +.nd_Field__disabled { + opacity: .5; +} \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/$resources/header.php b/Neutron-trunk/cms-special/admin-v2/$resources/header.php new file mode 100644 index 0000000..e69de29 diff --git a/Neutron-trunk/cms-special/admin-v2/$resources/index-auto.css b/Neutron-trunk/cms-special/admin-v2/$resources/index-auto.css new file mode 100644 index 0000000..773eab9 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/$resources/index-auto.css @@ -0,0 +1,3 @@ +@import url("./index.css") only screen and (prefers-color-scheme: light); +@import url("./index.css") only screen and (prefers-color-scheme: no-preference); +@import url("./index-dark.css") only screen and (prefers-color-scheme: dark); \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/$resources/index-dark.css b/Neutron-trunk/cms-special/admin-v2/$resources/index-dark.css new file mode 100644 index 0000000..1683192 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/$resources/index-dark.css @@ -0,0 +1,45 @@ +@import "./common.css"; + +:root { + --mdc-theme-primary: var(--codename-theme); + --mdc-theme-secondary: var(--codename-secondary); + --mdc-theme-secondary-light: var(--codename-light); + --mdc-theme-on-primary: #ffffff; + --mdc-theme-on-secondary: white; + --mdc-theme-surface: rgb(44, 44, 44); + --mdc-theme-on-surface: whitesmoke; + --mpc-background: rgb(46, 46, 46); + --mpc-menu-background: rgb(22, 22, 22); + --mpc-menu-background-image: rgb(22, 22, 22, .5); + --mpc-menu-background-image-more: rgb(22, 22, 22, .75); + --mpc-text: whitesmoke; + --mpc-menu-selected: var(--mdc-theme-secondary-light); + --mpc-menu-header: rgb(223, 223, 223); + --mpc-menu-subtitle: rgb(182, 182, 182); + --mpc-icons: rgb(226, 226, 226); + --mpc-separator: rgb(138, 138, 138); + + --mpc-home-pages: rgb(179, 229, 252); + --mpc-home-calendar: rgb(200, 230, 201); + --mpc-home-gallery: rgb(255, 205, 210); + --mpc-home-appearance: rgb(255, 249, 196); + --mpc-home-data: rgb(178, 223, 219); + --mpc-home-housekeeping: rgb(209, 196, 233); + + --mpc-slse-hover1: rgba(255, 255, 255, 0.25); + --mpc-slse-hover2: rgba(255, 255, 255, 0.1); +} + +/* --------------------- */ + +.ck.ck-content { + background: #4a4a4a !important; +} + +.message_img { + filter: invert(100%); +} + +.mdi-icbtn-card { + color: rgba(255,255,255,1) !important; +} \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/$resources/index.css b/Neutron-trunk/cms-special/admin-v2/$resources/index.css new file mode 100644 index 0000000..57dd995 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/$resources/index.css @@ -0,0 +1,31 @@ +@import "./common.css"; + +:root { + --mdc-theme-primary: var(--codename-theme); + --mdc-theme-secondary: var(--codename-secondary); + --mdc-theme-secondary-light: var(--codename-light); + --mdc-theme-on-primary: white; + --mdc-theme-on-secondary: white; + --mdc-theme-surface: rgb(238, 238, 238); + --mdc-theme-on-surface: #000000; + --mpc-background: rgb(255, 255, 255); + --mpc-menu-background: rgb(240, 240, 240); + --mpc-menu-background-image: rgb(240, 240, 240, .5); + --mpc-menu-background-image-more: rgb(240, 240, 240, .75); + --mpc-text: rgb(0, 0, 0); + --mpc-menu-selected: var(--mdc-theme-secondary-light); + --mpc-menu-header: rgb(80, 80, 80); + --mpc-menu-subtitle: rgb(34, 34, 34); + --mpc-icons: rgb(78, 78, 78); + --mpc-separator: rgb(202, 202, 202); + + --mpc-home-pages: rgb(25, 118, 210); + --mpc-home-calendar: rgb(56, 142, 60); + --mpc-home-gallery: rgb(211, 47, 47); + --mpc-home-appearance: rgb(251, 192, 45); + --mpc-home-data: rgb(0, 121, 107); + --mpc-home-housekeeping: rgb(81, 45, 168); + + --mpc-slse-hover1: rgba(0, 0, 0, 0.25); + --mpc-slse-hover2: rgba(0, 0, 0, 0.1); +} \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/$resources/postcontent.php b/Neutron-trunk/cms-special/admin-v2/$resources/postcontent.php new file mode 100644 index 0000000..573a1d9 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/$resources/postcontent.php @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/$resources/precontent.php b/Neutron-trunk/cms-special/admin-v2/$resources/precontent.php new file mode 100644 index 0000000..af8d999 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/$resources/precontent.php @@ -0,0 +1,223 @@ + $subpageel[$subpageid]['dom'] . " — " . $lang["admin-titles"][$pageid]['dom'], "headerName" => $subpageel[$subpageid]['header'] ]; + } else { + $pageConfig = [ "domName" => $lang["admin-titles"]["fallback-subpages"] . " — " . $lang["admin-titles"][$pageid]['dom'], "headerName" => $lang["admin-titles"]["fallback-subpages"] ]; + } + } else { + $pageConfig = [ "domName" => $lang["admin-titles"][$pageid]['dom'], "headerName" => $lang["admin-titles"][$pageid]['header'] ]; + } + } else { + $pageConfig = [ "domName" => $lang["admin-titles"][$pageid]['dom'], "headerName" => $lang["admin-titles"][$pageid]['header'] ]; + } + } else { + $pageConfig = [ "domName" => $lang["admin-titles"][$pageid]['dom'], "headerName" => $lang["admin-titles"][$pageid]['header'] ]; + } + } else { + $pageConfig = [ "domName" => $lang["admin-titles"]["fallback"]['dom'], "headerName" => $lang["admin-titles"]["fallback"]['header'] ]; + } +} else { + $pageConfig = [ "domName" => $lang["admin-titles"]["fallback"], "headerName" => $lang["admin-titles"]["fallback"] ]; +} + +$invalid = false; + +if (isset($_COOKIE['_NEUTRON_ADMIN_TOKEN']) && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != ".." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "/") { + if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/tokens/" . $_COOKIE['_NEUTRON_ADMIN_TOKEN'])) { + + } else { + require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit(""); + } +} else { + require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit(""); +} + +if (isset($_POST['password'])) { + if (password_verify($_POST['password'], file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/password"))) { + require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit(""); + return; + } else { + $invalid = true; + } +} + +?> + +") ?> + + + + + + + + + /resources/css/fonts-import.css"> + /resources/css/alerts.css"> + + + + /resources/css/spotlight.css"> + /resources/css/admin.css"> + /resources/css/ui.css"> + /resources/css/codename.css"> + /resources/image/siteicon.png"> + + /resources/css/fonts-import.css" as="style"> + /resources/css/alerts.css" as="style"> + /resources/css/admin.css" as="style"> + /resources/css/ui.css" as="style"> + /cms-special/admin/$resources/common.css" as="style"> + /cms-special/admin/$resources/index.css" as="style"> + /cms-special/admin/$resources/responsive.css" as="style"> + /cms-special/admin/$resources/index-dark.css" as="style"> + + + + /cms-special/admin/$resources/admin.js" as="script"> + + + '); + } + + ?> + '); + } elseif (file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/theme") == "auto") { + echo(''); + } else { + echo(''); + } + ?> + /resources/lib/pushbar.js/library.css"> + + <?php + + if ($ready) { + echo("{$lang["admin-titles"]["suffix"]} — " . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/sitename")); + } else { + echo("{$lang["admin-titles"]["suffix"]} — Neutron"); + } + + ?> + location.href = '" . $GLOBALS["SYSTEM_ROOT"] . "/cms-special/setup';"); + } + ?> + 1024) { + if ($size > 1048576) { + if ($size > 1073741824) { + $sizestr = round($size / 1073741824, 2) . " " . $lang["sizes"]["gib"]; + } else { + $sizestr = round($size / 1048576, 2) . " " . $lang["sizes"]["mib"]; + } + } else { + $sizestr = round($size / 1024, 2) . " " . $lang["sizes"]["kib"]; + } + } else { + $sizestr = $size . " " . $lang["sizes"]["bytes"]; + } + $sizestr = str_replace(".", $lang["sizes"]["separator"], $sizestr); + + ?> + + + + +
+ " . $lang["admin-home"]["updates"][0] . " — " . $lang["admin-home"]["updates"][1] . "
"); + $updatable = true; + } else { + $updatable = false; + } + + ?> + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/$resources/responsive.css b/Neutron-trunk/cms-special/admin-v2/$resources/responsive.css new file mode 100644 index 0000000..75810b1 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/$resources/responsive.css @@ -0,0 +1,31 @@ +@media (max-width: 500px) { + /* The following CSS will apply ONLY to smartphones or small screens */ + .error-desktop { + display: none; + } + .error-mobile { + display: initial; + } + div#home-grid { + display: grid; + grid-template-columns: 1fr !important; + } +} + +@media (max-width: 720px) { + /* The following CSS will apply ONLY to medium screens (less than 720p) */ + #home-grid { + display: grid; + grid-template-columns: 1fr 1fr !important; + } +} + +@media (min-width: 500px) { + /* The following CSS will NEVER apply to smartphones or small screens */ + .error-desktop { + display: initial; + } + .error-mobile { + display: none; + } +} \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/$resources/spotlight-test.php b/Neutron-trunk/cms-special/admin-v2/$resources/spotlight-test.php new file mode 100644 index 0000000..bffaa87 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/$resources/spotlight-test.php @@ -0,0 +1,14 @@ + + + + + + + Spotlight search test + + + + + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/$resources/spotlight.php b/Neutron-trunk/cms-special/admin-v2/$resources/spotlight.php new file mode 100644 index 0000000..f803f52 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/$resources/spotlight.php @@ -0,0 +1,24 @@ + + + + + +"> + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/.htaccess b/Neutron-trunk/cms-special/admin-v2/.htaccess new file mode 100644 index 0000000..90f6271 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/.htaccess @@ -0,0 +1,4 @@ +ErrorDocument 404 "/cms-special/admin/error" +ErrorDocument 403 "/cms-special/admin/error" +ErrorDocument 401 "/cms-special/admin/error" +ErrorDocument 500 "/cms-special/admin/error" \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/about/index.php b/Neutron-trunk/cms-special/admin-v2/about/index.php new file mode 100644 index 0000000..1551ff0 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/about/index.php @@ -0,0 +1,116 @@ + + "Mise à jour et sécurité", "headerName" => "Mise à jour et sécurité" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> + +

+ +

+
+ + +
+ (%) + (%) + (%) + +
+ + + diff --git a/Neutron-trunk/cms-special/admin-v2/advanced/index.php b/Neutron-trunk/cms-special/admin-v2/advanced/index.php new file mode 100644 index 0000000..ae80b96 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/advanced/index.php @@ -0,0 +1,8 @@ + + "Options avancées", "headerName" => "Options avancées" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/advanced/jsonconf/index.php b/Neutron-trunk/cms-special/admin-v2/advanced/jsonconf/index.php new file mode 100644 index 0000000..f087b1c --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/advanced/jsonconf/index.php @@ -0,0 +1,59 @@ + + "Préférences de développement - Options avancées", "headerName" => "Préférences de développement" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +

/resources/image/message_warning.svg" class="message_img">

/data/webcontent/customSettings.json.

+
+ +
+
/resources/image/loader.svg" class="loader">
+ + + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/appearance/index.php b/Neutron-trunk/cms-special/admin-v2/appearance/index.php new file mode 100644 index 0000000..22c5065 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/appearance/index.php @@ -0,0 +1,253 @@ + + "Apparence", "headerName" => "Apparence" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+
+ ">
+

+ +

/resources/image/config_file_replace.svg" onclick="Icon_UploadFile()" class="icon_button">

+ +

/resources/image/config_file_replace.svg" onclick="Banner_UploadFile()" class="icon_button">

+

+ onchange="toggleRender();"> +

+

" class="oldopts">>
+ + +
+ >

+
+ +
+
/resources/image/loader.svg" class="loader">
+

+
+ +
+

+
+
+

">

+

">

+

">

+ +
+
/resources/image/loader.svg" class="loader">
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/calendar/add/index.php b/Neutron-trunk/cms-special/admin-v2/calendar/add/index.php new file mode 100644 index 0000000..1029788 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/calendar/add/index.php @@ -0,0 +1,140 @@ + + "Ajouter un événement - Calendrier", "headerName" => "Ajouter un événement" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+

+ +

+ +

/resources/image/message_info.svg" class="message_img">

+


+
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/calendar/index.php b/Neutron-trunk/cms-special/admin-v2/calendar/index.php new file mode 100644 index 0000000..e596551 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/calendar/index.php @@ -0,0 +1,86 @@ + + "Calendrier", "headerName" => "Gestion des événements" ]; include_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> + + +

+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/calendar/manage/index.php b/Neutron-trunk/cms-special/admin-v2/calendar/manage/index.php new file mode 100644 index 0000000..a6f4ebd --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/calendar/manage/index.php @@ -0,0 +1,78 @@ + + "Supprimer un événement - Calendrier", "headerName" => "Supprimer un événement" ]; include_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +location.href = '" . $GLOBALS['SYSTEM_ROOT'] . "/cms-special/admin/calendar';"); +} +if (isJson($eventsraw)) { + $events = json_decode($eventsraw); + foreach ($events->events as $element) { + if (isset($element->timestamp)) { + if ($element->timestamp == $_GET['id']) { + $event = $element; + } + } + } +} else { + require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit(""); +} +if (!isset($event)) { + require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit(""); +} +?> +

+ +

+ + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/customization/index.php b/Neutron-trunk/cms-special/admin-v2/customization/index.php new file mode 100644 index 0000000..66aee2f --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/customization/index.php @@ -0,0 +1,214 @@ + + "Personnalisation", "headerName" => "Personnalisation" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> + + +

+
" onclick="document.getElementById('theme').value = 'auto';updateTheme();" style="width:256px;margin:10px;display:inline-block;"> +
+
/resources/image/demos/theme-auto.jpg');">
+
+

+

+
+
+
+
" onclick="document.getElementById('theme').value = 'dark';updateTheme();" style="width:256px;margin:10px;display:inline-block;"> +
+
/resources/image/demos/theme-dark.jpg');">
+
+

+

+
+
+
+
" onclick="document.getElementById('theme').value = 'light';updateTheme();" style="width:256px;margin:10px;display:inline-block;"> +
+
/resources/image/demos/theme-light.jpg');">
+
+

+

+
+
+
+ +

+
" onclick="document.getElementById('colors').value = 'blue';updateColors();" style="width:256px;margin:10px;display:inline-block;"> +
+
+ + + + + + + +
/resources/image/demos/color-blue.jpg');width: 73px;height: 73px;background-size: cover;margin-left: -10px;margin-top: -10px;margin-bottom: -10px;">

+
+
+
+
" onclick="document.getElementById('colors').value = 'green';updateColors();" style="width:256px;margin:10px;display:inline-block;"> +
+
+ + + + + + + +
/resources/image/demos/color-green.jpg');width: 73px;height: 73px;background-size: cover;margin-left: -10px;margin-top: -10px;margin-bottom: -10px;">

+
+
+
+
" onclick="document.getElementById('colors').value = 'red';updateColors();" style="width:256px;margin:10px;display:inline-block;"> +
+
+ + + + + + + +
/resources/image/demos/color-red.jpg');width: 73px;height: 73px;background-size: cover;margin-left: -10px;margin-top: -10px;margin-bottom: -10px;">

+
+
+
+
" onclick="document.getElementById('colors').value = 'orange';updateColors();" style="width:256px;margin:10px;display:inline-block;"> +
+
+ + + + + + + +
/resources/image/demos/color-orange.jpg');width: 73px;height: 73px;background-size: cover;margin-left: -10px;margin-top: -10px;margin-bottom: -10px;">

+
+
+
+
" onclick="document.getElementById('colors').value = 'purple';updateColors();" style="width:256px;margin:10px;display:inline-block;"> +
+
+ + + + + + + +
/resources/image/demos/color-purple.jpg');width: 73px;height: 73px;background-size: cover;margin-left: -10px;margin-top: -10px;margin-bottom: -10px;">

+
+
+
+
" onclick="document.getElementById('colors').value = 'brown';updateColors();" style="width:256px;margin:10px;display:inline-block;"> +
+
+ + + + + + + +
/resources/image/demos/color-brown.jpg');width: 73px;height: 73px;background-size: cover;margin-left: -10px;margin-top: -10px;margin-bottom: -10px;">

+
+
+
+
" onclick="document.getElementById('colors').value = 'white';updateColors();" style="width:256px;margin:10px;display:inline-block;"> +
+
+ + + + + + + +
/resources/image/demos/color-white.jpg');width: 73px;height: 73px;background-size: cover;margin-left: -10px;margin-top: -10px;margin-bottom: -10px;">

+
+
+
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/error/index.php b/Neutron-trunk/cms-special/admin-v2/error/index.php new file mode 100644 index 0000000..c68c6a6 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/error/index.php @@ -0,0 +1,11 @@ + + "Erreur", "headerName" => "Erreur" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +

+

+

+ +

+ diff --git a/Neutron-trunk/cms-special/admin-v2/flags/index.php b/Neutron-trunk/cms-special/admin-v2/flags/index.php new file mode 100644 index 0000000..c243a49 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/flags/index.php @@ -0,0 +1,75 @@ + +
{$title}

{$description}

"); +} + +$pageConfig = [ "domName" => "Drapeaux", "headerName" => "Drapeaux" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +

/resources/image/message_info.svg" class="message_img">

+ + + + + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/galery/addcategory/index.php b/Neutron-trunk/cms-special/admin-v2/galery/addcategory/index.php new file mode 100644 index 0000000..f2438e1 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/galery/addcategory/index.php @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/galery/index.php b/Neutron-trunk/cms-special/admin-v2/galery/index.php new file mode 100644 index 0000000..82ad59c --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/galery/index.php @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/galery/publish/index.php b/Neutron-trunk/cms-special/admin-v2/galery/publish/index.php new file mode 100644 index 0000000..ac5f616 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/galery/publish/index.php @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/gallery/addcategory/index.php b/Neutron-trunk/cms-special/admin-v2/gallery/addcategory/index.php new file mode 100644 index 0000000..68451fc --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/gallery/addcategory/index.php @@ -0,0 +1,39 @@ + + "Nouvelle catégorie - Galerie de photos", "headerName" => "Nouvelle catégorie" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+ "> +

+

+
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/gallery/index.php b/Neutron-trunk/cms-special/admin-v2/gallery/index.php new file mode 100644 index 0000000..7623820 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/gallery/index.php @@ -0,0 +1,218 @@ + + "Galerie de photos", "headerName" => "Galerie de photos" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> + +

+ +

+ + +

+ + + + diff --git a/Neutron-trunk/cms-special/admin-v2/gallery/publish/index.php b/Neutron-trunk/cms-special/admin-v2/gallery/publish/index.php new file mode 100644 index 0000000..e2768ac --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/gallery/publish/index.php @@ -0,0 +1,57 @@ + + "Nouvelle photo - Galerie de photos", "headerName" => "Nouvelle photo" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+

+

+

+
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/home/all/db.json b/Neutron-trunk/cms-special/admin-v2/home/all/db.json new file mode 100644 index 0000000..8a6ad37 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/home/all/db.json @@ -0,0 +1,178 @@ +[ + { + "name": "pages", + "id": 0, + "icon": "insert_drive_file", + "items": [ + { + "name": "list", + "id": 0, + "icon": "list_alt", + "page": "pages" + }, + { + "name": "create", + "id": 1, + "icon": "add", + "page": "pages/add" + } + ] + }, + { + "name": "gallery", + "id": 1, + "icon": "photo", + "items": [ + { + "name": "list", + "id": 2, + "icon": "photo_library", + "page": "gallery" + }, + { + "name": "add", + "id": 3, + "icon": "add_photo_alternate", + "page": "gallery/publish" + }, + { + "name": "category", + "id": 4, + "icon": "local_offer", + "page": "gallery/addcategory" + }, + { + "name": "userspace", + "id": 5, + "icon": "image_search", + "page": "../gallery" + } + ] + }, + { + "name": "calendar", + "id": 2, + "icon": "event", + "items": [ + { + "name": "all", + "id": 6, + "icon": "event", + "page": "calendar" + }, + { + "name": "create", + "id": 7, + "icon": "event_available", + "page": "calendar/add" + }, + { + "name": "userspace", + "id": 8, + "icon": "event_note", + "page": "../calendar" + } + ] + }, + { + "name": "plugins", + "id": 3, + "icon": "extension", + "items": [ + { + "name": "all", + "id": 9, + "icon": "extension", + "page": "plugins" + } + ] + }, + { + "name": "technical", + "id": 4, + "icon": "build_circle", + "items": [ + { + "name": "all", + "id": 12, + "icon": "engineering", + "page": "advanced" + }, + { + "name": "advanced", + "id": 13, + "icon": "build_circle", + "page": "advanced/jsonconf" + } + ] + }, + { + "name": "data", + "id": 5, + "icon": "pie_chart", + "items": [ + { + "name": "reset", + "id": 15, + "icon": "delete", + "page": "reset" + }, + { + "name": "stats", + "id": 16, + "icon": "pie_chart", + "page": "stats" + }, + { + "name": "logs", + "id": 17, + "icon": "subject", + "page": "logs" + } + ] + }, + { + "name": "updates", + "id": 6, + "icon": "cloud_download", + "items": [ + { + "name": "info", + "id": 19, + "icon": "info", + "page": "about" + } + ] + }, + { + "name": "apparence", + "id": 7, + "icon": "brush", + "items": [ + { + "name": "general", + "id": 22, + "icon": "brush", + "page": "appearance" + }, + { + "name": "theme", + "id": 23, + "icon": "palette", + "page": "customization" + }, + { + "name": "language", + "id": 26, + "icon": "language", + "page": "language" + }, + { + "name": "flags", + "id": 27, + "icon": "flag", + "page": "flags" + } + ] + } +] diff --git a/Neutron-trunk/cms-special/admin-v2/home/all/index.php b/Neutron-trunk/cms-special/admin-v2/home/all/index.php new file mode 100644 index 0000000..f844070 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/home/all/index.php @@ -0,0 +1,4 @@ + + + "Tableau de bord", "headerName" => "Tableau de bord" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+ /cms-special/admin/home" class="mdc-button mdc-button--outlined"> +
+ + +
+ +

+ + +
+ \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/home/data/index.php b/Neutron-trunk/cms-special/admin-v2/home/data/index.php new file mode 100644 index 0000000..29205dc --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/home/data/index.php @@ -0,0 +1,27 @@ + + "Tableau de bord", "headerName" => "Tableau de bord" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+ /cms-special/admin/home" class="mdc-button mdc-button--outlined"> +
+ + +
+ +

+ + +
+ \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/home/housekeeping/index.php b/Neutron-trunk/cms-special/admin-v2/home/housekeeping/index.php new file mode 100644 index 0000000..8c0deae --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/home/housekeeping/index.php @@ -0,0 +1,27 @@ + + "Tableau de bord", "headerName" => "Tableau de bord" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+ /cms-special/admin/home" class="mdc-button mdc-button--outlined"> +
+ + +
+ +

+ + +
+ \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/home/index.php b/Neutron-trunk/cms-special/admin-v2/home/index.php new file mode 100644 index 0000000..327ab36 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/home/index.php @@ -0,0 +1,58 @@ + + "Tableau de bord", "headerName" => "Tableau de bord" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+ /Switch Language" href="/cms-special/admin/language" class="material-icons-outlined mdc-top-app-bar__navigation-icon mdc-icon-button" id="language-selector">translate + +

+ + + +
+ + +
+ + +
+   + /cms-special/admin/logout" class="mdc-button mdc-button--outlined"> +
+ + +
+   + /?source=admin" target="_blank" class="mdc-button mdc-button--outlined"> +
+ + +
+
+ diff --git a/Neutron-trunk/cms-special/admin-v2/housekeeping/index.php b/Neutron-trunk/cms-special/admin-v2/housekeeping/index.php new file mode 100644 index 0000000..a5d0bbc --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/housekeeping/index.php @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/housekeeping/reset/index.php b/Neutron-trunk/cms-special/admin-v2/housekeeping/reset/index.php new file mode 100644 index 0000000..35b36d1 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/housekeeping/reset/index.php @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/index.php b/Neutron-trunk/cms-special/admin-v2/index.php new file mode 100644 index 0000000..55e029a --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/index.php @@ -0,0 +1,126 @@ + + + + + + + + Neutron + /resources/css/ajax.css"> + /resources/css/admin_v2/main.css"> + /resources/css/admin_v2/navigation.css"> + /resources/css/admin_v2/iframe.css"> + + /resources/css/admin_v2/chromium.css"> + + + /resources/image/siteicon.png"> + + + + +
+
+ + +
+ System + +
+
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/language/index.php b/Neutron-trunk/cms-special/admin-v2/language/index.php new file mode 100644 index 0000000..4c16e04 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/language/index.php @@ -0,0 +1,57 @@ + + "Langue et région", "headerName" => "Langue et région" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+

+
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/login-old/index.php b/Neutron-trunk/cms-special/admin-v2/login-old/index.php new file mode 100644 index 0000000..d4428d7 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/login-old/index.php @@ -0,0 +1,122 @@ + + 12,]), PASSWORD_BCRYPT, ['cost' => 12,])); + if (!file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/tokens")) { + mkdir($_SERVER['DOCUMENT_ROOT'] . "/data/tokens"); + } + $tokens = scandir($_SERVER['DOCUMENT_ROOT'] . "/data/tokens"); + foreach ($tokens as $atoken) { + if ($atoken == "." || $atoken == "..") {} else { + unlink($_SERVER['DOCUMENT_ROOT'] . "/data/tokens/" . $atoken); + } + } + file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/tokens/" . $token, ""); + header("Set-Cookie: _NEUTRON_ADMIN_TOKEN={$token}; Path=/; Http-Only; SameSite=Strict"); + header("Location: " . $callback); + return; + } else { + $invalid = true; + } + } +} + +if (isset($_COOKIE['_NEUTRON_ADMIN_TOKEN']) && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != ".." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "/") { + if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/tokens/" . $_COOKIE['_NEUTRON_ADMIN_TOKEN'])) { + if (isset($_GET['pr'])) { + if (isset($_GET['pa'])) { + $callback = $_GET['pr'] . $_GET['pa']; + } else { + $callback = $_GET['pr']; + } + } else { + $callback = "{$GLOBALS["SYSTEM_ROOT"]}/cms-special/admin/home"; + } + header("Location: " . $callback); + } +} + +?> + +") ?> + + + + + + + + + /resources/css/admin.css"> + /resources/css/fonts-import.css"> + /resources/css/ui.css"> + + <?php + + if ($ready) { + echo($lang["login"]["login"] . " - " . $lang["login"]["title"] . " - " . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/sitename")); + } else { + echo("Neutron"); + } + + ?> + location.href = '{$GLOBALS["SYSTEM_ROOT"]}/cms-special/setup';"); + } + ?> + + +
+ /resources/upload/siteicon.png" style="border-radius:100%;" class="intro-element"> +

+

", str_replace("{", "", $lang["login"]["redirect"])); ?>

+

' . $lang["login"]["uauth"] . '
' . $lang['login']['pass'] . ''); + } else { + echo('' . $lang["login"]["upass"] . '
' . $lang['login']['auth'] . '
'); + } + + ?>

+ ' . $lang["login"]["invalid"] . '
');} ?> + + +
+ ">

+ "> +

+ +
+ " disabled>

+ " . $lang["login"]["nokey"][1] . " " . $lang["login"]["nokey"][2] ?> +

+ + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/login/index.php b/Neutron-trunk/cms-special/admin-v2/login/index.php new file mode 100644 index 0000000..57a1b6a --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/login/index.php @@ -0,0 +1,219 @@ + + + +") ?> + + + + + + + + + /resources/css/admin.css"> + /resources/css/fonts-import.css"> + /resources/css/ui.css"> + /resources/css/alerts.css"> + /resources/css/codename.css"> + /resources/css/ajax.css"> + + + + '); + ?> + <?php + + if ($ready) { + echo($lang["login"]["login"] . " - " . $lang["login"]["title"] . " - " . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/sitename")); + } else { + echo("Neutron"); + } + + ?> + location.href = '{$GLOBALS["SYSTEM_ROOT"]}/cms-special/setup';"); + } + ?> + + + + + + +
+
+
+
+ /resources/upload/siteicon.png" style="border-radius:100%;" class="intro-element"> +

+ +
+ + + + + + +
+ + +
+ +
+ + + + + +

+ + /';" class="sblink"> + +   + + +   + + + +

+
+
+
+
+ + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/logout/index.php b/Neutron-trunk/cms-special/admin-v2/logout/index.php new file mode 100644 index 0000000..5c51269 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/logout/index.php @@ -0,0 +1,15 @@ + + + "Historique d'activité", "headerName" => "Historique d'activité" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+ "; + } + } else { + echo($lang["admin-logs"]["nothing"][0] . "

" . $lang["admin-logs"]["nothing"][1]); + } + + ?> +


+ \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/pages/add/index.php b/Neutron-trunk/cms-special/admin-v2/pages/add/index.php new file mode 100644 index 0000000..54dacdb --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/pages/add/index.php @@ -0,0 +1,145 @@ + + "Nouvelle page - Pages", "headerName" => "Nouvelle page" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +

+

+
+ " spellcheck="false" autocomplete="off"> + +

+ + +
+
+
+

+

+
+
+
+
+
+
+

+

+
+
+
+
+

+
+
+
+ +
+
+
/resources/image/loader.svg" class="loader">
+ + + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/pages/delete/index.php b/Neutron-trunk/cms-special/admin-v2/pages/delete/index.php new file mode 100644 index 0000000..4cbcb49 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/pages/delete/index.php @@ -0,0 +1,88 @@ + + + "Pages", "headerName" => "Pages" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +page = \"index\""); +} else { + $currentName = file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/" . $currentSlug . "/pagename"); + echo(""); +} + +?> +
+
+

+ {$lang["admin-pages"]["deletec"][2]}
"); + } + + ?> + + " onclick="location.href='/cms-special/admin/pages';" class="mdc-button mdc-button--raised"> +
+ +
+ " onclick="deletePage();" class="mdc-button mdc-button--outlined"> +
+ +
+
+ +
/resources/image/loader.svg" class="loader"> +
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/pages/edit/index.php b/Neutron-trunk/cms-special/admin-v2/pages/edit/index.php new file mode 100644 index 0000000..b198566 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/pages/edit/index.php @@ -0,0 +1,194 @@ + + + "Pages", "headerName" => "Pages" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+ page = \"index\""); + } else { + $currentName = file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/" . $currentSlug . "/pagename"); + echo(""); + } + + $type = file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/pagetypes/" . $currentSlug); + if (isset($_GET['forcehtml'])) { + $type = "1"; + } + if ($type == "0") { + require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/VisualEditor.php"; + } + if ($type == "1"): + + ?> +

/resources/image/message_warning.svg" class="message_img">

+ +
+
/resources/image/loader.svg" class="loader">
+ + + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/pages/index.php b/Neutron-trunk/cms-special/admin-v2/pages/index.php new file mode 100644 index 0000000..d8e1e3d --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/pages/index.php @@ -0,0 +1,66 @@ + + "Pages", "headerName" => "Gestionnaire de pages" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> + +
+ 1024) { + if ($size > 1048576) { + $sizestr = round($size / 1048576, 2) . " " . $lang["sizes"]["mib"]; + } else { + $sizestr = round($size / 1024, 2) . " " . $lang["sizes"]["kib"]; + } + } else { + $sizestr = $size . " " . $lang["sizes"]["bytes"]; + } + $sizetotal = $sizetotal + $size; + $sizestr = str_replace(".", ",", $sizestr); + if ($page == "index"): ?> + + + + + +
+

+ " href="/cms-special/admin/pages/add" class="mdc-button mdc-button--outlined"> +
+ + +
+

+ \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/pages/rename/index.php b/Neutron-trunk/cms-special/admin-v2/pages/rename/index.php new file mode 100644 index 0000000..d7118ba --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/pages/rename/index.php @@ -0,0 +1,89 @@ + + + "Pages", "headerName" => "Pages" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +page = \"index\""); +} else { + $currentName = file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/" . $currentSlug . "/pagename"); + echo(""); +} + +?> +
+

+ {$lang["admin-pages"]["renamew"][2]}
"); + } + + ?> +
+ " spellcheck="false" disabled autocomplete="off" value=""> + +
+ " spellcheck="false" autocomplete="off" value=""> + +
+

+ " onclick="renamePage();" class="mdc-button mdc-button--raised"> +
+ + +
+

+ +
+
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/plugins/index.php b/Neutron-trunk/cms-special/admin-v2/plugins/index.php new file mode 100644 index 0000000..58be08f --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/plugins/index.php @@ -0,0 +1,79 @@ + + "Extensions", "headerName" => "Extensions" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +

/resources/image/message_info.svg" class="message_img">

+
list) === false) { + echo("disabled"); + } else { + echo("enabled"); + } + echo("\">
" . getName($config) . ""); + if (isset($config->config)) { + echo("config . "\" title=\"" . $lang["admin-plugins"]["config"] . "\" class=\"configure_ext\">"); + } + echo("

" . getDescription($config) . "

"); + echo(""); + } + } + + ?> + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/reset/index.php b/Neutron-trunk/cms-special/admin-v2/reset/index.php new file mode 100644 index 0000000..efa215c --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/reset/index.php @@ -0,0 +1,118 @@ + + "Réinitialisation - Maintenance", "headerName" => "Réinitialisation" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+

+

">
+

+
+
+ +

/resources/image/message_warning.svg" class="message_img">

+
+ +

+
+
+ +

+
+
+ +
+
+

+
/resources/image/loader.svg" class="loader">
+


-

+
+ + + diff --git a/Neutron-trunk/cms-special/admin-v2/resetted/index.php b/Neutron-trunk/cms-special/admin-v2/resetted/index.php new file mode 100644 index 0000000..21fe104 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/resetted/index.php @@ -0,0 +1,21 @@ + +") ?> + + + + + + + + /resources/css/admin.css"> + /resources/css/fonts-import.css"> + /resources/css/ui.css"> + Neutron + + +
+ /resources/image/resetted.png" height="64px" width="64px"> +

/" class="button">OK

+
+ + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/stats/index.php b/Neutron-trunk/cms-special/admin-v2/stats/index.php new file mode 100644 index 0000000..81b4b69 --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/stats/index.php @@ -0,0 +1,280 @@ + + "Statistiques", "headerName" => "Statistiques" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +" . $lang["admin-stats"]["new"] . "

" . $lang["admin-stats"]["notice"] . "

"); } ?> + 0) { + $cmonth = $cmonth + $count; + } + } + } + + if ($cmonth > 0) { + if ($cmonth > 1) { + if ($showYear) { + echo("{$lang["admin-stats"]["months"][$month - 1]} {$year}{$lang["admin-stats"]["separator"]} {$cmonth} {$lang["admin-stats"]["visits2"]}"); + } else { + echo("{$lang["admin-stats"]["months"][$month - 1]}{$lang["admin-stats"]["separator"]} {$cmonth} {$lang["admin-stats"]["visits2"]}"); + } + } else { + if ($showYear) { + echo("{$lang["admin-stats"]["months"][$month - 1]} {$year}{$lang["admin-stats"]["separator"]} {$cmonth} {$lang["admin-stats"]["visit1"]}"); + } else { + echo("{$lang["admin-stats"]["months"][$month - 1]}{$lang["admin-stats"]["separator"]} {$cmonth} {$lang["admin-stats"]["visit1"]}"); + } + } + } + } +} + +?> +

+ + + 0) { + $day = (int)trim($file); + if ($count > 1) { + echo(""); + } else { + echo(""); + } + } + } + } + } + + ?> + +
{$day} {$mtxt}{$lang["admin-stats"]["separator"]} {$count} {$lang["admin-stats"]["visits2"]}
{$day} {$mtxt}{$lang["admin-stats"]["separator"]} {$count} {$lang["admin-stats"]["visit1"]}
+ +

+ + + + +
+ +

+ + + + +
+ + +
+

+

+

+"); + } + } +} + +?> +
{$newdatestr}{$lang["admin-stats"]["separator"]}" . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/stats/" . $date) . " {$lang["admin-stats"]["visits"]}
+

+ + + "); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + ?> + +
{$lang["admin-stats"]["months"][0]}{$lang["admin-stats"]["separator"]}{$visits['01']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][1]}{$lang["admin-stats"]["separator"]}{$visits['02']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][2]}{$lang["admin-stats"]["separator"]}{$visits['03']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][3]}{$lang["admin-stats"]["separator"]}{$visits['04']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][4]}{$lang["admin-stats"]["separator"]}{$visits['05']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][5]}{$lang["admin-stats"]["separator"]}{$visits['06']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][6]}{$lang["admin-stats"]["separator"]}{$visits['07']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][7]}{$lang["admin-stats"]["separator"]}{$visits['08']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][8]}{$lang["admin-stats"]["separator"]}{$visits['09']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][9]}{$lang["admin-stats"]["separator"]}{$visits['10']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][10]}{$lang["admin-stats"]["separator"]}{$visits['11']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][11]}{$lang["admin-stats"]["separator"]}{$visits['12']} {$lang["admin-stats"]["visits"]}
+

+ + + "); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + ?> + +
{$lang["admin-stats"]["months"][0]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['01']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][1]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['02']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][2]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['03']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][3]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['04']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][4]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['05']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][5]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['06']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][6]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['07']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][7]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['08']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][8]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['09']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][9]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['10']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][10]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['11']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][11]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['12']} {$lang["admin-stats"]["visits"]}
+ + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin-v2/widgets/index.php b/Neutron-trunk/cms-special/admin-v2/widgets/index.php new file mode 100644 index 0000000..ed6d9db --- /dev/null +++ b/Neutron-trunk/cms-special/admin-v2/widgets/index.php @@ -0,0 +1,5 @@ + + { + // console.log("> Scroll"); + if (window.scrollY >= 52 && !document.getElementById('portal-background').classList.contains('scrolled')) { + // console.log("> ADD"); + document.getElementById('portal-background').classList.add('scrolled'); + } else if (window.scrollY < 52 && document.getElementById('portal-background').classList.contains('scrolled')) { + // console.log("> REMOVE"); + document.getElementById('portal-background').classList.remove('scrolled'); + } else { + // console.log("> Nothing"); + } +} + +window.onbeforeunload = () => { + window.parent.$("#loader").fadeIn(200); +} \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/$resources/common.css b/Neutron-trunk/cms-special/admin/$resources/common.css new file mode 100644 index 0000000..3826747 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/$resources/common.css @@ -0,0 +1,523 @@ +@import "./responsive.css"; + +html, body { + margin: 0; + color: var(--mpc-text) !important; + background-color: var(--mpc-background); +} + +.mdc-drawer { + color: var(--mpc-text) !important; + background-color: var(--mpc-menu-background) !important; + height: 100vh; + z-index: 99999999999 !important; +} + +.mdc-drawer .mdc-list-item--activated .mdc-list-item__graphic { + color: var(--mpc-menu-selected) !important; +} + +.mdc-list-item__graphic { + color: var(--mpc-icons) !important; +} + +.mdc-list-group__subheader { + color: var(--mpc-menu-header) !important; +} + +.mdc-drawer__subtitle { + color: var(--mpc-menu-subtitle) !important; +} + +.mdc-drawer__title { + color: var(--mpc-text) !important; +} + +.mdc-list-divider { + border-bottom-color: var(--mpc-separator); +} + +.mdc-list-item__text { + color: var(--mpc-text); +} + +.mdc-list-item.mdc-list-item--activated .mdc-list-item__text { + color: var(--mpc-menu-selected); +} + +.ttdemo { + padding: 10px; + font-family: "CMS", "Ubuntu", "Roboto", "Google Sans", "Segoe UI", "Noto Sans", Tahoma, Geneva, Verdana, sans-serif !important; +} + +* { + font-family: "CMS", "Ubuntu", "Roboto", "Google Sans", "Segoe UI", "Noto Sans", Tahoma, Geneva, Verdana, sans-serif; +} + +span, p, body, div, h1, h2, h3, h4, h5, h6 { + font-family: "CMS", "Ubuntu", "Roboto", "Google Sans", "Segoe UI", "Noto Sans", Tahoma, Geneva, Verdana, sans-serif !important; +} + +#main-content { + padding: 16px; + margin-top: 64px; + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; + overflow-y: auto; +} + +html, body, #app-grid { + height: 100%; +} + +#app-frame { + margin: -16px; + border: none; + width: calc(100% + 32px); + height: calc(100% + 32px); +} + +.mdc-top-app-bar--fixed-adjust { + margin: 0; + padding: 0; + height: calc(100% - 64px); +} + +.dualtitle-top { + margin-bottom: 4px; +} + +.dualtitle-bottom { + margin-top: 4px; +} + +.mdc-top-app-bar__section.mdc-top-app-bar__section--align-start > a { + color: inherit; + text-decoration: inherit; +} + +code { + font-family: monospace +} + +a { + color: slategray; +} + +a:hover { + color: gray; +} + +a:active { + color: lightgray; +} + +.mdc-card__primary-action { + padding: 0 16px; +} + +.mdc-icon-button.material-icons.mdc-card__action.mdc-card__action--icon--unbounded { + color: whitesmoke; +} + +img[width="128px"] { + border-radius: 9999px; +} + +.demo-card__primary { + display: grid; + grid-template-columns: 69.6px 1fr; +} + +.ccard_p1 { + margin-left: -15px; + border-top-right-radius: 2px; + border-top-left-radius: 2px; + height: 100%; + background-size: 100%; +} + +.ccard_p2 { + margin-left: 10px; +} + +.ccard_p2 h2 { + margin-bottom: 0; +} + +.ccard_p2 h3 { + margin-top: 0; +} + +.card_link, .card_link:hover, .card_link:active { + color: var(--mpc-text); + text-decoration: none; +} + +.mdc-list-item { + cursor: pointer; +} + +.mdc-list-item > i { + transform: rotate(0deg); + transition: transform 500ms; +} + +.mdc-list-item:hover > i { + transform: rotate(360deg) scale(125%); +} + +.mdc-drawer__header { + background: linear-gradient(to bottom, var(--mpc-menu-background-image) 50%, var(--mpc-menu-background)), url('../../../resources/image/codename.jpg'); + background-size: 100%; +} + +.mdc-top-app-bar__row { + width: 100% !important; +} + +#header-desktop { + height: 190px; + z-index: 2; +} + +#app-grid { + z-index: 5; + position: absolute; + width: 100%; + top: 170px; +} + +#main-content { + z-index: 5; + background: var(--mpc-background); + border-radius: 15px; + position: initial; + margin: 0; + min-height: 200px; +} + +#portal-background { + position: fixed; + top: -20px; + left: -20px; + right: -20px; + height: 230px; + background-image: linear-gradient(to bottom, var(--mpc-menu-background-image) 50%, var(--mpc-menu-background-image)), url('../../../resources/image/codename.jpg'); + background-size: 100%; + background-position: center; + transition: filter 200ms, background-size 200ms, background-image 200ms; + filter: none; +} + +#portal-background.updates { + z-index: 2; +} + +#portal-background.scrolled { + background-image: linear-gradient(to bottom, var(--mpc-menu-background-image-more) 50%, var(--mpc-menu-background-image-more)), url('../../../resources/image/codename.jpg'); + filter: blur(5px); + background-size: 110%; +} + +#header-desktop { + background: transparent; + color: var(--mpc-text); +} + +.mdc-top-app-bar__section.mdc-top-app-bar__section--align-end .material-icons-outlined.mdc-top-app-bar__navigation-icon.mdc-icon-button { + color: var(--mpc-text); +} + +#version-place { + position: absolute; + top: -20px; + font-size: 12px; + opacity: .5; +} + +#language-selector { + position: absolute; + font-size: 18px; + opacity: .5; + left: 0; + top: 0; +} + +#home-grid { + display: grid; + grid-template-columns: 1fr 1fr 1fr; +} + +.home-grid-item { + margin: 20px; +} + +#home-grid-item-pages { + color: var(--mpc-home-pages); + --mpc-icons: var(--mpc-home-pages); +} + +#home-grid-item-calendar { + color: var(--mpc-home-calendar); + --mpc-icons: var(--mpc-home-calendar); +} + +#home-grid-item-gallery { + color: var(--mpc-home-gallery); + --mpc-icons: var(--mpc-home-gallery); +} + +#home-grid-item-appearance { + color: var(--mpc-home-appearance); + --mpc-icons: var(--mpc-home-appearance); +} + +#home-grid-item-data { + color: var(--mpc-home-data); + --mpc-icons: var(--mpc-home-data); +} + +#home-grid-item-housekeeping { + color: var(--mpc-home-housekeeping); + --mpc-icons: var(--mpc-home-housekeeping); +} + +.home-grid-item-button { + font-size: 64px; + width: 86px; + height: 86px; +} + +a:not(.material-icons):not(.material-icons-outlined):not(.button):not(.spotlight-link) { + color: var(--codename-theme); + text-decoration-color: var(--codename-theme); +} + +a:not(.material-icons):not(.material-icons-outlined):not(.button):active, a:not(.material-icons):not(.material-icons-outlined):not(.button):focus:not(.spotlight-link) { + opacity: .75; +} + +.ck.ck-editor__main a { + color: inherit !important; + text-decoration-color: inherit !important; +} + +.all-item-icon { + margin-right: 5px; + vertical-align: middle; +} + +.all-item-text { + vertical-align: middle; +} + +.all-item-link { + color: white !important; + text-decoration: none !important; +} + +.nd_Field { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + min-width: 0; + position: relative; + margin: 1em 0; + border-radius: 4px; + -webkit-transition: border-color .25s; + transition: border-color .25s; + border: 1px solid var(--codename-theme); +} + +.nd_Field input { + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +.nd_Field input, .nd_Field select { + color: var(--mpc-text); +} + +.nd_Field input[type="password"], .nd_Field input[type="text"] { + color: var(--mpc-text); +} + +.nd_Field input, .nd_Field select, .nd_Field textarea { + font-weight: 400; + font-size: 1.4rem; + border: none; + border-radius: 4px; + padding: 8px 9px; + color: var(--mpc-text); + background-color: transparent; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + min-width: 0; +} + +.nd_Field input[type="password"], .nd_Field input[type="text"], .nd_Field textarea { + background-color: transparent; + color: var(--mpc-text); +} + +.nd_Field input[type="password"]::placeholder, .nd_Field input[type="text"]::placeholder, .nd_Field textarea::placeholder { + color: transparent; +} + +.nd_Field.fallback input[type="password"]::placeholder, .nd_Field.fallback input[type="text"]::placeholder, .nd_Field.fallback textarea::placeholder { + color: var(--codename-theme); + opacity: 1; +} + +.nd_Field input[type="password"], .nd_Field input[type="search"], .nd_Field input[type="text"] { + padding: 9px; + font-size: 14px; + font-weight: 600; + min-width: 0; +} + +.nd_Field_labelAlwaysTopLeft label, .nd_Field input:focus + label, .nd_Field input:not(:placeholder-shown) + label, .nd_Field select + label, .nd_Field textarea:focus + label, .nd_Field textarea:not(:placeholder-shown) + label { + background-color: transparent; +} + +.nd_Field_labelAlwaysTopLeft label, .nd_Field input:focus + label, .nd_Field input:not(:placeholder-shown) + label, .nd_Field select + label, .nd_Field textarea:focus + label, .nd_Field textarea:not(:placeholder-shown) + label { + -webkit-transition: font-size .25s ease-out 0s,color .25s ease-out 0s,top .25s ease-out 0s,background-color .25s ease-out 0s; + transition: font-size .25s ease-out 0s,width .25s ease-out 0s,color .25s ease-out 0s,top .25s ease-out 0s,background-color .25s ease-out 0s; + font-size: 14px; + top: -14px; + padding: 0 2px; + background-color: var(--mpc-background); + pointer-events: auto; +} + +.nd_Field label { + width: 100%; + -webkit-transition: font-size .25s ease-out .1s,color .25s ease-out .1s,top .25s ease-out .1s,background-color .25s ease-out .1s; + transition: font-size .25s ease-out .1s,color .25s ease-out .1s,top .25s ease-out .1s,background-color .25s ease-out .1s; + color: var(--codename-theme); + background-color: transparent; + font-size: 14px; + position: absolute; + left: 0; + top: 0; + margin: 7px 8px; + padding: 2px; + pointer-events: none; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + max-width: calc(100% - 20px); +} + +#search { + width: 256px; +} + +#searchbox { + width: 256px; + margin-left: auto; + margin-right: auto; +} + +.nd_Field input { + border: none !important; + font-weight: normal !important; +} + +.search-match { + color: var(--codename-theme); + text-decoration: underline; +} + +a.discreet, a.discreet:hover, a.discreet:active { + color: inherit !important; + text-decoration: none; +} + +.updates-status { + font-size: 64px; +} + +.separator { + border-bottom: none; + border-color: rgba(0, 0, 0, .5); +} + +#updates-available { + background-color: rgba(211, 211, 0, 0.5); + text-align: center; + z-index: 999999; + position: relative; +} + +.admin-pages-list { + display: grid; + grid-template-columns: 256px 256px 256px 256px 256px; + grid-column-gap: 20px; +} + +@media (max-width: 1424px) { + .admin-pages-list { + grid-template-columns: 256px 256px 256px 256px; + } +} + +@media (max-width: 968px) { + .admin-pages-list { + grid-template-columns: 256px 256px 256px; + } +} + +@media (max-width: 712px) { + .admin-pages-list { + grid-template-columns: 256px 256px; + } +} + +@media (max-width: 556px) { + .admin-pages-list { + grid-template-columns: 256px; + } +} + +.mdc-card__actions-pages-list { + position: absolute; + bottom: 0; +} + +.mdc-button--raised { + color: var(--mdc-theme-on-primary) !important; +} + +.nd_Field, .nd_Field * { + outline: none; +} + +.nd_Field input { + padding-top: 10px !important; +} + +.nd_Field { + width: 256px; +} + +.nd_Field label { + text-align: center; +} + +.nd_Field__centered { + margin-right: auto; + margin-left: auto; +} + +.nd_Field__disabled { + opacity: .5; +} \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/$resources/header.php b/Neutron-trunk/cms-special/admin/$resources/header.php new file mode 100644 index 0000000..e69de29 diff --git a/Neutron-trunk/cms-special/admin/$resources/index-auto.css b/Neutron-trunk/cms-special/admin/$resources/index-auto.css new file mode 100644 index 0000000..773eab9 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/$resources/index-auto.css @@ -0,0 +1,3 @@ +@import url("./index.css") only screen and (prefers-color-scheme: light); +@import url("./index.css") only screen and (prefers-color-scheme: no-preference); +@import url("./index-dark.css") only screen and (prefers-color-scheme: dark); \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/$resources/index-dark.css b/Neutron-trunk/cms-special/admin/$resources/index-dark.css new file mode 100644 index 0000000..1683192 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/$resources/index-dark.css @@ -0,0 +1,45 @@ +@import "./common.css"; + +:root { + --mdc-theme-primary: var(--codename-theme); + --mdc-theme-secondary: var(--codename-secondary); + --mdc-theme-secondary-light: var(--codename-light); + --mdc-theme-on-primary: #ffffff; + --mdc-theme-on-secondary: white; + --mdc-theme-surface: rgb(44, 44, 44); + --mdc-theme-on-surface: whitesmoke; + --mpc-background: rgb(46, 46, 46); + --mpc-menu-background: rgb(22, 22, 22); + --mpc-menu-background-image: rgb(22, 22, 22, .5); + --mpc-menu-background-image-more: rgb(22, 22, 22, .75); + --mpc-text: whitesmoke; + --mpc-menu-selected: var(--mdc-theme-secondary-light); + --mpc-menu-header: rgb(223, 223, 223); + --mpc-menu-subtitle: rgb(182, 182, 182); + --mpc-icons: rgb(226, 226, 226); + --mpc-separator: rgb(138, 138, 138); + + --mpc-home-pages: rgb(179, 229, 252); + --mpc-home-calendar: rgb(200, 230, 201); + --mpc-home-gallery: rgb(255, 205, 210); + --mpc-home-appearance: rgb(255, 249, 196); + --mpc-home-data: rgb(178, 223, 219); + --mpc-home-housekeeping: rgb(209, 196, 233); + + --mpc-slse-hover1: rgba(255, 255, 255, 0.25); + --mpc-slse-hover2: rgba(255, 255, 255, 0.1); +} + +/* --------------------- */ + +.ck.ck-content { + background: #4a4a4a !important; +} + +.message_img { + filter: invert(100%); +} + +.mdi-icbtn-card { + color: rgba(255,255,255,1) !important; +} \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/$resources/index.css b/Neutron-trunk/cms-special/admin/$resources/index.css new file mode 100644 index 0000000..57dd995 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/$resources/index.css @@ -0,0 +1,31 @@ +@import "./common.css"; + +:root { + --mdc-theme-primary: var(--codename-theme); + --mdc-theme-secondary: var(--codename-secondary); + --mdc-theme-secondary-light: var(--codename-light); + --mdc-theme-on-primary: white; + --mdc-theme-on-secondary: white; + --mdc-theme-surface: rgb(238, 238, 238); + --mdc-theme-on-surface: #000000; + --mpc-background: rgb(255, 255, 255); + --mpc-menu-background: rgb(240, 240, 240); + --mpc-menu-background-image: rgb(240, 240, 240, .5); + --mpc-menu-background-image-more: rgb(240, 240, 240, .75); + --mpc-text: rgb(0, 0, 0); + --mpc-menu-selected: var(--mdc-theme-secondary-light); + --mpc-menu-header: rgb(80, 80, 80); + --mpc-menu-subtitle: rgb(34, 34, 34); + --mpc-icons: rgb(78, 78, 78); + --mpc-separator: rgb(202, 202, 202); + + --mpc-home-pages: rgb(25, 118, 210); + --mpc-home-calendar: rgb(56, 142, 60); + --mpc-home-gallery: rgb(211, 47, 47); + --mpc-home-appearance: rgb(251, 192, 45); + --mpc-home-data: rgb(0, 121, 107); + --mpc-home-housekeeping: rgb(81, 45, 168); + + --mpc-slse-hover1: rgba(0, 0, 0, 0.25); + --mpc-slse-hover2: rgba(0, 0, 0, 0.1); +} \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/$resources/postcontent.php b/Neutron-trunk/cms-special/admin/$resources/postcontent.php new file mode 100644 index 0000000..573a1d9 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/$resources/postcontent.php @@ -0,0 +1,6 @@ + +
+ + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/$resources/precontent.php b/Neutron-trunk/cms-special/admin/$resources/precontent.php new file mode 100644 index 0000000..b133975 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/$resources/precontent.php @@ -0,0 +1,223 @@ + $subpageel[$subpageid]['dom'] . " — " . $lang["admin-titles"][$pageid]['dom'], "headerName" => $subpageel[$subpageid]['header'] ]; + } else { + $pageConfig = [ "domName" => $lang["admin-titles"]["fallback-subpages"] . " — " . $lang["admin-titles"][$pageid]['dom'], "headerName" => $lang["admin-titles"]["fallback-subpages"] ]; + } + } else { + $pageConfig = [ "domName" => $lang["admin-titles"][$pageid]['dom'], "headerName" => $lang["admin-titles"][$pageid]['header'] ]; + } + } else { + $pageConfig = [ "domName" => $lang["admin-titles"][$pageid]['dom'], "headerName" => $lang["admin-titles"][$pageid]['header'] ]; + } + } else { + $pageConfig = [ "domName" => $lang["admin-titles"][$pageid]['dom'], "headerName" => $lang["admin-titles"][$pageid]['header'] ]; + } + } else { + $pageConfig = [ "domName" => $lang["admin-titles"]["fallback"]['dom'], "headerName" => $lang["admin-titles"]["fallback"]['header'] ]; + } +} else { + $pageConfig = [ "domName" => $lang["admin-titles"]["fallback"], "headerName" => $lang["admin-titles"]["fallback"] ]; +} + +$invalid = false; + +if (isset($_COOKIE['_NEUTRON_ADMIN_TOKEN']) && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != ".." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "/") { + if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/tokens/" . $_COOKIE['_NEUTRON_ADMIN_TOKEN'])) { + + } else { + require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit(""); + } +} else { + require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit(""); +} + +if (isset($_POST['password'])) { + if (password_verify($_POST['password'], file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/password"))) { + require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit(""); + return; + } else { + $invalid = true; + } +} + +?> + +") ?> + + + + + + + + + /resources/css/fonts-import.css"> + /resources/css/alerts.css"> + + + + /resources/css/spotlight.css"> + /resources/css/admin.css"> + /resources/css/ui.css"> + /resources/css/codename.css"> + /resources/image/siteicon.png"> + + /resources/css/fonts-import.css" as="style"> + /resources/css/alerts.css" as="style"> + /resources/css/admin.css" as="style"> + /resources/css/ui.css" as="style"> + /cms-special/admin/$resources/common.css" as="style"> + /cms-special/admin/$resources/index.css" as="style"> + /cms-special/admin/$resources/responsive.css" as="style"> + /cms-special/admin/$resources/index-dark.css" as="style"> + + + + /cms-special/admin/$resources/admin.js" as="script"> + + + '); + } + + ?> + '); + } elseif (file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/theme") == "auto") { + echo(''); + } else { + echo(''); + } + ?> + /resources/lib/pushbar.js/library.css"> + + <?php + + if ($ready) { + echo("{$lang["admin-titles"]["suffix"]} — " . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/sitename")); + } else { + echo("{$lang["admin-titles"]["suffix"]} — Neutron"); + } + + ?> + location.href = '" . $GLOBALS["SYSTEM_ROOT"] . "/cms-special/setup';"); + } + ?> + 1024) { + if ($size > 1048576) { + if ($size > 1073741824) { + $sizestr = round($size / 1073741824, 2) . " " . $lang["sizes"]["gib"]; + } else { + $sizestr = round($size / 1048576, 2) . " " . $lang["sizes"]["mib"]; + } + } else { + $sizestr = round($size / 1024, 2) . " " . $lang["sizes"]["kib"]; + } + } else { + $sizestr = $size . " " . $lang["sizes"]["bytes"]; + } + $sizestr = str_replace(".", $lang["sizes"]["separator"], $sizestr); + + ?> + + + + +
+ " . $lang["admin-home"]["updates"][0] . " — " . $lang["admin-home"]["updates"][1] . "
"); + $updatable = true; + } else { + $updatable = false; + } + + ?> + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/$resources/responsive.css b/Neutron-trunk/cms-special/admin/$resources/responsive.css new file mode 100644 index 0000000..75810b1 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/$resources/responsive.css @@ -0,0 +1,31 @@ +@media (max-width: 500px) { + /* The following CSS will apply ONLY to smartphones or small screens */ + .error-desktop { + display: none; + } + .error-mobile { + display: initial; + } + div#home-grid { + display: grid; + grid-template-columns: 1fr !important; + } +} + +@media (max-width: 720px) { + /* The following CSS will apply ONLY to medium screens (less than 720p) */ + #home-grid { + display: grid; + grid-template-columns: 1fr 1fr !important; + } +} + +@media (min-width: 500px) { + /* The following CSS will NEVER apply to smartphones or small screens */ + .error-desktop { + display: initial; + } + .error-mobile { + display: none; + } +} \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/$resources/spotlight-test.php b/Neutron-trunk/cms-special/admin/$resources/spotlight-test.php new file mode 100644 index 0000000..bffaa87 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/$resources/spotlight-test.php @@ -0,0 +1,14 @@ + + + + + + + Spotlight search test + + + + + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/$resources/spotlight.php b/Neutron-trunk/cms-special/admin/$resources/spotlight.php new file mode 100644 index 0000000..f803f52 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/$resources/spotlight.php @@ -0,0 +1,24 @@ + + + + + +"> + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/.htaccess b/Neutron-trunk/cms-special/admin/.htaccess new file mode 100644 index 0000000..90f6271 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/.htaccess @@ -0,0 +1,4 @@ +ErrorDocument 404 "/cms-special/admin/error" +ErrorDocument 403 "/cms-special/admin/error" +ErrorDocument 401 "/cms-special/admin/error" +ErrorDocument 500 "/cms-special/admin/error" \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/about/index.php b/Neutron-trunk/cms-special/admin/about/index.php new file mode 100644 index 0000000..1551ff0 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/about/index.php @@ -0,0 +1,116 @@ + + "Mise à jour et sécurité", "headerName" => "Mise à jour et sécurité" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> + +

+ +

+
+ + +
+ (%) + (%) + (%) + +
+ + + diff --git a/Neutron-trunk/cms-special/admin/advanced/index.php b/Neutron-trunk/cms-special/admin/advanced/index.php new file mode 100644 index 0000000..ae80b96 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/advanced/index.php @@ -0,0 +1,8 @@ + + "Options avancées", "headerName" => "Options avancées" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/advanced/jsonconf/index.php b/Neutron-trunk/cms-special/admin/advanced/jsonconf/index.php new file mode 100644 index 0000000..f087b1c --- /dev/null +++ b/Neutron-trunk/cms-special/admin/advanced/jsonconf/index.php @@ -0,0 +1,59 @@ + + "Préférences de développement - Options avancées", "headerName" => "Préférences de développement" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +

/resources/image/message_warning.svg" class="message_img">

/data/webcontent/customSettings.json.

+
+ +
+
/resources/image/loader.svg" class="loader">
+ + + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/appearance/index.php b/Neutron-trunk/cms-special/admin/appearance/index.php new file mode 100644 index 0000000..22c5065 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/appearance/index.php @@ -0,0 +1,253 @@ + + "Apparence", "headerName" => "Apparence" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+
+ ">
+

+ +

/resources/image/config_file_replace.svg" onclick="Icon_UploadFile()" class="icon_button">

+ +

/resources/image/config_file_replace.svg" onclick="Banner_UploadFile()" class="icon_button">

+

+ onchange="toggleRender();"> +

+

" class="oldopts">>
+ + +
+ >

+
+ +
+
/resources/image/loader.svg" class="loader">
+

+
+ +
+

+
+
+

">

+

">

+

">

+ +
+
/resources/image/loader.svg" class="loader">
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/calendar/add/index.php b/Neutron-trunk/cms-special/admin/calendar/add/index.php new file mode 100644 index 0000000..1029788 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/calendar/add/index.php @@ -0,0 +1,140 @@ + + "Ajouter un événement - Calendrier", "headerName" => "Ajouter un événement" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+

+ +

+ +

/resources/image/message_info.svg" class="message_img">

+


+
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/calendar/index.php b/Neutron-trunk/cms-special/admin/calendar/index.php new file mode 100644 index 0000000..e596551 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/calendar/index.php @@ -0,0 +1,86 @@ + + "Calendrier", "headerName" => "Gestion des événements" ]; include_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> + + +

+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/calendar/manage/index.php b/Neutron-trunk/cms-special/admin/calendar/manage/index.php new file mode 100644 index 0000000..a6f4ebd --- /dev/null +++ b/Neutron-trunk/cms-special/admin/calendar/manage/index.php @@ -0,0 +1,78 @@ + + "Supprimer un événement - Calendrier", "headerName" => "Supprimer un événement" ]; include_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +location.href = '" . $GLOBALS['SYSTEM_ROOT'] . "/cms-special/admin/calendar';"); +} +if (isJson($eventsraw)) { + $events = json_decode($eventsraw); + foreach ($events->events as $element) { + if (isset($element->timestamp)) { + if ($element->timestamp == $_GET['id']) { + $event = $element; + } + } + } +} else { + require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit(""); +} +if (!isset($event)) { + require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit(""); +} +?> +

+ +

+ + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/customization/index.php b/Neutron-trunk/cms-special/admin/customization/index.php new file mode 100644 index 0000000..66aee2f --- /dev/null +++ b/Neutron-trunk/cms-special/admin/customization/index.php @@ -0,0 +1,214 @@ + + "Personnalisation", "headerName" => "Personnalisation" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> + + +

+
" onclick="document.getElementById('theme').value = 'auto';updateTheme();" style="width:256px;margin:10px;display:inline-block;"> +
+
/resources/image/demos/theme-auto.jpg');">
+
+

+

+
+
+
+
" onclick="document.getElementById('theme').value = 'dark';updateTheme();" style="width:256px;margin:10px;display:inline-block;"> +
+
/resources/image/demos/theme-dark.jpg');">
+
+

+

+
+
+
+
" onclick="document.getElementById('theme').value = 'light';updateTheme();" style="width:256px;margin:10px;display:inline-block;"> +
+
/resources/image/demos/theme-light.jpg');">
+
+

+

+
+
+
+ +

+
" onclick="document.getElementById('colors').value = 'blue';updateColors();" style="width:256px;margin:10px;display:inline-block;"> +
+
+ + + + + + + +
/resources/image/demos/color-blue.jpg');width: 73px;height: 73px;background-size: cover;margin-left: -10px;margin-top: -10px;margin-bottom: -10px;">

+
+
+
+
" onclick="document.getElementById('colors').value = 'green';updateColors();" style="width:256px;margin:10px;display:inline-block;"> +
+
+ + + + + + + +
/resources/image/demos/color-green.jpg');width: 73px;height: 73px;background-size: cover;margin-left: -10px;margin-top: -10px;margin-bottom: -10px;">

+
+
+
+
" onclick="document.getElementById('colors').value = 'red';updateColors();" style="width:256px;margin:10px;display:inline-block;"> +
+
+ + + + + + + +
/resources/image/demos/color-red.jpg');width: 73px;height: 73px;background-size: cover;margin-left: -10px;margin-top: -10px;margin-bottom: -10px;">

+
+
+
+
" onclick="document.getElementById('colors').value = 'orange';updateColors();" style="width:256px;margin:10px;display:inline-block;"> +
+
+ + + + + + + +
/resources/image/demos/color-orange.jpg');width: 73px;height: 73px;background-size: cover;margin-left: -10px;margin-top: -10px;margin-bottom: -10px;">

+
+
+
+
" onclick="document.getElementById('colors').value = 'purple';updateColors();" style="width:256px;margin:10px;display:inline-block;"> +
+
+ + + + + + + +
/resources/image/demos/color-purple.jpg');width: 73px;height: 73px;background-size: cover;margin-left: -10px;margin-top: -10px;margin-bottom: -10px;">

+
+
+
+
" onclick="document.getElementById('colors').value = 'brown';updateColors();" style="width:256px;margin:10px;display:inline-block;"> +
+
+ + + + + + + +
/resources/image/demos/color-brown.jpg');width: 73px;height: 73px;background-size: cover;margin-left: -10px;margin-top: -10px;margin-bottom: -10px;">

+
+
+
+
" onclick="document.getElementById('colors').value = 'white';updateColors();" style="width:256px;margin:10px;display:inline-block;"> +
+
+ + + + + + + +
/resources/image/demos/color-white.jpg');width: 73px;height: 73px;background-size: cover;margin-left: -10px;margin-top: -10px;margin-bottom: -10px;">

+
+
+
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/error/index.php b/Neutron-trunk/cms-special/admin/error/index.php new file mode 100644 index 0000000..c68c6a6 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/error/index.php @@ -0,0 +1,11 @@ + + "Erreur", "headerName" => "Erreur" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +

+

+

+ +

+ diff --git a/Neutron-trunk/cms-special/admin/flags/index.php b/Neutron-trunk/cms-special/admin/flags/index.php new file mode 100644 index 0000000..c243a49 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/flags/index.php @@ -0,0 +1,75 @@ + +
{$title}

{$description}

"); +} + +$pageConfig = [ "domName" => "Drapeaux", "headerName" => "Drapeaux" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +

/resources/image/message_info.svg" class="message_img">

+ + + + + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/galery/addcategory/index.php b/Neutron-trunk/cms-special/admin/galery/addcategory/index.php new file mode 100644 index 0000000..f2438e1 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/galery/addcategory/index.php @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/galery/index.php b/Neutron-trunk/cms-special/admin/galery/index.php new file mode 100644 index 0000000..82ad59c --- /dev/null +++ b/Neutron-trunk/cms-special/admin/galery/index.php @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/galery/publish/index.php b/Neutron-trunk/cms-special/admin/galery/publish/index.php new file mode 100644 index 0000000..ac5f616 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/galery/publish/index.php @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/gallery/addcategory/index.php b/Neutron-trunk/cms-special/admin/gallery/addcategory/index.php new file mode 100644 index 0000000..68451fc --- /dev/null +++ b/Neutron-trunk/cms-special/admin/gallery/addcategory/index.php @@ -0,0 +1,39 @@ + + "Nouvelle catégorie - Galerie de photos", "headerName" => "Nouvelle catégorie" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+ "> +

+

+
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/gallery/index.php b/Neutron-trunk/cms-special/admin/gallery/index.php new file mode 100644 index 0000000..7623820 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/gallery/index.php @@ -0,0 +1,218 @@ + + "Galerie de photos", "headerName" => "Galerie de photos" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> + +

+ +

+ + +

+ + + + diff --git a/Neutron-trunk/cms-special/admin/gallery/publish/index.php b/Neutron-trunk/cms-special/admin/gallery/publish/index.php new file mode 100644 index 0000000..e2768ac --- /dev/null +++ b/Neutron-trunk/cms-special/admin/gallery/publish/index.php @@ -0,0 +1,57 @@ + + "Nouvelle photo - Galerie de photos", "headerName" => "Nouvelle photo" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+

+

+

+
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/home/all/db.json b/Neutron-trunk/cms-special/admin/home/all/db.json new file mode 100644 index 0000000..8a6ad37 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/home/all/db.json @@ -0,0 +1,178 @@ +[ + { + "name": "pages", + "id": 0, + "icon": "insert_drive_file", + "items": [ + { + "name": "list", + "id": 0, + "icon": "list_alt", + "page": "pages" + }, + { + "name": "create", + "id": 1, + "icon": "add", + "page": "pages/add" + } + ] + }, + { + "name": "gallery", + "id": 1, + "icon": "photo", + "items": [ + { + "name": "list", + "id": 2, + "icon": "photo_library", + "page": "gallery" + }, + { + "name": "add", + "id": 3, + "icon": "add_photo_alternate", + "page": "gallery/publish" + }, + { + "name": "category", + "id": 4, + "icon": "local_offer", + "page": "gallery/addcategory" + }, + { + "name": "userspace", + "id": 5, + "icon": "image_search", + "page": "../gallery" + } + ] + }, + { + "name": "calendar", + "id": 2, + "icon": "event", + "items": [ + { + "name": "all", + "id": 6, + "icon": "event", + "page": "calendar" + }, + { + "name": "create", + "id": 7, + "icon": "event_available", + "page": "calendar/add" + }, + { + "name": "userspace", + "id": 8, + "icon": "event_note", + "page": "../calendar" + } + ] + }, + { + "name": "plugins", + "id": 3, + "icon": "extension", + "items": [ + { + "name": "all", + "id": 9, + "icon": "extension", + "page": "plugins" + } + ] + }, + { + "name": "technical", + "id": 4, + "icon": "build_circle", + "items": [ + { + "name": "all", + "id": 12, + "icon": "engineering", + "page": "advanced" + }, + { + "name": "advanced", + "id": 13, + "icon": "build_circle", + "page": "advanced/jsonconf" + } + ] + }, + { + "name": "data", + "id": 5, + "icon": "pie_chart", + "items": [ + { + "name": "reset", + "id": 15, + "icon": "delete", + "page": "reset" + }, + { + "name": "stats", + "id": 16, + "icon": "pie_chart", + "page": "stats" + }, + { + "name": "logs", + "id": 17, + "icon": "subject", + "page": "logs" + } + ] + }, + { + "name": "updates", + "id": 6, + "icon": "cloud_download", + "items": [ + { + "name": "info", + "id": 19, + "icon": "info", + "page": "about" + } + ] + }, + { + "name": "apparence", + "id": 7, + "icon": "brush", + "items": [ + { + "name": "general", + "id": 22, + "icon": "brush", + "page": "appearance" + }, + { + "name": "theme", + "id": 23, + "icon": "palette", + "page": "customization" + }, + { + "name": "language", + "id": 26, + "icon": "language", + "page": "language" + }, + { + "name": "flags", + "id": 27, + "icon": "flag", + "page": "flags" + } + ] + } +] diff --git a/Neutron-trunk/cms-special/admin/home/all/index.php b/Neutron-trunk/cms-special/admin/home/all/index.php new file mode 100644 index 0000000..f844070 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/home/all/index.php @@ -0,0 +1,4 @@ + + + "Tableau de bord", "headerName" => "Tableau de bord" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+ /cms-special/admin/home" class="mdc-button mdc-button--outlined"> +
+ + +
+ +

+ + +
+ \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/home/data/index.php b/Neutron-trunk/cms-special/admin/home/data/index.php new file mode 100644 index 0000000..29205dc --- /dev/null +++ b/Neutron-trunk/cms-special/admin/home/data/index.php @@ -0,0 +1,27 @@ + + "Tableau de bord", "headerName" => "Tableau de bord" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+ /cms-special/admin/home" class="mdc-button mdc-button--outlined"> +
+ + +
+ +

+ + +
+ \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/home/housekeeping/index.php b/Neutron-trunk/cms-special/admin/home/housekeeping/index.php new file mode 100644 index 0000000..8c0deae --- /dev/null +++ b/Neutron-trunk/cms-special/admin/home/housekeeping/index.php @@ -0,0 +1,27 @@ + + "Tableau de bord", "headerName" => "Tableau de bord" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+ /cms-special/admin/home" class="mdc-button mdc-button--outlined"> +
+ + +
+ +

+ + +
+ \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/home/index.php b/Neutron-trunk/cms-special/admin/home/index.php new file mode 100644 index 0000000..327ab36 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/home/index.php @@ -0,0 +1,58 @@ + + "Tableau de bord", "headerName" => "Tableau de bord" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+ /Switch Language" href="/cms-special/admin/language" class="material-icons-outlined mdc-top-app-bar__navigation-icon mdc-icon-button" id="language-selector">translate + +

+ + + +
+ + +
+ + +
+   + /cms-special/admin/logout" class="mdc-button mdc-button--outlined"> +
+ + +
+   + /?source=admin" target="_blank" class="mdc-button mdc-button--outlined"> +
+ + +
+
+ diff --git a/Neutron-trunk/cms-special/admin/housekeeping/index.php b/Neutron-trunk/cms-special/admin/housekeeping/index.php new file mode 100644 index 0000000..a5d0bbc --- /dev/null +++ b/Neutron-trunk/cms-special/admin/housekeeping/index.php @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/housekeeping/reset/index.php b/Neutron-trunk/cms-special/admin/housekeeping/reset/index.php new file mode 100644 index 0000000..35b36d1 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/housekeeping/reset/index.php @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/index.php b/Neutron-trunk/cms-special/admin/index.php new file mode 100644 index 0000000..8e388b6 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/index.php @@ -0,0 +1,135 @@ + + + + + + + + + Neutron + /resources/css/ajax.css"> + /resources/image/siteicon.png"> + + + + +
+ + + +
+ + + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/language/index.php b/Neutron-trunk/cms-special/admin/language/index.php new file mode 100644 index 0000000..4c16e04 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/language/index.php @@ -0,0 +1,57 @@ + + "Langue et région", "headerName" => "Langue et région" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+

+
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/login-old/index.php b/Neutron-trunk/cms-special/admin/login-old/index.php new file mode 100644 index 0000000..d4428d7 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/login-old/index.php @@ -0,0 +1,122 @@ + + 12,]), PASSWORD_BCRYPT, ['cost' => 12,])); + if (!file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/tokens")) { + mkdir($_SERVER['DOCUMENT_ROOT'] . "/data/tokens"); + } + $tokens = scandir($_SERVER['DOCUMENT_ROOT'] . "/data/tokens"); + foreach ($tokens as $atoken) { + if ($atoken == "." || $atoken == "..") {} else { + unlink($_SERVER['DOCUMENT_ROOT'] . "/data/tokens/" . $atoken); + } + } + file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/tokens/" . $token, ""); + header("Set-Cookie: _NEUTRON_ADMIN_TOKEN={$token}; Path=/; Http-Only; SameSite=Strict"); + header("Location: " . $callback); + return; + } else { + $invalid = true; + } + } +} + +if (isset($_COOKIE['_NEUTRON_ADMIN_TOKEN']) && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != ".." && $_COOKIE['_NEUTRON_ADMIN_TOKEN'] != "/") { + if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/tokens/" . $_COOKIE['_NEUTRON_ADMIN_TOKEN'])) { + if (isset($_GET['pr'])) { + if (isset($_GET['pa'])) { + $callback = $_GET['pr'] . $_GET['pa']; + } else { + $callback = $_GET['pr']; + } + } else { + $callback = "{$GLOBALS["SYSTEM_ROOT"]}/cms-special/admin/home"; + } + header("Location: " . $callback); + } +} + +?> + +") ?> + + + + + + + + + /resources/css/admin.css"> + /resources/css/fonts-import.css"> + /resources/css/ui.css"> + + <?php + + if ($ready) { + echo($lang["login"]["login"] . " - " . $lang["login"]["title"] . " - " . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/sitename")); + } else { + echo("Neutron"); + } + + ?> + location.href = '{$GLOBALS["SYSTEM_ROOT"]}/cms-special/setup';"); + } + ?> + + +
+ /resources/upload/siteicon.png" style="border-radius:100%;" class="intro-element"> +

+

", str_replace("{", "", $lang["login"]["redirect"])); ?>

+

' . $lang["login"]["uauth"] . '
' . $lang['login']['pass'] . ''); + } else { + echo('' . $lang["login"]["upass"] . '
' . $lang['login']['auth'] . '
'); + } + + ?>

+ ' . $lang["login"]["invalid"] . '
');} ?> + + +
+ ">

+ "> +

+ +
+ " disabled>

+ " . $lang["login"]["nokey"][1] . " " . $lang["login"]["nokey"][2] ?> +

+ + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/login/index.php b/Neutron-trunk/cms-special/admin/login/index.php new file mode 100644 index 0000000..57a1b6a --- /dev/null +++ b/Neutron-trunk/cms-special/admin/login/index.php @@ -0,0 +1,219 @@ + + + +") ?> + + + + + + + + + /resources/css/admin.css"> + /resources/css/fonts-import.css"> + /resources/css/ui.css"> + /resources/css/alerts.css"> + /resources/css/codename.css"> + /resources/css/ajax.css"> + + + + '); + ?> + <?php + + if ($ready) { + echo($lang["login"]["login"] . " - " . $lang["login"]["title"] . " - " . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/sitename")); + } else { + echo("Neutron"); + } + + ?> + location.href = '{$GLOBALS["SYSTEM_ROOT"]}/cms-special/setup';"); + } + ?> + + + + + + +
+
+
+
+ /resources/upload/siteicon.png" style="border-radius:100%;" class="intro-element"> +

+ +
+ + + + + + +
+ + +
+ +
+ + + + + +

+ + /';" class="sblink"> + +   + + +   + + + +

+
+
+
+
+ + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/logout/index.php b/Neutron-trunk/cms-special/admin/logout/index.php new file mode 100644 index 0000000..5c51269 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/logout/index.php @@ -0,0 +1,15 @@ + + + "Historique d'activité", "headerName" => "Historique d'activité" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+ "; + } + } else { + echo($lang["admin-logs"]["nothing"][0] . "

" . $lang["admin-logs"]["nothing"][1]); + } + + ?> +


+ \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/pages/add/index.php b/Neutron-trunk/cms-special/admin/pages/add/index.php new file mode 100644 index 0000000..54dacdb --- /dev/null +++ b/Neutron-trunk/cms-special/admin/pages/add/index.php @@ -0,0 +1,145 @@ + + "Nouvelle page - Pages", "headerName" => "Nouvelle page" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +

+

+
+ " spellcheck="false" autocomplete="off"> + +

+ + +
+
+
+

+

+
+
+
+
+
+
+

+

+
+
+
+
+

+
+
+
+ +
+
+
/resources/image/loader.svg" class="loader">
+ + + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/pages/delete/index.php b/Neutron-trunk/cms-special/admin/pages/delete/index.php new file mode 100644 index 0000000..4cbcb49 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/pages/delete/index.php @@ -0,0 +1,88 @@ + + + "Pages", "headerName" => "Pages" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +page = \"index\""); +} else { + $currentName = file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/" . $currentSlug . "/pagename"); + echo(""); +} + +?> +
+
+

+ {$lang["admin-pages"]["deletec"][2]}
"); + } + + ?> + + " onclick="location.href='/cms-special/admin/pages';" class="mdc-button mdc-button--raised"> +
+ +
+ " onclick="deletePage();" class="mdc-button mdc-button--outlined"> +
+ +
+
+ +
/resources/image/loader.svg" class="loader"> +
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/pages/edit/index.php b/Neutron-trunk/cms-special/admin/pages/edit/index.php new file mode 100644 index 0000000..b198566 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/pages/edit/index.php @@ -0,0 +1,194 @@ + + + "Pages", "headerName" => "Pages" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+ page = \"index\""); + } else { + $currentName = file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/" . $currentSlug . "/pagename"); + echo(""); + } + + $type = file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/pagetypes/" . $currentSlug); + if (isset($_GET['forcehtml'])) { + $type = "1"; + } + if ($type == "0") { + require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/VisualEditor.php"; + } + if ($type == "1"): + + ?> +

/resources/image/message_warning.svg" class="message_img">

+ +
+
/resources/image/loader.svg" class="loader">
+ + + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/pages/index.php b/Neutron-trunk/cms-special/admin/pages/index.php new file mode 100644 index 0000000..d8e1e3d --- /dev/null +++ b/Neutron-trunk/cms-special/admin/pages/index.php @@ -0,0 +1,66 @@ + + "Pages", "headerName" => "Gestionnaire de pages" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> + +
+ 1024) { + if ($size > 1048576) { + $sizestr = round($size / 1048576, 2) . " " . $lang["sizes"]["mib"]; + } else { + $sizestr = round($size / 1024, 2) . " " . $lang["sizes"]["kib"]; + } + } else { + $sizestr = $size . " " . $lang["sizes"]["bytes"]; + } + $sizetotal = $sizetotal + $size; + $sizestr = str_replace(".", ",", $sizestr); + if ($page == "index"): ?> + + + + + +
+

+ " href="/cms-special/admin/pages/add" class="mdc-button mdc-button--outlined"> +
+ + +
+

+ \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/pages/rename/index.php b/Neutron-trunk/cms-special/admin/pages/rename/index.php new file mode 100644 index 0000000..d7118ba --- /dev/null +++ b/Neutron-trunk/cms-special/admin/pages/rename/index.php @@ -0,0 +1,89 @@ + + + "Pages", "headerName" => "Pages" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +page = \"index\""); +} else { + $currentName = file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/" . $currentSlug . "/pagename"); + echo(""); +} + +?> +
+

+ {$lang["admin-pages"]["renamew"][2]}
"); + } + + ?> +
+ " spellcheck="false" disabled autocomplete="off" value=""> + +
+ " spellcheck="false" autocomplete="off" value=""> + +
+

+ " onclick="renamePage();" class="mdc-button mdc-button--raised"> +
+ + +
+

+ +
+
+ + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/plugins/index.php b/Neutron-trunk/cms-special/admin/plugins/index.php new file mode 100644 index 0000000..58be08f --- /dev/null +++ b/Neutron-trunk/cms-special/admin/plugins/index.php @@ -0,0 +1,79 @@ + + "Extensions", "headerName" => "Extensions" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +

/resources/image/message_info.svg" class="message_img">

+
list) === false) { + echo("disabled"); + } else { + echo("enabled"); + } + echo("\">
" . getName($config) . ""); + if (isset($config->config)) { + echo("config . "\" title=\"" . $lang["admin-plugins"]["config"] . "\" class=\"configure_ext\">"); + } + echo("

" . getDescription($config) . "

"); + echo(""); + } + } + + ?> + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/reset/index.php b/Neutron-trunk/cms-special/admin/reset/index.php new file mode 100644 index 0000000..efa215c --- /dev/null +++ b/Neutron-trunk/cms-special/admin/reset/index.php @@ -0,0 +1,118 @@ + + "Réinitialisation - Maintenance", "headerName" => "Réinitialisation" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +
+

+

">
+

+
+
+ +

/resources/image/message_warning.svg" class="message_img">

+
+ +

+
+
+ +

+
+
+ +
+
+

+
/resources/image/loader.svg" class="loader">
+


-

+
+ + + diff --git a/Neutron-trunk/cms-special/admin/resetted/index.php b/Neutron-trunk/cms-special/admin/resetted/index.php new file mode 100644 index 0000000..21fe104 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/resetted/index.php @@ -0,0 +1,21 @@ + +") ?> + + + + + + + + /resources/css/admin.css"> + /resources/css/fonts-import.css"> + /resources/css/ui.css"> + Neutron + + +
+ /resources/image/resetted.png" height="64px" width="64px"> +

/" class="button">OK

+
+ + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/stats/index.php b/Neutron-trunk/cms-special/admin/stats/index.php new file mode 100644 index 0000000..81b4b69 --- /dev/null +++ b/Neutron-trunk/cms-special/admin/stats/index.php @@ -0,0 +1,280 @@ + + "Statistiques", "headerName" => "Statistiques" ]; require_once $_SERVER['DOCUMENT_ROOT'] . "/cms-special/admin/\$resources/precontent.php"; ?> +" . $lang["admin-stats"]["new"] . "

" . $lang["admin-stats"]["notice"] . "

"); } ?> + 0) { + $cmonth = $cmonth + $count; + } + } + } + + if ($cmonth > 0) { + if ($cmonth > 1) { + if ($showYear) { + echo("{$lang["admin-stats"]["months"][$month - 1]} {$year}{$lang["admin-stats"]["separator"]} {$cmonth} {$lang["admin-stats"]["visits2"]}"); + } else { + echo("{$lang["admin-stats"]["months"][$month - 1]}{$lang["admin-stats"]["separator"]} {$cmonth} {$lang["admin-stats"]["visits2"]}"); + } + } else { + if ($showYear) { + echo("{$lang["admin-stats"]["months"][$month - 1]} {$year}{$lang["admin-stats"]["separator"]} {$cmonth} {$lang["admin-stats"]["visit1"]}"); + } else { + echo("{$lang["admin-stats"]["months"][$month - 1]}{$lang["admin-stats"]["separator"]} {$cmonth} {$lang["admin-stats"]["visit1"]}"); + } + } + } + } +} + +?> +

+ + + 0) { + $day = (int)trim($file); + if ($count > 1) { + echo(""); + } else { + echo(""); + } + } + } + } + } + + ?> + +
{$day} {$mtxt}{$lang["admin-stats"]["separator"]} {$count} {$lang["admin-stats"]["visits2"]}
{$day} {$mtxt}{$lang["admin-stats"]["separator"]} {$count} {$lang["admin-stats"]["visit1"]}
+ +

+ + + + +
+ +

+ + + + +
+ + +
+

+

+

+"); + } + } +} + +?> +
{$newdatestr}{$lang["admin-stats"]["separator"]}" . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/stats/" . $date) . " {$lang["admin-stats"]["visits"]}
+

+ + + "); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + ?> + +
{$lang["admin-stats"]["months"][0]}{$lang["admin-stats"]["separator"]}{$visits['01']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][1]}{$lang["admin-stats"]["separator"]}{$visits['02']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][2]}{$lang["admin-stats"]["separator"]}{$visits['03']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][3]}{$lang["admin-stats"]["separator"]}{$visits['04']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][4]}{$lang["admin-stats"]["separator"]}{$visits['05']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][5]}{$lang["admin-stats"]["separator"]}{$visits['06']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][6]}{$lang["admin-stats"]["separator"]}{$visits['07']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][7]}{$lang["admin-stats"]["separator"]}{$visits['08']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][8]}{$lang["admin-stats"]["separator"]}{$visits['09']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][9]}{$lang["admin-stats"]["separator"]}{$visits['10']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][10]}{$lang["admin-stats"]["separator"]}{$visits['11']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][11]}{$lang["admin-stats"]["separator"]}{$visits['12']} {$lang["admin-stats"]["visits"]}
+

+ + + "); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + echo(""); + ?> + +
{$lang["admin-stats"]["months"][0]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['01']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][1]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['02']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][2]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['03']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][3]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['04']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][4]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['05']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][5]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['06']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][6]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['07']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][7]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['08']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][8]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['09']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][9]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['10']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][10]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['11']} {$lang["admin-stats"]["visits"]}
{$lang["admin-stats"]["months"][11]} " . ((int)date("Y") - 1) . "{$lang["admin-stats"]["separator"]}{$visits['12']} {$lang["admin-stats"]["visits"]}
+ + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/admin/widgets/index.php b/Neutron-trunk/cms-special/admin/widgets/index.php new file mode 100644 index 0000000..ed6d9db --- /dev/null +++ b/Neutron-trunk/cms-special/admin/widgets/index.php @@ -0,0 +1,5 @@ + + +events as $event) { + if (isset($event->timestamp)) { + (int)$currentDate = date("Ymd"); + if ($currentDate < $event->timestamp || $currentDate == $event->timestamp) { + array_push($eventlist, $event->timestamp); + } else { + array_push($eventlistpassed, $event->timestamp); + } + } + } + sort($eventlist); + sort($eventlistpassed); + $pos = 1; + $shown = 0; + buffer("

" . $lang["calendar"]["futureh"] . "

"); + foreach ($eventlist as $event) { + if (1 == 2) {} else { + foreach ($json->events as $el) { + if (isset($el->timestamp)) { + if ($el->timestamp == $event) { + (int)$currentDate = date("Ymd"); + if ($currentDate < $el->timestamp) { + $shown = $shown + 1; + buffer("

" . $el->datestr . "

"); + $pos = $pos + 1; + } + if ($currentDate == $el->timestamp) { + $shown = $shown + 1; + buffer("

" . $lang["calendar"]["today"] . "

"); + $pos = $pos + 1; + } + if ($currentDate > $el->timestamp) { + $shown = $shown + 1; + buffer("

" . $lang["calendar"]["pasth"] . " (" . $el->datestr . ")

"); + $pos = $pos + 1; + } + } + } + } + } + } + if ($shown == "0") { + buffer("
" . $lang["calendar"]["future"] . "
"); + } + buffer("

" . $lang["calendar"]["pasth"] . "

"); + $pos = 1; + $shown = 0; + foreach ($eventlistpassed as $event) { + if (1 == 2) {} else { + foreach ($json->events as $el) { + if (isset($el->timestamp)) { + if ($el->timestamp == $event) { + (int)$currentDate = date("Ymd"); + if ($currentDate < $el->timestamp) { + $shown = $shown + 1; + buffer("

" . $el->datestr . "

"); + $pos = $pos + 1; + } + if ($currentDate == $el->timestamp) { + $shown = $shown + 1; + buffer("

" . $lang["calendar"]["today"] . "

"); + $pos = $pos + 1; + } + if ($currentDate > $el->timestamp) { + $shown = $shown + 1; + buffer("

" . $el->datestr . "

"); + $pos = $pos + 1; + } + } + } + } + } + } + if ($shown == "0") { + buffer("
" . $lang["calendar"]["past"] . "
"); + } + } else { + buffer("" . $lang["calendar"]["corrupted"] . ""); + } + +renderSpecial($buffer, $lang["calendar"]["title"]); + +?> \ No newline at end of file diff --git a/Neutron-trunk/cms-special/error/index.php b/Neutron-trunk/cms-special/error/index.php new file mode 100644 index 0000000..3983bc7 --- /dev/null +++ b/Neutron-trunk/cms-special/error/index.php @@ -0,0 +1,71 @@ + +") ?> + + + + + + + + + + + + <?php + + if ($ready) { + echo(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/sitename")); + } else { + echo("Neutron"); + } + + ?> + + + +
+

+

+

+

+ +
+ + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/galery/index.php b/Neutron-trunk/cms-special/galery/index.php new file mode 100644 index 0000000..5a50af5 --- /dev/null +++ b/Neutron-trunk/cms-special/galery/index.php @@ -0,0 +1,5 @@ + + + + 2) { + $categories = scandir($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/galery/categories"); + array_push($categories, "unclassed"); + foreach ($categories as $category) { + if ($category != "." && $category != "..") { + $shown = false; + if ($category == "unclassed") { + buffer("

" . $lang["gallery"]["unclassed"] . "

"); + } else { + buffer("

" . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/galery/categories/" . $category) . "

"); + } + buffer("
"); + $photos = scandir($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/galery/pictures"); + foreach ($photos as $photo) { + if ($photo == "." || $photo == "..") {} else { + $praw = file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/galery/pictures/" . $photo); + $pcat = explode("|", $praw)[1]; + $ppath = explode("|", $praw)[0]; + if ($pcat == $category) { + $shown = true; + if (file_exists($_SERVER['DOCUMENT_ROOT'] . $ppath)) { + buffer("
"); + buffer(""); + if (isset(explode("|", $praw)[2])) { + buffer("
" . explode("|", $praw)[2] . "
"); + } + buffer("
"); + } else { + buffer("
"); + buffer('

' . $lang["gallery"]["error"] . '

'); + buffer("
"); + } + } + } + } + if (!$shown) { + buffer("

" . $lang["gallery"]["nothing"] . "

"); + } + buffer("
"); + } + } +} else { + buffer("
" . $lang["gallery"]["disabled"][0] . "" . $lang["gallery"]["disabled"][1] . "" . $lang["gallery"]["disabled"][2] . "
"); +} +buffer(""); + +renderSpecial($buffer, $lang["gallery"]["title"]); + +?> \ No newline at end of file diff --git a/Neutron-trunk/cms-special/gallery/preview/index.php b/Neutron-trunk/cms-special/gallery/preview/index.php new file mode 100644 index 0000000..e033cc0 --- /dev/null +++ b/Neutron-trunk/cms-special/gallery/preview/index.php @@ -0,0 +1,129 @@ + + + + + + + + + + + <?= $lang["gallery"]["preview"]['title'] ?> + + + +
+ + +
+ "> + " download> () + + + + + + + \ No newline at end of file diff --git a/Neutron-trunk/cms-special/setup/index.php b/Neutron-trunk/cms-special/setup/index.php new file mode 100644 index 0000000..d17d5a6 --- /dev/null +++ b/Neutron-trunk/cms-special/setup/index.php @@ -0,0 +1,156 @@ + +") ?> + + + + +"> + + + + + /resources/css/setup.css"> + /resources/css/fonts-import.css"> + /resources/css/ui.css"> + <?php + + if ($ready) { + if (!isset($lang)) { + echo(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/sitename")); + } else { + echo($lang["setup"]["ititle"] . " - " . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/sitename")); + } + } else { + if (!isset($lang)) { + echo("Neutron"); + } else { + echo($lang["setup"]["ititle"] . " - Neutron"); + } + } + + ?> + + + location.href = '" . $GLOBALS['SYSTEM_ROOT'] . "/index.php';"); + } + + ?> + + window.onbeforeunload = function (e) { + e = e || window.event; + + // For IE and Firefox prior to version 4 + if (e) { + e.returnValue = ""; + } + + // For Safari + return ""; + }; + ' ?> + +
+

+

+ /resources/image/config_restart.svg" onclick="reloadPage()" class="icon_button">
+
+
" id="00-language"> +

Neutron

+

+ +

+ +
+
" id="01-loader"> +

+ /resources/image/storeloader.svg" class="loader"> +
+
+

+ /resources/image/storeloader.svg" class="loader"> +
+
+

+

+

+

+ /resources/image/config_next.svg" onclick="document.title = ' - Neutron';switchPage('03-welcome', '04-name');" class="icon_button">
+
+
+

+

+

+

+ /resources/image/config_next.svg" onclick="Name_ChangeIfOk()" class="icon_button">
+
+
+

+

+

+ /resources/image/config_file_import.svg" onclick="Icon_UploadFile()" class="icon_button">


+ /resources/image/config_next.svg" onclick="document.title = ' - Neutron';switchPage('05-icon', '06-terms');" class="icon_button">
+
+
+

+

+

+ /resources/image/config_next.svg" onclick="document.title = ' - Neutron';switchPage('06-terms', '07-finish');" class="icon_button">
+
+
+

+

+

+ /resources/image/config_finish.svg" onclick="upload()" class="icon_button">
+
+
+

+ /resources/image/storeloader.svg" class="finisher loadblink">


+
+
+

+ /resources/image/storeloader.svg" class="finisher loadblink">


+
+
+

+ /resources/image/storeloader.svg" class="finisher loadblink">


+
+
+

+ /resources/image/storeloader.svg" class="finisher loadblink">


+
+
+

+

+

MPCMS-usr-motdepasse

+ /resources/image/config_explore.svg" onclick="location.href = '/'" class="icon_button">
+
+ ' ?> + + diff --git a/Neutron-trunk/cms-special/version/index.php b/Neutron-trunk/cms-special/version/index.php new file mode 100644 index 0000000..840de2d --- /dev/null +++ b/Neutron-trunk/cms-special/version/index.php @@ -0,0 +1,36 @@ + +" . $lang["version"]["workswith"] . "Neutron " . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/version") . " \"" . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/codename") . "\" ("); +if (isset($__electrode) && isset($__electrode_version) && isset($__electrode_node_version)) { + buffer("Electrode " . $__electrode_version . ", NodeJS " . $__electrode_node_version . ", "); +} +if (file_exists($GLOBALS["ORIGINAL_DOCUMENT_ROOT"] . "/NeutronCloud") && is_file($GLOBALS["ORIGINAL_DOCUMENT_ROOT"] . "/NeutronCloud")) { + if (isset($__electrode) && isset($__electrode_version) && isset($__electrode_node_version)) { + buffer("Electrode " . $__electrode_version . ", NodeJS " . $__electrode_node_version . ", Neutron Cloud)"); + } else { + buffer("Neutron Cloud)"); + } +} else { + buffer("PHP " . PHP_VERSION . ", " . php_uname('s') . " " . php_uname('m') . " " . php_uname('r') . ")"); +} +buffer($lang["version"]["renderer"][0] . "" . $_RENDERER . $lang["version"]["renderer"][1] . $_VERSION . "" . $lang["version"]["providedby"] . "Minteck" . $lang["version"]["description"] . "

"); +buffer("

" . $lang["version"]["freesoftware"][0] . "" . $lang["version"]["freesoftware"][1] . "" . $lang["version"]["freesoftware"][2] . "" . $lang["version"]["freesoftware"][3] . "" . $lang["version"]["freesoftware"][4] . "

"); +buffer("

" . $lang["version"]["warranty"][0] . "" . $lang["version"]["warranty"][1] . "" . $lang["version"]["warranty"][2] . "

"); + +buffer("

" . $lang["version"]["resources"] . "

"); +buffer("