View file include/augsa.php

File size: 1.23Kb
<?php

require_once('include/gzip.php');

//ja $title nav norādīts, tad uzliekam

if ($title=='')
{
	$title = getenv('HTTP_HOST');
}

//ja skripta darbības sākuma laiks nav uzlikts, tad uzliekam

if ($sakt=='')
{
	$sakt = microtime(1);
}

//norādām css stilu

$stils = css($sid);
$css = file_get_contents($stils);

//////////////////////////////////////////////////////////////

$beigt = microtime(1);

@header('Content-type: text/html; charset=utf-8');
@header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
@header('Cache-Control: no-cache, must-relative');
echo '<?xml version="1.0" encoding="UTF-8" ?>';
echo '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">';
echo '<html><head>';
echo '<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>';
echo '<title>'.$title.'</title>';
echo '<style type="text/css">';
echo $css;
echo '</style></head><body>';

$jaunas = vestules();

if ($jaunas!=false && $kas!='' && $kas!='pasts' && $kas!='lasit')
{
	echo '<div class="vidus" style="text-align: center">';
	echo '<small><a href="./?kas=pasts&amp;sid='.$sid.'">Jaunas vēstules: '.$jaunas.'</a></small>';
	echo '</div>';
}

?>