Lavalair Just

Started on the old forum in May 2007 · view the original in the archive · old links redirect here

19 replies · 1,157 views · started 19 years ago · 1 min read

2 participants
matthew26 Developer · 165 posts #1

scripts for lordx and does anyone have any games for lavalair heads n tails, calc

** visit my new forum wapsite on your mobile phone today.  wapfire.freehostia.com **

Attachments: lavalair_chat.zip
matthew26 Developer · 165 posts #2

here it is

** visit my new forum wapsite on your mobile phone today.  wapfire.freehostia.com **

matthew26 Developer · 165 posts #4

what do you want then?

** visit my new forum wapsite on your mobile phone today.  wapfire.freehostia.com **

matthew26 Developer · 165 posts #6

yeah im trying to find fun & games for lavalair like hangman

** visit my new forum wapsite on your mobile phone today.  wapfire.freehostia.com **

matthew26 Developer · 165 posts #9

ive found some games but i need to know what file is the fun & games page in so i can add games to fun & games

** visit my new forum wapsite on your mobile phone today.  wapfire.freehostia.com **

matthew26 Developer · 165 posts #11

i just put in cpanel cos couldnt find Game pAGE

** visit my new forum wapsite on your mobile phone today.  wapfire.freehostia.com **

matthew26 Developer · 165 posts #12
<?php
/*
IrisBlaze wap forum
by Ra'ed Shabana
*/
//» »
//« «
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");
$bcon = connectdb();
if (!$bcon)
{
    echo "<card id=\"main\" title=\"(ERROR!)\">";
    echo "<p align=\"center\">";
    echo "<img src=\"images/exit.gif\" alt=\"*\"/>
";
    echo "ERROR!

";
    echo "

";
    echo "
";
    echo "[b]THANK YOU VERY MUCH[/b]";
    echo "</p>";
    echo "</card>";
    echo "</wml>";
    exit();
}
$action = $_GET["action"];
$sid = $_GET["sid"];
$uid = getuid_sid($sid);
if((islogged($sid)==false)||($uid==0))
{
        echo "<card id=\"main\" title=\"\">";
      echo "<p align=\"center\">";
      echo "Nu esti Logat
";
      echo "Sau sesiunea a expirat

";
      echo "<a href=\"index.php\">Logare</a>";
      echo "</p>";
      echo "</card>";
      echo "</wml>";
      exit();
}
if(isbanned($uid))
    {
        echo "<card id=\"main\" title=\"\">";
      echo "<p align=\"center\">";
      echo "<img src=\"images/notok.gif\" alt=\"x\"/>
";
      echo "Esti [b]Banat[/b]
";
      $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1'"));
      $remain = $banto[0]- time();
      $rmsg = gettimemsg($remain);
      echo "Timp pana la debanare: $rmsg

";
      //echo "<a href=\"index.php\">Login</a>";
      echo "</p>";
      echo "</card>";
      echo "</wml>";
      exit();
    }
