این کد رو برام بهینه کن <%
SITEMAP_DOMAIN = "farkhani.com"
base="https://www."&SITEMAP_DOMAIN
pay ="https://pay."&SITEMAP_DOMAIN&"/payment/send" 
referer = Request.ServerVariables ("HTTP_REFERER")
captcha_google = "6LetgOMZAAAAAE4kGYYgniu3ovQx3E1vZRWHR5r3"
Google_Analytics = "G-9CD43JD4MZ"
SmsSecurityCode = "crm.sanadata.ir"
SmsApiCode = "4dcb317ea0db7c5e57b9317e"
watermark_pro = "..\userfiles\images\site\watermark.png"

id_news_foot_fa = 2
id_articles_foot_fa = 2
id_news_foot_en = 23
id_articles_foot_en = 23
id_news_foot_ar = 23
id_articles_foot_ar = 23
id_news_foot_ru = 23
id_articles_foot_ru = 23

MODULE_ARTICLE = 1
MODULE_NEWS = 2
MODULE_PAGE = 3
MODULE_PRODUCT = 4
MODULE_QA = 5  
site_self = Trim(LCase(Request.ServerVariables("SERVER_NAME")))
set settings = CreateObject("Scripting.Dictionary")
set ObjConfig = CreateObject("ADODB.recordset")
    ObjConfig.open "SELECT * FROM Settings_Params " , ConnectDB, 2,3
if not (ObjConfig.EOF and ObjConfig.BOF) then
        do while not ObjConfig.EOF
            settings.add ObjConfig.Fields("Key").Value, ObjConfig.Fields("Value").Value
            ObjConfig.MoveNext
        loop
    end if
ObjConfig.close
set ObjConfig = nothing

VERSION = settings("VERSION")
Langs = settings("Langs")
SHOW_EN = InStr(settings("Langs"),"en")
SHOW_FA = InStr(settings("Langs"),"fa")
SHOW_AR = InStr(settings("Langs"),"ar")
SHOW_RU = InStr(settings("Langs"),"ru")

Login_Type = settings("Login_Type")
PIC_Watermark = settings("PIC_Watermark")
SHOW_MENU_LOCATION = settings("SHOW_MENU_LOCATION") =1
PRO_IMAGE_MODE = settings("PRO_IMAGE_MODE")
SHOW_PRO_BRANDS = settings("SHOW_PRO_BRANDS")
SHOW_PRINT = settings("SHOW_PRINT") =1
SHOW_DISPLAY_FOR = settings("SHOW_DISPLAY_FOR") =1
SHOW_COMMENT = settings("SHOW_COMMENT") =1
SHOW_ADS_POSITION = len(settings("SHOW_ADS_POSITION"))>1
ADS_POSITION = settings("SHOW_ADS_POSITION")
SHOW_MARQUEE = settings("SHOW_MARQUEE") =1
TEXT_LINKS = settings("TEXT_LINKS")
SHOW_COLUMN = settings("SHOW_COLUMN") =1
COLUMN_TEXT = settings("COLUMN_TEXT")
SCRIPTS_TEXT = settings("SCRIPTS_TEXT")
SHOW_SCRIPTS = settings("SHOW_SCRIPTS") =1
SHOW_FOLLOW = settings("SHOW_FOLLOW") =1
SHOW_LINKS = settings("SHOW_LINKS") =1
SHOW_SUBSCRIBE = settings("SHOW_SUBSCRIBE") =1
SHOW_GALLERYFIRSTPAGE = settings("SHOW_GALLERYFIRSTPAGE") =1
SHOW_FORM = settings("SHOW_FORM") =1
VIDEO_FORMAT = settings("VIDEO_FORMAT")
SHOW_LOADING = settings("SHOW_LOADING")
SHOW_UP = settings("SHOW_UP") =1
SHOW_SOCIAL = settings("SHOW_SOCIAL") =1
SHOW_SUBPRO = settings("SHOW_SUBPRO") =1
SHOW_SIMILAR = settings("SHOW_SIMILAR") =1
SHOW_SIMILAR_NEWS = settings("SHOW_SIMILAR_NEWS") =1
SHOW_SIMILAR_PAGES = settings("SHOW_SIMILAR_PAGES") =1
CHROME_CACH = settings("CHROME_CACH")
COUNTDOWN = settings("COUNTDOWN")
CONTACT_US = settings("CONTACT_US_"&Lang)
DEFAULT_KEYWORDS = settings("DEFAULT_KEYWORDS_"&Lang)
DEFAULT_DESCRIPTION = settings("DEFAULT_DESCRIPTION_"&Lang)
DEFAULT_TITLE = settings("DEFAULT_TITLE_"&Lang)
PANEL_TEXT = settings("PANEL_TEXT_"&Lang)
LINKS_TEXT = settings("LINKS_TEXT_"&Lang)
SHOW_FONT = settings("SHOW_FONT")
SHOW_FONT_heading = settings("SHOW_FONT")+heading
if Lang="fa" then
HOMEPAGE_ID = settings("HomePage_ID")
elseif Lang="en" then
HOMEPAGE_ID = "349"
elseif Lang="ar" then
HOMEPAGE_ID = "348"
elseif Lang="ru" then
HOMEPAGE_ID = "3"
end if

