Просмотр файла header.php

Размер файла: 3.38Kb
<?
###########################
##    Автор: Haruka      ##
##     ---------         ##
##   ICQ:444-977-782     ##
##                       ##
##  Доработка: *CRIME*   ##
##    -------------      ##
##     ICQ:699-322       ##
##        Посети         ##
##   http://skywap.su    ##
###########################

############################################################
##                                                        ##
## Скрипт преднозначен для бесплатного распространения    ##
##                                                        ##
############################################################

$agent2=$HTTP_ACCEPT;
$agent3=$HTTP_USER_AGENT;
$_SESSION['pid']=intval($pid);
/////// ДЛЯ ПЕРЕКЛЮЧАЛКИ ВАЛЮТЫ //////////
if (isset($_GET['rate']) && $_GET['rate']=='dol')
 $_SESSION['rate']='dol';
elseif (isset($_GET['rate']) && $_GET['rate']=='rub')
 $_SESSION['rate']='rub';
if (empty($_SESSION['rate']))
 $_SESSION['rate']=$valuta;
/////////////////////////////////////////
include ("ini.php");
//
function consumer3($agent3)
{
 if (ereg("^Mozilla.*",$agent3)) return "oslik";
}
//
$ie=consumer3($agent3);
if (ereg("application\/vnd.wap.xhtml\+xml",$agent2))
{
 $c_type = "application/vnd.wap.xhtml+xml";
}
elseif (ereg("application\/xhtml\+xml",$agent2))
{
 $c_type = "application/xhtml+xml";
}
elseif (ereg("text\/html",$agent2))
{
 $c_type = "text/html";
}
else
{
 $c_type = "text/vnd.wap.wml";
}
if ($ie=="oslik")
{
 $c_type = "text/html";
}
if ($t=="wml")
{
 $c_type = "text/vnd.wap.wml";
}
if ($t=="html")
{
 $c_type = "application/xhtml+xml";
}
//
if (empty($_SESSION['wap']))
{
 if ($c_type=="text/vnd.wap.wml")
 {
  $_SESSION['wap']="wml";
 }
 else
 {
  $_SESSION['wap']="xml";
 }
}
if (!empty($_GET['wap'])) { $_SESSION['wap']=$_GET['wap']; }
if ($_SESSION['wap']=="xml")
{
 header("Content-type: application/xhtml+xml; charset=utf-8");
 header("Cache-Control: no-cache");
 echo '<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head><title>'.$title.' - '.$title2.'</title>
 <style type="text/css">
 body { font-weight: normal; font-size: 14px; color: #D3DCEA; font-family: sans-serif; background-color: #BFCDE7;}
 a { color: #D3DCEA; text-decoration: none}
 a:hover { color: #3A4C6F; text-decoration: underline;}
 div { margin: 0px; padding: 0px 0px 0px 2px;}
 div.header {padding:0px 0px 1px 2px; background-color: #8096BE; border: 1px solid #33466A; color: #FFFFFF;}
 div.ten {padding:1px 1px 1px 2px; background-color: #33466A; border: 1px solid #33466A; color: #FFFFFF; background-image: url(http://'.$_SERVER["HTTP_HOST"].'/pics/hr.gif); background-repeat: repeat-x;}
 input.ibutton {color: #FFFFFF; background-color: #33466A; border-top: 1px solid #FFFFFF; border-left: 1px solid #FFFFFF; border-right: 1px solid #000000; border-bottom: 1px solid #000000; padding: 0px 2px 0px 2px;}
 </style>
 </head>
 <body>';
 include_once ("func/tags.php");
}
else
{
 header("Content-type: text/vnd.wap.wml; charset=utf-8");
 header("Cache-Control: no-cache");
 echo '<?xml version="1.0"?>
 <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
 <wml>
 <card id="main" title="'.$title.' - '.$title2.'"><p align="left">
 <small>
 ';
}
?>