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

63 Commits

Author SHA1 Message Date
Cameron
55980a29a8 Generated PHPDoc for all classes in e107_handlers where one was missing. toNumber() updated to always return int or float. 2022-04-04 10:54:24 -07:00
Cameron
0d8f3e9086 PHPDoc fixes and code optimization. 2021-12-03 14:58:33 -08:00
Cameron
2c9afc83ee More PHP 8.1 fixes. 2021-11-26 12:36:25 -08:00
Nick Liu
20882920a0
Fix all PHP 8.1 test failures
* `strftime()` has been replaced with a polyfill based on `DateTime`.
* Explicit type casts/assertions added where required by PHP 8.1
* `filter_var(…, FILTER_SANITIZE_STRING)` replaced with `strip_tags()`
  or HTML entity encoding of quotation marks, depending on a guess of
  what the intended "sanitization" was
* `http_build_query()` usage type mismatches fixed
* Removed usages of the `FILE_TEXT` constant
* To avoid breaking PHP 5.6 compatibility (function return types),
  `e_session_db` no longer implements `SessionHandlerInterface`.
  Instead, the alternative non-OOP invocation of
  `session_set_save_handler()` is used instead to apply the session
  handler.
* The shim for `strptime()` still calls the native function if available
  but now suppresses the deprecation warning.

* `e_db_pdo` explicitly asks for `PDO::ATTR_STRINGIFY_FETCHES` to
  maintain consistent behavior with past versions of PHP.
* `e_db_mysql` explicitly sets `mysqli_report(MYSQLI_REPORT_OFF)` to
  maintain consistent behavior with past versions of PHP.

* Removed pointless random number generator seed from `banner` plugin
* Workaround for `COUNT(*)` SQL query in
  `validatorClass::dbValidateArray()` without a proper API for avoiding
  SQL injection
