tadd waiting page - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
 (HTM) git clone git://src.adamsgaard.dk/cosmo
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit cb19418fe788ad21c6310e945d5b8e9f6406a297
 (DIR) parent 47aba7e6c65980a2ce311927f1425d7f2f547eff
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Wed,  2 Sep 2015 16:39:10 +0200
       
       add waiting page
       
       Diffstat:
         M index.php                           |      19 +++++++++++++++++++
         M uploadhistory.php                   |       2 +-
       
       2 files changed, 20 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/index.php b/index.php
       t@@ -62,9 +62,28 @@
                </nav>
        
                <main>
       +<?php
       +if (isset($_POST['wait_id']) || $_POST['wait_id'] != '') {
       +?>
       +    <div class="valign-wrapper">
       +    <h2 class="valign">
       +    Please wait while the inversion computations are taking place</h2>
       +    <p class="flow-text">This make take several minutes to complete.
       +    Please <b>do not</b> press the browser navigation buttons and stay on this 
       +    page.</p>
       +
       +    <div class="progress center-align">
       +        <div class="indeterminate"></div>
       +    </div>
       +
       +<?php
       +} else {
       +?>
                <div ng-view>
                    <!-- content is injected here -->
                </div>
       +<?php } ?>
       +
                </main>
        
                <footer class="page-footer blue">
 (DIR) diff --git a/uploadhistory.php b/uploadhistory.php
       t@@ -195,6 +195,6 @@ 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: /");
       +header("Location: /index.php?wait_id=". $outputfile);
        
        ?>