HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.52.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/barbeatleanalyti/public_html/baris.beatleanalytics.com/index.php 19-2-2019 7.43pm
<?php 
	/*
		Project Name :  Staffing Management System.
		@Summary:		Main loading file for index and search page. Execution of index & search page starts from this page
		@version:		1.0
	*/
	# If execution directly starts from index.php instead of dispatcher (In case of http://www.DOMAIN.com) 
	
	error_reporting(0);
	session_start();
	
	if($LOADDISPATCHER != "YES")
	{
		
		$MasterId = 0;
		#	Set $pg variable if not set in dispatcher.php
		if(isset($_REQUEST['pg'])) 
		{
			$pg = $_REQUEST['pg'];
		} else {
			$pg = "login";
		}
		
		#	---------------------- Don't alter below code --------------------------------#
		include_once("site/include/config.php"); #	Site configuration file
		include_once("site/include/dbClass.php"); #	Database class file 
		require_once("site/include/storeconfig.php"); #	Store configuration file
		#	------------------------------------------------------------------------------#


		
		$objDB = new MySQLCN;
		
		$storeconfig = new storeconfig;
		$storeconfigdata = $storeconfig->find_storeid();
		
		if(count($storeconfigdata) > 0) 
		{
			$StoreName 			=  $storeconfigdata[0]['StoreName'];
			$StoreDisplayName 	=  $storeconfigdata[0]['StoreDisplayName'];
		}
		require_once("site/include/functions.php");	# Function file
		$blockedIP = check_blocked_visit_ip();
		
		// Check UserLogin Or Not
		
		
		
		
		/*
		$SQL = "SELECT * FROM content WHERE SEName = '".$pg."' AND  Status = 'Y'";
		$res = $objDB->select($SQL);
			if(count($res) > 0)
			{
				if($blockedIP == false)
				{
					$SQL = "UPDATE content SET TotalVisit = TotalVisit + 1 WHERE ContentID = ".$res[0]['ContentID'];
					$res = $objDB->sql_query($SQL);
				}
	
				$MetaKeywords = $res[0]['SEKeywords'];
				$PageTitle = $res[0]['SETitle'];
				$MetaDescription = $res[0]['SEDescription'];
			}
			*/
	 	}
	
	# Code execute when 'allow_url_fopen' & "allow_url_include' are turned off in php.ini


	if (!ini_get('allow_url_fopen') && !ini_get('allow_url_include'))
	{
		stream_wrapper_unregister('http');
		//require('http_wrapper.php');
		stream_wrapper_register('http', 'moo_stream_wrapper_http');
	}
	
	
	define('ERROR_PATH',$error_path);
	
	ini_set("session.bug_compat_warn", "Off");
	ini_set("register_globals", "On");
	
	require_once(INCLUDE_PATH."/functions.php");	# Function file
	
	#	Check for Remote IP is restricted or not
	if(!empty($_SERVER["REMOTE_ADDR"]))
	{
		ip_validity();
	}
	
	
	/*$SQL = "SELECT * FROM content WHERE SEName = '".$pg."' AND Status = 'Y' ";
	$res = $objDB->select($SQL);
	if(count($res) > 0)
	{
		$MetaKeywords = $res[0]['SEKeywords'];
		$PageTitle = $res[0]['SETitle'];
		$MetaDescription = $res[0]['SEDescription'];
	}
	*/

	$uInfo___ = array();
	if(isset($_SESSION['UserInfo']['UserID']) ) {
		
		$SQL___ = "SELECT beatle_userlogin.* FROM beatle_userlogin  WHERE beatle_userlogin.UserID = ".$_SESSION['UserInfo']['UserID'];
		$uInfo___ = $objDB->sql_query($SQL___);
		
		$pe___ = "";
		if(strtolower($_SESSION['UserInfo']['UType']) == 'end_user') {
		if($pg != 'signout') {
				if(empty($uInfo___[0]['db_state']) || $uInfo___[0]['db_state'] === 0){
					$pe___ = 'Y';
				}else 
				if(empty($uInfo___[0]['db_city']) || $uInfo___[0]['db_city'] == 0){
					$pe___ = 'Y';
				}else			
				if(empty($uInfo___[0]['db_username'])){
					$pe___ = 'Y';
				}else
				if(empty($uInfo___[0]['db_phone'])){
					$pe___ = 'Y';
				}else
				if(empty($uInfo___[0]['db_email'])){
					$pe___ = 'Y';
				}else
				if(empty($uInfo___[0]['db_address'])){
					$pe___ = 'Y';
				}else
				if(empty($uInfo___[0]['db_pincode'])){
					$pe___ = 'Y';
				}
				if($pe___ == 'Y')
				$pg = 'profilenew';
			}
		}
	}
	
	
	//$objDB->ClientID = FetchClientID();
	//$objDB->MasterAdminID = FetchMasterAdminID();
	
	// Include the common include path.
	include(TEMPLATE_PATH.'/common_include.php');

	// Define image path globally.
	define("_IMAGEPATH_",SERVERROOT_IMAGE."theme/".SITE_THEME."/images");
	
	// Check model file exits or not
	
	if(file_exists(INCLUDE_PATH."/".$pg.".php")){
		// include the model(include) file 
		include(INCLUDE_PATH."/".$pg.".php");
		$clsNameModel = "include_".str_replace("-","_",$pg);
		if (class_exists($clsNameModel) ) {
			// Create object for model file
			$objDB->objModel = new $clsNameModel();
		}else{
			// Return post data if class not exists.
			ReturnPostFormData($ValidateArr = array(),"error.html","Class does not exists for model '<strong>{$pg}</strong>' file ! ",1);
		}
			
	}else{
		
		// Return post data if file not found.
		ReturnPostFormData($ValidateArr = array(),"error.html"," Model file <strong>".$pg." </strong> does not exist ! ",1);
	}
	
	if(file_exists(SCRIPT_PATH."/".$pg.".php")){
		// include the controller(include) file 
		include(SCRIPT_PATH."/".$pg.".php");
		$classNameController = "script_".str_replace("-","_",$pg);
		// Create and set new object for controller file.
		$objDB->objController = new $classNameController($_REQUEST);
		
		if($pg != "error" && $pg != "login" && $pg != "signup")
			$objDB->objController->Process();
			
	}else{
		// Return post data if not exists
		ReturnPostFormData($ValidateArr = array(),"error.html","Controller file <strong>".$pg."</strong> does not exist !",1);
	}
	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
