Commit 9641d858 authored by Anders Damsgaard's avatar Anders Damsgaard

save id separately

parent da1c3d90
......@@ -150,6 +150,7 @@ $fieldnames = array(
// Generate unique output file name
//$outputfile = tempnam('/tmp', 'cosmo_');
$outputfile = tempnam('/home/adc/cosmo/input', 'cosmo_');
$id = explode('_', $outputfile)[1];
if (is_writable($outputfile)) {
if (!$handle = fopen($outputfile, 'w')) {
......@@ -193,9 +194,10 @@ if (!chmod($outputfile, 0777)) {
// Finally redirect user after processing uploaded data. This header function
// call must be before any output!
//header("Location: /~ad/cosmo");
header("Location: /index.php?wait_id=". explode("_", $outputfile)[1]);
header("Location: /index.php?wait_id=". $id);
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment