dfca17d1cf
more of the same - this time in page / tag lists
2020-08-31 21:02:49 +01:00
9fad95035b
Fix inbody:searchterm advanced query syntax - fixes #210 (thanks to @SeanFromIT for the report)
2020-08-19 16:59:54 +01:00
9b109face2
Merge pull request #206 from SeanFromIT/master
...
adding WikiProject Paranormal
2020-08-19 14:43:05 +01:00
b30d70927b
parser-parsedown: bump version
2020-08-18 13:52:44 +01:00
c2e4a04778
Fix #209
2020-08-18 13:49:16 +01:00
Sean Feeney
c598dfbf6d
phrasing fix
2020-08-14 18:55:27 -07:00
8a05d79724
similar pages: tweak text
2020-08-11 18:13:47 +01:00
b1381552f0
feature-readingtime: improve algorithm by stripping markdown syntax
2020-08-11 15:46:34 +01:00
89d835afa5
Don't redirect when clicking on a redirect page in the recent changes list
2020-08-11 01:02:17 +01:00
93bff09422
Update hide_email implementation
...
It now requires Javascript to decode the email address. If this is a
problem for whatever reason, please get in touch by opening an issue. I
take accessibility very seriously.
2020-08-09 23:53:29 +01:00
272fdea0ee
parser-parsedown: tweak help again
2020-08-09 17:11:12 +01:00
9a0b2d6ba7
parser-parsedown: improve heading id documentation
2020-08-09 13:04:29 +01:00
c0fa5b8ae4
Finish improvements to pageindex rebuilder
...
also squash warning from stats engine during the firstrun wizard
2020-08-08 22:01:12 +01:00
3b799cbcba
parser-parsedown: fix templating
2020-08-08 01:54:10 +01:00
ddb7cd9c18
action-raw: add new typeheader GET parameter
2020-08-08 01:18:01 +01:00
bbb3fc32ee
parser-parsedown: Add quick reference points in comments
2020-08-08 00:56:16 +01:00
75c15d66b2
page-move: Ensure that the new subpage actually exists - fixes #201
2020-08-06 15:47:41 +01:00
b25c144f1e
Bump module versions
2020-08-06 15:29:15 +01:00
e3e2a01435
Improve PDF preview when embedded in pages - fixes #202
2020-08-06 15:28:24 +01:00
1ec1705a62
Standardise error_log prefixes to aid clarity in multi-wiki environments
2020-07-28 19:42:41 +01:00
7d93aa6a10
Overhaul the way we use setcookie()
...
- Use SameSite=Strict to avoid issues in modern browsers & prevent
session-stealing attacks
- Use Secure when requests run over HTTPS by default to avoid
downgrade-based session-stealing attacks
- Add warning for PHP <= 7.2, as it doesn't support SameSite in
setcookie().
2020-07-28 19:40:22 +01:00
0f23ce3fd1
redirect: fix redirect logic
2020-07-12 14:45:56 +01:00
36e8fe2a17
feature-search: remove debugging
2020-07-11 01:00:16 +01:00
31253edff4
feture-search: properly break reference after pointer foreach
...
ref https://bugs.php.net/bug.php?id=70387
2020-07-11 00:39:05 +01:00
521b66394c
add missing variable name
2020-07-10 23:23:32 +01:00
86216fd4c1
search: squash file_get_contents warning, but more insight is needed. closes #193 .
2020-07-10 23:22:30 +01:00
b4e4094451
Bugfix libsearchengine: fix handling of exclusions that are in both the body and the title
2020-07-10 23:04:59 +01:00
41009bb810
avatar: fix typo in uploaded avatar name & add new avatars_gravatar_enable setting
2020-07-10 19:46:06 +01:00
450c2485ae
debug: obscure even more secrets
2020-07-09 00:44:13 +01:00
fae6e3ecae
debug: hide more secret stuff
2020-07-09 00:22:27 +01:00
67fdba2baf
Security: Fix logic in page-debug
2020-07-09 00:15:54 +01:00
edc1a694dd
feature-comments: add 2 new settings
2020-07-08 19:35:42 +01:00
d94fc42547
Bugfix feature-redirect: fix typo in variable name
2020-07-07 21:19:50 +01:00
47b5855396
feature-redirect: fix comment
2020-07-07 21:15:14 +01:00
8aff75a805
Bugfix: Don't redirect when navigating to a redirect page from a page list
2020-07-07 21:11:13 +01:00
1813fe73e2
Add absolute redirects
2020-07-07 21:10:38 +01:00
beb4e2e968
noindex, nofollow login pages to try and stop bots from getting into infinite loops
2020-06-11 20:52:25 +01:00
237d10f908
Bugfix: Display link when redirect page sends user to a another page that doesn't exist Note that this only shows for users with permission to edit the target page at the moment.
2020-06-04 19:11:29 +01:00
79ddc234d2
Bugfix: Squash warning when determining language in the fenced code block extensions
2020-06-04 01:42:29 +01:00
90a2a3f6c6
Bugfix: Only show similar page suggestions if we're on the view action
2020-06-04 01:15:10 +01:00
94bda35906
Add some basic sltye rules to make the suggested pages look less terrible
...
Particularly with the photo theme we need to do some more work....
2020-05-26 13:16:33 +01:00
27b4d57c46
Bugfix: only replace the first instance when inserting the estimated reading time
2020-05-25 21:26:36 +01:00
e55308f50a
Display basic similar page suggestions.
...
They are w=even appearing in the right pace!
Next up, we need to write the CSS to make it look pretty :D
2020-05-25 21:15:19 +01:00
5693c24358
Remove rogue semicolon
2020-05-25 00:32:26 +01:00
725611ace4
readingtime: remove temporary error_log lines
2020-05-25 00:25:02 +01:00
d9024cbe59
readingtime: limit replacements to the 1st occurrence
2020-05-24 21:50:09 +01:00
cd96e43e0f
Add reading time estimation
...
Disable with readingtime_enabled.
Also add new class system-text-insert for all things that appear below a
wiki page's title <h1> and the beginning of the body text
2020-05-24 21:47:40 +01:00
6c11ef4957
parser: add id to automatic table of contents heading
2020-05-23 23:00:46 +01:00
262e0eaadd
pser: fix issues in help text
2020-05-23 22:43:32 +01:00
eecdfa535b
pser: add super/sub script syntax to help text
2020-05-23 22:41:43 +01:00
52e25a16a7
parser: update help text
2020-05-23 22:37:42 +01:00
9a4467bc9f
parser/table of contents: ensure [__TOC__] is on a line by itself
2020-05-23 22:30:12 +01:00
2b7add3f4f
parser: add table fo contents support
2020-05-23 22:28:33 +01:00
c4d0cc42d7
parser: make internal link syntax non-greedy. Why the heck was it working before?
...
I guess we'll never know......
2020-05-23 20:40:30 +01:00
48567a96a8
parser: Add spoiler syntax, and fix regexes for other inline extensions
2020-05-23 20:38:01 +01:00
764680b3c3
parser-parsedown: Add sub/superscript
2020-05-23 18:44:55 +01:00
69cbda5e79
parser-parsedown: add marked text support
...
Also update help text
2020-05-23 12:57:04 +01:00
908f14f92c
suggest-similar: update apidoc comment
2020-05-23 12:56:46 +01:00
04bb67f505
Fiddle with parsedown versions, remove ParsedownExtreme, and add our own checkbox implementation
2020-05-23 02:06:59 +01:00
a0f6e89643
Start implementing similar pages system, but it's not finished yet
...
We have the backend suggestion system done, but not the UI.
I can tell that this is going to require lots of tweaking to get just
right. I suspect it might be a good idea to explore some possible
tweakable settings we can add to allow people to tweak the engine to
better suit their individual setups.
2020-05-22 21:22:07 +01:00
6e3ec4863b
master settings page: fix invalid HTML that was causing layout issues
...
....especially when using the photo theme.
2020-05-09 15:43:12 +01:00
45ec042dc6
stats/cli: add show subcommand
2020-04-22 01:17:05 +01:00
2324517abc
feature-stats: add cli command
2020-04-22 00:58:57 +01:00
91bc906bc9
didyoumean/cli: improve output of lookup subcommand
2020-04-22 00:44:33 +01:00
5ba0fce2ff
feature-cli: remove need for quotes when using php index.php exec ....
2020-04-22 00:33:53 +01:00
f72062332a
feature-cli: fix version subcommand
2020-04-21 23:07:43 +01:00
2dacc5f99c
Disable the didyoumean typo correction engine by default & add it to the changelog
2020-04-21 22:13:08 +01:00
8278cd052b
parser-parsedown: add markdown support to image captions
2020-04-21 21:56:31 +01:00
a1b962a7b5
feature-upload: fix the dot problem
2020-04-21 21:18:50 +01:00
c1af093ada
Reduce number of calls to stas_parse()
2020-04-21 21:01:00 +01:00
9f4dd1c149
libsearchengine/didyoumean: fix infinite loop
2020-04-21 20:22:08 +01:00
d294c7e89a
feature-upload: squash unlink() warning when file fails to upload
2020-04-21 20:08:17 +01:00
698a666061
Merge branch 'master' of github.com:sbrl/Pepperminty-Wiki
2020-04-21 15:05:33 +01:00
6b8040b78c
Update credits
2020-04-21 15:05:25 +01:00
0b305795ee
Merge pull request #185 from SeanFromIT/master
...
updating internal link ordering docu
2020-04-21 15:04:13 +01:00
e612adb0fc
Merge branch 'master' of github.com:sbrl/Pepperminty-Wiki
2020-04-21 15:01:40 +01:00
f6a7495ce5
Bugfix: Replace newline characters in internal links with spaces - fixes #186
2020-04-21 15:00:54 +01:00
Sean Feeney
7d63f54077
updating internal link ordering docu
2020-04-19 17:12:21 -07:00
824883a3b3
Merge pull request #183 from SeanFromIT/master
...
adding nosidebar docu
2020-04-19 13:49:19 +01:00
Sean Feeney
386654f49f
adding nosidebar docu
2020-04-18 20:32:39 -07:00
0e0ccd9e00
Add new anoncomments setting
2020-04-18 13:23:18 +01:00
ad8d05a3eb
fix whitespace
2020-04-18 13:00:50 +01:00
Sean Feeney
171f9f4874
patching PHP 7.3.11 issue and double dot in file uploads
2020-04-18 13:00:50 +01:00
d7ad69e665
moar htmlentities
2020-04-18 12:41:24 +01:00
11ade94d62
lib-search-engine: Squash another bug
2020-03-15 22:06:26 +00:00
b8f37597a6
Fix inverted logic in libstoragebox
2020-03-15 22:04:18 +00:00
5232bb3060
More bugfixes & optimisations, but I'm still not sure what's up with the correction system
2020-03-15 21:28:56 +00:00
99f920f11d
Fiddle with it a bit, but it looks like further investigation is needed.
2020-03-15 18:26:17 +00:00
d131666ff5
Squash all the error messages, but it's not working as intended.
...
All that seems to have happened is that searches are taking longer and
not doing anything different.....
2020-03-15 18:10:23 +00:00
f632c0907c
Integrate didyoumean into the main search engine, but it's crashing.
...
We're getting there though!
2020-03-15 17:54:27 +00:00
f2561d8cb0
Squash more bugs in feature-cli and populate readline history
2020-03-15 17:19:16 +00:00
0829e7630b
Start implementing didyoumean abstraction in lib-search-engine, but its not finished yet.
...
Next up:
- Updating the index
- Adding words to the index in the first place
- Saving the index if changes were made
- Tighter integration into the existing search system to avoid changes
to other modules
2020-03-15 14:41:14 +00:00
be8595bc44
Start Integrating the BkTree into the main Pepperminty Wiki codebase, but there's a long way to go.
...
There's also a bug in the deletion logic in that if the root node is
deleted (if it doesn't crash first), then it's all over and it's broken.
2020-03-14 17:49:26 +00:00
390eafb7fc
Refactor search engine out into multiple files
2020-03-14 17:18:51 +00:00
269ba583fd
feature-search: add command
2020-03-11 23:51:49 +00:00
2eb4f73c5e
Add dependency system to build system ahead of a feature-search refactor.
...
We should probably refactor the build script into something more
object-oriented too, since it's getting somewhat complicated. I've added
some ASCII art headers as a stop-gap for now, but a proper refactor of
that too (into a class-based system probably) is incoming I think.
2020-03-11 23:32:10 +00:00
6cfd60b765
feature-search: add search rebuild shell command
2020-03-11 23:07:38 +00:00
96ee24dc61
feature-cli: message formatting tweaks
2020-03-10 01:51:17 +00:00
fa81f0df25
Implement basic Pepperminty Wiki CLI & shell :D
...
The BkTree tester gave me the idea.
No longer will you have to hope that search indexing will complete in
time and adjust the maximum execution time for larger wikis..... when
that's implemented.
2020-03-10 01:47:40 +00:00
83c9d527cb
Bugfix: Squash empty tags when saving an edit to a page
2020-02-04 01:45:14 +00:00
83bf9acd86
Add tag input autocomplete when editing pages.
...
Thanks to Awesomplete by @LeaVerou :D
2020-01-26 21:04:39 +00:00
e2e9301043
Credits URL correction
2020-01-10 17:47:23 +00:00
6ad61f6be4
Add credits for #179
2020-01-10 17:11:25 +00:00
0f04a927c4
Tiny formatting tweak
2020-01-10 17:07:09 +00:00
Kevin Otte
3396c25002
Fix compromise detection
...
Compromise detection has inverted logic handling response_code and did not honor the settingsFilename variable.
2020-01-08 20:25:46 -05:00
5fdd91ce4c
Update changelog; change name of new setting to email_verify_addresses setting
2020-01-05 23:10:19 +00:00
344b7daa70
Make email address verification email sending more intelligent and update changelog
2020-01-05 21:16:51 +00:00
3c47bf0539
Bugfix: Correctly display whether the user's email address is verified
2020-01-05 21:10:35 +00:00
b4c0782e58
bool -> boolean
2020-01-05 20:59:21 +00:00
d47395e005
feature-user-preferences: bump version
2020-01-05 20:52:56 +00:00
9d75134afe
Add clarification about email verification status
2020-01-05 20:52:35 +00:00
322f956a9f
Add url_stem() & email address verification system
2020-01-05 20:49:20 +00:00
e6fd579bf1
Bugfix watchlist: Fix variable name
2020-01-05 20:48:55 +00:00
05615b4c81
feature-watchlist: bump version
2019-12-24 12:14:02 +00:00
95e06c5b8b
Bugfix: Don't send an email to users to edit pages on their watchlists
2019-12-24 12:13:35 +00:00
f06c37c561
Add title to remove cross on watchlist page
2019-12-23 22:53:16 +00:00
ab179e4e83
Bugfix: Check to make sure that a user's watchlist exists before checking to see if it's an array
2019-12-23 22:51:59 +00:00
f6d183a11e
Add conditional link to user preferences page to watchlist
2019-12-23 22:31:44 +00:00
1abcd96699
Remove stray debug statement
2019-12-23 22:02:41 +00:00
456f749ffe
Bugfix: Squash bug in new array_simple search optimisation
2019-12-23 21:58:23 +00:00
52fcd6a44a
Bugfix: Update Parsedown to squash bugs in PHP 7.4
2019-12-23 21:53:22 +00:00
543fcc171f
Bugfix: Fix watchlist page-edit module check
2019-12-23 20:53:08 +00:00
9cb4ecae1b
Implement watchlist emailing, but it's not tested yet.
...
We're getting there, hooray! :D
2019-12-23 18:57:52 +00:00
1602fab2c3
Correctly handle utf-8 in email_user()
2019-12-23 17:39:18 +00:00
8914bff594
Add watch item to nav more menu, and tweak messages.
2019-12-23 16:17:33 +00:00
53c6533a4c
Bugfix integration between watchlist and watchlist-edit
2019-12-23 16:09:39 +00:00
890c27be02
Bugfix new watchlist-edit action.
...
(Almost) next up: Actually sending the notifications!
2019-12-23 16:03:38 +00:00
85fb5cd6c1
Finish implementing the watchlist backend. Now to test it!
2019-12-23 15:39:28 +00:00
f7ee581709
Start working on the backend to the watchlist system, but it's not finished yet
2019-12-23 01:27:26 +00:00
167259623d
Start implementing watchlists :D
...
TODO: update the changelog
2019-12-22 14:37:20 +00:00
e4eee4e281
Fix comment typo
2019-12-15 22:38:44 +00:00
6d675fc783
Bugfix: Add missing apostrophes in stop words
2019-12-15 20:21:05 +00:00
6f4b1a62e9
Fix + weighted word support on stas-parse action
2019-12-15 20:03:04 +00:00
c80f26962e
Refactor stas_split to be more fasterererer
...
Informal testing shows that it's gone from taking ~18% of the total time
to ~4% of the total time :D
2019-12-15 17:56:56 +00:00
843f0f7ee9
Update comment
2019-12-10 01:13:51 +00:00
d53f0ed85a
Remove search::transliterate, as it has a hgue performance overhead.
...
Use search::$literator->transliterate() directly instead.
2019-12-08 21:04:59 +00:00
34fb821804
Don't load the stats index if it's not needed
2019-12-08 20:45:20 +00:00
d3e83a0aea
page_renderer: Don't generate the page list for the datalist if it's not displayed
2019-12-08 20:27:20 +00:00
8156055b5c
Improve search index write & lookup performance by implementing new arr_simple system
...
By serialising and deserialising lists of numbers with implode &
explode, we can further cut down on the json_* calls which are
reeeeeally slow.
2019-12-06 23:40:28 +00:00
60cca5a5e2
Add say hi button to firstrun wizard :D - closes #175
2019-11-24 11:50:49 +00:00
803677ba69
Add id to tags input box on page editor
2019-11-10 15:44:21 +00:00
41dc73036d
Bugfix: Include the new inverted index in wiki size calculations
2019-11-10 15:43:24 +00:00
729af8205d
Add documentation on external renderers
2019-10-26 15:19:05 +01:00
34a86dbaec
Fix insert
2019-10-26 12:27:09 +01:00
5b89e6549e
Add note to parsedown help
2019-10-26 12:24:56 +01:00
f044d25f7e
Add output_classes property to external renderer, and new .invert-when-dark class in theme
...
ABC Notation & Server-Side Latex look good naow! :D
2019-10-25 12:12:57 +01:00
657213c11c
Bugfix: Nest external rendered images inside a <p> to make them block-level
2019-10-25 00:16:08 +01:00
bba614df2f
Add setting to disallow anonymous users from invoking the external renderer on new input
2019-10-24 21:08:18 +01:00
b75ad067eb
Add file & substitution_pipe support.
...
Also use nomnoml in SVG mode instead of nomnoml-cli, because the latter
is a pain to build.
2019-10-24 20:13:03 +01:00
0744498570
Bugfix: Clean up correctly if the external renderer burps
...
This is especialyl important for the exteernal renderer cache directory,
which is assumed to contain exclusively valid rendered outputs.
2019-10-21 00:41:14 +01:00