Commit Graph

169 Commits

Author SHA1 Message Date
Oha-you 7a7cdcacf3 fix: Check filenames properly, use separate function without '/' 2021-04-17 14:48:52 +03:00
Oha-you 452254c691 add: Validate if files inside torrents have valid filenames 2021-04-15 01:15:53 +03:00
Oha-you 3b8cbab91f fix: Validate if the uploaded file is a valid torrent 2021-04-14 23:01:45 +03:00
HDVinnie 8ef0446933 Apply fixes from StyleCI
[ci skip] [skip ci]
2021-01-14 02:57:55 +00:00
HDVinnie 3e97e3941b update: torrent upload message 2021-01-13 21:57:42 -05:00
HDVinnie c7401b7ea8 refactor: preslash simple functions
- performance
2021-01-05 17:45:46 -05:00
HDVinnie 7f77d02dd1 refactor: encapsed strings to sprintf 2021-01-02 17:46:39 -05:00
HDVinnie c413575d44 refactor: api torrent controller
- Combine Ifs
2020-12-31 12:58:10 -05:00
HDVinnie 8a9d94e07a update: preslash simple functions
- performance
2020-12-31 12:41:46 -05:00
HDVinnie 90b3880dab update: strpos and substr functions
- strpos and substr functions calls that can be replaced with the str_* functions calls (introduced in PHP 8.0).
2020-12-30 22:55:44 -05:00
HDVinnie 0ffcc0bf46 refactor: api torrent controller 2020-12-30 01:21:27 -05:00
HDVinnie 18f299157e refactor: api chat controller 2020-12-30 01:20:40 -05:00
HDVinnie a5ffe4a71a cleanup: api torrent controller 2020-12-28 23:13:42 -05:00
HDVinnie 2476770b10 cleanup: api chat controller 2020-12-28 23:11:30 -05:00
HDVinnie de86488112 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-12-18 05:20:06 +00:00
HDVinnie f0cac4a7d9 fix: api chat controller 2020-12-18 00:02:07 -05:00
HDVinnie 467d31f10a refactor: constructor promotions 2020-12-17 23:25:50 -05:00
HDVinnie 51c8d70f94 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-12-16 03:32:01 +00:00
HDVinnie 45d9602d17 update: torrent api
- add keywords support
2020-12-15 22:31:49 -05:00
HDVinnie 8efb7b4c58 update: api chat controller
- condition that are already covered by earlier condition and thus has no effect
2020-12-03 00:09:14 -05:00
HDVinnie 78b5958686 refactor: use null comparison instead of empty 2020-12-02 21:19:45 -05:00
HDVinnie 817ce03fd0 refactor: insecure uniqid usage 2020-12-02 21:18:16 -05:00
HDVinnie f70452da1a refactor: 'substr(...)' replaced with 'strpos(...)'
- 'substr(...)' invokes additional memory allocation (more work for GC), which is not needed in the context. 'strpos(...)' will do the same job with CPU resources only.
2020-12-02 21:07:17 -05:00
HDVinnie 80ea54dc57 fix: torrent api 2020-11-23 18:14:15 -05:00
HDVinnie 992245bbcc Apply fixes from StyleCI
[ci skip] [skip ci]
2020-10-28 20:42:44 +00:00
HDVinnie e5a4a16ddf refactor: meta data system
- Complete rewrite of meta data system
- New media hub feature.
- Torrent Bumping Refactor
- Wish System Disabled until refactored
- Fetch meta command added for fetchinng new meta on prexsisnting torrents.
- plus alot more
- closes #1428
- closes #1344
- closes #1147
- closes #361
2020-10-28 16:42:22 -04:00
HDVinnie 99fd793d3d refactor: rename param to match type 2020-09-04 13:33:20 -04:00
PyR8zdl 4cb4dfd17a Fixes featured torrents not being set to freeleech and doubleup when uploaded via API 2020-08-07 17:26:30 -05:00
HDVinnie 0733269867 update: phpdoc blocks 2020-07-22 16:57:13 -04:00
HDVinnie a975116218 refactor: preslash simple functions
- Add pre-slash to short named functions to improve performance by almost 30%
-  @see https://stackoverflow.com/questions/55419673/php7-adding-a-slash-to-all-standard-php-functions-php-cs-fixer-rule
2020-07-22 15:09:37 -04:00
HDVinnie e7ccde0190 refactor: rename property to match type 2020-07-22 14:50:41 -04:00
HDVinnie 67edb56d01 fix: resolutions system 2020-06-09 22:06:13 -04:00
HDVinnie 296e4f590b update: torrent api controller 2020-06-06 22:36:16 -04:00
HDVinnie f8e93da99e update: api torrent controller 2020-06-06 21:45:06 -04:00
HDVinnie f69ecec866 refactor: code quality changes 2020-06-02 18:37:19 -04:00
HDVinnie 7c1c37d52e update: torrent request types 2020-05-26 20:08:52 -04:00
HDVinnie ee85ab10ba update: torrent types 2020-05-26 13:45:43 -04:00
HDVinnie 3d3de56ccb update: queries 2020-05-26 13:22:18 -04:00
HDVinnie bf76798bd3 refactor: nullable compare to null 2020-04-24 11:31:12 -04:00
HDVinnie 78608a4666 refactor: space after sole ! operators
-  There should be a space after sole `!` operators
2020-04-14 22:31:48 -04:00
HDVinnie 887fc2be78 chore: styleci 2020-04-07 14:24:15 -04:00
HDVinnie 657fe1d1d7 update: torrent api
- update torrent resource to parse torrent size
- add filter params for torrent size, info_hash and file_name
2020-04-07 14:20:15 -04:00
HDVinnie a724a9c1eb update: simplify if else to ternary 2020-03-22 11:45:41 -04:00
PyR8zdl 5b7decc002 styleci fixes 2020-03-20 14:09:25 -05:00
PyR8zdl d71ca03455 Fixed indent's 2020-03-20 14:02:20 -05:00
PyR8zdl efc65e45d1 Fixed more issues. Mostly tested. 2020-03-18 20:08:32 -05:00
PyR8zdl dd67d63cbb Fixed Logical Operator 2020-03-18 16:23:21 -05:00
PyR8zdl 91122f532c ADD new options on torrent upload **STILL TESTING**
Adds options to set torrent as Featured, DoubleUp, Freeleech, and Sticky on upload api endpoint.

I've done limited testing on this and I'm worndering if this could be done better.
2020-03-18 16:00:13 -05:00
shlandturtle 89396e8068 fix: internal in API 2020-03-08 17:27:08 +00:00
HDVinnie 408bfafc3e Apply fixes from StyleCI
[ci skip] [skip ci]
2020-03-05 15:47:30 +00:00