my old WAP Services on lavalair wml version. .just share for care. . =)
PHP Code:
<?php
header("Content-type: text/vnd.wap.wml");
header("Cache-Control: no-store, no-cache, must-revalidate");
echo("<?xml version=\"1.0\"?>");
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<?php
include("config.php");
include("core.php");
include("ntpw.php");
$bcon = connectdb();
if(!$bcon)
{
echo "<card id=\"main\" title=\"ERROR\">";
echo "<p align=\"center\">";
echo "<img src=\"images/exit.gif\" alt=\"*\"/><br/>";
echo "ERROR !!!<br/>";
echo "<i>Cannot Connect To Database</i>";
echo "<br/>";
echo "This Error Happens Usually When Backing Up The Database. Please Be Patient, The Site Will Be Up Any Second<br/>";
echo "<b>THANK YOU VERY MUCH</b>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
$brws = explode(" ",$HTTP_USER_AGENT);
$ubr = $brws[0];
$uip = getip();
$action = cleanQuery($_GET["action"]);
$sid = cleanQuery($_GET["sid"]);
$uid = getuid_sid($sid);
$sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'"));
$sitename = $sitename[0];
$logo = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='logo'"));
$logo = $logo[0];
if(islogged($sid)==false)
{
echo "<card id=\"main\" title=\"$sitename\">";
echo "<p align=\"center\">";
echo "You are not logged in<br/>";
echo "Or Your session has been expired<br/><br/>";
echo "<a href=\"index.php\">Login</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
if(isbanned($uid))
{
echo "<card id=\"main\" title=\"$sitename\">";
echo "<p align=\"center\">";
echo "<img src=\"images/notok.gif\" alt=\"x\"/><br/>";
echo "You are <b>Banned</b><br/>";
$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1'"));
$banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'"));
$remain = $banto[0]- time();
$rmsg = gettimemsg($remain);
echo "Time to finish your penalty: $rmsg<br/><br/>";
echo "Ban Reason: $banres[0]";
//echo "<a href=\"index.php\">Login</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
addvisitor();
addonline(getuid_sid($sid),"Wap Services","");
if($action==main)
{
echo "<card id=\"main\" title=\"Wap Services@$sitename\">";
echo "<p align=\"center\">";
echo "<b>Wap Services</b>";
echo "</p>";
echo "<p>";
echo "<i>Local Services</i><br/>";
echo "• <a href=\"services.php?action=main&sid=$sid\">RSS</a><br/>";
echo "• <a href=\"services.php?action=main&sid=$sid\">E-Mail</a><br/>";
echo "• <a href=\"services.php?action=main&sid=$sid\">Smilies</a><br/>";
echo "• <a href=\"services.php?action=main&sid=$sid\">Browser</a>";
echo "</p>";
echo "<p>";
echo "<i>Vault Link Services</i><br/>";
echo "• <a href=\"services.php?action=lbrand&sid=$sid\">Logo</a><br/>";
echo "• <a href=\"services.php?action=google&sid=$sid\">G-Search</a><br/>";
echo "• <a href=\"services.php?action=googlepro&sid=$sid\">G-Proxy</a><br/>";
echo "• <a href=\"services.php?action=googletran&sid=$sid\">G-Translate</a><br/>";
echo "• <a href=\"services.php?action=yahoo&sid=$sid\">YMessenger</a>";
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\"/>Home</a>";
echo getpw($sid);
echo "</p>";
echo "</card>";
}
else if($action==lbrand)
{
echo "<card id=\"main\" title=\"$sitename\">";
echo "<onevent type=\"onenterforward\">";
echo "<refresh><setvar name=\"name\" value=\"\"/></refresh>";
echo "</onevent>";
echo "<p align=\"center\">";
echo "<b>Logo Brand</b>";
echo "</p>";
echo "<p align=\"center\">";
echo "Name:<br/>";
echo "<input type=\"text\" name=\"name\" size=\"10\" maxlength=\"30\"/><br/>";
echo "Style:<br/>";
echo "<select name=\"style\">";
echo "<option value=\"1\">Yahoo</option>";
echo "<option value=\"2\">Harry Potter</option>";
echo "<option value=\"3\">Monster INC</option>";
echo "<option value=\"4\">Star Wars</option>";
echo "<option value=\"5\">Ferrari</option>";
echo "<option value=\"6\">Nintendo</option>";
echo "</select><br/>";
echo "<anchor>Making<go href=\"services.php?action=slbrand&sid=$sid\" method=\"post\">";
echo "<postfield name=\"name\" value=\"$(name)\"/>";
echo "<postfield name=\"style\" value=\"$(style)\"/>";
echo "</go></anchor>";
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"services.php?action=main&sid=$sid\">Services Menu</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\"/>Home</a>";
echo getpw($sid);
echo "</p>";
echo "</card>";
}
else if($action==slbrand)
{
$lname = cleanQuery($_POST["name"]);
$lstyle = cleanQuery($_POST["style"]);
echo "<card id=\"main\" title=\"$sitename\">";
echo "<p align=\"center\">";
echo "<b>Logo Brand</b>";
echo "</p>";
echo "<p align=\"center\">";
echo "This services was direct to another domain, so please check your credits first before you download ;)..<br/><br/>";
echo "Logo Name: $lname<br/>";
if($lstyle==1)
{
echo "Style: Yahoo<br/>";
echo "<a href=\"http://logo54.com/net/yahoo/logo.php?lo=$lname\">Download Logo</a>";
}else if($lstyle==2)
{
echo "Style: Harry Potter<br/>";
echo "<a href=\"
[i]Added after 7 minutes[/i]:
echo "Style: Harry Potter<br/>";
echo "<a href=\"http://logo54.com/movie/harry/logo.php?lo=$lname\">Download Logo</a>";
}else if($lstyle==3)
{
echo "Style: Monster INC<br/>";
echo "<a href=\"http://logo54.com/movie/monster/logo.php?lo=$lname\">Download Logo</a>";
}else if($lstyle==4)
{
echo "Style: Star Wars<br/>";
echo "<a href=\"http://logo54.com/movie/starwars/logo.php?lo=$lname\">Download Logo</a>";
}else if($lstyle==5)
{
echo "Style: Ferrari<br/>";
echo "<a href=\"http://logo54.com/car/ferrari/logo.php?lo=$lname\">Download Logo</a>";
}else if($lstyle==6)
{
echo "Style: Nintendo<br/>";
echo "<a href=\"http://logo54.com/game/nintendo/logo.php?lo=$lname\">Download Logo</a>";
}
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"services.php?action=main&sid=$sid\">Services Menu</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\"/>Home</a>";
echo getpw($sid);
echo "</p>";
echo "</card>";
}
else if($action==google)
{
echo "<card id=\"main\" title=\"Google Search\">";
echo "<onevent type=\"onenterforward\">";
echo "<refresh><setvar name=\"q\" value=\"\"/></refresh>";
echo "</onevent>";
echo "<p align=\"center\">";
echo "<b>Google Search</b>";
echo "</p>";
echo "<p align=\"center\">";
echo "Search for:<br/>";
echo "<input type=\"text\" name=\"q\" size=\"10\" maxlength=\"1000\"/><br/>";
echo "Category:<br/>";
echo "<select name=\"site\">";
echo "<option value=\"search\">Web</option>";
echo "<option value=\"images\">Images</option>";
echo "<option value=\"mobile\">Mobile Web</option>";
echo "</select><br/>";
echo "<anchor>Search<go href=\"services.php?action=sgoogle&sid=$sid\" method=\"post\">";
echo "<postfield name=\"q\" value=\"$(q)\"/>";
echo "<postfield name=\"site\" value=\"$(site)\"/>";
echo "</go></anchor>";
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"services.php?action=main&sid=$sid\">Services Menu</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\"/>Home</a>";
echo getpw($sid);
echo "</p>";
echo "</card>";
}
else if($action==sgoogle)
{
$u = cleanQuery($_POST["u"]);
$site = cleanQuery($_POST["site"]);
echo "<card id=\"main\" title=\"Google Search\">";
echo "<p align=\"center\">";
echo "<b>Google Search</b>";
echo "</p>";
echo "<p align=\"center\">";
echo "This services was direct to GOOGLE.COM domain, so please check your credits first before you surfing ;)..<br/><br/>";
echo "<a href=\"http://www.google.com/xhtml/search?q=$q&site=$site\">Go Search</a>";
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"services.php?action=main&sid=$sid\">Services Menu</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\"/>Home</a>";
echo getpw($sid);
echo "</p>";
echo "</card>";
}
else if($action==googlepro)
{
echo "<card id=\"main\" title=\"Google Proxy\">";
echo "<onevent type=\"onenterforward\">";
echo "<refresh><setvar name=\"u\" value=\"http://\"/></refresh>";
echo "</onevent>";
echo "<p align=\"center\">";
echo "<b>Google Proxy</b>";
echo "</p>";
echo "<p align=\"center\">";
echo "URL:<br/>";
echo "<input type=\"text\" name=\"u\" size=\"10\" maxlength=\"1000\"/><br/>";
echo "Images:<br/>";
echo "<select name=\"img\">";
echo "<option value=\"1\">No</option>";
echo "<option value=\"0\">Yes</option>";
echo "</select><br/>";
echo "<anchor>Surf<go href=\"services.php?action=sgooglepro&sid=$sid\" method=\"post\">";
echo "<postfield name=\"u\" value=\"$(u)\"/>";
echo "<postfield name=\"img\" value=\"$(img)\"/>";
echo "</go></anchor>";
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"services.php?action=main&sid=$sid\">Services Menu</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\"/>Home</a>";
echo getpw($sid);
echo "</p>";
echo "</card>";
}
else if($action==sgooglepro)
{
$u = cleanQuery($_POST["u"]);
$img = cleanQuery($_POST["img"]);
echo "<card id=\"main\" title=\"Google Proxy\">";
echo "<p align=\"center\">";
echo "<b>Google Proxy</b>";
echo "</p>";
echo "<p align=\"center\">";
echo "This services was direct to GOOGLE.COM domain, so please check your credits first before you surfing ;)..<br/><br/>";
echo "<a href=\"http://www.google.com/gwt/n?u=$u&_gwt_noimg=$img\">Go Search</a>";
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"services.php?action=main&sid=$sid\">Services Menu</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\"/>Home</a>";
echo getpw($sid);
echo "</p>";
echo "</card>";
}
else if($action==yahoo)
{
$id = cleanQuery($_POST["id"]);
echo "<card id=\"main\" title=\"Yahoo Messenger Status\">";
echo "<onevent type=\"onenterforward\">";
echo "<refresh><setvar name=\"id\" value=\"\"/></refresh>";
echo "</onevent>";
echo "<p align=\"center\">";
echo "<b>Yahoo Messenger Status</b>";
echo "</p>";
echo "<p align=\"center\">";
if($id=="")
{
echo "Yahoo ID:<br/>";
echo "<input type=\"text\" name=\"id\" size=\"10\" maxlength=\"30\"/><br/>";
echo "<anchor>Check<go href=\"services.php?action=yahoo&sid=$sid\" method=\"post\">";
echo "<postfield name=\"id\" value=\"$(id)\"/>";
echo "</go></anchor>";
}else{
echo "<i>$id YM</i><br/>";
echo "<img src=\"http://opi.yahoo.com/online?u
[i]Added after 2 minutes[/i]:
echo "<i>$id YM</i><br/>";
echo "<img src=\"http://opi.yahoo.com/online?u=$id&m=g&t=14&l=us\"/><br/>";
echo "<img src=\"http://img.msg.yahoo.com/avatar.php?yids=$id\"/><br/>";
echo "<a href=\"http://img.msg.yahoo.com/avatar.php?yids=$id\">Download Avatars</a><br/>";
echo "<a href=\"ymsgr:sendim?$id\">Send IM</a> |";
echo "<a href=\"http://profiles.yahoo.com/$id\">$id Profiles</a><br/>";
echo "<a href=\"ymsgr:addfriend?$id\">Add as Friends</a> |";
echo "<a href=\"ymsgr:call?$id\">Call</a><br/>";
echo "<a href=\"services.php?action=yahoo&hits=".date("dsyhm")."&sid=$sid\">«New Find</a>";
}
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"services.php?action=main&sid=$sid\">Services Menu</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\"/>Home</a>";
echo getpw($sid);
echo "</p>";
echo "</card>";
}
else if($action==googletran)
{
echo "<card id=\"main\" title=\"Google Translate\">";
echo "<onevent type=\"onenterforward\">";
echo "<refresh><setvar name=\"q\" value=\"\"/></refresh>";
echo "</onevent>";
echo "<p align=\"center\">";
echo "<b>Google Translate</b>";
echo "</p>";
echo "<p align=\"center\">";
echo "Translate Words: <br/>";
echo "<input name=\"twords\" maxlength=\"2000\" size=\"10\"/><br/>";
echo "<anchor>Translate<go href=\"services.php?action=googletrans&sid=$sid\" method=\"post\">";
echo "<postfield name=\"twords\" value=\"$(twords)\"/>";
echo "</go></anchor><br/>";
echo "<small><i>Note: Just From English To Malay Words Only. You Can Change It When You Surfing There.</i></small>";
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"services.php?action=main&sid=$sid\">Services Menu</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\"/>Home</a>";
echo getpw($sid);
echo "</p>";
echo "</card>";
}
else if($action==googletrans)
{
$twords = cleanQuery($_POST["twords"]);
echo "<card id=\"main\" title=\"Google Translate\">";
echo "<p align=\"center\">";
echo "<b>Google Translate</b>";
echo "</p>";
echo "<p align=\"center\">";
echo "This services was direct to GOOGLE.COM domain, so please check your credits first before you surfing ;)..<br/><br/>";
echo "<a href=\"http://translate.google.com/m?hl=en&sl=en&tl=ms&ie=UTF-8&prev=_m&q=$twords\">Translate Now</a>";
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"services.php?action=main&sid=$sid\">Services Menu</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\"/>Home</a>";
echo getpw($sid);
echo "</p>";
echo "</card>";
}
else{
echo "<card id=\"main\" title=\"$sitename\">";
echo "<p align=\"center\">";
echo "I don't know how did you get into here, but there's nothing to show<br/><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p></card>";
}
/// pwiNcE
?>
</wml>
Comment