From fe7a37b60c002995304597aca0d45cc83969333e Mon Sep 17 00:00:00 2001 From: Tiago Date: Sat, 12 Oct 2024 23:28:26 -0300 Subject: [PATCH 01/10] v2.5 --- core/core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index 08c23f1..a1c13eb 100644 --- a/core/core.php +++ b/core/core.php @@ -1,6 +1,6 @@ Date: Sat, 12 Oct 2024 23:30:56 -0300 Subject: [PATCH 02/10] =?UTF-8?q?Suporte=20para=20edi=C3=A7=C3=A3o=20dos?= =?UTF-8?q?=20bot=C3=B5es=20e=20textos=20adicionais?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classes/AccessCheck.php | 4 +- classes/Style.php | 39 ++-------- classes/Toolbar.php | 47 ++++++++++++ core/classes.php | 1 + core/create.php | 9 ++- core/set.php | 17 ++++- core/template.html | 7 ++ index.php | 112 ++++++++--------------------- media/blank.svg | 8 +++ media/default.css | 29 ++++++-- media/edit.svg | 9 +++ media/fullscreen.png | Bin 5912 -> 0 bytes media/fullscreen.svg | 43 +++++++++++ media/loading.gif | Bin 40957 -> 0 bytes media/minimal.css | 30 ++++++-- media/pause.svg | 36 +++------- media/qrcode.png | Bin 6482 -> 0 bytes media/qrcode.svg | 15 ++++ media/save.svg | 11 +++ scripts/classes.js | 31 ++++++-- scripts/default.js | 95 +++++++++++++++++++++++- scripts/nicEdit/nicEdit.js | 43 +++++++++++ scripts/nicEdit/nicEditorIcons.gif | Bin 0 -> 1401 bytes 23 files changed, 421 insertions(+), 165 deletions(-) create mode 100644 classes/Toolbar.php create mode 100644 core/template.html create mode 100644 media/blank.svg create mode 100644 media/edit.svg delete mode 100644 media/fullscreen.png create mode 100644 media/fullscreen.svg delete mode 100644 media/loading.gif delete mode 100644 media/qrcode.png create mode 100644 media/qrcode.svg create mode 100644 media/save.svg create mode 100644 scripts/nicEdit/nicEdit.js create mode 100644 scripts/nicEdit/nicEditorIcons.gif diff --git a/classes/AccessCheck.php b/classes/AccessCheck.php index 487d726..fdb0262 100644 --- a/classes/AccessCheck.php +++ b/classes/AccessCheck.php @@ -7,7 +7,9 @@ public static function hasQRCode(){ public static function isSystemMessageActive(){ return FALSE; } - + public static function inListMode(){ + return isset($_GET['l']); + } public static function isValidPage() { return Database::isValidDatabase(); } diff --git a/classes/Style.php b/classes/Style.php index 7e55eb6..7459125 100644 --- a/classes/Style.php +++ b/classes/Style.php @@ -10,45 +10,18 @@ public static function getCurrentPathStyle(){ } public static function getStyleURL($style, $admin=FALSE){ - $url = "?i=" . $_GET['i'] . "&s=" . $style; + $url = "?i=" . $_GET['i']; + if ($style){ + $url .= "&s=" . $style; + } if ($admin){ $url .= "&g=" . $_GET['g']; } return $url; } - public static function HTMLMenu(){ - echo '
'; - Style::HTMLMenuItems('media/custom', FALSE); - if (AccessCheck::isValidAdminPage()){ - echo '
'; - Style::HTMLMenuItems('media/custom-admin', TRUE); - } - } - public static function HTMLMenuItems($path, $admin=FALSE){ - global $HIDE_STYLES; - $files = array_diff(scandir($path), array('..', '.')); - foreach ($files as $file){ - if (in_array($file, $HIDE_STYLES)){ - // - } else { - if (file_exists("$path/$file/$file.png")){ - $style_in_line = "background-image: url($path/$file/$file.png);"; - } else if (file_exists("$path/$file/$file.svg")){ - $style_in_line = "background-image: url($path/$file/$file.svg);"; - } else { - $style_in_line = ''; - } - ?> - -
- -
- '; + Toolbar::HTMLLinkAnchor(Style::getStyleURL('',TRUE),'','',''); + Toolbar::HTMLMenuItems('media/custom-admin', TRUE); + } + echo '
'; + Toolbar::HTMLMenuItems('media/custom', FALSE); + } + + public static function HTMLLinkAnchor($url, $title, $class, $style_in_line){ + ?> + +
+ + + +
+ + ','

','
','

', + '','', + '','', + '','', + '