2021-09-04 15:06:19 +02:00
Cameron
8f27be1150 Added e_user.php 'settings' method to define additional (extended) user fields dynamically. See _blank/e_user.php 2021-01-18 18:42:03 -08:00
Cameron
402d1f4126 Closes #1801 Code cleanup. Deprecated method errors added. 2020-12-22 14:48:28 -08:00
Cameron
3f8e043998 Replaced e107::getAdminLog() with e107::getLog(). e107::getAdminLog() will continue as a deprecated alias. 2020-12-22 09:36:02 -08:00
Cameron
601df26d51 Code optimization for speed and reduced memory usage. 2020-12-20 11:50:10 -08:00
Cameron
f5153bf640 Updating of deprecated method usage. Removal of old files. Log tests added. 2020-12-18 09:39:02 -08:00
Cameron
44e260b121 Code cleanup and optimization 2020-12-14 16:21:48 -08:00
Cameron
09fb747374 Code cleanup 2020-12-05 14:13:18 -08:00
Cameron
450b35f017 Removed redundant closing tags. 2020-06-05 11:34:17 -07:00
Deltik
1f824faa69
Renormalized all text file line endings 2019-03-29 19:13:32 -05:00
Cameron
1bfd05b454 File class cleanup 2018-08-10 10:59:26 -07:00
Lóna Lore
e3621e489f Fix for PHP Notice Use of undefined constant UH_DEBUG - assumed 'UH_DEBUG', Line 896 of /e107_handlers/upload_handler.php 2017-12-10 13:37:47 +01:00
Cameron
02e80f50de Parser cleanup 2017-09-19 16:19:39 -07:00
Cameron
43d0211590 Code cleanup: deprecated include_lan() 2017-01-23 09:41:23 -08:00
Cameron
126f89da9f Code cleanup 2016-12-01 15:38:40 -08:00
Michael Waskosky
c17577d2dc Added support for a few more file types
A few common media file types added
2016-04-02 05:42:44 -06:00
Cameron
2e067dfdf7 Private Message: Issue #1423, #1434 - v2.x fixes/updates. Improved user-file upload handling. 2016-03-30 19:10:00 -07:00
Miroslav Yovchev
8ce130266e Fix broken file upload - temp file unexpectedly renamed 2016-03-21 19:21:41 +02:00
Cameron
7846015f85 SubmitNews code cleanup. Admin can now set minimum dimensions for attached images. 2016-03-16 19:54:10 -07:00
SecretR
af5ca367e8 Better handle uploaded images - performance and bugfix 2015-09-19 19:18:08 +03:00
leo
3bc8dbdf83 2015-06-25 16:05:23 +02:00
Cameron
00696d92d3 Added filetypes.xml info in Admin-> Preferences -> File Uploads to remove confusion with file upload limits. Theme upload should be working correctly now. 2015-02-10 23:13:53 -08:00
Cameron
d437765a22 Plugin install tweaks and layout fixes. 2015-02-04 04:01:08 -08:00
SecretR
575973e10c Wrong max_file_count handling (upload handler) 2013-10-19 01:47:01 +03:00
SecretR
9b25fa3c61 Upload handler fix - handle non-latin filenames 2013-10-17 16:56:31 +03:00
SteveD
b9a452e793 Minor tidying - lose a few globals, a few 'todos' 2013-02-13 22:34:06 +00:00
CaMer0n
3ff7170946 default upload path moved to e107_system/temp - requires testing. 2012-11-12 21:46:10 +00:00
CaMer0n
7e3bb486d4 Moved filetypes.xml path to e_SYSTEM directory and auto-generate file if not found. 2012-08-19 05:10:43 +00:00
e107steved
494874bdc6 Remove unneeded feature 2010-03-27 17:12:21 +00:00
secretr
4fecfffddd svn keywords added (v0.8) 2010-02-10 18:18:01 +00:00
secretr
0ef179fe57 file_size_decode() moved from upload to file handler 2010-02-09 15:24:55 +00:00
secretr
2c1c818e23 upload handler XML troubles - switched to new xml parse method 2010-01-12 09:56:57 +00:00
e107steved
aecec3967e Remove bits related to uploading files into DB (only flat files supported now) 2010-01-11 21:32:10 +00:00
e107steved
eee9a2dbf0 Bugtracker #4872 - allow XMP headers in uploads 2009-12-18 21:35:15 +00:00
CaMer0n
1377b23532 Fix copyright info. 2009-11-18 01:06:08 +00:00
marj
07b233ea05 We need to fix this 2009-11-17 09:17:08 +00:00
CaMer0n
04b264fd07 Media Manager work.. 2009-11-14 04:13:11 +00:00
CaMer0n
b2986c3960 e_FILE.'public/' replaced with e_UPLOAD 2009-11-07 02:10:52 +00:00
CaMer0n
d892e2c039 Some code cleanup 2009-11-05 09:15:19 +00:00
secretr
a251ab6bab Allow various media file uploads (flv, f4v, mov, avi), code (almost) auto-formatted 2009-10-16 21:15:56 +00:00
e107steved
d1758cce36 Allow flash file uploads 2009-10-13 20:50:39 +00:00
e107steved
812dbfe9a9 Allow wmv files 2009-09-28 19:07:53 +00:00
e107steved
fa72c3395f Bugtracker #4545 - uniform way of displaying file sizes 2008-10-19 11:35:00 +00:00
e107steved
9eae31a6b2 Missed string length 2008-10-04 16:10:55 +00:00
e107steved
670b4964a7 Support plugin.xml in most of the areas which currently read plugin.php; clear system cache in theme manager when saving theme prefs; bug fix in upload_handler XML file read; add filter option to XML class; remove some historic code from admin.php 2008-08-25 10:46:46 +00:00
e107steved
8e43ba51f6 Make file size decode more tolerant 2008-07-06 21:25:31 +00:00
e107steved
899490243b Bugtracker #4311 - calculate largest allowable upload file size in admin functions 2008-05-25 09:04:16 +00:00