plusses converter script!

Started on the old forum in December 2009 · view the original in the archive · old links redirect here

7 replies · 493 views · started 16 years ago · 1 min read

2 participants
arg0s12 Developer · 144 posts #1

Anyone who having chatpost convert to plusses script.? Pls, share, or post the code, . I have one but alway blankpage when i put in wap.Net.Ph script, , here's the code <?php include("config.php"); include("core.php"); //session_start(); header("Content-type: text/html; charset=ISO-8859-1"); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>"; echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">"; echo "<html xmlns="http://www.w3.org/1999/xhtml">";

$bcon = connectdb(); if (!$bcon) {

echo "<head>"; echo "<title>database error</title>"; echo "<meta http-equiv="Cache-Control" content="must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache"/> <meta name="description" content="$sitename is an interactive wap chat community emphasizing genuine friendships and the discovery of new people around the world :)"> <meta name="keywords" content="free, community, forums, chat, wap, communicate, $sitename, mobile, download, music, video">"; default_themes(); echo "</head>"; echo "<body>"; headads();

echo ""; echo "<img src="images/exit.gif" alt="*"/> "; echo "Database Transfer...

"; echo "Please try again later"; echo ""; echo ""; footads(); echo "</body>"; echo "</html>"; exit(); } $brws = explode(" ",$_SERVER[HTTP_USER_AGENT] ); $ubr = $brws[0]; $uip = getip(); $action = $_GET["action"]; $sid = $_GET["sid"]; $page = $_GET["page"]; $who = $_GET["who"]; $uid = getuid_sid($sid);

if(isipbanned($uip,$ubr)) { if(!isshield(getuid_sid($sid))) {

echo "<head>"; echo "<title>$sitename ip banned</title>"; echo "<meta http-equiv="Cache-Control" content="must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache"/> <meta name="description" content="$sitename is an interactive wap chat community emphasizing genuine friendships and the discovery of new people around the world :)"> <meta name="keywords" content="free, community, forums, chat, wap, communicate, $sitename, mobile, download, music, video">"; default_themes(); echo "</head>"; echo "<body>"; headads();

  echo "";
  echo "<img src=\"../images/notok.gif\" alt=\"x\"/>

"; echo "This IP address is blocked "; echo " "; echo "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over

"; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE penalty='2' AND ipadd='".$uip."' AND browserm='".$ubr."' LIMIT 1 ")); //echo mysql_error(); $remain = $banto[0] - time(); $rmsg = gettimemsg($remain); echo " IP: $rmsg

";

  echo "";
  echo "";

echo "<form align="left" action="login.php" method="post" ENCTYPE="multipart/form-data">"; echo "Username: <input name="loguid" format="*x" maxlength="30"/> "; echo "Password: <input type="password" name="logpwd" maxlength="30"/> "; echo "<input type="submit" value="Login!"/> "; echo "</form>"; echo "";

  footads();
  echo "</body>";
  echo "</html>";
  exit();
  }

}

if(($action != "") && ($action!="terms")) { $uid = getuid_sid($sid); if((islogged($sid)==false)||($uid==0)) {

echo "<head>"; echo "<title>$sitename not logged in</title>"; echo "<meta http-equiv="Cache-Control" content="must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache"/> <meta name="description" content="$sitename is an interactive wap chat community emphasizing genuine friendships and the discovery of new people around the world :)"> <meta name="keywords" content="free, community, forums, chat, wap, communicate, $sitename, mobile, download, music, video">"; default_themes(); echo "</head>"; echo "<body>"; headads();

  echo "";
  echo "You are not logged in

"; echo "Or Your session has been expired

"; login(); echo ""; echo "";

  footads();
  echo "</body>";
  echo "</html>";
  exit();
}

} //echo isbanned($uid); if(isbanned($uid)) {

echo "<head>"; echo "<title>$sitename Banned</title>"; echo "<meta http-equiv="Cache-Control" content="must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache"/> <meta name="description" content="$sitename is an interactive wap chat community emphasizing genuine friendships and the discovery of new people around the world :)"> <meta name="keywords" content="free, community, forums, chat, wap, communicate, $sitename, mobile, download, music, video">"; default_themes(); echo "</head>"; echo "<body>"; headads();

  echo "";
  echo "<img src=\"../images/notok.gif\" alt=\"x\"/>

"; echo "You are Banned "; $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."'")); $banres = mysql_fetch_array(mysql_query("SELECT pnreas FROM ibwf_penalties WHERE uid='".$uid."'")); $remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo "Time to finish your p

arg0s12 Developer · 144 posts #2

your penalty: $rmsg

"; echo "Ban Reason: $banres[0]"; //echo "<a href="index.php">Login</a>"; echo "";

  footads();
  echo "</body>";
  echo "</html>";
  exit();
}

