View file script/wap/wap2.php

File size: 797B
<?php
include 'wapconf.inc.php';
if ( $w != md5($admin_login.$admin_pass) )
{
header ('Location:index.php');
}

header("Content-Type: text/vnd.wap.wml"); 
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 "<wml><card title=\"mcGalleryPRO\">";
echo "<do type=\"prev\" label=\"back\"><prev/></do>"; 
 

$connect= mysql_connect($host,$login,$pass);
mysql_select_db($base, $connect);
$date = date("Y-m-d");

echo "<p>";

$query = "SELECT login, visite FROM mcgallery_members WHERE date LIKE '$date%' ORDER BY login";
$res = mysql_query($query);
while ($row = mysql_fetch_array($res))
{
echo $row['login'].' ('.$row['visite'].')<br/>';
}
echo "</p>";

echo "</card></wml>";
?>