forked from AlexJezior/TheFallenImmortals
-
Notifications
You must be signed in to change notification settings - Fork 1
/
buystyle.php
34 lines (30 loc) · 1.17 KB
/
buystyle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
session_name("icsession");
session_start();
include('db.php');
if($_POST['buystyle'] == "Fighter"){
$data = "<center>Item Type:<select id=\'type\' onchange=\'buyType()\'>";
$data .= "<option>Nothing</option>";
$data .= "<option value=\'FighterWeapon\'>Weapon</option>";
$data .= "<option value=\'FighterArmor\'>Armor</option>";
$data .= "<option value=\'FighterGloves\'>Gloves</option>";
$data .= "<option value=\'FighterLegging\'>Legging</option>";
$data .= "<option value=\'FighterBoots\'>Boots</option>";
$data .= "</select></center>";
}elseif($_POST['buystyle'] == "Mage"){
$data = "<center>Item Type:<select id=\'type\' onchange=\'buyType()\'>";
$data .= "<option>Nothing</option>";
$data .= "<option value=\'MageWeapon\'>Weapon</option>";
$data .= "<option value=\'MageArmor\'>Armor</option>";
$data .= "<option value=\'MageGloves\'>Gloves</option>";
$data .= "<option value=\'MageLegging\'>Legging</option>";
$data .= "<option value=\'MageBoots\'>Boots</option>";
$data .= "</select></center>";
}else{
$data = "";
}
print("fillDiv('itemType','".$data."');");
print("fillDiv('item','');");
print("fillDiv('buyDesc','');");
include('updatestats.php');
?>