timprove appearance of error 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 8e79e68c9d42c8064a36a739510ed9dc6af941b7
 (DIR) parent a88e5f407645c4612a6609c489623de79a2af6ab
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Wed, 21 Oct 2015 12:55:52 +0200
       
       improve appearance of error page
       
       Diffstat:
         M uploadhistory.php                   |      10 ++++++++--
       
       1 file changed, 8 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/uploadhistory.php b/uploadhistory.php
       t@@ -100,7 +100,9 @@ if ((isset($_POST['ne_conc']) && $_POST['ne_conc'] != '') &&
        
        // If something is missing, send error to user and make him/her go back
        if (count($missing_fields) > 0) {
       -    $error_msg = '<html><body>' .
       +    //$error_msg = '<html><body>' .
       +        //'<h2>Invalid input</h2>';
       +    $error_msg = '</head><body>' .
                '<h2>Invalid input</h2>';
        
            // generate comma-separated list of missing field names
       t@@ -117,7 +119,11 @@ if (count($missing_fields) > 0) {
            }
            $error_msg .= '</ul></p><p>Please <a href="javascript:history.back()">go' .
               ' back</a> and fill in the missing fields.</p></body></html>';
       -    die($error_msg); // end this script, print error
       +    //die($error_msg); // end this script, print error
       +    include('head.html');
       +    echo($error_msg); // end this script, print error
       +    include('foot.html');
       +    die();
        }