コード例 #1
0
ファイル: caddy.php プロジェクト: bizanto/Hooked
             // should be 1 for successful email
         }
         if ($result == 1) {
             display::ThanksForOrder();
         } else {
             display::ThanksForOrderNoMail($result);
         }
         $cart = new cart2();
         $cart->destroyCart();
         // emoty all session vars of the cart, no visual return
     } else {
         $fields = new fields();
         $fieldlist = $fields->getPublishedFields();
         $fielddata = $_REQUEST;
         // get everything back
         display::showMyDetails($fieldlist, JText::_('SC_REQUIRED_MISSING'), $fielddata);
     }
     break;
 case "vouchers":
     $c = new $action();
     // should be "vouchers" here
     $c->{$task}();
     // execute the task (taskname should be a function in the vouchers class)
     $c->redirect();
     // redirect if set in the class
     break;
 case "shipping":
     $sh = new shippingRequest();
     break;
 default:
     echo "<p>To display products, use the plugins instead in your content, and read <a href='http://demo15.atlanticintelligence.net'>this</a> too.</p>";