Commit graph

270 commits

Author SHA1 Message Date
Heiko August
5e2fad4217 Fix: use the last release number instead the new one 2016-12-04 19:36:31 +01:00
Heiko August
b9f0f0f3f5 Fix: provide links for backup of the new tables (#130) 2016-12-04 18:07:59 +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
caa437cbde - limit the number of entries in read_entires-table (#126)
- 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
- remove intval-call
2016-12-02 17:11:41 +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
Heiko August
6b2602fe06 Change: alter settings table and rewrite the settings (#120)
* Change: alter settings table and rewrite the settings
* Change: tread a simpler path than with the temporary array. Renaming the old and creating a new table with a following INSERT is much more simple.
* Fix: remove the code for deleting the (doubled) setting auto_lock_old_threads
* Fix: add ON DUPLICATE KEY UPDATE to avoid multiple inserts. During the development it's expectable, that an update occurs several times. It would fail in this line because of the new primary key.
* Change: new tables should be of type InnoDB
* Change: a few comments and a bit cosmetic

this fixes #99
2016-12-02 12:01:38 +01:00
Heiko August
1f5df75589 Shrink and disable elements with a class at their parents (#122)
* Change: use a class to toggle entries in nested view

Use it for the parent element instead for every
single element, that should be manipulated.

* Change: toggle sidebar with a class at the parent element
2016-12-01 21:26:47 +01:00
Heiko August
fe5c188387 Change: more space for a few form fields (#121)
Make the fields for image size a bit wider.
2016-11-30 17:59:16 +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
aa98794a4c - Transfer read state to new table on update (#117)
- regard number of postings in setting table i.e. 'max_read_items'
- see https://github.com/ilosuna/mylittleforum/issues/77
2016-11-27 15:47:14 +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
df993f25ad - CSRF-Token (#111)
- add CSRF token to admin form
2016-11-26 10:21:30 +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
Micha
0cbc68d043 Remove item (#108)
- remove duplicate item 'auto_lock_old_threads' in setting table
2016-11-24 18:28:30 +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
c66b6576dc Fix: remove doubled entry auto_lock_old_threads (#100)
fixes #98
2016-11-23 20:07:43 +01:00
Heiko August
afccebc1cc Fix: again, don't use testing code (#94)
fixes #92
2016-11-21 18:16:28 +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
b98140a882 Fix: syntax error (comma and semicolon) (#89)
add a comma, remove a semicolon
2016-11-20 23:09:11 +01:00
Heiko August
8c44a01fb0 set :visited for thread-links (#88)
* Change: set :visited as fallback and base for .read
* Change: use :focus for keyboard users as complement to :hover
* Change: remove '!important' from rule for a.read:active

fixes #87
2016-11-20 22:39:14 +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
Micha
adbf996962 Transfer read state to new tabel (#81)
- SQL to transfer read state from 'userdata_table' to new table
'read_status_table'
- SQL to remove column 'entries_read' from 'userdata_table'
2016-11-17 21:26:22 +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
Heiko August
1519b0091d Fix: don't add column id (PK, Auto Increment) when read_per_user is an unique index (#79) 2016-11-16 19:50:05 +01:00
Heiko August
d680aa4757 Create read-status-table (#74)
* Change: new table mlf2_read_entries
* Fix: forgot to add the assembling of the table name in update script
* Change: add column time to store the last request for an entry
* Fix: rename column 'e_id' to 'posting_id' for consistency

fixes #71
2016-11-14 10:56:04 +01:00
Micha
2735994677 consider modified lang files (#69)
- add lang-directory to update routine v2.4
2016-11-06 20:27:49 +01:00
Heiko August
37c03517be put all new strings to all language files in english (default language) (#68)
* Change: add untranslated strings to chinese, croatian and german languages

* Change: put new untranslated english strings into every langauge file
2016-11-06 20:06:38 +01:00
Heiko August
6627539a28 version check from file (#66)
* Change: read new version number from file in case of an update

* Fix: put the version checks into a block, that will only be executed in absence of an error

* Fix: stop update even with equal version numbers of current installation and update version

* Fix: compare the current version with the array of allowed version numbers, not with version number of the update

* Change: replace $update['version'] with $newVersion

It's not part of the given data and will be read from the file VERSION.
Thatswhy it is now a separated variable.

* Change: use the file VERSION to get the version number

* Fix: relative path must be given from the requested script, not the included one
2016-11-06 13:36:04 +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
ca4a8b5867 Overwrite db_settings array (#61)
- override db_settings_array to fix issue
https://github.com/ilosuna/mylittleforum/issues/60
2016-10-26 22:26:55 +02: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
5613288940 Overwrite db_settings on update (#59)
- overwrite the db_settings and add new database table 'bookmarks'
- marked changed files with pull-ids
2016-10-22 16:50:01 +02:00
Micha
96a7c163b1 Chech array elements (#57)
- check if array alements exist
2016-10-22 13:04:15 +02:00
Heiko August
081a1e6df5 Add: a new box with a link to the latest release in the Github repo (#56) 2016-10-21 19:14:51 +02:00
Micha
aeec3ce2d4 Remove Subfolders (#55)
* Remove Subfolders

- remove subfolders from update list, if the parent folder is also in
list, cf. http://mylittleforum.net/forum/index.php?id=9359
2016-10-20 14:32:39 +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
Micha
a21b131642 prevent 404 error (#49)
- Add path to favicon of the default template to prevent a 404 error
2016-10-16 13:49:04 +02:00
Micha
a6ccd23023 Change tab order (#47)
- BBCode Button will be excluded by tab order
- AjaxPreviewWindow will be excluded by tab order
- Captcha field will be included to tab order

see: http://mylittleforum.net/forum/index.php?id=8601
2016-10-15 13:48:05 +02:00