public function check_view_orders() { if (!basket_plus::can_view_orders()) { die("Invalid access."); } }
<?php defined("SYSPATH") or die("No direct script access."); ?> <?php if ($theme->page_type != 'basket') { ?> <?php if (basket_plus::can_view_orders()) { ?> <a href="<?php echo url::site("basket_plus/view_Orders"); ?> " title="<?php echo t("View Orders"); ?> ">View Orders</a> <?php } ?> <?php if (isset($basket) && isset($basket->contents) && $basket->size() > 0) { ?> <div id="basket"> <a href="<?php echo url::site("basket_plus/view_basket"); ?> " title="<?php