UNA
|
Functions | |
BxDolBan::addConnection ($iInitiator, $iContent, $aParams=[]) | |
static | BxDolRelation::isEnabled () |
BxDolRelation::actionAdd ($mixedContent=0, $iInitiator=false) | |
BxDolRelation::actionConfirm ($iContent=0, $iInitiator=false) | |
BxDolRelation::actionRemove ($iContent=0, $iInitiator=false) | |
BxDolRelation::addConnection ($iInitiator, $iContent, $aParams=[]) | |
BxDolRelation::confirmConnection ($iInitiator, $iContent) | |
BxDolRelation::getConnectionsAsArrayExt ($sContentType, $iId1, $iId2, $isMutual=false, $iStart=0, $iLimit=BX_CONNECTIONS_LIST_LIMIT, $iOrder=BX_CONNECTIONS_ORDER_NONE) | |
BxDolRelation::getCommonContentExt ($iInitiator1, $iInitiator2, $isMutual=false, $iStart=0, $iLimit=BX_CONNECTIONS_LIST_LIMIT, $iOrder=BX_CONNECTIONS_ORDER_NONE) | |
BxDolRelation::getConnectedInitiatorsExt ($iContent, $isMutual=false, $iStart=0, $iLimit=BX_CONNECTIONS_LIST_LIMIT, $iOrder=BX_CONNECTIONS_ORDER_NONE) | |
BxDolRelation::getConnectedContentExt ($iInitiator, $isMutual=false, $iStart=0, $iLimit=BX_CONNECTIONS_LIST_LIMIT, $iOrder=BX_CONNECTIONS_ORDER_NONE) | |
BxDolRelation::checkAllowedConnect ($iInitiator, $iContent, $isPerformAction=false, $isMutual=false, $isInvertResult=false, $isSwap=false, $isCheckExists=true) | |
BxDolRelation::checkAllowedConnectCustom ($iInitiator, $iContent, $isPerformAction=false, $isMutual=false, $isInvertResult=false, $isSwap=false, $isCheckExists=true) | |
DesignBoxContent ($sTitle, $sContent, $iTemplateNum=BX_DB_DEF, $mixedMenu=false) | |
send_headers_page_changed () | |
bx_time_js ($iUnixTimestamp, $sFormatIdentifier=BX_FORMAT_DATE, $bForceFormat=false) | |
bx_time_utc ($iUnixTimestamp) | |
bx_get_logged_profile_id () | |
isLogged () | |
getLoggedId () | |
getLoggedPassword () | |
isMember ($iId=0) | |
if(!function_exists("isAdmin")) | isRole ($iRole, $iId=0) |
bx_login ($iId, $bRememberMe=false) | |
bx_logout ($bNotify=true) | |
check_logged () | |
bx_check_password ($sLogin, $sPassword, $iRole=BX_DOL_ROLE_MEMBER) | |
bx_check_login ($iID, $sPassword, $iRole=BX_DOL_ROLE_MEMBER) | |
bx_require_authentication ($bStudio=false, $bAjaxMode=false, $sForceRelocate='') | |
bx_login_form ($bStudio=false, $bAjaxMode=false, $sForceRelocate='') | |
title2uri ($sValue) | |
bx_process_input ($mixedData, $iDataType=BX_DATA_TEXT, $mixedParams=false, $isCheckMagicQuotes=true) | |
bx_process_macros ($s) | |
htmlspecialchars_adv ( $string) | |
sendMailTemplate ($sTemplateName, $iAccountId=0, $iProfileId=0, $aReplaceVars=array(), $iEmailType=BX_EMAIL_NOTIFY, $bAddToQueue=false) | |
sendMailTemplateSystem ($sTemplateName, $aReplaceVars=array(), $iEmailType=BX_EMAIL_SYSTEM, $bAddToQueue=false) | |
sendMail ($mRecipientEmails, $sMailSubject, $sMailBody, $iRecipientID=0, $aPlus=array(), $iEmailType=BX_EMAIL_NOTIFY, $sEmailFlag='html', $isDisableAlert=false, $aCustomHeaders=array(), $bAddToQueue=false) | |
bx_import ($sClassName, $mixedModule=array()) | |
bx_autoload ($sClassName) | |
bx_instance ($sClassName, $aParams=array(), $mixedModule=array()) | |
bx_js_string ($mixedInput, $iQuoteType=BX_ESCAPE_STR_AUTO) | |
bx_html_attribute ($mixedInput, $iQuoteType=BX_ESCAPE_STR_AUTO) | |
bx_php_string_apos ($mixedInput) | |
bx_file_get_contents ($sFileUrl, $aParams=array(), $sMethod='get', $aHeaders=array(), &$sHttpCode=null, $aBasicAuth=array(), $iTimeout=0, $aCustomCurlParams=array()) | |
bx_get_site_info_fix_relative_url ($sSourceUrl, $s) | |
encryptUserPwd ($sPwd, $sSalt) | |
encryptUserId ($sId) | |
bx_parse_str ($s) | |
bx_trim_nl_duplicates ($s) | |
bx_convert_array2attrs ($a, $sClasses=false, $sStyles=false) | |
bx_audit ($iContentId, $sContentModule, $sAction, $aParams, $iProfileId=0) | |
bx_alert ($sUnit, $sAction, $iObjectId, $iSender=false, $aExtras=array()) | |
bx_is_srv ($mixedModule, $sMethod, $sClass="Module", $bIgnoreInactive=false) | |
bx_is_srv_ii ($mixedModule, $sMethod, $sClass="Module") | |
bx_srv ($mixed, $sMethod, $aParams=array(), $sClass='Module', $bIgnoreCache=false, $bIgnoreInactive=false) | |
bx_srv_ii ($mixed, $sMethod, $aParams=array(), $sClass='Module', $bIgnoreCache=false) | |
bx_srv_ic ($mixed, $sMethod, $aParams=array(), $sClass='Module', $bIgnoreInactive=false) | |
bx_gen_method_name ($s, $aWordsDelimiter=array('_')) | |
bx_trigger_error ($sMsg, $iNumLevelsBack=0) | |
bx_get_ver ($bInvalidateCache=false) | |
bx_check_maintenance_mode ($bShowHttpError=false) | |
bx_check_minimal_requirements ($bShowHttpError=false) | |
bx_check_redirect_to_correct_hostname ($bProcessRedirect=false) | |
bx_get_self_url () | |
bx_check_redirect_to_remove_install_folder ($bProcessRedirect=false) | |
bx_show_service_unavailable_error_and_exit ($sMsg=false, $iRetryAfter=86400) | |
bx_smart_readfile ($sPath, $sFilename='', $sMimeType='application/octet-stream', $iCacheAge=0, $sCachePrivacy='public', $sContentDisposition='inline') | |
bx_linkify ($text, $sAttrs='', $bHtmlSpecialChars=false) | |
bx_linkify_html ($sHtmlOrig, $sAttrs='') | |
bx_proto () | |
bx_has_proto ($sLink) | |
bx_log ($sObject, $mixed) | |
Copyright (c) UNA, Inc - https://una.io MIT License - https://opensource.org/licenses/MIT
BxDolRelation::actionAdd | ( | $mixedContent = 0 , |
|
$iInitiator = false |
|||
) |
Add new relation.
$mixedContent | content to make relation with or an array with content and relation type |
BxDolRelation::actionConfirm | ( | $iContent = 0 , |
|
$iInitiator = false |
|||
) |
Confirm relation request without creation of retroactive relation.
$iContent | content to make relation with |
BxDolRelation::actionRemove | ( | $iContent = 0 , |
|
$iInitiator = false |
|||
) |
Remove relation without removing a retroactive relation. This method is wrapper for
$iContent | content to make connection to, in most cases some content id, or other profile id in case of friends |
BxDolBan::addConnection | ( | $iInitiator, | |
$iContent, | |||
$aParams = [] |
|||
) |
Add new connection.
$iInitiator | initiator of the connection, in most cases some profile id |
$iContent | content to make connection to, in most cases some content id, or other profile id in case of friends |
BxDolRelation::addConnection | ( | $iInitiator, | |
$iContent, | |||
$aParams = [] |
|||
) |
Add new connection.
$iInitiator | initiator of the connection, in most cases some profile id |
$iContent | content to make connection to, in most cases some content id, or other profile id in case of friends |
bx_alert | ( | $sUnit, | |
$sAction, | |||
$iObjectId, | |||
$iSender = false , |
|||
$aExtras = array() |
|||
) |
Raise an alert
string | $sUnit | - system type |
string | $sAction | - system action |
int | $iObjectId | - object id |
int | $iSender | - sender (action's author) profile id, if it is false - then currectly logged in profile id is used |
array | $aExtras | - extra parameters |
bx_audit | ( | $iContentId, | |
$sContentModule, | |||
$sAction, | |||
$aParams, | |||
$iProfileId = 0 |
|||
) |
Raise an audit event
int | $iContentId | - content id |
string | $sContentModule | - module name |
string | $sAction | - system action key |
array | $aParams | - array of parameters |
bx_autoload | ( | $sClassName | ) |
used in spl_autoload_register() function, so no need to call bx_import for system classes
bx_check_login | ( | $iID, | |
$sPassword, | |||
$iRole = BX_DOL_ROLE_MEMBER |
|||
) |
Check encrypted password (ex., from Cookie)
bx_check_maintenance_mode | ( | $bShowHttpError = false | ) |
Check if site maintetance mode is enabled. Maintetance mode is enabled when '.bx_maintenance' file exists in the script root folder, please note that this is hidden file and some file managers don't show it.
$bShowHttpError | show 503 HTTP error if site is in mainenance mode |
bx_check_minimal_requirements | ( | $bShowHttpError = false | ) |
Check for minimal requirements. if BX_DISABLE_REQUIREMENTS_CHECK is defined then this requirements checking is skipped.
$bShowHttpError | show 503 HTTP error if site doesn't meet minimal requirements |
bx_check_password | ( | $sLogin, | |
$sPassword, | |||
$iRole = BX_DOL_ROLE_MEMBER |
|||
) |
Check unencrypted password
bx_check_redirect_to_correct_hostname | ( | $bProcessRedirect = false | ) |
Check if redirect to the correct hostname is required, for example redirect from site.com to www.site.com
$bProcessRedirect | process redirect and exit if needed |
bx_check_redirect_to_remove_install_folder | ( | $bProcessRedirect = false | ) |
Check if redirect to remove install folder. If BX_SKIP_INSTALL_CHECK is defined then this redirect checking is skipped.
$bProcessRedirect | process redirect and exit if needed |
bx_convert_array2attrs | ( | $a, | |
$sClasses = false , |
|||
$sStyles = false |
|||
) |
Convert array to attributes string
Example:
$a | - array of attributes |
$sClasses | - classes to merge with 'class' attribute |
$sStyles | - styles to merge with 'style' attribute |
bx_file_get_contents | ( | $sFileUrl, | |
$aParams = array() , |
|||
$sMethod = 'get' , |
|||
$aHeaders = array() , |
|||
& | $sHttpCode = null , |
||
$aBasicAuth = array() , |
|||
$iTimeout = 0 , |
|||
$aCustomCurlParams = array() |
|||
) |
Gets file contents by URL.
string | $sFileUrl | - file URL to be read. |
array | $aParams | - an array of parameters to be pathed with URL. |
string | $sMethod | - post or get. |
array | $aHeaders | - custom headers. |
string | $sHttpCode | - HTTP code to return |
array | $aBasicAuth | - array with 'user' and 'password' for Basic HTTP Auth |
bx_gen_method_name | ( | $s, | |
$aWordsDelimiter = array('_') |
|||
) |
Transform string to method name string, for example it changes 'some_method' string to 'SomeMethod' string
$s | string where words are separated with underscore |
$aWordsDelimiter | word delimeters |
bx_get_logged_profile_id | ( | ) |
bx_get_self_url | ( | ) |
Get URL of current page
bx_get_site_info_fix_relative_url | ( | $sSourceUrl, | |
$s | |||
) |
Fix relative URL to make it absolute
$sSourceUrl | main URL |
$s | URL to fix |
bx_get_ver | ( | $bInvalidateCache = false | ) |
Get system DB version, for files version
bx_has_proto | ( | $sLink | ) |
Checks protocol in the link
bx_html_attribute | ( | $mixedInput, | |
$iQuoteType = BX_ESCAPE_STR_AUTO |
|||
) |
Return input string/array ready to pass to html attribute with filtered symbols like ', " etc
$mixedInput | - string/array which should be filtered |
$iQuoteType | - string escaping BX_ESCAPE_STR_AUTO, BX_ESCAPE_STR_APOS or BX_ESCAPE_STR_QUOTE |
bx_import | ( | $sClassName, | |
$mixedModule = array() |
|||
) |
Import class file, it automatically detects class path by its prefix or module array/name
$sClassName | - full class name or class postfix(withoit prefix) in the case of module class |
$mixedModule | - module array or module name in the case of module class |
bx_instance | ( | $sClassName, | |
$aParams = array() , |
|||
$mixedModule = array() |
|||
) |
Gets an instance of class pathing necessary parameters if it's necessary.
string | $sClassName | class name. |
array | $aParams | an array of parameters to be pathed to the constructor of the class. |
array | $mixedModule | an array with module description. Is used when the requested class is located in some module. |
bx_is_srv | ( | $mixedModule, | |
$sMethod, | |||
$sClass = "Module" , |
|||
$bIgnoreInactive = false |
|||
) |
Check whether serice method exists or not
$mixed | module name or module id |
$sMethod | service method name in format 'method_name', corresponding class metod is serviceMethodName |
$sClass | class to search for service method, by default it is main module class |
bx_is_srv_ii | ( | $mixedModule, | |
$sMethod, | |||
$sClass = "Module" |
|||
) |
Check whether serice method exists or not in 'Ignore Inactive' mode.
bx_js_string | ( | $mixedInput, | |
$iQuoteType = BX_ESCAPE_STR_AUTO |
|||
) |
Escapes string/array ready to pass to js script with filtered symbols like ', " etc
$mixedInput | - string/array which should be filtered |
$iQuoteType | - string escaping method: BX_ESCAPE_STR_AUTO(default), BX_ESCAPE_STR_APOS or BX_ESCAPE_STR_QUOTE |
bx_linkify | ( | $text, | |
$sAttrs = '' , |
|||
$bHtmlSpecialChars = false |
|||
) |
Wrap in A tag links in TEXT string
$text | - text string without tags |
$sAttrs | - attributes string to add to the added A tag |
$bHtmlSpecialChars | - apply htmlspecialchars before processing |
bx_linkify_html | ( | $sHtmlOrig, | |
$sAttrs = '' |
|||
) |
Wrap in A tag links in HTML string, which aren't wrapped in A tag yet
$sHtmlOrig | - HTML string |
$sAttrs | - attributes string to add to the added A tag |
bx_log | ( | $sObject, | |
$mixed | |||
) |
Log to logs object
$sObject | - logs object |
$mixed | - string or array to log |
bx_login | ( | $iId, | |
$bRememberMe = false |
|||
) |
Login user by setting necessary cookies
$iId | account id |
$bRememberMe | remember session |
bx_login_form | ( | $bStudio = false , |
|
$bAjaxMode = false , |
|||
$sForceRelocate = '' |
|||
) |
Display login form and exit
$bStudio | display login form for studio |
$bAjaxMode | login form displayed via AJAX |
sForceRelocate | forece relocate |
bx_logout | ( | $bNotify = true | ) |
Logout user by removing cookies
bx_parse_str | ( | $s | ) |
It works similar to parse_str
php function, but it doesn't decode URL params
bx_php_string_apos | ( | $mixedInput | ) |
Escapes string/array ready to pass to php script with filtered symbols like ', " etc
mixed | $mixedInput | - string/array which should be filtered |
bx_process_input | ( | $mixedData, | |
$iDataType = BX_DATA_TEXT , |
|||
$mixedParams = false , |
|||
$isCheckMagicQuotes = true |
|||
) |
Functions to process user input. DON'T use to process data before passing to SQL query - use db prepare instead
$mixedData | data to process |
$iDataType | how to handle data, possible valies: BX_DATA_INT - integer value BX_DATA_FLOAT - float values BX_DATA_TEXT - text data, single line (default) BX_DATA_TEXT_MULTILINE - text data, multiple lines BX_DATA_HTML - HTML data BX_DATA_DATE - date data type stored as yyyy-mm-dd BX_DATA_DATETIME - date/time data type stored as yyyy-mm-dd hh:mm:ss BX_DATA_DATE_TS' - date data type stored as unixtimestamp BX_DATA_DATETIME_TS - date/time data type stored as unixtimestamp BX_DATA_DATE_TS_UTC - date data type stored as unixtimestamp from UTC time BX_DATA_DATETIME_TS_UTC - date/time data type stored as unixtimestamp from UTC time |
$mixedParams | optional parameters to pass for validation |
$isCheckMagicQuotes | deprecated |
bx_process_macros | ( | $s | ) |
This function converts macros upon text output. Macros represents constructions like this:
For example, to display some content from module Posts:
Only users which have "use macros" ACL action enabled can use this functionlity.
$s | text to process |
bx_require_authentication | ( | $bStudio = false , |
|
$bAjaxMode = false , |
|||
$sForceRelocate = '' |
|||
) |
Declare that content is require user authoriztion and display login form if user isn't logged in
$bStudio | require webmaster authorization |
bx_show_service_unavailable_error_and_exit | ( | $sMsg = false , |
|
$iRetryAfter = 86400 |
|||
) |
Show HTTP 503 service unavailable error and exit
bx_smart_readfile | ( | $sPath, | |
$sFilename = '' , |
|||
$sMimeType = 'application/octet-stream' , |
|||
$iCacheAge = 0 , |
|||
$sCachePrivacy = 'public' , |
|||
$sContentDisposition = 'inline' |
|||
) |
The function is sumilar to php readfile, but it send all required headers and can send file by chunks and suports file seek
$sPath | path to file to output to the browser |
$sFilename | filename without path, ig file is saved from browser, then this name is used, not used(empty) by default |
$sMimeType | file mime type, by default 'application/octet-stream' |
$iCacheAge | file cache age, by default 0 |
$sCachePrivacy | cache privacy 'public' (default value) or 'private' |
$sContentDisposition | content disposition header ('inline' or 'attachment' usually |
bx_srv | ( | $mixed, | |
$sMethod, | |||
$aParams = array() , |
|||
$sClass = 'Module' , |
|||
$bIgnoreCache = false , |
|||
$bIgnoreInactive = false |
|||
) |
Perform serice call
$mixed | module name or module id |
$sMethod | service method name in format 'method_name', corresponding class metod is serviceMethodName |
$aParams | params to pass to service method |
$sClass | class to search for service method, by default it is main module class |
bx_srv_ic | ( | $mixed, | |
$sMethod, | |||
$aParams = array() , |
|||
$sClass = 'Module' , |
|||
$bIgnoreInactive = false |
|||
) |
Perform serice call in 'Ignore Cache' mode.
bx_srv_ii | ( | $mixed, | |
$sMethod, | |||
$aParams = array() , |
|||
$sClass = 'Module' , |
|||
$bIgnoreCache = false |
|||
) |
Perform serice call in 'Ignore Inactive' mode.
bx_time_js | ( | $iUnixTimestamp, | |
$sFormatIdentifier = BX_FORMAT_DATE , |
|||
$bForceFormat = false |
|||
) |
Output time wrapped in <time> tag in HTML. Then time is autoformatted using JS upon page load, this is aumatically converted to user's timezone and updated in realtime in case of short periods of 'from now' time format.
This is just short version for:
$iUnixTimestamp | time as unixtimestamp |
$sFormatIdentifier | output format identifier |
$bForceFormat | force provided format and don't use "from now" time autoformat. |
bx_time_utc | ( | $iUnixTimestamp | ) |
Get UTC/GMT time string in ISO8601 date format from provided unix timestamp
$iUnixTimestamp | - unix timestamp |
bx_trigger_error | ( | $sMsg, | |
$iNumLevelsBack = 0 |
|||
) |
Trigger user error
$sMsg | message to display |
$iNumLevelsBack | add additional debug backtracing N levels back |
bx_trim_nl_duplicates | ( | $s | ) |
Strip all lines with no information for example:
,
check_logged | ( | ) |
Check if user is logged in (necessary cookies are present) and set some global variables
BxDolRelation::checkAllowedConnect | ( | $iInitiator, | |
$iContent, | |||
$isPerformAction = false , |
|||
$isMutual = false , |
|||
$isInvertResult = false , |
|||
$isSwap = false , |
|||
$isCheckExists = true |
|||
) |
Check whether connection between Initiator and Content can be established.
BxDolRelation::checkAllowedConnectCustom | ( | $iInitiator, | |
$iContent, | |||
$isPerformAction = false , |
|||
$isMutual = false , |
|||
$isInvertResult = false , |
|||
$isSwap = false , |
|||
$isCheckExists = true |
|||
) |
Custom check action method which can be overwritten. Currently only friends can establish relations.
BxDolRelation::confirmConnection | ( | $iInitiator, | |
$iContent | |||
) |
Confirm relation request without creation of retroactive relation.
$iInitiator | initiator of the connection, in most cases some profile id |
$iContent | content to make connection to, in most cases some content id, or other profile id in case of friends |
DesignBoxContent | ( | $sTitle, | |
$sContent, | |||
$iTemplateNum = BX_DB_DEF , |
|||
$mixedMenu = false |
|||
) |
Display "design box" HTML code
encryptUserId | ( | $sId | ) |
Hash profile ID
encryptUserPwd | ( | $sPwd, | |
$sSalt | |||
) |
Encrypt user password. When BX_PWD_ALGO is 'custom', then bx_custom_pwd_encrypt function with custom algorythm must be defined in inc/header.inc.php file.
$sPwd | clear password |
$sSalt | salt |
BxDolRelation::getCommonContentExt | ( | $iInitiator1, | |
$iInitiator2, | |||
$isMutual = false , |
|||
$iStart = 0 , |
|||
$iLimit = BX_CONNECTIONS_LIST_LIMIT , |
|||
$iOrder = BX_CONNECTIONS_ORDER_NONE |
|||
) |
Get common content (full info) between two initiators
$iInitiator1 | one initiator |
$iInitiator2 | second initiator |
$isMutual | get mutual connections only |
BxDolRelation::getConnectedContentExt | ( | $iInitiator, | |
$isMutual = false , |
|||
$iStart = 0 , |
|||
$iLimit = BX_CONNECTIONS_LIST_LIMIT , |
|||
$iOrder = BX_CONNECTIONS_ORDER_NONE |
|||
) |
Get connected content (full info)
$iInitiator | initiator of the connection |
$isMutual | get mutual connections only |
BxDolRelation::getConnectedInitiatorsExt | ( | $iContent, | |
$isMutual = false , |
|||
$iStart = 0 , |
|||
$iLimit = BX_CONNECTIONS_LIST_LIMIT , |
|||
$iOrder = BX_CONNECTIONS_ORDER_NONE |
|||
) |
Get connected initiators (full info)
$iContent | content of the connection |
$isMutual | get mutual connections only |
BxDolRelation::getConnectionsAsArrayExt | ( | $sContentType, | |
$iId1, | |||
$iId2, | |||
$isMutual = false , |
|||
$iStart = 0 , |
|||
$iLimit = BX_CONNECTIONS_LIST_LIMIT , |
|||
$iOrder = BX_CONNECTIONS_ORDER_NONE |
|||
) |
Compound function, which calls getCommonContentExt, getConnectedContentExt or getConnectedInitiatorsExt depending on $sContentType
$sContentType | content type to get BX_CONNECTIONS_CONTENT_TYPE_CONTENT, BX_CONNECTIONS_CONTENT_TYPE_INITIATORS or BX_CONNECTIONS_CONTENT_TYPE_COMMON |
$iId1 | one content or initiator |
$iId2 | second content or initiator only in case of BX_CONNECTIONS_CONTENT_TYPE_COMMON content type |
$isMutual | get mutual connections only |
getLoggedId | ( | ) |
getLoggedPassword | ( | ) |
htmlspecialchars_adv | ( | $string | ) |
DEPRECATED
function for processing pass data
This function cleans the GET/POST/COOKIE data if magic_quotes_gpc() is on for data which should be outputed immediately after submit
|
static |
Whether the Relations feature is enabled globaly or not.
isLogged | ( | ) |
isMember | ( | $iId = 0 | ) |
It checks if account role is member.
if (!function_exists("isAdmin")) isRole | ( | $iRole, | |
$iId = 0 |
|||
) |
Check user role
$iRole | role to check user for |
$iId | optional account id, if it isn't specified then curently logged in account is used |
send_headers_page_changed | ( | ) |
Use this function in pages if you want to not cache it.
sendMail | ( | $mRecipientEmails, | |
$sMailSubject, | |||
$sMailBody, | |||
$iRecipientID = 0 , |
|||
$aPlus = array() , |
|||
$iEmailType = BX_EMAIL_NOTIFY , |
|||
$sEmailFlag = 'html' , |
|||
$isDisableAlert = false , |
|||
$aCustomHeaders = array() , |
|||
$bAddToQueue = false |
|||
) |
Send email function
$mRecipientEmails | - Email where email should be send, can be array, string with one email or comma separated |
$sMailSubject | - subject of the message |
$sMailBody | - Body of the message |
$iRecipientID | - ID of recipient profile |
$aPlus | - Array of additional information |
$iEmailType | - email message type: BX_EMAIL_SYSTEM, BX_EMAIL_NOTIFY or BX_EMAIL_MASS |
$sEmailFlag | - use 'html' for HTML email message |
$isDisableAlert | - disable alert |
$aCustomHeaders | - custom email headers |
$bAddToQueue | - add message to email queue |
sendMailTemplate | ( | $sTemplateName, | |
$iAccountId = 0 , |
|||
$iProfileId = 0 , |
|||
$aReplaceVars = array() , |
|||
$iEmailType = BX_EMAIL_NOTIFY , |
|||
$bAddToQueue = false |
|||
) |
Send mail to user by parsing email template
sendMailTemplateSystem | ( | $sTemplateName, | |
$aReplaceVars = array() , |
|||
$iEmailType = BX_EMAIL_SYSTEM , |
|||
$bAddToQueue = false |
|||
) |
Send system email
title2uri | ( | $sValue | ) |
< file name to use as mantenance mode indicator
The following two functions are needed to convert title to uri and back. It usefull when titles are used in URLs, like in Categories and Tags.
$GLOBALS[ 'bxDolClasses'] = array() |
Classes instances are stored here
const BX_CONNECTIONS_CONTENT_TYPE_COMMON 'common' |
Connections content type: common
const BX_CONNECTIONS_CONTENT_TYPE_CONTENT 'content' |
Connections content type: content
const BX_CONNECTIONS_CONTENT_TYPE_INITIATORS 'initiators' |
Connections content type: initiators
const BX_CONNECTIONS_LIST_COUNTER 5 |
Default limit for connections list in Counter.
const BX_CONNECTIONS_LIST_LIMIT 1000 |
Default limit for connections lists
const BX_CONNECTIONS_LIST_NO_LIMIT -1 |
No limit for connections lists. Is needed for Total Number calculation.
const BX_CONNECTIONS_ORDER_ADDED_ASC 1 |
Connections order: by addded time, asceding
const BX_CONNECTIONS_ORDER_ADDED_DESC 2 |
Connections order: by addded time, desceding
const BX_CONNECTIONS_ORDER_NONE 0 |
Connections order: no order
const BX_CONNECTIONS_TYPE_MUTUAL 'mutual' |
Connection type: mutual
const BX_CONNECTIONS_TYPE_ONE_WAY 'one-way' |
Connection type: one-way
const BX_DATA_VALUES_ADDITIONAL 'LKey2' |
< Use default values for data items,
const BX_DATA_VALUES_ALL 'all' |
< Use additional values for data items,
const BX_DB_CONTENT_ONLY 0 |
design box with content only - no borders, no background, no caption
const BX_DB_DEF 1 |
default design box with content, borders and caption
const BX_DB_EMPTY 2 |
just empty design box, without anything
const BX_DB_NO_CAPTION 3 |
design box with content, like BX_DB_DEF but without caption
const BX_DB_PADDING_CONTENT_ONLY 10 |
design box with content only wrapped with default padding - no borders, no background, no caption it can be used to just wrap content with default padding
const BX_DB_PADDING_DEF 11 |
default design box with content wrapped with default padding, borders and caption
const BX_DB_PADDING_NO_CAPTION 13 |
design box with content wrapped with default padding, like BX_DB_DEF but without caption
const BX_EDITOR_FULL 2 |
Full WYSIWYG editor view. If not supported by editor, standard view is used.
const BX_EDITOR_MINI 3 |
Mini WYSIWYG editor view. If not supported by editor, standard view is used.
const BX_EDITOR_STANDARD 1 |
Standard WYSIWYG editor view.
const BX_EMAIL_SYSTEM 0 |
< escape quotes only, for js strings enclosed in quotes, for use in
const BX_ESCAPE_STR_APOS 1 |
< turn apostropes and quote signs into html special chars, for use in
const BX_ESCAPE_STR_QUOTE 2 |
< escape apostrophes only, for js strings enclosed in apostrophes, for use in
const BX_FORMAT_DATE_TIME 'sys_format_datetime' |
< time format identifier for use in
const BX_FORMAT_TIME 'sys_format_time' |
< date format identifier for use in
const BX_MENU_TEMPLATE_SUBMENU 8 |
< datetime format identifier for use in
const BX_PAGE_DEFAULT 0 |
Page display levels. Note. Both levels may refer to the same HTML templates.
'System' level. It uses page's NameIndex and is mainly used for pages which aren't registered in 'sys_objects_page' table. Also it's used in 'Injections' engine.
const BX_PAGE_TYPE_DEFAULT 1 |
< transition page with redirect to display some msg, like 'please wait', without headers footers
'Builder based' level. It uses page's Type from BxDolPage class and is used for pages which are registered in 'sys_objects_page' table. Changeable in Studio -> Pages Builder -> Settings.
const BX_PLAYER_EMBED 2 |
Player view in embed. If not supported by player, standard view is used.
const BX_PLAYER_MINI 3 |
Mini Player view. If not supported by player, standard view is used.
const BX_PLAYER_STANDARD 1 |
Standard Player view.
const CHECK_ACTION_LANG_FILE_ACTION 1 |
Nodes of $args array that are passed to _t_ext() function by checkAction()
const CHECK_ACTION_MESSAGE_NOT_ALLOWED "_sys_acl_action_not_allowed" |
Message constants passed to _t_ext() function by checkAction()
NOTE: checkAction() returns language dependent messages
const CHECK_ACTION_RESULT 0 |
Indices for checkAction() result array
const CHECK_ACTION_RESULT_ALLOWED 0 |
CHECK_ACTION_RESULT node values
if(!defined('BX_DOL_SKIP_ATIME_UPDATE')) define('BX_DOL_SKIP_ATIME_UPDATE' |
< file is subject to delete
time interval to not update last access time, it should be comaparatively low compared to atime_prining
max image dimension which will be processes as retine on mobiles
const MEMBERSHIP_ACTION_EDIT_ANY_ENTRY 'edit any entry' |
Standard membership actions
const MEMBERSHIP_ID_NON_MEMBER 1 |
Standard membership ID's
const MEMBERSHIP_PERIOD_UNIT_DAY 'day' |
Standard period units