1
0
mirror of https://github.com/Rouji/single_php_filehost.git synced 2025-04-04 16:39:34 +00:00
Commit Graph

63 Commits

Author SHA1 Message Date
Rouji
3432903836 rm extraneous . from hupl config filename 2021-08-29 23:28:03 +02:00
Rouji
59afc5373f remove unnecessary issets etc. 2021-08-29 23:17:46 +02:00
Rouji
11a2ff253f format config a bit
also explain AUTO_FILE_EXT and EXTERNAL_HOOK
2021-08-29 23:06:47 +02:00
Rouji
c91f55d22b code golf SITE_URL() 2021-08-29 23:01:59 +02:00
Rouji
7d5c9719c2 clean up strings
use string interpolation where it makes sense
use '' for non-interpolated ones
use print instead of printf where it makes sense
2021-08-29 22:53:31 +02:00
Rouji
503f5e7272 use SERVER_NAME for uploader config names 2021-08-29 22:41:50 +02:00
Rouji
51ba3a429f encapsulate config stuff in a class
...mostly just a cheapo globally accessible namespace tbh
2021-08-29 22:38:56 +02:00
Rouji
3b8a6457c5 use DOWNLOAD_PATH again
recent PR replaced it with a hard-coded %s for no good reason
2021-08-29 21:54:45 +02:00
Rouji
57e7385ddf move warn_config_value into check_config
isn't used anywhere else
2021-08-23 00:14:56 +02:00
Jacob
6471ece220
Replace URL building code with $SITE_URL global 2021-08-22 23:06:32 +02:00
mul91n
ecebb86614 Remove unused sprintf 2021-08-14 15:32:50 +10:00
mul91n
6f579bc23f Fix download link for servers not on default port 2021-08-14 15:31:22 +10:00
mul91n
68d8c33687 Return early on move_uploaded_files() error 2021-08-14 15:30:48 +10:00
Rouji
1c7d3d2abc add "viewport" meta tag
shit's *tiny* on some mobile devices otherwise
resolves #8
2021-08-09 21:28:00 +02:00
Rouji
aac9c82690 typos gonna type 2021-07-04 02:34:28 +02:00
Rouji
eaee93e0ed add newline to output
kept annoying people who their shell prompt stuck to the end of the link
and breaking url handling in their terminal etc.
2021-06-05 23:36:28 +02:00
Rouji
3d3ccec162 optionally detect file extension by file contents
mainly useful for the netcat -> http post bridge thing
2021-05-22 00:55:45 +02:00
Rouji
0304c069fd add license
oi m8 you got a loicense for that code?
2021-03-15 20:42:03 +01:00
Rouji
8ff340afc9 provide a generic hook thing instead of the clamav specific thing 2021-01-30 19:22:32 +01:00
Rouji
547e13d591 uncamel a case 2020-07-12 13:01:39 +02:00
Rouji
c45cde12f7 check for 0B files and reject them 2020-07-12 12:50:46 +02:00
Rouji
98b7c16263 add hint about piping to curl with a file extension 2020-06-07 22:35:39 +02:00
Rouji
0897b3e94e kill some pesky commas 2020-03-17 10:32:13 +01:00
Rouji
e05d07e7a4 remove x0 from title 2020-03-17 10:30:36 +01:00
Rouji
89145d6585 fix some html validator concerns 2019-06-24 00:40:03 +02:00
Rouji
be2d77e546 remove erroneous </title> tag 2019-06-03 19:50:27 +02:00
Rouji
985a185cdc remove erroneous \n 2019-04-20 23:48:38 +02:00
Rouji
494f4a0c89 virus->malware 2019-03-23 19:06:25 +01:00
Rouji
858427c364 get rid of .htaccess 2019-03-23 18:17:14 +01:00
Rouji
8bbc9138da clean up some things
also added logging and (clunky) scan using clamd
2019-03-23 18:12:25 +01:00
Rouji
3a2d84d7de point hupl link to github because google pulled the app from the store for no reason they feel is important enough to mention to me. also add a hupl uploader link 2018-09-19 23:35:25 +02:00
Rouji
0e52b3b0da remove testing output crap... 2017-10-02 20:58:30 +02:00
Rouji
3110662020 up the filename length only after multiple collisions 2017-10-02 20:56:04 +02:00
Rouji
5e0af0eb61 omit trailing dot on files without extension 2017-04-04 00:16:23 +02:00
Rouji
b37a6c4ae4 set destinationtype in sharex config 2017-03-28 18:39:33 +02:00
Rouji
c7fd21fa58 sharex .json -> .sxcu 2017-03-28 17:59:43 +02:00
狼耳
a858d133d0 using the correct comparison here would be a good idea, I think 2017-03-12 18:38:29 +01:00
Rj48
90ff72ffc7 change github url 2017-01-23 05:50:28 +01:00
Rj48
18a1d66d09 Merge branch 'master' of github.com:Rj48/single_php_filehost 2017-01-22 17:19:22 +01:00
Rj48
d1b1d838e3 ids don't need to be this long, do they? 2017-01-22 17:18:26 +01:00
Rj48
626a227f76 prevent filename collisions 2017-01-22 17:17:15 +01:00
Rj48
16f2b6669f add ShareX link + custom uploader 2016-12-30 05:02:09 +01:00
Rj48
9ceb65a05c commenting commentary comments 2016-12-22 22:55:31 +01:00
Rj48
13d926d210 more sane default exponent 2016-12-22 22:38:53 +01:00
Rj48
09e4a35f82 doesn't need to be uneven, I should l2maths 2016-12-22 22:37:39 +01:00
Rj48
ccb5da9d6e trim long extensions 2016-10-27 23:31:46 +02:00
Rj48
110381682a skip .htaccess and .htpasswd during purge 2016-07-18 06:24:28 +02:00
Rj48
cc1f0e9181 Merge branch 'master' of github.com:Rj48/single_php_filehost 2016-07-18 03:43:21 +02:00
Rj48
cc77a10fe5 added default directory for uploaded files + .htaccess for it 2016-07-18 03:42:34 +02:00
Rj48
077606523e gitignore is kind of useless for this 2016-07-18 03:40:06 +02:00