Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- include("config.php");
- // Begin gathering personal info
- $igname = $_POST['igname'];
- $corp = $_POST['corp'];
- $alliance = $_POST['alliance'];
- $ipaddress = $_POST['ip'];
- //Begin gathering ship selection
- $Abaddon = $_POST['abaddon'];
- $Armageddon = $_POST['armageddon'];
- $Apocalypse = $_POST['apocalypse'];
- $Hyperion = $_POST['hyperion'];
- $Megathron = $_POST['megathron'];
- $Dominix = $_POST['dominix'];
- $Maelstrom = $_POST['maelstrom'];
- $Tempest = $_POST['tempest'];
- $Typhoon = $_POST['typhoon'];
- $Rokh = $_POST['rokh'];
- $Raven = $_POST['raven'];
- $Scorpion = $_POST['scorpion'];
- // Begin gathering ship counts
- $Abaddoncount = $_POST['abaddoncount'];
- $Armageddoncount = $_POST['armageddoncount'];
- $Apocalypsecount = $_POST['apocalypsecount'];
- $Hyperioncount = $_POST['hyperioncount'];
- $Megathroncount = $_POST['megathroncount'];
- $Dominixcount = $_POST['dominixcount'];
- $Maelstromcount = $_POST['maelstromcount'];
- $Tempestcount = $_POST['tempestcount'];
- $Typhooncount = $_POST['typhooncount'];
- $Rokhcount = $_POST['rokhcount'];
- $Ravencount = $_POST['ravencount'];
- $Scorpioncount = $_POST['scorpioncount'];
- // Ship Costs
- $Abaddoncost = "100000000";
- $Abaddoncostf = number_format($Abaddoncost * $Abaddoncount);
- $Armageddoncost = "80000000";
- $Armageddoncostf = number_format($Armageddoncost * $Armageddoncount);
- $Apocalypsecost = "60000000";
- $Apocalypsecostf = number_format($Apocalypsecost * $Apocalypsecount);
- $Hyperioncost = "60000000";
- $Hyperioncostf = number_format($Hyperioncost * $Hyperioncount);
- $Megathroncost = "60000000";
- $Megathroncostf = number_format($Megathroncost * $Megathroncount);
- $Dominixcost = "60000000";
- $Dominixcostf = number_format($Dominixcost * $Dominixcount);
- $Maelstromcost = "60000000";
- $Maelstromcostf = number_format($Maelstromcost * $Maelstromcount);
- $Tempestcost = "60000000";
- $Tempestcostf = number_format($Tempestcost * $Tempestcount);
- $Typhooncost = "60000000";
- $Typhooncostf = number_format($Typhooncost * $Typhooncount);
- $Rokhcost = "60000000";
- $Rokhcostf = number_format($Rokhcost * $Rokhcount);
- $Ravencost = "60000000";
- $Ravencostf = number_format($Ravencost * $Ravencount);
- $Scorpioncost = "60000000";
- $Scorpioncostf = number_format($Scorpioncost * $Scorpioncount);
- //Begin deciding whats ordered
- if ($Abaddon == NULL) {
- } else {
- $Abaddonorder = "$Abaddon x$Abaddoncount - $Abaddoncostf ISK<br> ";
- }
- if ($Armageddon == NULL) {
- } else {
- $Armageddonorder = "$Armageddon x$Armageddoncount - $Armageddoncostf ISK<br> ";
- }
- if ($Apocalypse == NULL) {
- } else {
- $Apocalypseorder = "$Apocalypse x$Apocalypsecount - $Apocalypsecostf ISK<br> ";
- }
- if ($Hyperion == NULL) {
- } else {
- $Hyperionorder = "$Hyperion x$Hyperioncount - $Hyperioncostf ISK<br> ";
- }
- if ($Megathron == NULL) {
- } else {
- $Megathronorder = "$Megathron x$Megathroncount - $Megathroncostf ISK<br> ";
- }
- if ($Dominix == NULL) {
- } else {
- $Dominixorder = "$Dominix x$Dominixcount - $Dominixcostf ISK<br> ";
- }
- if ($Maelstrom == NULL) {
- } else {
- $Maelstromorder = "$Maelstrom x$Maelstromcount - $Maelstromcostf ISK<br> ";
- }
- if ($Tempest == NULL) {
- } else {
- $Tempestorder = "$Tempest x$Tempestcount - $Tempestcostf ISK<br> ";
- }
- if ($Typhoon == NULL) {
- } else {
- $Typhoonorder = "$Typhoon x$Typhooncount - $Typhooncostf ISK<br> ";
- }
- if ($Rokh == NULL) {
- } else {
- $Rokhorder = "$Rokh x$Rokhcount - $Rokhcostf ISK<br> ";
- }
- if ($Raven == NULL) {
- } else {
- $Ravenorder = "$Raven x$Ravencount - $Ravencostf ISK<br> ";
- }
- if ($Scorpion == NULL) {
- } else {
- $Scorpionorder = "$Scorpion x$Scorpioncount - $Scorpioncostf ISK<br> ";
- }
- $wanted = "$Abaddonorder $Armageddonorder $Apocalypseorder $Hyperionorder $Megathronorder $Dominixorder $Maelstromorder $Tempestorder
- $Typhoonorder $Rokhorder $Ravenorder $Scorpionorder";
- // Insert a row of information into the table "orders"
- $sql="INSERT INTO orders
- (name, corp, alliance, wanted, ipaddress) VALUES(' $igname ', ' $corp ', ' $alliance ', ' $wanted ', ' $ipaddress ')";
- if (!mysql_query($sql))
- {
- die('Error: ' . mysql_error());
- }
- echo "Order Recieved";
- ?>
Add Comment
Please, Sign In to add comment