designBoxContent ($sTitle, $sContent, $iTemplateNum, $mixedMenu); } /** * Use this function in pages if you want to not cache it. **/ function send_headers_page_changed() { $now = gmdate('D, d M Y H:i:s') . ' GMT'; header("Expires: $now"); header("Last-Modified: $now"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); } function MsgBox($sText, $iTimer = 0) { return BxTemplFunctions::getInstance()->msgBox($sText, $iTimer); } function PopupBox($sName, $sTitle, $sContent, $isHiddenByDefault = false) { return BxTemplFunctions::getInstance()->popupBox($sName, $sTitle, $sContent, $isHiddenByDefault); } function getVersionComment() { $aVer = explode('.', bx_get_ver()); // version output made for debug possibilities. // randomizing made for security issues. do not change it... $aVerR[0] = $aVer[0]; $aVerR[1] = rand( 0, 100 ); $aVerR[2] = $aVer[1]; $aVerR[3] = rand( 0, 100 ); $aVerR[4] = $aVer[2]; return ''; } function getSiteStatUser() { $sqlQuery = "SELECT * FROM `sys_statistics` ORDER BY `order`"; $aStat = BxDolDb::getInstance()->fromCache('sys_statistics', 'getAllWithKey', $sqlQuery, 'name'); return "
TODO: nice output\n" . print_r($aStat, true) . '
'; } /** * 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: * @see BxTemplFunctions::timeForJs * * @param $iUnixTimestamp time as unixtimestamp * @param $sFormatIdentifier output format identifier * @see BX_FORMAT_DATE * @see BX_FORMAT_TIME * @see BX_FORMAT_DATE_TIME * @param $bForceFormat force provided format and don't use "from now" time autoformat. */ function bx_time_js ($iUnixTimestamp, $sFormatIdentifier = BX_FORMAT_DATE, $bForceFormat = false) { return BxTemplFunctions::getInstance()->timeForJs ($iUnixTimestamp, $sFormatIdentifier, $bForceFormat); } /** * Get UTC/GMT time string in ISO8601 date format from provided unix timestamp * @param $iUnixTimestamp - unix timestamp * @return ISO8601 formatted date/time string */ function bx_time_utc ($iUnixTimestamp) { return gmdate(DATE_ISO8601, (int)$iUnixTimestamp); } $oZ = new BxDolAlerts('system', 'design_included', 0); $oZ->alert(); /** @} */