Heiko August
3ec6d7cc1f
Cleanup: remove the commented replaced and outdated function calls of strftime
2022-05-01 17:53:56 +02:00
Heiko August
e5ee7fbd40
Change: replace a remaining strftime with date
...
See Github PR #587
2022-05-01 17:53:56 +02:00
Heiko August
3850208d5d
Change: return an empty provided string before starting the processing in the function my_substr
2022-05-01 17:46:00 +02:00
Heiko August
adedc72d7c
Change: check variables for content because null value for function (l|r)trim is deprecated with PHP 8.1
2022-05-01 17:46:00 +02:00
Michael Lösler
416119b21d
Check database ( #593 )
...
- check if database name is passed
2022-04-29 17:03:27 +02:00
Heiko August
3820003079
Change: remove strings for confirmation, provided as JS-native confirm dialogue
2022-04-27 12:09:34 +02:00
Heiko August
6b01eb88bd
Change: remove Backup.class.php
...
There was no reference for this class in the whole PHP-code!
2022-04-27 12:09:34 +02:00
Heiko August
0020350ace
Change: remove function restore_backup
2022-04-27 12:09:34 +02:00
Heiko August
32cca5deaa
Change: remove function create_backup_file
2022-04-27 12:09:34 +02:00
Heiko August
fc4b7fe5da
Change: remove the PHP-code for generating the UI of the backup feature
2022-04-27 12:09:34 +02:00
Heiko August
0cc6e5de73
Change: remove last check for a valid delete action for a backup file
2022-04-27 12:09:34 +02:00
Heiko August
5c68f42a79
Change: remove the code for restoring data from a backup file
2022-04-27 12:09:34 +02:00
Heiko August
163504e126
Change: remove the code for running a backup creation
2022-04-27 12:09:34 +02:00
Heiko August
7293d55ea0
Change: remove the code for deleting backup files
2022-04-27 12:09:34 +02:00
Heiko August
eaa347ebdc
Change: remove the code for downloading a backup file
2022-04-27 12:09:34 +02:00
Michael Lösler
0e62783d9b
strftime (PHP 8) ( #587 )
...
- strftime has been dprecated as of PHP 8.1
- replaced by date
2022-04-22 22:05:15 +02:00
Michael Lösler
b3f1fa4e04
Automatic conversion ( #585 )
...
- Automatic conversion of false to array is deprecated in PHP 8
2022-04-22 18:25:46 +02:00
Michael Lösler
adc6392686
PHPMailer v6.6.0 ( #583 )
...
- updated PHPMailer v6.6.0
2022-04-22 17:55:00 +02:00
Michael Lösler
563eb22ef3
Default target ( #578 )
...
- The default target (specified in forum settings by the admin) is used to open links in a dedicated frame
2022-04-21 15:48:28 +02:00
Heiko August
33842ad3cb
Change: prioritise the user setting open_links_in_new_window over the general setting forum_based_link_target
2022-04-20 10:13:29 +02:00
Heiko August
3b1acd2a09
Fix: read the user setting browser_window_target from the correct array
...
To use the array $usersettings as source is wrong because it is as an interim step to enlive $_SESSION[mlf2_usersettings] in all other cases. So using $_SESSION[mlf2_usersettings]as the source is the right way to go.
2022-04-20 10:13:29 +02:00
Heiko August
bb65829732
Change: print the forum setting link_open_target to the JS-array settings
2022-04-20 10:13:29 +02:00
Heiko August
2ccf978ad4
Fix: put the value of browser_window_target to the usersettings whenever it get read or edited
2022-04-20 10:13:29 +02:00
Heiko August
88b6e3bf0f
Fix: correct the logic in the condition
2022-04-20 10:13:29 +02:00
Heiko August
0219b97031
Change: simplify the condition to remove an invalid input for link_open_target
2022-04-20 10:13:29 +02:00
Heiko August
c4d155f3ec
Fix: finish a line of code with a semicolon! (dammich nochma)
2022-04-20 10:13:29 +02:00
Heiko August
922ce14809
Fix: order of parameters for in_array (first: needle, second: haystack)
2022-04-20 10:13:29 +02:00
Heiko August
07749530ea
Fix: space between "{1," and "254}" led the regex to be broken on regex101.com (where I tested it)
2022-04-20 10:13:29 +02:00
Heiko August
81f1ddb5e6
Change: check link target setting for allowed values and replace everything else with an empty string
...
Allowed values:
- "_self", "_parent", "_top" (comparision with in_array)
- a freely chosen frame name (comparision with a regular expression, maximum length: 255 chars)
2022-04-20 10:13:29 +02:00
Heiko August
8e4fae2ef2
Fix: add the case DEFAULT and correct NON to NONE
2021-09-20 19:50:35 +00:00
Heiko August
d222fe24f8
Change: provide corrections, strings, template and processing code for the third setting
2021-09-20 19:50:35 +00:00
Heiko August
658ee54b0e
Change: create the JS-array user_settings and store the matching values for the users window target setting
2021-09-20 19:50:35 +00:00
Heiko August
13de96e16e
Change: read the new user setting from the user data entry and put it into the array $usersettings
2021-09-20 19:50:35 +00:00
Heiko August
53fe923152
Change: store the new user setting in the table for user data
2021-09-20 19:50:35 +00:00
Heiko August
e8e0abbeb0
Change: read the new setting from the database and populate the matching form elements
2021-09-20 19:50:35 +00:00
Michael Lösler
fb8206e065
user lock state ( #571 )
...
- delete inactive users that are *not* locked by the form admin
2021-09-19 16:58:44 +02:00
Michael Lösler
c08ba33ca2
CSRF ( #570 )
...
- remove call of die-function, if csrf token is expired, cf. https://mylittleforum.net/forum/index.php?id=12531
2021-09-03 15:49:49 +02:00
Michael Loesler
7dce5cc62b
Email collision ( #566 )
...
* Check for collision
- SQL statement modified to check against email collision
- re-format source code
* error massage
- error message is added for key `error_email_collision`
2021-03-03 20:54:17 +01:00
Michael Loesler
2cec4bdfc4
Activation mail ( #565 )
...
- Language part for `emails` was not loaded to the user
- ConfigLoad is added, cf. https://github.com/ilosuna/mylittleforum/issues/564
2021-03-03 20:24:21 +01:00
Michael Loesler
454e392dee
B8 spl autoload register ( #562 )
...
* B8
- prepare fies for new b8 version
* Update B8
- add new b8 classes
* Update b8.php
- modify spl_autoload_register function to prevent errors
- cf. https://gitlab.com/l3u/b8/-/merge_requests/1
2021-02-28 21:29:12 +01:00
Michael Loesler
5317c6024d
B8 former version ( #561 )
...
- switching back to former b8 version
- there are some unsolved conflicts up to now (I don't know the reason yet)
- comment symbol # of former version is replaced by //
- tested on PHP7/8
2021-02-28 13:37:42 +01:00
Michael Loesler
0a95ebc4d9
create_function PHP 7.4 ( #560 )
...
- Function create_function() is deprecated in PHP 7.4
- Closure is used to handle anonymous functions in preg_replace_callback
2021-02-27 16:11:01 +01:00
Michael Loesler
643e9ae96b
Update module ( #557 )
...
- update B8 version 0.7
- namespace is added (e.g. b8::HAM --> b8\b8::HAM)
2021-02-27 15:09:52 +01:00
Michael Loesler
d2a112f35c
Comment symbol ( #554 )
...
- # is no longer interpreted as the start of a comment, as this syntax is now used for attributes, cf. https://www.php.net/manual/en/migration80.incompatible.php
- comments are removed, if they are identified as /obsolete fragments/, i.e., former code/debugging code
- comment symbol '#' is replaced by '//'
2021-02-27 13:08:34 +01:00
Michael Loesler
82de4dea4b
get_magic_quotes_gpc
...
- get_magic_quotes_gpc is removed because this function returns alwas false
- get_magic_quotes_gpc is deprecated cf. https://www.php.net/manual/en/function.get-magic-quotes-gpc.php
- see also https://github.com/ilosuna/mylittleforum/issues/552
2021-02-21 17:34:21 +00:00
Michael Loesler
d7b0e9d47b
SPAM postings of a user ( #551 )
...
- Postings classified as SPAM are accessible via user-area
- A modified SQL stmt restricts the postings list and filters SPAM postings for normal users
- cf. https://mylittleforum.net/forum/index.php?id=12422
2020-12-10 23:18:54 +01:00
Heiko August
5b9763f164
Change: add field user_type to the thread tree informations and add classes to the user name elements
2020-10-12 12:33:06 +02:00
Michael Loesler
c7eeb1fb9e
Auto delete spam ( #528 )
...
* Delete SPAM
- corrected (automated) deleting of SPAM entries via `daily_actions` by calling existing function `delete_posting_recursive`
- see https://mylittleforum.net/forum/index.php?id=12272
* Update TID
- changed order to avoid that `TID != ID`, i.e., if some SQL statements raises an error
- see https://mylittleforum.net/forum/index.php?id=12275
2020-07-04 16:22:17 +02:00
Michael Loesler
39e529952c
remove account ( #527 )
...
- the complete code for deleting the account was moved to a function, see function.inc.php::deleteUser, thus, this _new_ function is called here, too
2020-04-29 11:02:53 +02:00
Michael Loesler
54730b5a42
handle inactive users
...
- added global var $lang to get access to the lang-file for creating the notification email
- improve SQL stmt
2020-04-29 10:51:18 +02:00