1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 05:09:05 +01:00

4405 Commits

Author SHA1 Message Date
Achim Ennenbach
2990b57485 Fixes the "dbupdate after a clean install" issue
The "isset" statement tested on a key in array "core_plugins", but the keys of that array were numeric.
So the "isset" was always false and the statements within the if clause were always executed.
That resulted for some reason in a "false positive" on the "featurebox" plugin, in case was not installed at this moment.
2018-07-20 21:25:40 +02:00
Nick Liu
3407b717c6
Reduce reliance on global var $db_ConnectionID
When one of the 11 methods in e_db_mysql look for a PDO object in
e_db_mysql::$mySQLaccess, global $db_ConnectionID can be NULL in some
cases, so it's more reliable to get the singleton e_db_mysql and use the
e_db_mysql::$mySQLaccess from that singleton.

This change still allows global $db_ConnectionID to be used, but if
$db_ConnectionID is NULL, the singleton fallback is used.

Fixes: e107inc/e107-test#6
2018-07-20 05:24:55 -05:00
Cameron
cd8ddfd54a Issue #3200 - Media-Manager Media-picker work-in-progress 2018-07-19 12:43:04 -07:00
Cameron
6ab8c5c0f3 Issue #3200 More work on Media-picker. Version changed to 2.1.9 (git) 2018-07-18 14:40:29 -07:00
Cameron
bb7f8717fa Media-Manager Issue #3200 Work in Progress. Local video-file browser. 2018-07-16 17:14:10 -07:00
Cameron
bac96528fc Token fix. 2018-07-16 12:39:32 -07:00
Cameron
a64b4fe5e7 admin-ui: 'optDisabled' attribute added to type='dropdown' to selectively disable specific optArray items. 2018-07-14 19:35:21 -07:00
Cameron
7d40402760 New Feature: Adding data-modal-submit='true' to a link (with class='e-modal') that points to an admin-ui create/edit form will now cause the iframe's form buttons to be hidden, and the "Create" or "Update" button placed in the footer of the modal window. Basically, this avoids the need to scroll the iframe in order to submit the form. The iframe's form is submitted from the modal window's button.
The same can be achieved with $readParms = array('target'=>'modal', 'modalSubmit'=>true); on an 'options' field in admin-ui $fields.
2018-07-14 16:07:49 -07:00
Cameron
7933ec651e PHP Warning removal 2018-07-14 13:26:50 -07:00
Achim Ennenbach
566e85f078 Fixes #3275 Added support for legacy urls of type request.php?download.4 2018-07-13 23:38:17 +02:00
Achim Ennenbach
0e9f9d4e46 fixes #3065 Added a method to translate wildcards to mysql counterparts 2018-07-06 08:36:35 +02:00
Cameron
fd8772f88a
Merge pull request #3223 from SimSync/checkBan
Fixed an issue in iphandler::checkBan()
2018-07-04 17:37:12 -07:00
Achim Ennenbach
724651376e Fixed an issue in iphandler::checkBan() which caused the script to stop
without any message instead of returning a value (true or false) in case
the submitted email adress is blocked
2018-06-27 21:34:19 +02:00
Achim Ennenbach
d8c4ed3444 Fixes #3162 Fixes htmlized shortcode parameters
When entering shortcodes via TinyMCE, the & sign will be converted
automatically to & without any chance to prevent this behaviour.
The fix just corrects this error right before running the shortcode.
2018-06-24 21:38:06 +02:00
Cameron
1edd4a008f
Merge pull request #3210 from Deltik/fix-3198
Fixes #3198 - Legacy prefs, missing forums
2018-06-23 17:10:13 -07:00
Nick Liu
b471626fdb
Fixed missing tree nodes for some tree structures
There were two cases that led to missing tree nodes:

* If one node at the same depth as another node had a higher primary
key ID but showed up in the rows before, the lower primary key ID node
will go missing.

* If an unmatching row for the current node in moveRowsToTreeNodes
appeared between a matching row, the matching row would never be
reached and would not be added to the tree.
2018-06-22 14:00:13 -05:00
Achim Ennenbach
e96aea8748
In case the 2 or more join aliases point to the same table, now
the first alias get's saved instead of the last one.
2018-06-21 23:28:16 -05:00
Nick Liu
41f8e78489
Disable tree format if model has filters
Parent-child relationship tables (trees) can only be constructed if
the entire table is loaded. When WHERE filters are applied to the
table, the tree cannot be made, which causes #3204.

When a filter is active, a tree representation is no longer
appropriate because the filter can filter out parents of a matched
row, which breaks the concept of a tree.

To resolve this and restore search functionality, this commit disables
the sort_parent of the tree model in order to activate the
e_tree_model::getRowsList() method and avoid the tree logic entirely.