if($action=="convert") {

echo "<head>"; echo "<title>$sitename Convert Chat Post to Plusses</title>"; echo "<meta http-equiv="Cache-Control" content="must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache"/> <meta name="description" content="$sitename is an interactive wap chat community emphasizing genuine friendships and the discovery of new people around the world :)"> <meta name="keywords" content="free, community, forums, chat, wap, communicate, $sitename, mobile, download, music, video">"; user_themes(); echo "</head>"; echo "<body>"; head();

addonline(getuid_sid($sid),"xhtml - Converting Chatpost to Plusses","convert.php?action=$action"); echo "<title>$sitename Convert Chat Post to Plusses</title>"; echo ""; $tnick = getnick_uid($uid); echo "Convert your Chatpost to Plusses here. "; echo "Exchange rate: "; echo "10 Chatpost = 2Plusses

";

echo "You Currently Have: "; $nopl = mysql_fetch_array(mysql_query("SELECT chmsgs FROM ibwf_users WHERE id='".$uid."'")); echo "$nopl[0] Chat Posts ";

$nopl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'")); echo "$nopl[0] Plusses

";

arg0s12 Developer · 144 posts #3

echo "<form action="convert.php?action=conv&sid=$sid" method="post">"; //echo " Convertion Type: <select name="cur">"; //echo "<option value="1">Plusses-GP</option>"; //echo "<option value="2">BP-GP</option>"; //echo "</select> "; echo "Enter amount of chatpost to convert into plusses: <input name="hmany" size="5" maxlength="4" format="*N"/>"; echo "<input type="submit" value="Convert"/>";
echo "</form>";

//echo "<a href="chat.php?rid=23&sid=$sid">RPG ChatRoom</a> "; echo "<a href="index.php?action=chat&sid=$sid">Chatroom Menu</a>

"; echo "<a href="index.php?action=main&sid=$sid">Main menu</a>"; echo ""; foot(); echo "</body>"; } else if($action=="conv") { $cur = $_POST["cur"]; $hmany = $_POST["hmany"];

addonline(getuid_sid($sid),"xhtml - Converting Chatpost to Plusses","convert.php?action=convert");

echo "<head>"; echo "<title>$sitename Convert Chat Post to Plusses</title>"; echo "<meta http-equiv="Cache-Control" content="must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache"/> <meta name="description" content="$sitename is an interactive wap chat community emphasizing genuine friendships and the discovery of new people around the world :)"> <meta name="keywords" content="free, community, forums, chat, wap, communicate, $sitename, mobile, download, music, video">"; user_themes(); echo "</head>"; echo "<body>"; head();

echo ""; $gpst = mysql_fetch_array(mysql_query("SELECT chmsgs FROM ibwf_users WHERE id='".$uid."'")); //$gpsf = mysql_fetch_array(mysql_query("SELECT battlep FROM ibwf_users WHERE id='".$uid."'"));

if($hmany>='10') { if($gpst[0]>=$hmany) { $convert = $hmany/5; mysql_query("UPDATE ibwf_users SET chmsgs=chmsgs-'$hmany' WHERE id='".$uid."'"); mysql_query("UPDATE ibwf_users SET plusses=plusses+'$convert' WHERE id='".$uid."'");

echo "Converted Succesfully 🙂 ";

echo "You Now Have: "; $nopl = mysql_fetch_array(mysql_query("SELECT chmsgs FROM ibwf_users WHERE id='".$uid."'")); echo "$nopl[0] Chat Posts ";

$nopl = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'")); echo "$nopl[0] Plusses ";

}else{ echo "Insufficient chatpost 😛 "; } }else{ echo "Minumum of 10 chatpost are allowed to convert! "; }

echo "<a href="index.php?action=chat&sid=$sid">Chatroom Menu</a>

"; echo "<a href="index.php?action=main&sid=$sid">Main menu</a>"; echo ""; foot(); echo "</body>"; }

else { echo "<head>"; echo "<title>$sitename Convert Chat Post to Plusses</title>"; echo "<meta http-equiv="Cache-Control" content="must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache"/> <meta name="description" content="$sitename is an interactive wap chat community emphasizing genuine friendships and the discovery of new people around the world :)"> <meta name="keywords" content="free, community, forums, chat, wap, communicate, $sitename, mobile, download, music, video">"; user_themes(); echo "</head>"; echo "<body>"; headads();

addonline(getuid_sid($sid),"xhtml - Lost in $sitename lol","convert.php?action=$action");

echo ""; echo "I don't know how did you get into here, but there's nothing to show

"; echo "<a href="index.php?action=main&sid=$sid">Home</a> "; echo ""; foot(); echo "</body>"; }

?>

</html>
arg0s12 Developer · 144 posts #4

its hard to post using celphone, . Hehehe, ,

kabooms Developer · 80 posts #5

5 chatpost = 1 plusses ($hmany)userchatpost/5 = plusses here my first mod in lava mod before ahehhe convert in xhtml ahehhe

echo "<a href="index.php?action=w3c&sid=$sid">c2p converter</a> ";

add in index.php

