Sindbad~EG File Manager

Current Path : /home/copmadinaarea/www/wp-content__80fcb17/plugins/iwapppress/includes/
Upload File :
Current File : /home/copmadinaarea/www/wp-content__80fcb17/plugins/iwapppress/includes/header.php

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>iWappPress</title>
</head>
<body>

<div class="header">
	<div class="wrapper">
		<div class="inner-header">
			<div class="logo">
				<a href="<?php echo admin_url('admin.php?page=iWappPresssettings'); ?>"><img src="<?php echo plugins_url( '../images/logo.png',  __FILE__ ) ?>" title="" alt="" style="float:left;"/> <h1 style="float:left;color:#442D1F;">iWappPress</h1></a>
			</div>
			<div class="right-header">
				<div class="navigation">
					<ul>
						<li <?php if(isset($_GET['page']) && $_GET['page']=='iWappPresssettings'){ echo 'class="active"'; } ?>><a href="<?php echo admin_url('admin.php?page=iWappPresssettings'); ?>" >Settings & Build App </a></li>
						<li <?php if(isset($_GET['page']) && $_GET['page']=='iWappPresssettings#bulid'){ echo 'class="active"'; } ?>><a  href="<?php echo admin_url('admin.php?page=iWappPresssettings#bulid'); ?>" >Build iOS App </a></li>
<li <?php if(isset($_GET['page']) && $_GET['page']=='iWappPresspush'){ echo 'class="active"'; } ?>><a  href="<?php echo admin_url('admin.php?page=iWappPresspush'); ?>">Push Notification </br><em><span class='font_cls'>(Message/Alert)</span></em></a></li>						
						<li <?php if(isset($_GET['page']) && $_GET['page']=='iWappPresshelp'){ echo 'class="active"'; } ?>><a  href="<?php echo admin_url('admin.php?page=iWappPresshelp'); ?>" >Get Started- HELP</a></li>				
						<li><a  href="https://wapppresssupport.freshdesk.com" target="_blank">Need Help? </a></li>
					</ul>
				</div>
			</div>
			<div class="clear">
			</div>
			
		</div>
	</div>
	
</div>
<script>
var down_img = "<?php echo  plugins_url( '../images/down_arrow.png',  __FILE__ ) ?>";
var up_img = "<?php echo  plugins_url( '../images/arrow.png',  __FILE__ ) ?>";
</script>
<?php 
//
	function iWapp_curl_site_url() {
		 $pageURL = 'http';
		 if (isset($_SERVER['HTTPS']) && $_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
		 $pageURL .= "://";
		 if ($_SERVER["SERVER_PORT"] != "80") {
		  $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"];
		 } else {
		  $pageURL .= $_SERVER["SERVER_NAME"];
		 }
		 $subDirURL='';
		 if(!empty($_SERVER['SCRIPT_NAME'])){
			 $subDirURL .= str_replace("wp-admin/admin.php","",$_SERVER['SCRIPT_NAME']);
		 }
		 return $pageURL.$subDirURL;
	}
	function iWapp_get_domain_name($url)
	{
	  $pieces = parse_url($url);
	  $domain_n='';
	  $domain = isset($pieces['host']) ? $pieces['host'] : '';
	  if(preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,10})$/i', $domain, $regs)) {
		return $regs['domain'];
	  }
	  return false;
	}
	function get_app_url($request_type='complile')
	{
		$compile_id = COMPILE_IOS_ID;
							
		$pageURL = iWapp_curl_site_url();
			
		$dirIncImg  =  trailingslashit( plugins_url( dirname( plugin_basename( __FILE__ ) ) ) );						
		
		$domain_name = iWapp_get_domain_name($pageURL); 
		$auth = urlencode(base64_encode($domain_name.'~iWappPress~'.$pageURL.'~iWappPress~'.time()));
		$compile_connector = '/api/ios';
		if($request_type=='complile'){$compile_params    = '/create-ios-api.php?auth_key=';}else{ $compile_params    = '/create-api-push.php?auth_key=';}
		return $compile_id.$compile_connector.$compile_params.$auth;
	}
	//
?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists