diff --git a/CHANGELOG b/CHANGELOG index 28ba9c0..ed31190 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,6 @@ CHANGELOG OpenLog Online Logbook - Copyright (C) 2025 Rod Wright + Copyright (C) 2026 Rod Wright SPDX-License-Identifier: GPL-2.0 @@ -240,7 +240,3 @@ treating the $today variable as global. - In install.php, if a previous installation was found, make upgrade the default choice. - -5.2.5 - 2026-02-10 - This is just a version number bump to get on a major-minor-patch - scheme. There are no code changes for this release. diff --git a/INSTALL b/INSTALL index c7ced63..68e2883 100644 --- a/INSTALL +++ b/INSTALL @@ -1,6 +1,6 @@ INSTALL OpenLog Online Logbook - Copyright (C) 2025 Rod Wright + Copyright (C) 2026 Rod Wright SPDX-License-Identifier: GPL-2.0 diff --git a/VERSION.txt b/VERSION.txt index 462faf7..03f488b 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -5.2.5 +5.3.0 diff --git a/database-initial.sql b/database-initial.sql index 951c5cf..c1b89c9 100644 --- a/database-initial.sql +++ b/database-initial.sql @@ -69,7 +69,7 @@ CREATE TABLE `configs` ( LOCK TABLES `configs` WRITE; /*!40000 ALTER TABLE `configs` DISABLE KEYS */; INSERT INTO `configs` VALUES -(1,'ol_version','5.2.5'), +(1,'ol_version','5.2.4'), (2,'log_name','OpenLog'), (3,'banner','1'), (4,'background_color','#003333'), @@ -232,6 +232,32 @@ LOCK TABLES `flags` WRITE; /*!40000 ALTER TABLE `flags` ENABLE KEYS */; UNLOCK TABLES; +-- +-- Table structure for table `flagmap` +-- + +DROP TABLE IF EXISTS `flagmap`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `flagmap` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `flagid` int(11) NOT NULL, + `lognoteid` int(11) DEFAULT NULL, + `maintformid` int(11) DEFAULT NULL, + `notetemplateid` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `flagmap` +-- + +LOCK TABLES `flagmap` WRITE; +/*!40000 ALTER TABLE `flagmap` DISABLE KEYS */; +/*!40000 ALTER TABLE `flagmap` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `links` -- @@ -273,7 +299,6 @@ CREATE TABLE `lognotes` ( `tech` int(11) NOT NULL, `subject` int(11) NOT NULL, `lognote` text DEFAULT NULL, - `refs` tinytext DEFAULT NULL, PRIMARY KEY (`lognoteid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; @@ -287,6 +312,31 @@ LOCK TABLES `lognotes` WRITE; /*!40000 ALTER TABLE `lognotes` ENABLE KEYS */; UNLOCK TABLES; +-- +-- Table structure for table `reflinks` +-- + +DROP TABLE IF EXISTS `reflinks`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `reflinks` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `noteid` int(11) DEFAULT NULL, + `templateid` int(11) DEFAULT NULL, + `target` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `reflinks` +-- + +LOCK TABLES `reflinks` WRITE; +/*!40000 ALTER TABLE `reflinks` DISABLE KEYS */; +/*!40000 ALTER TABLE `reflinks` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `logpartactions` -- diff --git a/database-update.sh b/database-update.sh index cc37f86..f166b4c 100755 --- a/database-update.sh +++ b/database-update.sh @@ -37,3 +37,7 @@ margs="--defaults-extra-file=$mysql_opt_file" # ---------- version 5.2.5 ------------ # Nothing to do # ------------------------------------- + +# ---------- version 5.3.0 ------------ +# Nothing to do +# ------------------------------------- diff --git a/database-update.sql b/database-update.sql index 20326fb..ef76257 100644 --- a/database-update.sql +++ b/database-update.sql @@ -55,3 +55,8 @@ UPDATE configs SET confvalue="5.2.4.4" WHERE confname="ol_version"; -- Update version number UPDATE configs SET confvalue="5.2.5" WHERE confname="ol_version"; -- -------------------------------------- + +-- ---------- version 5.3.0 ------------- +-- Update version number +UPDATE configs SET confvalue="5.3.0" WHERE confname="ol_version"; +-- -------------------------------------- diff --git a/db.php.template b/db.php.template index 084f062..81521ef 100644 --- a/db.php.template +++ b/db.php.template @@ -3,7 +3,7 @@ /* db.php OpenLog Online Logbook - Copyright (C) 2025 Rod Wright + Copyright (C) 2026 Rod Wright SPDX-License-Identifier: GPL-2.0 */ diff --git a/distfiles/CHANGELOG b/distfiles/CHANGELOG index dbadc6b..a1ebe30 100644 --- a/distfiles/CHANGELOG +++ b/distfiles/CHANGELOG @@ -1,6 +1,6 @@ CHANGELOG OpenLog Online Logbook - Copyright (C) 2025 Rod Wright + Copyright (C) 2026 Rod Wright SPDX-License-Identifier: GPL-2.0 @@ -240,8 +240,3 @@ treating the $today variable as global. - In install.php, if a previous installation was found, make upgrade the default choice. - -5.2.5 - 2026-02-10 - This is just a version number bump to get on a major-minor-patch - scheme. There are no code changes for this release. - diff --git a/distfiles/INSTALL b/distfiles/INSTALL index c7ced63..68e2883 100644 --- a/distfiles/INSTALL +++ b/distfiles/INSTALL @@ -1,6 +1,6 @@ INSTALL OpenLog Online Logbook - Copyright (C) 2025 Rod Wright + Copyright (C) 2026 Rod Wright SPDX-License-Identifier: GPL-2.0 diff --git a/distfiles/about.php b/distfiles/about.php index af3b950..ccdb1d7 100644 --- a/distfiles/about.php +++ b/distfiles/about.php @@ -2,7 +2,7 @@ /* about.php OpenLog Online Logbook - Copyright (C) 2025 Rod Wright + Copyright (C) 2026 Rod Wright SPDX-License-Identifier: GPL-2.0 */ diff --git a/distfiles/admin.php b/distfiles/admin.php index daa09a2..25c8747 100644 --- a/distfiles/admin.php +++ b/distfiles/admin.php @@ -2,7 +2,7 @@ /* admin.php OpenLog Online Logbook - Copyright (C) 2025 Rod Wright + Copyright (C) 2026 Rod Wright SPDX-License-Identifier: GPL-2.0 */ diff --git a/distfiles/functions.php b/distfiles/functions.php index baafb08..24f2f7d 100644 --- a/distfiles/functions.php +++ b/distfiles/functions.php @@ -2,7 +2,7 @@ /* functions.php OpenLog Online Logbook - Copyright (C) 2025 Rod Wright + Copyright (C) 2026 Rod Wright SPDX-License-Identifier: GPL-2.0 */ @@ -181,17 +181,28 @@ function framework($option,$htmltitle,$pagetitle,$print) { } }).datepicker(\"setDate\", defdate); - function insertUrlAtCaret(outputAreaId, inputAreaId) { - var rawlinktext=document.getElementById(inputAreaId).value; - var url='' + rawlinktext + ''; + function insertUrlAtCaret(outputAreaId, inputTextAreaId, inputUrlAreaId) { + var linktext=document.getElementById(inputTextAreaId).value; + var rawurltext=document.getElementById(inputUrlAreaId).value; + if (rawurltext=='') return; + var lastslashindex=rawurltext.lastIndexOf('/'); + if (lastslashindex==rawurltext.length-1) { + rawurltext=rawurltext.slice(0, -1); + } + if (linktext=='' && rawurltext!= '') { + lastslashindex=rawurltext.lastIndexOf('/'); + var lastpartofurl=rawurltext.substring(lastslashindex+1); + linktext=lastpartofurl; + } + var link='' + linktext + ''; var txtarea = document.getElementById(outputAreaId); var scrollPos = txtarea.scrollTop; var caretPos = txtarea.selectionStart; var front = (txtarea.value).substring(0, caretPos); var back = (txtarea.value).substring(txtarea.selectionEnd, txtarea.value.length); - txtarea.value = front + url + back; - caretPos = caretPos + url.length; + txtarea.value = front + link + back; + caretPos = caretPos + link.length; txtarea.selectionStart = caretPos; txtarea.selectionEnd = caretPos; txtarea.focus(); @@ -311,6 +322,7 @@ function sidemenu($noprint=false) {
| Administration |
| My Profile |
| Manage Templates |