{ $bTmpUserCreated = true; if (isset($USER)) { $USER_TMP = $USER; unset($USER); } $USER = new CUser(); } CCatalogDiscountSave::Disable(); CCatalogDiscountCoupon::ClearCoupon(); if ($USER->IsAuthorized()) { CCatalogDiscountCoupon::ClearCouponsByManage($USER->GetID()); } function yandex_replace_special($arg) { if (in_array($arg[0], array(""", "&", "<", ">"))) return $arg[0]; else return " "; } function yandex_text2xml($text, $bHSC = false, $bDblQuote = false) { global $APPLICATION; $bHSC = (true == $bHSC ? true : false);
public function ClearCouponsByManage($intUserID) { return CCatalogDiscountCoupon::ClearCouponsByManage($intUserID); }