File size: 1.28Kb
<?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=\"accept\" label=\"Reload\"><refresh/></do>";
$connect= mysql_connect($host,$login,$pass);
mysql_select_db($base, $connect);
$date = date("Y-m-d");
$query2 = "SELECT id FROM mcgallery_members WHERE date LIKE '$date%'";
$connection = mysql_num_rows(mysql_query($query2));
$query3 = "SELECT id FROM mcgallery_upload";
$upload = mysql_num_rows(mysql_query($query3));
$query4 = "SELECT id FROM mcgallery_comment WHERE valid = 'N'";
$comment = mysql_num_rows(mysql_query($query4));
$query5 = "SELECT id FROM mcgallery_card WHERE date='$date'";
$ecard = mysql_num_rows(mysql_query($query5));
echo '<p align="center"><strong>';
echo $date.'</strong></p>';
echo "<p>";
echo '<a href="wap2.php?w='.$w.'">'.$connection.' '.$l_Visits.'</a><br/>';
echo '<a href="wap3.php?w='.$w.'">'.$comment.' '.$l_Comments.'</a><br/>';
echo $upload.' '.$l_Uploads.'<br/>';
echo $ecard.' '.$l_Ecard;
echo "</p>";
echo "</card></wml>";
?>