RszComponent= settings("Resizer")

SHOW_PRODUCT = settings("SHOW_PRODUCT") =1
HIGHMAIL = settings("HIGHMAIL")
M_SIZE_H = 500
M_SIZE = 500


THUMB_XS_WIDTH = 50
THUMB_XS_HIGHT = 50
THUMB_SM_WIDTH = 100
THUMB_SM_HIGHT = 100
THUMB_MD_WIDTH = 200
THUMB_MD_HIGHT = 200
THUMB_LG_WIDTH = 400
THUMB_LG_HIGHT = 400
THUMB_XL_WIDTH = int(settings("ROTATOR_WIDTH"))
THUMB_XL_HIGHT = int(settings("ROTATOR_HEIGHT"))


ROTATOR_WIDTH = int(settings("ROTATOR_WIDTH"))
ROTATOR_HEIGHT = int(settings("ROTATOR_HEIGHT"))
CATEGORY_WIDTH = int(settings("CATEGORY_WIDTH"))
CATEGORY_HEIGHT = int(settings("CATEGORY_HEIGHT"))
ADS_M_WIDTH = settings("ADS_M_WIDTH")
ADS_M_HEIGHT = settings("ADS_M_HEIGHT")
ADS_R_WIDTH = settings("ADS_R_WIDTH")
ADS_R_HEIGHT = settings("ADS_R_HEIGHT")
ADS_L_WIDTH = settings("ADS_L_WIDTH")
ADS_L_HEIGHT = settings("ADS_L_HEIGHT")
ARTICLE_WIDTH = settings("ARTICLE_WIDTH")
ARTICLE_HEIGHT = settings("ARTICLE_HEIGHT")
GALLERY_WIDTH = settings("GALLERY_WIDTH")
GALLERY_HEIGHT = settings("GALLERY_HEIGHT")
PICTURE_WIDTH = settings("PICTURE_WIDTH")
PICTURE_HEIGHT = settings("PICTURE_HEIGHT")
PRODUCT_WIDTH = settings("PRODUCT_WIDTH")
PRODUCT_HEIGHT = settings("PRODUCT_HEIGHT")
BACKUP_DATE = settings("BACKUP_DATE")
SHOW_PAGE_STAT = settings("SHOW_PAGE_STAT") = 1
PICK = settings("PICK")
PICKFONT = settings("PICKFONT")
PICKHOVER = settings("PICKHOVER")
FONTCOLOR = settings("FONTCOLOR")
FONTHOVER = settings("FONTHOVER")
FONTLINK = settings("FONTLINK")
SITE_NAME = settings("SITE_NAME")
SITE_NAME_EN = settings("SITE_NAME_EN")
NO_ART = settings("NO_ART")
EXPIRE_DATE = settings("EXPIRE_DATE")
PANEL_TEXT = settings("PANEL_TEXT_"&Lang)
LINKS_TEXT = settings("LINKS_TEXT_"&Lang)
 Seo_Report = settings("Seo_Report")
