Размер файла: 2.28Kb
<?
header("Cache-Control: no-cache");
header("Content-type:text/vnd.wap.wml; charset=utf-8");
$ref=rand(10000,1000000);
require("conf.inc.php");
$link = @mysql_pconnect ($MySQL_Hostname, $MySQL_Username, $MySQL_Password)
or die ("<wml>
<card id=\"error\" title=\"error\">
<do type=\"prev\" label=\"Back\"><prev/></do><p align=\"center\">Can not connect to MySQL<br/>".mysql_error()."</p>
</card>
</wml>");
@mysql_select_db($MySQLDatabasename) or die ("<wml>
<card id=\"error\" title=\"error\">
<do type=\"prev\" label=\"Back\"><prev/></do><p align=\"center\">error select the database...<br/>".mysql_error()."</p>
</card>
</wml>");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">\n";
echo "<wml>\n";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>\n";
echo "<card id=\"index\" title=\"Сервис гостевых\">\n";
echo "<p align=\"center\" mode=\"wrap\">\n";
$r = mysql_query("select count(id) as num from users");
$a = mysql_fetch_array($r);
$num = $a["num"];
?>Сервис Гостевых Книг<br/>
<small>
Ваша гостевая будет доступна по адресу<br/>
http://wap.waup.ru/sgb/index.php?id=ваш_ид<br/>====
<br/><a href="gpanel/auth.php">→Панель управления</a>
<br/><a href="reg.wml">→Регистрация</a>
<br/><a href="retrive.php">→Забыли пароль?</a>
<br/><br/><a href="http://wap.waup.ru">© wap.waup.ru</a>
</small></p></card></wml>
<?
mysql_close ($link);
?>