Fixes: #3204
Supersedes: #3208
2018-06-21 23:24:57 -05:00
MikeyGMT
79c14d66f6 #6 ToDo Lans bounceLAN in handlers/login.
ToDo Lans bounceLAN in handlers/login.
Tested login from login.php, from the login link in voux theme without issue. No bounced emails on test instance.
2018-06-19 18:16:36 +01:00
Cameron
a9a4781ef0
Merge pull request #3190 from SimSync/mysql_check_index
Mysql check index, DB Verify
2018-06-15 12:55:37 -07:00
Achim Ennenbach
e1920c740a toMySQL() added keyname to index if available
getIndex() now supports also the INDEX keyword
2018-06-15 19:05:15 +02:00
Cameron
52e02087ae Issue #3096 - user theme preference check. 2018-06-14 17:03:03 -07:00
oudoken
fbdbd4b1ca Issue #3151 add an e_end to plugin class
V2 renamed based on Cameron suggestion
2018-06-12 18:09:00 +02:00
oudoken
ff3dc03a81 Issue #3151 add an e_end to plugin class 2018-06-12 11:07:21 +02:00
Cameron
2b24346a8a Form handler - select() - support for disabled items. 2018-06-08 18:55:04 -07:00
Achim Ennenbach
eeaa9b22a8 New method to check table indexes 2018-06-08 22:59:24 +02:00
Cameron
a1469aad5e Issue #3175 GDPR work. 2018-06-05 12:55:20 -07:00
Cameron
bab26e7762 datetimepicker() assumes the timezone to be that of the browser, which can pose problems in some situations. Now we can set a different timezone for the datepicker input and the UTC value will be automatically adjusted. eg. writeParms = array(type='datetime', 'timezone'=>'America/Los_Angeles') 2018-05-25 19:00:55 -07:00
Cameron
d023cfc63c datepicker timezone fix. 2018-05-25 08:47:47 -07:00
Cameron
78213c4a31
Merge pull request #3145 from SimSync/master
Fix for missing entries in strptime result array on Windows
2018-05-24 15:49:53 -07:00
Cameron
998a8fe7c3 JS datetimepicker() updated to latest version. Fixed datetimepicker() to respect the e107 timezone setting while saving as UTC. ie (admin > prefs > Date Display Options ) or the user's timezone setting (usersettings.php when the timezone user-extended field is enabled) . 2018-05-24 15:16:02 -07:00
Achim Ennenbach
8a6f1f5199 Fix for missing entries in strptime result array on Windows 2018-05-24 21:25:51 +02:00
Cameron
b06d67d0a1 Date handler. Reduce usage of strptime(). Date format conversion from strftime() > DateTime added to toMask() method. 2018-05-24 07:39:54 -07:00
Cameron
0c1ab45835 Form Handler Fixed drop-down 'empty' value check. 2018-05-23 18:47:34 -07:00
Cameron
d7e3caae83 Admin-ui: Improved adminMenu highlighting when custom uri in use.
Plugin Builder: added menu divider example.
2018-05-23 16:29:37 -07:00
Cameron
d512035eb6
Merge pull request #3130 from SimSync/master
Fixed smaller issues in date_handler.php
2018-05-16 14:07:34 -07:00
Achim Ennenbach
b1473ed919 removed orphaned variable 2018-05-15 22:56:13 +02:00
Achim Ennenbach
fc2873f46b closes e107inc/e107#3063
added option be able to set a different pattern
added additional options do define step, min, max value and decimals
2018-05-15 22:21:05 +02:00
Achim Ennenbach
6203233f30 fixed issue in strptime with wrong monthname on windows 2018-05-15 22:00:47 +02:00
Achim Ennenbach
34b422ff58 fixed orphaned . (dot) in convert_date 2018-05-15 21:54:43 +02:00
Cameron
ac4b505ceb Issue #3104 Library CSS fix for late calls. (eg. bootstrap-switch ) 2018-05-12 11:46:28 -07:00
Cameron
6b925a6f76 Issue #3104 - Library CSS order fix. 2018-05-11 17:39:26 -07:00
Cameron
bf9cf05b0e Renamed date handler to e_date. BC support added. 2018-05-11 14:58:04 -07:00
Cameron
129ac9436d Renamed date class and included BC fix. 2018-05-11 08:39:01 -07:00
Cameron
a3092e1d42
Merge pull request #3121 from yesszus/patch-2
Issue #6  Update userposts.php
2018-05-09 15:47:15 -07:00
Cameron
c7c3c49daf Support for 'IGNORE' duplicate key on INSERT. 2018-05-09 11:13:05 -07:00
Gábor
1109854538
Update news_class.php 2018-05-08 08:26:17 +02:00
Cameron
ed36008286 Non-standard arg_separator.output value fix. 2018-05-04 17:58:25 -07:00
Cameron
745f9a7c61
Merge pull request #3114 from SimSync/master
Closes #3113 parses a string into a db ready number format
2018-05-04 11:19:23 -07:00
Achim Ennenbach
d01a97816f refactoring toNumber() into e_parse class 2018-05-04 19:27:00 +02:00