[wap] Methoswap V3

Started on the old forum in October 2008 · view the original in the archive · old links redirect here

33 replies · 9,500 views · started 18 years ago · 1 min read

TL;DR · summary of 33 replies
  • sweetangel needs an original Methos CP but cannot find it.
  • darkdesire suggests using a clone of Methos V3 and modifying bits from Wapdesire.
  • Guest points out missing adminCP, ownerCP, and other features.
  • sweetangel asks if the directory structure for modifying is similar to the new Methos script.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

15 participants
darkdesire Senior · 250 posts #3

would be better if it was complete though, no admincp ownercp and various other bits,

:p:p:p

darkdesire Senior · 250 posts #6

sweetangel just recode a wapdesire admin owner cp etc or search on here, the files are about if you can be bothered to look

:p:p:p

darkdesire Senior · 250 posts #8

so code it sweetangel. theres a clone of methos v3 on here to give you a good guideline and use bits from wapdesire and you'll be there, two hour job for even a noob if they have a basic grasp of php

:p:p:p

Guest #9

sooooo easy for me hehe

darkdesire Senior · 250 posts #11

make your own shop i did as i didnt like the one that came with the wapdesire i use, btw if anyone wants to look and comment its here -

<?php
include("config.php");
include("core.php");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
//header('Content-type: application/vnd.wap.xhtml+xml'); 
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
$bcon = connectdb();
$sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'"));
$sitename = $sitename[0];

if (!$bcon)
{
    echo "<head>";
    echo "<title>Error!!!</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white_medium.css\">";
    echo "</head>";
    echo "<body>";
    echo "<p align=\"center\">";
    echo "<img src=\"../images/notok.gif\" alt=\"!\"/>
";
    echo "[b][b]Error! Cannot Connect To Database...[/b][/b]

";
    echo "This error happens usually when backing up the database, please be patient...";
    echo "</p>";
    echo "</body>";
    echo "</html>";
    exit();
}
$brws = explode("/",$HTTP_USER_AGENT);
$ubr = $brws[0];
$uip = getip();
$action = $_GET["action"];
$sid = $_GET["sid"];
$page = $_GET["page"];
$who = $_GET["who"];
$uid = getuid_sid($sid);
$theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'"));

$sqlthing = mysql_query("SELECT * FROM ibwf_users WHERE id='$uid'");
   $name=(mysql_result($sqlthing,0,"name"));
cleardata();

if(($action != "") && ($action!="terms"))
{
    $uid = getuid_sid($sid);
    if((islogged($sid)==false)||($uid==0))
    {
      echo "<head>";
      echo "<title>Error!!!</title>";
      echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white_medium.css\">";
      echo "</head>";
      echo "<body>";
      echo "<p align=\"center\">";
      echo "You are not logged in
";
      echo "Or Your session has been expired

";
      echo "<a href=\"index.php\">Login</a>";
      echo "</p>";
      echo "</body>";
      echo "</html>";
      exit();
    } 
}
//echo isbanned($uid);
if(isbanned($uid))
    {
      echo "<head>";
      echo "<title>Error!!!</title>";
      echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      echo "</head>";
      echo "<body>";
      echo "<p align=\"center\">";
      echo "<img src=\"../images/notok.gif\" alt=\"x\"/>
";
      echo "[b]You are Banned[/b]

";
      $banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'"));
    $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'"));
      $remain = $banto[0]- time();
      $rmsg = gettimemsg($remain);
      echo "[b]Time Left: [/b]$rmsg
";
      $nick = getnick_uid($banto[2]);
    echo "[b]By: [/b]$nick
";
    echo "[b]Reason: [/b]$banto[1]";
      //echo "<a href=\"index.php\">Login</a>";
      echo "</p>";
      echo "</body>";
      echo "</html>";
      exit();
    }

$res = mysql_query("UPDATE ibwf_users SET browserm='".$brws4."', ipadd='".$uip."' WHERE id='".getuid_sid($sid)."'");

////////////////////////////////////////MAIN PAGE

