scratch

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 47  →  ?path2? @ 48
/.htaccess
@@ -0,0 +1,2 @@
RewriteEngine on
RewriteRule "^/([A-Za-z0-9]{8})$" "get.php?f=$1" [QSA,L]
/config.php.dist
@@ -8,6 +8,9 @@
# uploaded.
$STORE_FOLDER = '/var/www/incoming/';
 
# The size of the asset hash generated when uploading.
$ASSET_HASH_SIZE = 8;
 
# Set this to the URL path of the folder where the files can be retrieved.
$URL_PATH = 'http://my.tld/incoming/';
 
/get.php
@@ -0,0 +1,4 @@
<?php
 
echo "boo";
 
/share-text.php
@@ -36,10 +36,12 @@
'',
hash(
'sha512',
$fingerprint
$fingerprint,
)
)
).'.html'
),
$ASSET_HASH_SIZE
).
'.html'
);
 
#### Build the user path.
/upload-files.php
@@ -41,8 +41,10 @@
'sha512',
$data
)
)
). '.'.
),
$ASSET_HASH_SIZE
).
'.'.
$fileExtension
);