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

Размер файла: 1.48Kb
<?php
/*******************************************************************\
*   File Name news/index.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"); ?>
<card id="news1" title="<? echo $wap_title ?>">
<do type="prev" label="Back"><prev/></do>
<p align="center"><b>News Menu</b></p>
<p><small>
<? DB_connect($dbn,$host,$user,$pass);
$result = mysql_query("SELECT * FROM ".$dbpre."_stories WHERE published=1 and frontpage=1 ORDER BY ordering");
while ($row = mysql_fetch_object($result))	 {
$sid = $row->sid;
$title = $row->title; 
$title=eregi_replace("&","&amp;",$title); ?>
<a href="link.php?id=<? echo "$sid" ?>">: <? echo "$title" ?></a><br/>    
 <?      }
mysql_free_result($result);?> 
</small></p></card> </wml>