it is fully working in html version but when i translate it to wml it will turn you the first page of the site.help me pls to translate it to wml lavalair base script..tnx in advance 4 the help...
ADD this code to index.php
///////////////////////////////////////C2P Converter else if($action=="pinoygsm") { addonline(getuid_sid($sid),"Converting Chatpost",""); $chatpost = mysql_fetch_array(mysql_query("SELECT chmsgs FROM ibwf_users WHERE id='".$uid."'")); $plusses = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'")); echo "<head>"; echo "<title>C2P Converter</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<body>"; echo " "; echo "You currently have $chatpost[0] ChatPosts and $plusses[0] Plusses "; echo "1 ChatPost = 1 Plusses "; echo "Select number of ChatPosts you want to convert</br> "; echo "<form action="index.php?action=convert&sid=$sid" method="post">"; echo " <select name="cp">"; echo "<option value="50">50</option>"; echo "<option value="100">100</option>"; echo "<option value="300">300</option>"; echo "<option value="500">500</option>"; echo "</select> "; echo "<input type="submit" value="convert"/>"; echo "</form>"; echo " "; echo "<a href="index.php?action=chat&sid=$sid">Chatrooms</a> "; echo "<a href="index.php?action=main&sid=$sid">Home Web</a>"; echo " "; echo "</body>"; echo "exit(); }
/////////////////////////////////////////C2P Converter else if($action=="convert") { addonline(getuid_sid($sid),"Converting ChatPost",""); echo "<head>"; echo "<title>C2P Converter</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<body>"; echo " "; $chatpost = mysql_fetch_array(mysql_query("SELECT chmsgs FROM ibwf_users WHERE id='".$uid."'")); $cp = $_POST["cp"]; if($chatpost[0] >= $cp) { if($cp=="50") { echo "$cp was deducted to your chatpost and "; echo "50 plusses was added to your account. "; echo " <a href="index.php?action=prostats&who=$uid&sid=$sid">View Stats</a>"; $res = mysql_query("UPDATE ibwf_users SET chmsgs=chmsgs-'$cp' WHERE id='".$uid."'"); mysql_query ("UPDATE ibwf_users SET plusses=plusses+'50' WHERE id='".$uid."'"); } else if($cp=="100") { echo "$cp was deducted to your chatpost and "; echo "100 pusses was added to your account. "; echo " <a href="index.php?action=prostats&who=$uid&sid=$sid">View Stats</a>"; $res = mysql_query("UPDATE ibwf_users SET chmsgs=chmsgs-'$cp' WHERE id='".$uid."'"); mysql_query ("UPDATE ibwf_users SET plusses=plusses+'100' WHERE id='".$uid."'"); } else if($cp=="300") { echo "$cp was deducted to your chatpost and "; echo "300 plusses was added to your account. "; echo " <a href="index.php?action=prostats&who=$uid&sid=$sid">View Stats</a>"; $res = mysql_query("UPDATE ibwf_users SET chmsgs=chmsgs-'$cp' WHERE id='".$uid."'"); mysql_query ("UPDATE ibwf_users SET plusses=plusses+'300' WHERE id='".$uid."'"); } else if($cp=="500") { echo "$cp was deducted to your chatpost and "; echo "500 plusses added to your account. "; echo " <a href="index.php?action=prostats&who=$uid&sid=$sid">View Stats</a>"; $res = mysql_query("UPDATE ibwf_users SET chmsgs=chmsgs-'$cp' WHERE id='".$uid."'"); mysql_query ("UPDATE ibwf_users SET plusses=plusses+'500' WHERE id='".$uid."'"); } }else{ echo "Stupid! Insufficient ChatPost,Dont cheat bastard!"; } echo " "; echo " "; echo "<a href="index.php?action=pinoygsm&sid=$sid">Back</a> "; echo " "; echo "<a href="index.php?action=chat&sid=$sid">Chatrooms</a> "; echo "<a href="index.php?action=forumindx&sid=$sid">Forums</a> "; echo "<a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo "</body>"; echo "exit(); }
Usage for this code is echo "<a href="index.php?action=pinoygsm&sid=$sid">Convert Chatpost</a>"; Place that code anywhere in your index.php file.I only modified this script and add this to my index.php file,help me to fix it in wml..
Not i rip persons off i will also do your arse !