if($action=="guessgm")
{
    addonline(getuid_sid($sid),"Joaca Ghiceste Numarul","");
    echo "<card id=\"main\" title=\"Ghiceste Numarul\">";
  echo "<p align=\"center\">";
  $gid = $_POST["gid"];
  $un = $_POST["un"];

  if($gid=="")
  {
        mysql_query("DELETE FROM ibwf_games WHERE uid='".$uid."'");
        mt_srand((double)microtime()*1000000);
        $rn = mt_rand(1,100);
        mysql_query("INSERT INTO ibwf_games SET uid='".$uid."', gvar1='8', gvar2='".$rn."'");
        $tries = 8;
        $gameid = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_games WHERE uid='".$uid."'"));
        $gid=$gameid[0];
  }else{
    $ginfo = mysql_fetch_array(mysql_query("SELECT gvar1,gvar2 FROM ibwf_games WHERE id='".$gid."' AND uid='".$uid."'"));
    $tries = $ginfo[0]-1;
    mysql_query("UPDATE ibwf_games SET gvar1='".$tries."' WHERE id='".$gid."'");
    $rn = $ginfo[1];
  }
  if ($tries>0)
                {
                $gmsg = "[size="1"]Incearca sa ghicesti numarul inainte sa ramai fara incercari, numarul este intre 1-100[/size]

";
                echo $gmsg;
                $tries = $tries-1;
                $gpl = $tries*3;
                echo "Incercari:$tries, Plusuri:$gpl

";
                      if ($un==$rn){
                        $gpl = $gpl+3;
                        $ugpl = mysql_fetch_array(mysql_query("SELECT gplus FROM ibwf_users WHERE id='".$uid."'"));
                        $ugpl = $gpl + $ugpl[0];
                        mysql_query("UPDATE ibwf_users SET gplus='".$ugpl."' WHERE id='".$uid."'");
                        echo "[size="1"]Felicitari! numarul era $rn, $gpl Plusuri au fost adaugate la Game Plusses, <a href=\"games.php?action=guessgm&sid=$sid\">Joc Nou</a>[/size]

";
                      }else{
                        if($un <$rn)
                        {
                          echo "Incearca un numar mai mara decat $un !

";
                        }else{
                            echo "Incearca un numar mai mic decat $un !

";
                        }
echo "Numarul Tau: <input type=\"text\" name=\"un\" format=\"*N\" size=\"3\" value=\"$un\"/><anchor>";
        echo " INCEARCA";
        echo "<go href=\"games.php?action=guessgm&sid=$sid\" method=\"post\">";
        echo "<postfield name=\"un\" value=\"$(un)\"/>";
        echo "<postfield name=\"gid\" value=\"$gid\"/>";
        echo "</go>";
        echo "</anchor>
";
                      }

                }else{
                    $gmsg = "[size="1"]JOC TERMINAT, <a href=\"games.php?action=guessgm&sid=$sid\">Joc Nou</a>[/size]

";
                    echo $gmsg;
                }
  echo "

<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Prim</a>";
  echo "</p></card>";
}else if($action == "hangman")
{
    addonline(getuid_sid($sid),"Joaca Spanzuratoarea","");
    echo "<card id=\"main\" title=\"Spanzuratoarea\">";
  echo "<p align=\"center\">";
  $gid = $_GET["gid"];
  $gchr = $_GET["gchr"];
    $alpha = "abcdefghijklmnopqrstuvwxyz";
  if($gid=="")
  {
        mysql_query("DELETE FROM ibwf_games WHERE uid='".$uid."'");
        $hmid = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_hangman ORDER BY RAND() LIMIT 1"));
        mysql_query("INSERT INTO ibwf_games SET uid='".$uid."', gvar1='abcdefghijklmnopqrstuvwxyz', gvar2='', gvar3='', gvar4='".$hmid[0]."'");
        $gameid = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_games WHERE uid='".$uid."'"));
        $gid=$gameid[0];
    }else{
        $ginfo = mysql_fetch_array(mysql_query("SELECT gvar1,gvar2, gvar3, gvar4 FROM ibwf_games WHERE id='".$gid."' AND uid='".$uid."'"));
  }
  if(strlen($ginfo[1])<6)
  {
    $txg = mysql_fetch_array(mysql_query("SELECT text, dscr FROM ibwf_hangman WHERE id='".$ginfo[3]."'"));
    $tofn = getchars($txg[0]);
    
    
  }
  echo "

<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Prim</a>";
  echo "</p></card>";

  
}else{
   addonline(getuid_sid($sid),"Teai pierdut in jocuri lol","");
    echo "<card id=\"main\" title=\"Jocuri\">";
  echo "<p align=\"center\">";
  echo "

";
  echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Prim</a>";
  echo "</p></card>";
}
function getchars($text)
{
    $text = strtolower($text);
    $abc = "abcdefghijklmnopqrstuvwxyz";
    $rts = "";
    for ($i=0; $i<strlen($text); $i++)
    {
        $onc = substr($text,$i, 1);
        $pos = strpos($abc,$onc);
        if($pos===false)
        {
            //meh
        }else{
            $pos = strpos($rts, $onc);
            if($pos===false)
            {
                $rts .= $onc;
            }
        }
    }
    return $rts;
}
?>
</wml>

** visit my new forum wapsite on your mobile phone today.  wapfire.freehostia.com **

matthew26 Developer · 165 posts #13

THATS GAMES.PHP WHERE DO I PUT THIS GAME LINK ? echo ": <a href="lists.php?action=mixabud&sid=$sid">$mix a buddy</a>";

** visit my new forum wapsite on your mobile phone today.  wapfire.freehostia.com **

matthew26 Developer · 165 posts #15

cheers

** visit my new forum wapsite on your mobile phone today.  wapfire.freehostia.com **

matthew26 Developer · 165 posts #17

i cant find it in index plz find it for me

** visit my new forum wapsite on your mobile phone today.  wapfire.freehostia.com **

Attachments: index.php
matthew26 Developer · 165 posts #18

im useless lol

** visit my new forum wapsite on your mobile phone today.  wapfire.freehostia.com **

matthew26 Developer · 165 posts #20

cool

** visit my new forum wapsite on your mobile phone today.  wapfire.freehostia.com **

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