plusses converter script!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    plusses converter script!

    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 "<center>";
    echo "<img src=\"images/exit.gif\" alt=\"*\"/><br/>";
    echo "Database Transfer...<br/><br/>";
    echo "Please try again later";
    echo "</center>";
    echo "</div>";
    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 "<div align=\"center\">";
    echo "<img src=\"../images/notok.gif\" alt=\"x\"/><br/>";
    echo "This IP address is blocked<br/>";
    echo "<br/>";
    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<br/><br/>";
    $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<br/><br/>";

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

    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 "<center>";
    echo "You are not logged in<br/>";
    echo "Or Your session has been expired<br/><br/>";
    login();
    echo "</center>";
    echo "</div>";

    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 "<div 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."'"));
    $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

    #2
    your penalty: $rmsg<br/><br/>";
    echo "Ban Reason: $banres[0]";
    //echo "<a href=\"index.php\">Login</a>";
    echo "</div>";

    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 "<div align=\"center\">";
    $tnick = getnick_uid($uid);
    echo "Convert your Chatpost to Plusses here.<br/>";
    echo "Exchange rate:<br/>";
    echo "10 Chatpost = 2Plusses<br/><br/>";

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

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

    Comment


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

      //echo "<a href=\"chat.php?rid=23&amp;sid=$sid\">RPG ChatRoom</a><br/>";
      echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Chatro om Menu</a><br/>----<br/>";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\">Main menu</a>";
      echo "</div>";
      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 "<div align=\"center\">";
      $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 <br/>";

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

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

      }else{
      echo "Insufficient chatpost :p<br/>";
      }
      }else{
      echo "Minumum of 10 chatpost are allowed to convert!<br/>";
      }


      echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Chatro om Menu</a><br/>----<br/>";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\">Main menu</a>";
      echo "</div>";
      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 "<div 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&amp;sid=$sid\">Home</a><br/>";
      echo "</div>";
      foot();
      echo "</body>";
      }

      ?>

      </html>

      Comment


        #4
        its hard to post using celphone, . Hehehe, ,

        Comment


          #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&amp;sid=$sid\">c2p converter</a><br/>";


          add in index.php
          Code:
          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&amp;sid=$sid\" method=\"post\">";
          echo "<postfield name=\"hmany\" value=\"$(hmany)\"/>";
          echo "</go></anchor>";
          echo "<br/>- - -<br/>";
              echo "<br/><a href=\"index.php?action=main&amp;sid=$sid&amp;browse?\">";
          echo "main menu</a><br/>";
          echo "<do type=\"chatroom\" label=\"chatroom\"><go href=\"index.php?action=chat&amp;sid=$sid\"/></do>";
          echo "<do type=\"whos online\" label=\"whos online\"><go href=\"index.php?action=online&amp;sid=$sid\"/></do>";
            echo "<do type=\"downloads\" label=\"downloads\"><go href=\"index.php?action=vault&amp;sid=$sid\"/></do>";
             echo "<do type=\"article\" label=\"article\"><go href=\"articles.php?action=articles&amp;sid=$sid\"/></do>";
           echo "<do type=\"kawap rpg\" label=\"kawap rpg\"><go href=\"rpg.php?action=main&amp;sid=$sid\"/></do>";
            echo "<do type=\"forums\" label=\"forum Index\"><go href=\"forum.php?action=main&amp;sid=$sid\"/></do>";
          echo "<do type=\"my setting\" label=\"my setting\"><go href=\"index.php?action=cpanel&amp;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&amp;sid=$sid\"/></do>";
          echo "<do type=\"whos online\" label=\"whos online\"><go href=\"index.php?action=online&amp;sid=$sid\"/></do>";
            echo "<do type=\"forums\" label=\"forum Index\"><go href=\"forum.php?action=main&amp;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&amp;sid=$sid&amp;browse?\">";
          echo "main menu</a>";
          
            echo "<br/>";
          echo "<do type=\"chatroom\" label=\"chatroom\"><go href=\"index.php?action=chat&amp;sid=$sid\"/></do>";
          echo "<do type=\"whos online\" label=\"whos online\"><go href=\"index.php?action=online&amp;sid=$sid\"/></do>";
            echo "<do type=\"downloads\" label=\"downloads\"><go href=\"index.php?action=vault&amp;sid=$sid\"/></do>";
             echo "<do type=\"article\" label=\"article\"><go href=\"articles.php?action=articles&amp;sid=$sid\"/></do>";
           echo "<do type=\"kawap rpg\" label=\"kawap rpg\"><go href=\"rpg.php?action=main&amp;sid=$sid\"/></do>";
            echo "<do type=\"forums\" label=\"forum Index\"><go href=\"forum.php?action=main&amp;sid=$sid\"/></do>";
          echo "<do type=\"my setting\" label=\"my setting\"><go href=\"index.php?action=cpanel&amp;sid=$sid\"/></do>";
              echo "</p>";
              echo "</card>";
          }

          Comment


            #6
            Thanks bro! I trust to all your script coz its working, , thanks a lot more!
            Last edited by arg0s12; 05.12.09, 04:19.

            Comment


              #7
              my site page become blank page..

              Comment


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

                Comment

                Working...
                X