View file sgb/in.php

File size: 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=\"&#x421;&#x435;&#x440;&#x432;&#x438;&#x441; &#x433;&#x43E;&#x441;&#x442;&#x435;&#x432;&#x44B;&#x445;\">\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"];

?>&#x421;&#x435;&#x440;&#x432;&#x438;&#x441; &#x413;&#x43E;&#x441;&#x442;&#x435;&#x432;&#x44B;&#x445; &#x41A;&#x43D;&#x438;&#x433;<br/>

<small>

&#x412;&#x430;&#x448;&#x430; &#x433;&#x43E;&#x441;&#x442;&#x435;&#x432;&#x430;&#x44F; &#x431;&#x443;&#x434;&#x435;&#x442; &#x434;&#x43E;&#x441;&#x442;&#x443;&#x43F;&#x43D;&#x430; &#x43F;&#x43E; &#x430;&#x434;&#x440;&#x435;&#x441;&#x443;<br/>

http://wap.waup.ru/sgb/index.php?id=&#x432;&#x430;&#x448;_&#x438;&#x434;<br/>====


<br/><a href="gpanel/auth.php">&#8594;&#x41F;&#x430;&#x43D;&#x435;&#x43B;&#x44C; &#x443;&#x43F;&#x440;&#x430;&#x432;&#x43B;&#x435;&#x43D;&#x438;&#x44F;</a>

<br/><a href="reg.wml">&#8594;&#x420;&#x435;&#x433;&#x438;&#x441;&#x442;&#x440;&#x430;&#x446;&#x438;&#x44F;</a>



<br/><a href="retrive.php">&#8594;&#x417;&#x430;&#x431;&#x44B;&#x43B;&#x438; &#x43F;&#x430;&#x440;&#x43E;&#x43B;&#x44C;?</a>

<br/><br/><a href="http://wap.waup.ru">&#169; wap.waup.ru</a>

</small></p></card></wml>

<?

mysql_close ($link);

?>