query("SELECT Count(*) as ntotal FROM product WHERE product_parent_id='0' AND product_type='".$sProdType."'"); $db->next_record(); $iNTotal=IntVal($db->f("ntotal")); if($iNTotal>=$iMaxVal) { return FALSE; } } //*** 2012-12-21 (end) //*** 2011-09-20 (begin) DEFINE("CANC_POLICY_ID", 29); DEFINE("TERMS_PAGE_ID", 30); DEFINE("TERMS_PDF_PAGE_ID", 31); DEFINE("PRIVACY_PAGE_ID", 32); DEFINE("CONTACT_PAGE_ID", 33); DEFINE("ENTERPRISE_TEXT_PAGE_ID", 34); DEFINE("SEARCH_FORM_PAGE_ID", 35); DEFINE("BOOKING_PAGE_ID", 36); DEFINE("SHOPPING_PAGE_ID", 37); DEFINE("GENERAL_INQ_PAGE_ID", 38); DEFINE("CHECK_AVAIL_PAGE_ID", 39); DEFINE("CHECKOUT_THANKYOU_PAGE_ID", 40); DEFINE("GENERAL_INQ_TEXT_PAGE_ID", 41); //*** 2011-09-20 (end) //*** 2009-10-19 vitaly.kovalchuk (begin) //*** 2010-10-25: option was moved to `Edit All Config` //*** 2009-10-19 vitaly.kovalchuk (end) //*** 2010-09-15 (begin) DEFINE("ALLOW_EXT_TOUR_BOX", 1); //*** 2010-09-15 (end) //*** 2011-02-09 (begin) DEFINE("ALLOW_ZIP_DATABASE", 0); //*** 2011-02-09 (end) //*** 2011-04-05 (begin) DEFINE("ALLOW_PASS_FIELDS_TRIP", 1); //*** 2011-04-05 (end) //*** 2011-04-26 Sergey (begin changes) define("ALLOW_SEAT_TYPES", 0); //*** 2011-04-26 Sergey (end changes) //*** 2013-12-02 (begin) DEFINE("ALLOW_THEMES_DOMAINS", 0); //*** 2013-12-02 (end) //*** 2012-10-24 (begin) DEFINE("ALLOW_NEW_PACKAGES", 1); include("./inc/templates/lang_eng_packages.inc"); //*** 2012-10-24 (end) DEFINE("ALLOW_CARGO_MODULE", 0); DEFINE("CARGO_CUSTOM_SKU", "CARGO-CUSTOM-SKU"); //*** 2013-03-27 (begin) DEFINE("ENABLE_MERCHANTOS", 0); DEFINE("MERCHANTOS_API_KEY", ""); DEFINE("MERCHANTOS_PASSWORD", "apikey"); DEFINE("MERCHANTOS_ACCOUNT_ID", ""); DEFINE("MERCHANTOS_SHOP_ID", 1); DEFINE("MERCHANTOS_REGISTER_ID", 1); /* https://api.merchantos.com/API/Account/$account_id/Register.xml */ DEFINE("MERCHANTOS_DEFEMPLOYEE_ID", 2); /* https://api.merchantos.com/API/Account/$account_id/Employee.xml */ DEFINE("MERCHANTOS_TAX_CATEGORY_ID", 1); /* https://api.merchantos.com/API/Account/$account_id/TaxCategory.xml */ //*** 2013-05-16 (begin) DEFINE("MERCHANTOS_TAX_CLASS_ID", 2); /* https://api.merchantos.com/API/Account/$account_id/TaxClass.xml */ //*** 2013-05-16 (end) if(ENABLE_MERCHANTOS) { include("mosapi/mosapiims.php"); } //*** 2013-03-27 (end) //*** 2011-07-05 (begin) function GetCategoryGratFee($iProdID) { $iProdID=IntVal($iProdID); $db=new ps_DB; $db->query("SELECT product_parent_id FROM product WHERE product_id='".$iProdID."' AND product_parent_id>0"); if($db->num_rows()>0) { $db->next_record(); $iParentID=$db->f("product_parent_id"); } else { $iParentID=$iProdID; } $sSQL1="SELECT c.gratfee FROM product_category_xref px INNER JOIN category c ON px.category_id=c.category_id WHERE px.product_id='".$iParentID."'"; $db->query($sSQL1); if($db->num_rows()>0) { $db->next_record(); return $db->f("gratfee"); } else { return 0; } } //*** 2011-07-05 (end) ?>No Database host was found. Please check configuration. Database error: Site is temporarily unavailable.
connect(,,PASSWORD) failed.