if($action=="shop")
{
  addvisitor();
  $mmsg = htmlspecialchars(getsetmood(getuid_sid($sid)));
  addonline(getuid_sid($sid),"Shop ($mmsg)","");
  //saveuinfo($sid);

  echo "<head>";
  echo "<title>Shop</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
  echo "<p align=\"center\">";
  $plusses = mysql_fetch_array(mysql_query("SELECT plusses, name FROM ibwf_users WHERE id='".$uid."'"));
  $message2 = Avater;
  Echo "$sitename Plusses Shop,
";
  echo "You Currently Have $plusses[0] Plusses";
  echo "</p>";
  echo "<p align=\"center\">";
  echo "The Items You Can Buy Are Listed Below:</p>";
  echo "<p align=\"center\">";

    echo "<p align=\"center\">";
    echo "Your Own Profile Avater
";
    echo "Cost: 150 Plusses
";
    echo "</p>"; 
    echo "<p align=\"center\">";
    echo "<form action=\"shop.php?action=peravar&sid=$sid&who=$plusses[1]&whoid=$uid&message=$message\" method=\"post\">";
    echo "[b]<center>Please describe the pic you would like and the name you'd like on it</center>[/b]";
    echo "<center><input name=\"message\" value=\"\" maxlength=\"200\"/></center>";
    echo "<center><input type=\"Submit\" Name=\"Submit\" Value=\"Buy Now\"></center></form>";
    echo "</p>";    

    

    echo "<p align=\"center\">";
    echo "Your Own Personal Smilie
";
    echo "Cost: 250 Plusses
";
    echo "</p>"; 
    echo "<p align=\"center\">";
    echo "<form action=\"shop.php?action=persmile&sid=$sid&who=$plusses[1]&whoid=$uid&message=$message\" method=\"post\">";

    echo "[b]<center>Please Describe the icon you'd like</center>[/b]";
    echo "<center><input name=\"message\" value=\"\" maxlength=\"200\"/></center>";
    echo "<center><input type=\"Submit\" Name=\"Submit\" Value=\"Buy Now\"></center></form>";
    echo "</p>";    

    

    echo "<p align=\"center\">";
    echo "Your Own Public Chatroom
";
    echo "Cost: 300 Plusses
";
    echo "</p>"; 
    echo "<p align=\"center\">";
    echo "<form action=\"shop.php?action=pubchat&sid=$sid&who=$plusses[1]&whoid=$uid&message=$message\" method=\"post\">";
    echo "[b]<center>What chatroom name would you like</center>[/b]";
    echo "<center><input name=\"message\" value=\"\" maxlength=\"200\"/></center>";
    echo "<center><input type=\"Submit\" Name=\"Submit\" Value=\"Buy Now\"></center></form>";
    echo "</p>";    

    

    echo "<p align=\"center\">";
    echo "Your Own Public Forum
";
    echo "Cost: 400 Plusses
";
    echo "</p>"; 
    echo "<p align=\"center\">";
    echo "<form action=\"shop.php?action=pubforum&sid=$sid&who=$plusses[1]&whoid=$uid&message=$message\" method=\"post\">";
    echo "[b]<center>What forum name would you like</center>[/b]";
    echo "<center><input name=\"message\" value=\"\" maxlength=\"200\"/></center>";
    echo "<center><input type=\"Submit\" Name=\"Submit\" Value=\"Buy Now\"></center></form>";
    echo "</p>";    

/*    

*/

  echo "<p align=\"center\">";
  echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
  echo "</body>";
}

if($action=="peravar")
{
  echo "<head>";
  echo "<title>Shop</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
    echo "<p align=\"center\">";
    $ownid[0]=24;
    $who=$_GET["whoid"];
    $name=$_GET["name"];
    $whoid=$_GET["who"];
  $message = $_POST["message"];
  $message2 = $_POST["message2"];
  $message3 = "LODGE-AVATAR-$message";
    $plusses = mysql_fetch_array(mysql_query("SELECT plusses, name FROM ibwf_users WHERE id='".$who."'"));

if ($plusses[0] < 150){
  echo "No cheating, you cant afford an avater";
}
else
{
    $remainplus = $plusses[0] - 150;
    $plussupdate = mysql_query("UPDATE ibwf_users SET plusses='".$remainplus."' WHERE id='".$who."'");

    mysql_query("INSERT INTO ibwf_private SET text='".$message3."', byuid='".$uid."', touid='".$ownid[0]."', unread='1', timesent='".time()."'");
    echo "Thank You For Choosing To Purchase Your Personal Avater. Your Plusses Have Been Debited and your request sent to the staff for processing.
";

    echo "You Now have $remainplus Plusses Remaining
</p>";
    echo "<p align=\"center\">";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
    echo "</body>";
}}

