summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* Throw an error when changes can't be committed to the ↵sqlite-fixesGravatar Tom Willemse2024-06-116-11/+86
| | | | | | | | database I was testing and another process had the database open, so it couldn't commit changes. This wasn't apparent from the UI because it would just silently assume a commit went fine.
* Use ‘exec’ instead of ‘query’ for transaction ↵Gravatar Tom Willemse2024-06-111-3/+3
| | | | | | | | commands in sqlite The ‘query’ method will try and return a ‘SQLite3Result’ object, which will be meaningless because it won't contain any fetched data. The ‘exec’ method instead returns a boolean indicating the success or failure of the query.
* Throw an error if a bookmark can't be committed to the ↵Gravatar Tom Willemse2024-06-111-1/+9
| | | | database
* Fix using SQLite as a database engineGravatar Tom Willemse2024-06-1017-61/+196
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The ‘sqlite_*’ functions don't exist anymore in PHP 8. They have been replaced with several ‘SQLite3*’ classes. - There are some differences between MySQL and SQLite queries that showed up while doing this work. These differences have been pushed into a QueryBuilder class so that the other database engines don't have to be modified. This is done in an ad-hoc basis for now, just to get things working. - SQLite doesn't support the ‘!’ negation operator used as ‘!ISNULL(...)’, instead I use ‘IIF(...)’. - SQLite doesn't support a ‘LEFT(...)’ function, instead I use ‘SUBSTRING(..., 0, ...)’. - The SQLite3 module doesn't provide a connection identifier, instead you use an object that represents the connection. - SQLite doesn't support the ‘ALL’ keyword (or at least doesn't support it in the same way MySQL does). Instead of ‘<> ALL <subquery>’ I use ‘NOT IN <subquery>’. - The ‘SQLite3*’ classes don't provide any way to determine how many rows have been returned without iterating through all of them, so any place that tries to figure out the rows beforehand just doesn't anymore. - All the database engine classes require a ‘QueryBuilder’ instance. The sqlite one uses a specialized one. I can't test most of these database engines, so I'm focusing on SQLite and MySQL/MariaDB for now.
* Fix initial database import for sqliteGravatar Tom Willemse2024-06-101-11/+15
| | | | | My understanding of the ‘KEY’ keyword in the ‘tables.sql’ was incomplete. I didn't realize that it made indexes.
* Make sure to check users for being falseGravatar Tom Willemse2024-06-1016-32/+85
|
* Revert "Fix issue accessing an array index on a boolean"Gravatar Tom Willemse2024-06-101-18/+2
| | | | This reverts commit e1bfad3df7b41cbc8537222f211edaf9b3444edf.
* Add initial sqlite tables fileGravatar Tom Willemse2024-06-101-0/+203
|
* Clean up configuration file findingGravatar Tom Willemse2024-06-051-17/+14
| | | | Don't make finding the default files dependent on finding regular files.
* Gracefully handle being unable to find any config filesGravatar Tom Willemse2024-06-051-8/+12
|
* Merge branch 'noreferrer-noopener-newwindow' into oniGravatar Tom Willemse2024-04-212-2/+29
|\
| * feat: Add option to make all links open in a new windownoreferrer-noopener-newwindowGravatar Tom Willemse2024-04-212-0/+6
| |
| * feat: Add options to include noreferrer and noopener in ↵Gravatar Tom Willemse2024-04-212-2/+23
| | | | | | | | | | | | | | | | | | | | links - ‘noreferrer’ prevents the Referer header from being sent to the server the link points at when the link is clicked on. - ‘noopener’ prevents the ‘window.opener’ property from being set when the link is clicked on.
* | Merge branch 'debug-fixes' into oniGravatar Tom Willemse2024-04-214-15/+8
|\ \
| * | fix(debug): Don't serve application/xhtml+xml in debug modedebug-fixesGravatar Tom Willemse2024-04-191-9/+1
| | | | | | | | | | | | | | | | | | | | | There are quite a few big differences between running HTML and XHTML that are more than just validation errors. Running a different parser in debug mode seems unhelpful, and the goal probably won't be to generate XHTML always anyway anymore.
| * | fix(scuttlizr): No named entity for non-breaking space ↵Gravatar Tom Willemse2024-04-192-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | in XHTML While running in Debug mode XHTML is rendered instead of HTML, and XHTML doesn't have a named entity for non-breaking space (‘&nbsp;’ in HTML), so the numeric one must be used instead.
| * | fix(scuttlizr): Unclosed divGravatar Tom Willemse2024-04-191-0/+1
| |/ | | | | | | This ‘div’ is opened on line 461.
* | Fix issue with urls ending in ‘/’ getting normalized ↵Gravatar Tom Willemse2024-02-291-1/+1
| | | | | | | | | | | | | | wrong Normalizing them this way ruins the url by cutting off a character too many and making the url invalid.
* | Fix issue about ‘bVotes’ and ‘bVoting’ not ↵fix-for-php-8Gravatar Tom Willemse2024-02-291-1/+3
| | | | | | | | having default values
* | Fix issue where constructors aren't calledGravatar Tom Willemse2024-02-292-4/+4
| | | | | | | | | | | | | | The documentation says that defining a constructor as a function with the same name as the class is deprecated as of PHP 8, but should still work. However it seems that this isn't true. Running on my machine these constructors didn't get called. Renaming them to ‘__construct’ fixed that.
* | Fix issue accessing an array index on a booleanGravatar Tom Willemse2024-02-291-2/+18
| |
* | Fix error: Using ${var} in strings is deprecatedGravatar Tom Willemse2024-02-291-6/+6
|/
* Update README.mdmasterGravatar buckaroo-labs2023-12-211-1/+1
|
* Update README.mdGravatar buckaroo-labs2023-12-211-1/+1
|
* Update README.mdGravatar buckaroo-labs2023-12-211-1/+1
|
* Update README.mdGravatar buckaroo-labs2023-12-211-1/+1
|
* Update README.mdGravatar buckaroo-labs2023-12-211-1/+1
| | | fix typo
* Update README.mdGravatar buckaroo-labs2023-12-211-1/+1
|
* Update README.mdGravatar buckaroo-labs2023-12-211-1/+1
|
* Update README.mdGravatar buckaroo-labs2023-12-211-1/+1
|
* Update README.mdGravatar buckaroo-labs2023-12-211-1/+6
| | | Yikes, This code does not look secure,
* Update about.tpl.phpGravatar buckaroo-labs2023-12-201-1/+1
| | | update repo name
* Update README.mdGravatar buckaroo-labs2023-12-201-0/+4
|
* Add files via uploadGravatar buckaroo-labs2023-12-202-0/+0
|
* Update README.mdGravatar buckaroo-labs2023-12-201-1/+1
|
* Merge branch 'master' of ↵Gravatar buckaroo-labs2023-12-202-3/+3
|\ | | | | | | https://github.com/buckaroo-labs/semantic-scuttle
| * Update toolbar.inc.phpGravatar buckaroo-labs2023-12-201-2/+2
| | | | | | Rename toolbar items
| * Update about.tpl.phpGravatar buckaroo-labs2023-12-201-1/+1
| | | | | | update app repo link
* | Create icon.pngGravatar buckaroo-labs2023-12-201-0/+0
|/
* Merge branch 'master' of ↵Gravatar buckaroo-labs2023-12-204-12/+17
|\ | | | | | | https://github.com/buckaroo-labs/semantic-scuttle
| * Update bookmarks.tpl.phpGravatar buckaroo-labs2023-12-201-1/+1
| | | | | | change &times; to &#42;
| * Update top.inc.phpGravatar buckaroo-labs2023-12-201-9/+9
| |
| * Update bottom.inc.phpGravatar buckaroo-labs2023-12-201-1/+3
| | | | | | avoid warning
| * Update bookmarks-thumbnail.inc.tpl.phpGravatar buckaroo-labs2023-12-201-1/+4
| | | | | | avoid warning
* | add 'minimal' themeGravatar buckaroo-labs2023-12-2085-0/+17785
|/
* bundle sscuttlizr themeGravatar buckaroo-labs2023-12-2083-0/+17787
|
* Update User.php for PHP 8Gravatar buckaroo-labs2023-12-201-0/+3
|
* Update User.php for PHP 8Gravatar buckaroo-labs2023-12-201-0/+2
|
* Update functions.phpGravatar buckaroo-labs2023-12-201-1/+1
|
* Update functions.phpGravatar buckaroo-labs2023-12-201-1/+1
|