View file moduls/css.php

File size: 2.04Kb
<?php
ERROR_REPORTING(0);
/*
FOR FREE ASSISTANCE CONTACT ME VIA:

Coded By: umoru  raymond

Facebook: http://www.facebook.com/raymond.9jaincredible.hacker
Email: (mobchatz0@gmail.com)
CellPhone +2347069010981

Twitter: @nairaways

WebSite: http://www.nairaways.com
*/

if(isset($_SESSION["view"]))
{
$browser=$_SESSION["view"];
}
elseif(preg_match('/(apple|iphone|ipod)/i', $_SERVER['HTTP_USER_AGENT']) && preg_match('/mobile/i', $_SERVER['HTTP_USER_AGENT']))
{
$browser   = "mobile";
}
elseif(preg_match('/(blackberry|configuration\/cldc|hp |hp-|htc |htc_|htc-|iemobile|kindle|midp|mmp|motorola|mobile|nokia|opera mini|opera mobi|palm|palmos|pocket|portalmmm|ppc;|smartphone|sonyericsson|sqh|spv|symbian|treo|up.browser|up.link|vodafone|windows ce|xda |xda_)/i', $_SERVER['HTTP_USER_AGENT']))
{
$browser   = "mobile";
}
elseif(((strpos(strtolower($_SERVER['HTTP_ACCEPT']),'text/vnd.wap.wml') > 0) || (strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml')>0)) || ((isset($_SERVER['HTTP_X_WAP_PROFILE']) || isset($_SERVER['HTTP_PROFILE']))))
{
$browser = mobile;
}

elseif(in_array(strtolower(substr($_SERVER['HTTP_USER_AGENT'],0,3)),array('lg '=>'lg ','lg-'=>'lg-','lg_'=>'lg_','lge'=>'lge')))
{
$browser = "mobile";
}
elseif(in_array(strtolower(substr($_SERVER['HTTP_USER_AGENT'],0,4)),array('acs-'=>'acs-','amoi'=>'amoi','doco'=>'doco','eric'=>'eric','huaw'=>'huaw','lct_'=>'lct_','leno'=>'leno','mobi'=>'mobi','mot-'=>'mot-','moto'=>'moto','nec-'=>'nec-','phil'=>'phil','sams'=>'sams','sch-'=>'sch-','shar'=>'shar','sie-'=>'sie-','wap_'=>'wap_','zte-'=>'zte-')))
{
$browser   = "mobile";
}
elseif(preg_match('/Googlebot-Mobile/i', $_SERVER['HTTP_USER_AGENT']) || preg_match('/YahooSeeker\/M1A1-R2D2/i', $_SERVER['HTTP_USER_AGENT']))
{
$browser   = "mobile";
}
else
{
$browser ="pc";
}
if($browser=='mobile')
{
echo '<link rel="stylesheet" href="'.$config->url.'content/css/'.$config->css.'mobile.css" type="text/css" media="all" />';
}
else
{
echo '<link rel="stylesheet" href="'.$config->url.'content/css/'.$config->css.'pc.css" type="text/css" media="all" />';
}
?>