system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
cmd: 

Direktori : /home/pfhr/public_html/classes/Controller/
Upload File :
Current File : /home/pfhr/public_html/classes/Controller/CHeader.php

<?php

class Controller_CHeader
{
	
	function showHeader()
	{		
		include_once('classes/Model/MHeader.php');
		include_once('classes/Display/DHeader.php');
		include_once('classes/Model/MIndex.php');

		$values=Model_MHeader::showTitle();
		$output['title']=$values['title'];
		$output['key']=$values['key'];
		$output['desc']=$values['desc'];
		if(isset($_SESSION['userid']))
		{
			$output['header_logo']=Model_MHeader::showHeader();
			$output['have_a_ques']=Model_MHeader::showContactUs();			
			$output['items']=Model_MHeader::showCheckoutcount();
			$output['show_headersettings']=Model_MHeader::showHeaderSettings();

			$content=Model_MIndex::getContent();
			$output['mode'] = $content['disp_mode'];
			$output['type'] = $content['type'];
			$output['peellink'] = $content['peel_image_link'];		

		  	Bin_Template::createTemplate('mheader.html',$output);
		}
		else
		{
			$output['header_logo']=Model_MHeader::showHeader();
			$output['have_a_ques']=Model_MHeader::showContactUs();
			$output['show_headersettings']=Model_MHeader::showHeaderSettings();
			//print_r($output['show_headersettings'][0]['header_logo']);
//exit;
			$content=Model_MIndex::getContent();
			$output['mode'] = $content['disp_mode'];
			$output['type'] = $content['type'];
			$output['peellink'] = $content['peel_image_link'];

			Bin_Template::createTemplate('header.html',$output);
		}
		//return $output['header'];
	}
	

}



?>