Beispiel #1
0
 $my_array['WebShop_Categories'] = $ws->GetCategories($category);
 $my_array['WebShop_Items'] = $WebShopMessage001;
 if ($category === "MyBuys") {
     $my_array['WebShop_Last_Buys'] = "";
     if (!empty($item)) {
         if ($item == "Insurance") {
             $ws->RemoveInsurance($db, $acc, $_POST['idx']);
             die;
         } else {
             $my_array['WebShop_Last_Buys'] .= $ws->CancelBuy($db, $acc, $it, $item);
         }
     }
     $my_array['WebShop_Last_Buys'] .= $ws->GetMyFullLastBuys($db, $acc, $it);
     $category = "";
 } else {
     $my_array['WebShop_Last_Buys'] = $ws->GetTopLastBuys($db, $acc, $it);
 }
 if (isset($_POST['go'])) {
     if ($category == "make") {
         $my_array['WebShop_Items'] = $ws->BuyItem($item, $it);
     }
     if ($category == "pack") {
         $my_array['WebShop_Items'] = $ws->BuyPack($item, $it);
     }
 } else {
     if (!empty($category)) {
         if ($category == "make") {
             $my_array['WebShop_Items'] = $ws->GetItemConfigPane($item, $it);
         } else {
             if ($category == "pack") {
                 $my_array['WebShop_Items'] = $ws->GetPackConfigPane($item, $it);