' . $msg . '

'; require (JIRAFEAU_ROOT.'lib/template/footer.php'); exit; } if (! isset ($_FILES ['file'])) { // XXX t ("OnlyUpload") returnError ("Only upload file"); } // ======================================== $maxtime = time ()+period2seconds ($_REQUEST ['time']); $key = isset ($_REQUEST ['key']) ? $_REQUEST ['key'] : ''; $ip = $_SERVER ['HTTP_X_REAL_IP']; // XXX $res = jirafeau_upload ( $_FILES['file'], isset ($_POST ['one_time_download']), $key, $maxtime, $ip, $cfg['enable_crypt'], $cfg['link_name_length'], $cfg['file_hash'] ); if (! count ($res ['error']) || $res['error']['has_error']) $content = 'Error 6 ' . $res['error']['why']; else $content = $res ['link'].NL.$res ['delete_link'].NL; header ('HTTP/1.0 200 OK'); header ('Content-Length: ' . strlen ($content)); header ('Content-Type: text/plain'); echo $content; exit; // ========================================