{$sWelcomeElement}
{$sLoginSection}
{$sImagesEls}
EOF;
}
return $sCode;
}
function getTemplateIcon( $sFileName ) {
return $GLOBALS['oFunctions']->getTemplateIcon($sFileName);
}
function getTemplateImage( $sFileName ) {
return $GLOBALS['oFunctions']->getTemplateImage($sFileName);
}
function getVersionComment() {
global $site;
$aVer = explode( '.', $site['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] = $site['build'];
//remove leading zeros
while( $aVerR[4][0] === '0' )
$aVerR[4] = substr( $aVerR[4], 1 );
return '';
}
// ----------------------------------- site statistick functions --------------------------------------//
function getSiteStatBody($aVal, $sMode = '') {
$sLink = strlen($aVal['link']) > 0 ? '';
foreach($aStat as $aVal)
$sCode .= getSiteStatBody($aVal);
$sCode .= '
';
return $sCode;
}
function genSiteStatFile($aVal) {
$oMenu = new BxDolMenu();
$sLink = $oMenu -> getCurrLink($aVal['link']);
$sLine = "'{$aVal['name']}'=>array('capt'=>'{$aVal['capt']}', 'query'=>'".addslashes($aVal['query'])."', 'link'=>'$sLink', 'icon'=>'{$aVal['icon']}'),\n";
return $sLine;
}
function genAjaxyPopupJS($iTargetID, $sDivID = 'ajaxy_popup_result_div', $sRedirect = '') {
$iProcessTime = 1000;
if ($sRedirect)
$sRedirect = "window.location = '$sRedirect';";
$sJQueryJS = <<