Beispiel #1
0
 } else {
     $category = 0;
     if (substr_count($_GET['c'], "/") > 0) {
         $my_url = explode("/", $_GET['c']);
         $category = $my_url[1];
         if (isset($my_url[2])) {
             $item = $my_url[2];
         }
     }
     $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") {