scratch – Diff between revs 67 and 73
?pathlinks?
Rev 67 | Rev 73 | |||
---|---|---|---|---|
Line 80... | Line 80... | |||
80 | #### Store the file. |
80 | #### Store the file. |
|
81 | atomized_put_contents($userPath.'.'.$fileExtension, $data); |
81 | atomized_put_contents($userPath.'.'.$fileExtension, $data); |
|
Line 82... | Line 82... | |||
82 | |
82 | |
|
83 | ### Return the URL to the file. |
83 | ### Return the URL to the file. |
|
84 | header('Content-Type: text/plain; charset=utf-8'); |
84 | header('Content-Type: text/plain; charset=utf-8'); |
|
85 | echo sprintf('%s/%s', trim($config['URL_PATH'], '/'), $file); |
85 | echo $file; |
|
86 | break; |
86 | break; |
|
87 | case 'GET': |
87 | case 'GET': |
|
88 | ### If no file has been specified for download then return. |
88 | ### If no file has been specified for download then return. |
|
89 | if (!isset($_GET['o']) or empty($_GET['o'])) { |
89 | if (!isset($_GET['o']) or empty($_GET['o'])) { |