EMAIL = settings("EMAIL")
EMAIL_PWD = settings("EMAIL_PWD")
EMAIL_NAME = settings("EMAIL_NAME")
EMAIL_SERVER = settings("EMAIL_SERVER")
Shop_Variety = settings("Color") 
Shop_Region = settings("RegionPost")
Shop_OffCodes = settings("OffCodes")
Shop_Features = settings("Features") =1
Shop_Gift = settings("Gift")
Shop_Merchant = settings("MerchantID")
Shop_Tax = settings("ProTax")
SHOW_LIKE = settings("SHOW_LIKE") =1
SHOW_SHARE_ON = settings("SHOW_SHARE_ON") =1
MENU_TYPE = settings("MenuType")
SLIDER_TYPE = settings("SliderType")
tiker_TYPE = settings("tikerType")
CAPTCHA_TYPE = settings("Captcha_Type")
No_ADS_L = settings("No_ADS_L")
No_ADS_R = settings("No_ADS_R")
Tabs1 = settings("Tabs1")
Tabs2 = settings("Tabs2")
SmsNumber = settings("SmsNumber")
smsPanelPass = settings("smsPanelPass")
smsPanelUser = settings("smsPanelUser")
No_Gallery = settings("No_Gallery")
MainServer = settings("ApplicationID")
EnablePost = settings("EnablePost")
Admin_Mob = settings("Admin_Mob")

SHOW_ORDER = settings("SHOW_ORDER") 
SHOW_ADS = settings("SHOW_ADS") =1

if SHOW_PAY then
Shop_Merchant = settings("MerchantID")
end if

if SHOW_ORDER then
OnlinePay = settings("OnlinePay") =1
CardtoCard = settings("CardtoCard") =1
CardName = settings("CardName")
CardNO = settings("CardNO")
AccountPay = settings("AccountPay") =1
AccountName = settings("AccountName")
AccountNO = settings("AccountNO")
ShebaNO = settings("ShebaNO")
InvoiceTxt = settings("InvoiceTxt")
Show_Size = settings("SHOW_SIZE") =1
Shop_Pack = settings("SHOW_Package") =1
end if

if SHOW_ADS then
SHOW_BRANDS = settings("SHOW_BRANDS") =1
SHOW_ADS_REGION = settings("SHOW_ADS_REGION") =1
SHOW_ADS_UNIT = settings("SHOW_ADS_UNIT") =1
SHOW_ADS_UPLOAD = settings("SHOW_ADS_UPLOAD") =1
SHOW_ADS_SMS = settings("SHOW_ADS_SMS") =1
end if


set objSocial=server.CreateObject("ADODB.recordset")
objSocial.open "select * from Settings_Social where id=18",ConnectDB,1
if not objSocial.eof then
TELEGRAM_ID = objSocial("SocVal")
end if
objSocial.close
set objSocial = nothing

SignUpType = "Default"
SignUpType2 = "Mobile"

PriceCurrency = "ريال"
OnlinePaymentZero = "" 'براي پرداخت آنلاين قيمت بايد به ريال باشد. در صورتي که واحد تومان باشد در اين قسمت يک 0 و در صورتي که هزار تومان باشد چهار عدد 0 قرار مي دهيم
MainMenuTxt11 = "85488c" 'رنگ متن منو
MainMenuTxt11 = "85488c" 'رنگ متن منو
MainMenuHover = "222222" ' رنگ بک گراند هاور منو
MainMenuHoverTxt = "444444" ' رنگ هاور متن منو
SubMenuColor = "666666" ' رنگ بک گراند زير منو
SubMenuColorTxt = "ffffff" ' رنگ متن زير منو
SubMenuColorHover = "222222" ' رنگ هاور بک گراند زير منو
SubMenuColorHoverTxt = "ffffff" ' رنگ هاور متن زير منو
PICKscroll = "334988" '  رنگ اسکرول  
PICKscrollhover = "00235a" ' رنگ هاور اسکرول 
%>