if (!isset($_SESSION)) { session_start(); } require('../system/dbconnect.php'); require('../system/functions.php'); require('../system/config.inc'); error_reporting(E_ALL); /* Here are three possibilities -If they have just finished uploading post data go to paypal -If they have just submitted form then process the input data -If the process is finished and final message displayed finalize and deliver file Either will prevent the rest of the page from loading */ if ($_SESSION['process'] == 'results'){ include "finalize.php"; } else if ($_SESSION['process'] == 'initialized') { //If it is on my computer or someone who is logged in as admin uses this it's free if ($_SESSION['testmode'] == 'free' || $_SESSION['s_userid'] == 1228){ $_SESSION['process'] = "paid"; } else header("Location:pay.php"); } else if ($_POST) { //echo "
Uploading....
"; include "input_data.php"; } ?>The file you have submitted appears to contain over 5000 postcodes
If you click "continue", only the first 5000 postcodes will be processed.Completed
"; echo " return to ukcrimestats.com"; $_SESSION['process'] = 'results'; ?> } else { include("main.php"); } ?>