Просмотр файла worldtimeservis/time.php

Размер файла: 2.46Kb
<?php
header("Content-type: text/vnd.wap.wml");
header("display_errors=0");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">";
echo "<!-- 2005 - 2008 [email protected] -->\n";

$New_Time = time()   (0 * 60 * 60);
$time=date("H:i",$New_Time);
echo "<wml>";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>";

?>
<card id="card1" title="World Time Servis">
<p align="left">

<b>World Time</b><br/>
<?
$gerNew_Time = time()   (0 * 60 * 60);
$gertime=date("H:i",$gerNew_Time);
echo "<br/>Berlin, Pariz, Rim, Johanesburg: $gertime";
$helNew_Time = time()   (1 * 60 * 60);
$heltime=date("H:i",$helNew_Time);
echo "<br/>Helsinki, Ankara: $heltime";
$mosNew_Time = time()   (2 * 60 * 60);
$mostime=date("H:i",$mosNew_Time);
echo "<br/>Moskva, St. Petersburg, Bagdad: $mostime";
$banNew_Time = time()   (6 * 60 * 60);
$bantime=date("H:i",$banNew_Time);
echo "<br/>Bangkok, Dzakarta: $bantime";
$bjinNew_Time = time() + (7 * 60 * 60);
$bjintime=date("H:i",$bjinNew_Time);
echo "<br/>Beijing: $bjintime";
$tokNew_Time = time() + (8 * 60 * 60);
$toktime=date("H:i",$tokNew_Time);
echo "<br/>Tokio, Seoul: $toktime";
$sydNew_Time = time() + (9 * 60 * 60);
$sydtime=date("H:i",$sydNew_Time);
echo "<br/>Sidnej: $sydtime";
$welNew_Time = time() + (11 * 60 * 60);
$weltime=date("H:i",$welNew_Time);
echo "<br/>Wellington, Auckland: $weltime";
$alsNew_Time = time() + (14 * 60 * 60);
$alstime=date("H:i",$alsNew_Time);
echo "<br/>Aljaska: $alstime";
$seaNew_Time = time() + (15 * 60 * 60);
$seatime=date("H:i",$seaNew_Time);
echo "<br/>Seattle, San Francisco: $seatime";
$slcNew_Time = time() + (16 * 60 * 60);
$slctime=date("H:i",$slcNew_Time);
echo "<br/>Solt Lejk Siti, Feniks: $slctime";
$chicNew_Time = time() + (17 * 60 * 60);
$chictime=date("H:i",$chicNew_Time);
echo "<br/>Chikago, Dalas, Meksiko: $chictime";
$nycNew_Time = time() + (18 * 60 * 60);
$nyctime=date("H:i",$nycNew_Time);
echo "<br/>New York, Majami, Kvebek: $nyctime";
$bNew_Time = time() + (20 * 60 * 60);
$btime=date("H:i",$bNew_Time);
echo "<br/>Beunos Aires, Brasilija: $btime";
$hereNew_Time = time()   (23 * 60 * 60);
$heretime=date("H:i",$hereNew_Time);
echo "<br/>London, Dablin, Lisabon: $heretime";

echo "<br/><br/>";
echo "<a href=\"timereg.wml\">Register your time servis!</a><br/>";
echo "<a href=\"../\">Back</a>";

?>
</p>
</card>
</wml>