示例#1
0
<!DOCTYPE html>  
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">  
<head>  
<?
function useragent() {
	$useragent = $_SERVER['HTTP_USER_AGENT'];
	//print $useragent;
	if(strchr($useragent,"MSIE 8")) return 'IE 8';
}
if(useragent()=='IE 8') {
	echo "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\" /> \n";
	echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" /> \n";
	echo "<meta name=\"robots\" content=\"noindex, nofollow\"> \n";
} else {
	echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" /> \n";
	echo "<meta name=\"robots\" content=\"noindex, nofollow\"> \n";
}
?>
	<meta name="Keywords" content="" />
	<meta name="Description" content="" />
  <title> Welcome to Dog and Rooster Admin Control Panel </title>
  <!--[if IE]>
    <script src="assets/js/html5.js"></script>
  <![endif]-->
  <link href="<?php 
echo base_url('assets/css/core2.css');
?>
"  rel="stylesheet" type="text/css" media="screen" />
  <link href="<?php 
echo base_url('assets/css/jgrowl.css');
?>
示例#2
0
$operating_systems[] = array('pattern' => '#Mac_PowerPC#', 'string' => 'Mac OS [PowerPC]');
$operating_systems[] = array('pattern' => '#Mac#', 'string' => 'Mac OS');
$operating_systems[] = array('pattern' => '#X11#', 'string' => 'UNIX [unknown version]');
$operating_systems[] = array('pattern' => '#Unix#', 'string' => 'UNIX [unknown version]');
$operating_systems[] = array('pattern' => '#BeOS#', 'string' => 'BeOS [unknown version]');
$operating_systems[] = array('pattern' => '#QNX#', 'string' => 'QNX [unknown version]');
$GLOBALS['operating_systems'] = $operating_systems;
// fix for stupid browser shells sending lots of requests
if (strpos($_SERVER['HTTP_USER_AGENT'], "http://www.avantbrowser.com") > -1) {
    exit;
}
if (strpos($_SERVER['HTTP_USER_AGENT'], "WebDAV") > -1) {
    exit;
}
//work out browser and operating system
$user_agent = useragent($_SERVER['HTTP_USER_AGENT']);
$os = crc32($user_agent['operating_system']);
$ua = crc32($user_agent['user_agent']);
//work out access time data
$accesstime = getdate();
$hour = $accesstime['hours'];
$weekday = $accesstime['wday'];
// work out the host
if (isset($_SERVER['REMOTE_ADDR'])) {
    $hostname = $_SERVER['REMOTE_ADDR'];
    if (isset($_SERVER['REMOTE_HOST'])) {
        $hostname = $_SERVER['REMOTE_HOST'];
    } else {
        if ($this->config['resolve_hostnames'] == 1) {
            $hostname = gethostbyaddr($hostname);
            // should be an IP address
示例#3
0
    } else {
        $pageURL .= $_SERVER["SERVER_NAME"] . dirname($_SERVER['PHP_SELF']) . "/";
    }
    return $pageURL;
}
$root = curPageURL();
//record root url.
function useragent()
{
    $useragent = $_SERVER['HTTP_USER_AGENT'];
    //print $useragent;
    if (strchr($useragent, "MSIE")) {
        return 'IE';
    }
}
if (useragent() == 'IE') {
    $edge = "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"> \n";
} else {
    $edge = "";
}
require_once "php_inheritance.php";
//execute template.
?>
<? $products = Products::findProducts($_REQUEST['id']);?>
<!doctype html>
<html lang=en class="no-j">
<head>
  <title><?php 
echo $products->fldProductsName;
?>
</title>