Просмотр файла wap4mambo/menu.php

Размер файла: 1.58Kb
<?php
/*******************************************************************\
*   File Name menu.php                                              *
*   Date 02-10-2003                                                 *
*   For Mambo WAP Site Builder                                      *
*   Writen By Tony Skilton [email protected]              *
*   Version 2.00                                                    *
*   Copyright (C) 2003 Media Finder http://mediafinder.sytes.net    *
*	Distributed under the terms of the GNU General Public License   *
*   Please do not remove any of the information above               *
\*******************************************************************/
header("Content-Type: text/vnd.wap.wml");
echo"<?xml version=\"1.0\"?>"; ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
			"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<?php include("config.php");
$database = new database();
DB_connect($dbn,$host,$user,$pass);
$query2 = "SELECT count FROM ".$dbpre."_counter where type='OS'";
$result2=$database->openConnectionWithReturn($query2);
$visits=0;
for ($count = 1; $row = mysql_fetch_row ($result2); ++$count)
{
	$visits = $visits + $row[0];
	$visits .= "<br/>".Visitors;
} ?>
<card id="menu" title="<? echo $wap_title ?>">
<p align="center">
<b><? echo ("$wap_title"); ?><br />Menu</b><br />
<a href="news/index.php">News</a><br />
<a href="onews/index.php">Other News</a><br />
<a href="weather.php">Weather</a><br />
<a href="contact.php">Contact</a><br />
<small><b><? echo "$visits" ?></b></small>
</p>
</card></wml>