else if($action=="persmile")
{
  echo "<head>";
  echo "<title>Shop</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
    echo "<p align=\"center\">";
    $ownid[0]=24;
    $who=$_GET["whoid"];
    $whoid=$_GET["who"];
  $message = $_POST["message"];
  $message3 = "LODGE-SMILIE-$message";
    $plusses = mysql_fetch_array(mysql_query("SELECT plusses, name FROM ibwf_users WHERE id='".$who."'"));

if ($plusses[0] < 250){
  echo "No cheating, you cant afford a smilie";
}
else
{

    $remainplus = $plusses[0] - 250;
    $plussupdate = mysql_query("UPDATE ibwf_users SET plusses='".$remainplus."' WHERE id='".$who."'");

    mysql_query("INSERT INTO ibwf_private SET text='".$message3."', byuid='".$uid."', touid='".$ownid[0]."', unread='1', timesent='".time()."'");
    echo "Thank You For Choosing To Purchase Your Personal Smilie. Your Plusses Have Been Debited and your request sent to the staff for processing.
";

    echo "You Now have $remainplus Plusses Remaining
</p>";
    echo "<p align=\"center\">";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
    echo "</body>";
}}

else if($action=="pubchat")

{
  echo "<head>";
  echo "<title>Shop</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
    echo "<p align=\"center\">";
    $ownid[0]=24;
    $who=$_GET["whoid"];
    $whoid=$_GET["who"];
  $message = $_POST["message"];
  $message3 = "LODGE-CHATROOM-$message";
    $plusses = mysql_fetch_array(mysql_query("SELECT plusses, name FROM ibwf_users WHERE id='".$who."'"));

if ($plusses[0] < 300){
  echo "No cheating, you cant afford a chatroom";
}
else
{

    $remainplus = $plusses[0] - 300;
    $plussupdate = mysql_query("UPDATE ibwf_users SET plusses='".$remainplus."' WHERE id='".$who."'");

    mysql_query("INSERT INTO ibwf_private SET text='".$message3."', byuid='".$uid."', touid='".$ownid[0]."', unread='1', timesent='".time()."'");
    echo "Thank You For Choosing To Purchase Your Personal Chatroom. Your Plusses Have Been Debited and your request sent to the staff for processing.
";

    echo "You Now have $remainplus Plusses Remaining
</p>";
    echo "<p align=\"center\">";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
    echo "</body>";
}}

else if($action=="pubforum")

{
  echo "<head>";
  echo "<title>Shop</title>";
  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
  echo "</head>";
  echo "<body>";
    echo "<p align=\"center\">";
    $ownid[0]=24;
    $who=$_GET["whoid"];
    $whoid=$_GET["who"];
  $message = $_POST["message"];
  $message3 = "LODGE-FORUM-$message";
    $plusses = mysql_fetch_array(mysql_query("SELECT plusses, name FROM ibwf_users WHERE id='".$who."'"));

if ($plusses[0] < 400){
  echo "No cheating, you cant afford a forum";
}
else
{

    $remainplus = $plusses[0] - 400;
    $plussupdate = mysql_query("UPDATE ibwf_users SET plusses='".$remainplus."' WHERE id='".$who."'");

    mysql_query("INSERT INTO ibwf_private SET text='".$message3."', byuid='".$uid."', touid='".$ownid[0]."', unread='1', timesent='".time()."'");
    echo "Thank You For Choosing To Purchase Your Personal Forum. Your Plusses Have Been Debited and your request sent to the staff for processing.
";

    echo "You Now have $remainplus Plusses Remaining
</p>";
    echo "<p align=\"center\">";
  echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
    echo "</body>";
}}
?>

</html>

Note - i dont claim to be a coder, i use a lot of copynpaste to get the results i want, theres nothing hard about it, read your script and understand what it does

Please feel free to clean up my shop if you are a genuine coder lol im aware it doesnt pass validation, but it works lol

:p:p:p

Guest #13

No admincp, ownercp ect. 🙁

WhiteWarrior Principal · 1,419 posts #14

QUOTE (mobilmega @ Oct 17 2008, 01:34 PM) <{POST_SNAPBACK}>

No admincp, ownercp ect. :(

use the wapdesire ownercp etc.. they will work

armawap Junior · 15 posts #16

this version not is complete html... 🙄

kaibaspoon Developer · 63 posts #17

Soon be released.. My Methos V4 clone... With all the extras as seen on methos

Attachments: methos_CLONE_V4.jpg
kaibaspoon Developer · 63 posts #19

Methos V4 clone Its almost finnished heres a preview for you

Attachments: methos.jpg methos_CLONE_V4.jpg hhhhhhhhh.jpg

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