<?php
$HeaderHandler = new HeaderHandler();
$HeaderHandler->setPageBlockNames(array('headerBlock'));
$smartyObj->assign_by_ref('header', $HeaderHandler);
$HeaderHandler->setPageBlockShow('headerBlock');
if($HeaderHandler->isShowPageBlock('headerBlock'))
	{
		$HeaderHandler->headerBlock['xml_content'] = (array_search($CFG['html']['current_script_name'], $CFG['admin']['light_window_pages']) and !$CFG['remote_client']['is_ie']);
		$HeaderHandler->headerBlock['userDetails'] = $HeaderHandler->getUserDetailsFromUsersTable($CFG['db']['tbl']['users'], $CFG['user']['user_id']);
	}
//assign for populate the language list in header
$HeaderHandler->populateLanguageDetails();
$HeaderHandler->populateTemplateDetails();
$smartyObj->assign('isMember', isMember());
$smartyObj->assign('isAdmin', isAdmin());
//display the header tpl file
setTemplateFolder('admin/');
$smartyObj->display('html_header.tpl');
?>
<script language="javascript" type="text/javascript">
	var cfg_site_url = '<?php echo $CFG['site']['url'];?>';
	var SITE_URL = '<?php echo $CFG['site']['url'];?>';
	var LANG_CLOSE = '<?php echo $LANG['header_close'];?>';
	var LANG_LOADING = '<?php echo $LANG['header_loading'];?>';
	var LANG_OR = '<?php echo $LANG['header_or'];?>';
	var LANG_CANCEL = '<?php echo $LANG['common_cancel'];?>';
	var LANG_limit = '<?php echo $LANG['header_limit'];?>';
	var LANG_limit_exceeds = '<?php echo $LANG['header_limit_exceeds'];?>';
	var LANG_valid_reason_for_abusing = '<?php echo $LANG['header_valid_reason_for_abusing'];?>';
	var LANG_compulsory = '<?php echo $LANG['err_tip_compulsory'];?>';
	var LANG_invalid_email = '<?php echo $LANG['header_err_tip_invalid_email'];?>';
	var LANG_invalid = '<?php echo $LANG['header_err_tip_invalid_number'];?>';
	var processingSrc = '<img src="<?php echo $CFG['site']['url'].'design/templates/'.$CFG['html']['template']['default'].'/images/processing.gif';?>" alt="<?php echo $LANG['header_loading'];?>"/>';
	var loadingInfoSrc = '<img src="<?php echo $CFG['site']['url'].'design/templates/'.$CFG['html']['template']['default'].'/images/loading.gif';?>" alt="<?php echo $LANG['header_loading'];?>"/>';
	var LANG_sending_email = '<?php echo $LANG['header_sending_msg'];?>';
	var LANG_updating_msg = '<?php echo $LANG['header_updating_msg'];?>';
	var LANG_exceed_limit = '<?php echo $LANG['header_exceed_limit'];?>';
	var LANG_remaining = '<?php echo $LANG['header_remainig'];?>';
	var LANG_remaining_again = '<?php echo $LANG['header_remainig_again'];?>';
	var LANG_not_match = '<?php echo $LANG['common_err_tip_same_password'];?>';
	var LANG_mustbe = '<?php echo $LANG['live_validate_mustbe'];?>';
	var LANG_mustbe_integer = '<?php echo $LANG['live_validate_mustbe_integer'];?>';
    var LANG_mustnotbe_less = '<?php echo $LANG['live_validate_mustnotbe_less'];?>';
	var LANG_mustnotbe_more = '<?php echo $LANG['live_validate_mustnotbe_more'];?>';
	var LANG_chars = '<?php echo $LANG['live_validate_characters'];?>';
	var ques_des_max_len = '<?php echo $CFG['admin']['description']['limit'];?>';
	var bug_max_size = '<?php echo $CFG['admin']['bug_max_size'];?>';
    var bio_count ='<?php echo $CFG['admin']['bio_count'];?>';
	var file_upload_limit = '<?php echo $CFG['admin']['attachments_allowed']['count'];?>';
	var file_upload_limit_exceeds = '<?php echo $LANG['file_size_exceeds'];?>';
</script>
<script language="javascript" type="text/javascript" src="<?php echo $CFG['site']['url'];?>js/basicfunctions.js"></script>
<?php if(chkIsAllowedModule(array('video')) or chkIsAllowedModule(array('audio')) or chkIsAllowedModule(array('external_video_audio')) or $CFG['admin']['module']['video_audio_blogsforum']) { ?>
	<script language="javascript" type="text/javascript" src="<?php echo $CFG['site']['url'];?>js/swfobject.js"></script>
	<script language="javascript" type="text/javascript" src="<?php echo $CFG['site']['url'];?>js/JSFCommunicator.js"></script>
<?php } ?>
<script language="javascript" type="text/javascript" src="<?php echo $CFG['site']['url'];?>js/browsersniff.js"></script>