Commit graph

117 commits

Author SHA1 Message Date
Heiko August
10384a34d4 Fix: readded lost marking of the opening posting as new … (#256)
* Fix: readded lost marking of the opening posting as new in case of a new answer
* Change: simplify the if- and else-if-statements
    No need for nested if-statements.
    A further simplfication is possible.
    But IMHO it would make the statement more or less unreadable.
* Fix: ensure $fold_threads to be boolean and hand it over to getMessageStatus
2017-10-03 17:21:36 +02:00
Heiko August
49421f2a85 Change: outsourcing of read- and new-status handling into a function (#255)
fixes #245
2017-09-17 21:23:18 +02:00
Micha
9dab3e042d Handling of the read state in entry thread (#251)
Handling of the read state in entry thread by using code from
thread.inc.php

see also #245
2017-09-16 18:37:11 +02:00
Heiko August
48f2066317 Fix: allow e-mail-addresses with TLDs longer than 4 chars (#249)
The regular expression allows now TLDs with two or more chars. fixes #246
2017-08-31 23:00:10 +02:00
Heiko August
e93157dba4 Fix: rename key for uneven password inputs because of collision with … (#237)
* Fix: rename key for uneven password inputs because of collision with different but same named key
* Fix: use the new key name
2017-05-28 14:32:43 +02:00
Heiko August
b2a66abba7 Handling of the read state reset methods and values (#233)
* Change: use new settings for handling of read state
* Change: add new setings to the SQL-files for update and installation
* Change: queries for new settings and removal of outdated settings to the update script
* Change: remove outdated setting from the SQL file for installation
* Change: new form elements and language strings for read status handling
* Fix: add a check for non exisiting setting reset_read_state
* Fix: wrong name of setting in the form elements
* Change: ensure a valid value for the read state reset method
* Fix: correct wrong name for form field and hardcoded value
2017-05-24 15:04:06 +02:00
Heiko August
45d2bf30a2 distinguish between new and not marked as read also for registered users (#219)
* Fix: an entry is only new, if it is, not, if it's unread
* Change: intendation by tab on a few places

fixes #209
2017-05-01 19:58:52 +02:00
Heiko August
5322d1bc06 pre-populate the field for forum-URL with the correct protocol string (#208)
* Change: new function get isProtocolHTTPS
* Change: use the function to distinguish between a request over HTTP or HTTPS

If a forum will be installed over HTTPS, the pre-populated form field for the forum URL should reflect this.
2017-04-24 16:12:26 +02:00
Micha
d96bf2d022 Last reply (#197)
- extend SQL query for 'last_reply' column
- add last_reply to SQL query
 fixes #195
2017-04-11 12:48:38 +02:00
Micha
173fd88ab1 - simplify get_category_ids (#198)
- replace loop over array items by inbuilt function array_keys
2017-04-08 12:17:22 +02:00
Heiko August
95b1591628 Fix: don't set class .read for not logged in visitors (#183) 2017-03-12 11:15:10 +01:00
Micha
56812c67a9 PHP-Object (#170)
- PHP object is initialized by an array-type to be valid with PHP 5.2
and 5.3.
- see https://github.com/ilosuna/mylittleforum/issues/169
- see http://mylittleforum.net/forum/index.php?id=9828
2017-02-17 21:36:21 +01:00
Micha
2005df442a Extract Download-URI from ATOM-Feed (#165)
- Download/info uri is extracted from ATOM using LINK-element
- RexEx to get the version is updated to match both: '1.2.3' and
'v1.2.3'
- URI is stored in 'temp_infos_table' as 'last_version_uri'
2017-02-05 15:29:07 +01:00
Micha
6889beb723 Check for Null-Value (#160)
- check for Null-Value via COALESCE
- https://github.com/ilosuna/mylittleforum/issues/159
2017-02-04 14:28:25 +01:00
Heiko August
19f83455db Fix: don't duplicate language keys and include the version number inside smarty (#151)
fixes #147
2017-01-23 21:58:36 +01:00
Heiko August
2a0d0a8086 Fix: the block for stating an entry new or read was outside the loop (#150)
fixes #148
2017-01-22 18:05:09 +01:00
Heiko August
798d173ccd Fix: a new entry can't be read and a read one can't be new (#144)
* Fix: a new entry can't be read and a read one can't be new
* Fix: set read or new status in one code block

An entry is either new or read but it can't be both. Decide
the status in one block and use the new read status for registered
users and the old cookie based behaviour for not registered visitors.

fixes #128
2017-01-05 23:10:14 +01:00
Heiko August
ae2395f784 Fix: restore old behaviour of smartys config_overwrite
Before issue #11 the value of config_overwrite was false.
To allow overwriting of config items it was changed to true.
That led to bugs with items, that should act as arrays.
2016-12-26 22:49:53 +01:00
Micha
34b3dd2b4c restrict the 'edited by' - output (#135)
- restrict the if statement by: $settings['dont_reg_edit_by_admin']==1
as well as $settings['dont_reg_edit_by_mod']==1 in last condition
2016-12-26 15:43:27 +01:00
Micha
379ef3f5b7 Activate and unlock user by admin (#136)
- users can be activated by admins but they are not automated unlocked.
--> Add unlock-condition to activate sql
2016-12-10 10:23:57 +01:00
Micha
9133153112 - check existence of $total_views (#133)
- check existence of $total_views to avoid php warning
2016-12-05 17:19:56 +01:00
Heiko August
4dd17c6b0c Fix: correcting wrong parenthesis 2016-12-04 19:37:49 +01:00
Heiko August
cfd62942be take the new tables into account … (#129)
* Change: deleting the new tables in case of uninstalling
* Fix: take new tables into account when executing a backup

fixes #90
2016-12-04 17:31:14 +01:00
Heiko August
62f02ca31d Add the table and a further box in the admin area (#124)
* Change: new table mlf2_temp_infos
* Change: add a box to show the version number of the installed version
* Change: load version info only during daily actions
* Change: simplified release info
* Fix: text change in every language except the base language?!
* Fix: remove superfluous and in some cases script breaking query

close #123
2016-12-04 15:32:34 +01:00
Micha
904772d6fa - remove intval (#127) 2016-12-02 17:17:03 +01:00
Micha
ce26048c25 - limit the number of entries in read_entires-table (#125)
- limit the number of entries in read_entires-table by 'max_read_items',
if and only if 'max_read_items' > 0
- max_read_items <= 0 means unlimited storage
2016-12-02 17:05:07 +01:00
Micha
bb56012811 - Replace getAvatar function (#119)
- replace avatar function to be compatible to PHP <5.3
2016-11-29 19:22:56 +01:00
Micha
c676616924 - Used word delimiters (#116)
- Word delimiters added to lang files
- delimiters are used in too_long_word function
- see https://github.com/ilosuna/mylittleforum/issues/105

fixes #105
2016-11-28 19:35:43 +01:00
Micha
1aeecbbd22 - correcting regexp (#118)
* - correcting regexp

- correcting regexp
- check variable via isset() and file_exists()

* - remove isset

- isset is not needed
2016-11-28 00:30:08 +01:00
Micha
28ceff5e15 - Added timestamp to avatar filename (#114)
- a timestamp is added to avatar image file name to avoid caching issues
- https://github.com/ilosuna/mylittleforum/issues/113
2016-11-27 14:17:23 +01:00
Micha
01966f62db - Add delimiters to too_long_word-Function (#110)
- adding additional parameter to too_long_word function to specify the
delimiter(s)
2016-11-24 19:57:28 +01:00
Micha
a2d944d17a - too long word check (#109)
- disable the check for too long words, if param '$word_maxlength' is <=
0
2016-11-24 18:39:21 +01:00
Heiko August
969a7c21b8 Change: return to advanced settings after sending form data from advanced settings (#107)
fixes #104
2016-11-24 18:25:32 +01:00
Heiko August
7a115dfe96 Fix: trigger login control with all setting values > 0 (#106)
Setting temp_block_ip_after_repeated_failed_logins define the time limit,
if the value is greater than 0. That has to be respected, when triggering the check.

fixes #102
2016-11-24 17:43:23 +01:00
Heiko August
463508935a Fix: use table name from settings, not the static names from testing (#93)
fixes #91
2016-11-21 12:56:24 +01:00
Heiko August
d792c1e7f3 Read status cleanup (#86)
* Change: remove column 'read_entries' from the database queries
* Change: remove obsolete functions and code for read-status-handling
* Fix: unnecessarily doubled request for column 'ip'
* Cleanup: cosmetic formatting issues

fixes #45
2016-11-20 21:37:26 +01:00
Heiko August
b8b047faf1 Change: set class read with info from read-status-table (#85)
fixes #80
2016-11-20 20:48:40 +01:00
Micha
9f88e86898 Remove read state (#82)
- add new parameter to setting_table called 'read_state_expiration_date'
(default 150 days)
- remove read state if 'auto_lock_old_threads' > 0
- remove read state if 'read_state_expiration_date' > 0
2016-11-18 23:08:39 +01:00
Heiko August
f54a7c61c6 save read status to table (#78)
Store the value only in the database table and not in a cookie or the session.
Make use of a more descriptive name for the function.
resolves #72

* Change: store read-status in the new table
* Change: new parameter user_id, adapted condition and comment
* Change: save the read-status to the new table
* Fix: use correct variable names and types continuous
* Change: unify the variable names and the behaviour of the two bookmark-blocks
* Change: add read-status-marking to nested view
2016-11-17 17:43:01 +01:00
Micha
9e75d0397a Remove read status of entries on delete (#76)
* Remove read status of entries on delete

- remove "read status" on user delete
- remove "read status" on posting delete

* Primary key

- Remove unique definition and add primary key "read_status_table"
2016-11-16 22:50:21 +01:00
Micha
30c66646d6 Regex (#65)
* Add escape sequence

- modify reg exp and add escape sequence

* Adding \p{Cf} to regexp

- Adding \p{Cf} to regexp to filter soft hyphen
2016-11-03 23:38:54 +01:00
Micha
e4c278ff94 show number of unlocked users (#64)
* show number of unlocked users

- SQL-SELECT is added to count the number of unlocked users
- Number of unlocked users is shown in sidebar
- Issue: https://github.com/ilosuna/mylittleforum/issues/62

* Ckeck register_mode

- register_mode value is checked in SQL

* Overwork CSS, SQL, Templates and Image

- SQL checks for empty activate_code
- rename class to non-activated-users
- rename key in lang-fiels to non_activated_users_link
- add new files to update script
2016-11-03 23:24:57 +01:00
Micha
af1694743b Fix command execution issue (#52), fixes #51
* Fix command execution issue

- Check for HTML tags
- add slashes

* Add warning message

- a warning message is displayed in admin area, if install/index.php
still exists (https://github.com/ilosuna/mylittleforum/issues/51)

* Use new admin-info-box

- use new admin info boy to display warning message
2016-10-25 14:52:40 +02:00
Micha
4af0e88ce4 Update checker (#58)
* Update checker, fixes #44 

- read ATOM feed to get information about a new release
- show info in admin-area

* Multipe ways to get external content

- try to use curl, file_get_contents and fsockopen to get content of
external resource

* correct comment

- correct comment

* add return statment

- add return statment to each branch

* Revert "add return statment"

This reverts commit 0240295501.
2016-10-24 17:20:25 +02:00
Micha
96a7c163b1 Chech array elements (#57)
- check if array alements exist
2016-10-22 13:04:15 +02:00
Micha
8d43d794a8 Pattern Modifier (#54)
- add modifier u to switch to UTF-8 mode in regexp function in
contains_special_characters to avoid problems with chinese characters,
cf. http://mylittleforum.net/forum/index.php?id=9353
2016-10-19 11:02:07 +02:00
Micha
1f47b8e382 Count number of views of thread in table view (#50)
- Shows the number of *views of the thread* instead of the number of
*views of the posting* in table view.
2016-10-16 14:20:06 +02:00
Heiko August
52af9dded8 Change: remove ancient code fragment 2016-10-13 22:25:11 +02:00
Heiko August
f44f94841a Change: remove old handling of not accepted words 2016-10-13 22:24:40 +02:00
Heiko August
04ce6011fe Change: remove outdated bb-code replacement for flash 2016-10-13 22:24:08 +02:00