if (!isset($_GET["id"])) { header( "Location: upgrade.php"); } else { header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" ); header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" ); header( "Cache-Control: no-cache, must-revalidate" ); header( "Pragma: no-cache" ); } include 'Header.txt'; $domain = $_SERVER["SERVER_NAME"] ; if ($_SERVER["DOCUMENT_ROOT"] == "/home/gsak/public_html") {$user = "gsak_data";} else {$user = "gsak60_data";} ; $ckey = $_GET["id"]; $dbh=mysql_connect("localhost", $user, "data24") or die ("I cannot connect to the database because: " . mysql_error()); @mysql_select_db($user) or die( "Unable to select database"); $clean = mysql_real_escape_string($ckey); $keylen = strlen($ckey); if ($keylen == 32 ) { $query = "select * from V7 where ckey = \"" . $clean . "\" and not cdone"; $result = mysql_query($query)or die(mysql_error()); $rows = mysql_num_rows($result); } else { $rows = 0; } if ($rows > 0) { $row = mysql_fetch_assoc($result); $cid = $row['cid']; $cemail = $row['cemail']; $cname = $row['cname']; $cval = $row['cval']; echo "
Version 7 upgrade
"; echo "Your GSAK registration is currently under the name of: $cname
" ; echo "As a registered GSAK user, you can upgrade to version 7 for \$$cval US. Just click on the PayPal button below" ; echo "Registration details will be sent to your registered GSAK address which is currently: $cemail";
echo '
If you would like to change this address, click here
" ;
echo "Purchase GSAK Version 7 Upgrade \$$cval US " ; echo ''; echo ' Note: PayPal will now accept credit cards directly - you DO NOT have to set up a PayPal account. ' ; echo ' |
' ; echo 'Upon receipt of payment, I will send you a registration code via e-mail. Follow the instructions in that email to register your copy of GSAK ' ; echo '
'; // echo "finished at: ". date("F j, Y, g:i a") ; // echo "finished at: 29/05/2006 5:19:13 PM"; } else { echo' - Woops! '; echo '';
echo "Link ID was not found. The most common reason is that " .
'this link has already been used to upgrade to version 7.';
// echo " $query"; echo ' |