else if($action=="w3c")
{

    addonline(getuid_sid($sid),"wml - chatpost convert","");
    echo "<card id=\"main\" title=\"CONVERTING\">";
   
    echo "<p align=\"center\">";

echo "Convert 5 Chatpost to 1 Plusses choose chatpost.<br/>";
echo "choose:<br/><select name=\"hmany\">";
echo "<option value=\"5\">5</option>";
  echo "<option value=\"20\">20</option>";
  echo "<option value=\"80\">80</option>";
  echo "<option value=\"100\">100</option>";
  echo "<option value=\"200\">200</option>";
  echo "<option value=\"300\">300</option>";
  echo "<option value=\"500\">500</option>";
  echo "<option value=\"1000\">1000</option>";
  echo "<option value=\"2000\">2000</option>";
  echo "<option value=\"5000\">5000</option>";
  echo "<option value=\"10000\">10000</option>";
echo "</select>";
echo "<br/><anchor>go";
echo "<go href=\"index.php?action=cptop&sid=$sid\" method=\"post\">";
echo "<postfield name=\"hmany\" value=\"$(hmany)\"/>";
echo "</go></anchor>";
echo "<br/>- - -<br/>";
    echo "<br/><a href=\"index.php?action=main&sid=$sid&browse?\">";
echo "main menu</a><br/>";
echo "<do type=\"chatroom\" label=\"chatroom\"><go href=\"index.php?action=chat&sid=$sid\"/></do>";
echo "<do type=\"whos online\" label=\"whos online\"><go href=\"index.php?action=online&sid=$sid\"/></do>";
  echo "<do type=\"downloads\" label=\"downloads\"><go href=\"index.php?action=vault&sid=$sid\"/></do>";
   echo "<do type=\"article\" label=\"article\"><go href=\"articles.php?action=articles&sid=$sid\"/></do>";
 echo "<do type=\"kawap rpg\" label=\"kawap rpg\"><go href=\"rpg.php?action=main&sid=$sid\"/></do>";
  echo "<do type=\"forums\" label=\"forum Index\"><go href=\"forum.php?action=main&sid=$sid\"/></do>";
echo "<do type=\"my setting\" label=\"my setting\"><go href=\"index.php?action=cpanel&sid=$sid\"/></do>";

    echo "</p>";
    echo "</card>";
}

else if($action=="cptop")
{
$hmany = $_POST["hmany"];
    addonline(getuid_sid($sid),"wml -  chat post convert","");
    echo "<card id=\"main\" title=\"CONVERTING\">";
   
    echo "<p>";
  echo "<do type=\"chatroom\" label=\"chatroom\"><go href=\"index.php?action=chat&sid=$sid\"/></do>";
echo "<do type=\"whos online\" label=\"whos online\"><go href=\"index.php?action=online&sid=$sid\"/></do>";
  echo "<do type=\"forums\" label=\"forum Index\"><go href=\"forum.php?action=main&sid=$sid\"/></do><br/>- - -<br/>";
$noi = mysql_fetch_array(mysql_query("SELECT chmsgs FROM ph_bazzztord_users WHERE id='".$uid."'"));
if($noi[0]>=$hmany)
{
echo "Converted Succesfully :)";
$convert = $hmany/5;
 mysql_query("UPDATE ph_bazzztord_users SET chmsgs=chmsgs-'$hmany' WHERE id='".$uid."'");
mysql_query("UPDATE ph_bazzztord_users SET plusses=plusses+'$convert' WHERE id='".$uid."'");
}else{
          echo "LOL ...Insufficient Chatpost go to chat and flood :)!";
        }
echo "<br/><br/>- - - - -<br/><br/>";
    echo "<a href=\"index.php?action=main&sid=$sid&browse?\">";
echo "main menu</a>";

  echo "<br/>";
echo "<do type=\"chatroom\" label=\"chatroom\"><go href=\"index.php?action=chat&sid=$sid\"/></do>";
echo "<do type=\"whos online\" label=\"whos online\"><go href=\"index.php?action=online&sid=$sid\"/></do>";
  echo "<do type=\"downloads\" label=\"downloads\"><go href=\"index.php?action=vault&sid=$sid\"/></do>";
   echo "<do type=\"article\" label=\"article\"><go href=\"articles.php?action=articles&sid=$sid\"/></do>";
 echo "<do type=\"kawap rpg\" label=\"kawap rpg\"><go href=\"rpg.php?action=main&sid=$sid\"/></do>";
  echo "<do type=\"forums\" label=\"forum Index\"><go href=\"forum.php?action=main&sid=$sid\"/></do>";
echo "<do type=\"my setting\" label=\"my setting\"><go href=\"index.php?action=cpanel&sid=$sid\"/></do>";
    echo "</p>";
    echo "</card>";
}             
arg0s12 Developer · 144 posts #6

Thanks bro! I trust to all your script coz its working, , thanks a lot more!

arg0s12 Developer · 144 posts #7

my site page become blank page..

arg0s12 Developer · 144 posts #8

Yeepee. . Dudes i got it, , thanks, thanks, thanks, all your stuff is working, ,

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close