/** * @return bool|int false on error, count of the orders on success (can be 0) */ public static function exportOrders() { set_time_limit(0); $data = array('shop_id' => Options::getShopID(), 'shop_secret' => Options::getShopSecret(), 'orders' => self::getOrdersForExport()); if (count($data['orders']) > 0) { self::sendData($data); } return count($data['orders']); }
'TITLE' => GetMessage('REES_OPTIONS_DISPLAY'), ), array( 'DIV' => 'edit3', 'TAB' => GetMessage('REES_QUICK_EXPORT'), 'TITLE' => GetMessage('REES_QUICK_EXPORT'), ), )); $tabControl->Begin(); $tabControl->BeginNextTab(); ?> <div> <label for="REES46_shopid"><?= GetMessage('REES_OPTIONS_SHOP_ID') ?></label> <br/> <input type="text" id="REES46_shopid" value="<?= \Rees46\Options::getShopID() ?>" name="shop_id" style="width: 300px"/> </div> <div style="margin-top: 10px;"> <label for="REES46_shopsecret"><?= GetMessage('REES_OPTIONS_SHOP_SECRET') ?></label> <br/> <input type="text" id="REES46_shopsecret" value="<?= \Rees46\Options::getShopSecret() ?>" name="shop_secret" style="width: 300px"/> </div> <div style="margin-top: 60px;"> <table> <tr> <td style="padding-left: 0"> <label for="REES46_recommend_count"><?= GetMessage('REES_OPTIONS_RECOMMEND_COUNT') ?></label> </td> <td style="padding-left: 10px">
public static function showRecommenderCSS() { global $APPLICATION; static $css_sent = false; $shop_id = Options::getShopID(); if ($APPLICATION && $shop_id && $css_sent === false) { $APPLICATION->AddHeadString('<link href="http://rees46.com/shop_css/' . $shop_id . '" rel="stylesheet" type="text/css" />'); } $css_sent = true; // $prefix = SITE_DIR ?: '/'; // // if ($APPLICATION && $css_sent === false) { // $APPLICATION->AddHeadString('<link href="'. $prefix .'include/rees46-handler.php?action=css" rel="stylesheet" />'); // $css_sent = true; // } }