$sec = "45"; ?>
<meta http-equiv="refresh" content="<?php //echo $sec?>">
<?php // Include head_tages file for common include.
	include(TEMPLATE_PATH."/head_tags.php")
?>


</head>
<?php
	$skin_ = 'skin-blue';
	$layout_boxed_ = '';
	$sidebar_ = 'dark';
	$left_sidebar_ = '';
	/*
	echo "<pre>";
	print_r($objDB->skinArr);
	echo "</pre>";	
	*/
	
	
	/*if(isset($_SESSION['UserInfo']['UserID']) && $_SESSION['UserInfo']['UType'] == 'MasterAdmin') {
		$skinArr = unserialize(USER_SKIN_SETTINGS);
		$layoutArr = unserialize(USER_LAYOUT_SETTINGS);
		
		if(count($skinArr) > 0){
			$skin_ = $skinArr[0];
		}
		
		if(in_array("layout-boxed",$layoutArr)){
			$layout_boxed_ = 'layout-boxed';
		}
		if(!in_array("sidebar",$layoutArr)){
			$sidebar_ = 'light';
		}
		if(strtolower(LEFT_SIDEBAR_TOGGLE) == 'y'){
			$left_sidebar_ = 'sidebar-collapse';
		}
		
		
	}else if(isset($_SESSION['UserInfo']['UserID']) && 
	($_SESSION['UserInfo']['UType'] == 'Admin' || $_SESSION['UserInfo']['UType'] == 'Employee')){
		
		$SQL = "SELECT * FROM user_settings WHERE EmployeeID = '".$_SESSION['UserInfo']['UserID']."' ";
		$rsSettingsData = $objDB->sql_query($SQL);
		if(count($rsSettingsData) > 0 ) {
			$skinArr = unserialize($rsSettingsData[0]['skin']);
			$layoutArr = unserialize($rsSettingsData[0]['layout']);
			
			if(count($skinArr) > 0){
				$skin_ = $skinArr[0];
			}
			
			if(!in_array("sidebar",$layoutArr)){
				$sidebar_ = 'light';
			}
			
			if(strtolower($rsSettingsData[0]['left_sidebar']) == 'y'){
				$left_sidebar_ = 'sidebar-collapse';
			}
		}
		
	} */
?>

<!--<body class="hold-transition <?php echo $skin_." ".$layout_boxed_." ".$left_sidebar_; ?> sidebar-mini"> -->
<!---<body class="sidebar-mini  skin-blue scr_lock fixed  pace-done sidebar-collapse">--->


<body class="skin-blue sidebar-mini wysihtml5-supported sidebar-collapse" cz-shortcut-listen="true" style="height: auto; min-height: 100%;">
<div class="wrapper">
  <?php 
  	// Include view file for header content
	   //if(in_array($pg,$tabbingArr))
	   if($pg != 'login' && $pg != 'error' && $pg != 'messageuser' && $pg != 'enduser' && $pg != 'offerprocess')
  		include(TEMPLATE_PATH."/header.php");
	
	// Include tabbing for tab
		//if(in_array($pg,$tabbingArr))
		if($pg != 'login' && $pg != 'error' && $pg != 'messageuser' && $pg != 'enduser' && $pg != 'offerprocess')
		include(TEMPLATE_PATH."/tabbing.php");
 ?>

	
        
	    <!--left navigation start -->
		<?php 
			
			// include file for left navigation
			//if(in_array($pg,$leftNavigationArr))
			//include(TEMPLATE_PATH."/left_navigation.php") 
		?>
        <!--left navigation end -->
	    <?php
			// include file for middle content
			include(TEMPLATE_PATH."/".$pg.".php"); ?>
			
	    <!--right navigation start -->
		<?php 
			// include file for right navigation
			if(in_array($pg,$rightNavigationArr))
			include(TEMPLATE_PATH."/right_navigation.php") ?>
        <!--right navigation end -->
     
  <?php 
  		// include file for footer content
		//if(in_array($pg,$tabbingArr))
		if($pg != 'login' && $pg != 'error' && $pg != 'messageuser' && $pg != 'enduser' && $pg != 'offerprocess')
		include(TEMPLATE_PATH."/footer.php") ?>
		
  <!-- end .container -->

</div>

<!----
<script type="text/JavaScript">

function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script> --->




</body>
</html>