<?php
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\">";
?>
//////////////////
///Hype Type/////
//htportal.net//
///////////////
<wml>
<?php
include("config.php");
include("core.php");
connectdb();
$action = $_GET['action'];
$sid = $_GET['sid'];
$page = $_GET['page'];
$who = $_GET['who'];
$pmid = $_GET['pmid'];
if(islogged($sid)==false)
{
echo "<card id=\"main\" title=\"$sitename\">";
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 "</card>";
echo "</wml>";
exit();
}
$uid = getuid_sid($sid);
if(isbanned($uid))
{
echo "<card id=\"main\" title=\"$sitename\">";
echo "<p align=\"center\">";
echo "<img src=\"images/notok.gif\" alt=\"x\"/>
";
echo "You are [b]Banned[/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 "Time to finish your penalty: $rmsg
";
//echo "<a href=\"index.php\">Login</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
else if($action=="main")
{
addonline(getuid_sid($sid),"Playing Hang Man :)","");
echo "<card id=\"main\" title=\"Hang Man\">";
echo "<p align=\"center\">";
// words
$list = "
ht portal
hypetype
energy
game over
earth
google
anmial
food
i love you
flowers
monster
globe
heaven
computer
love
hate
rainbow
sunshine
master
ugly
wallpaper
";
// letters to choose from
$alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
$additional_letters = " -.,;!?%&0123456789";
$len_alpha = strlen($alpha);
if(isset($_GET["n"])) $n=$_GET["n"];
if(isset($_GET["letters"])) $letters=$_GET["letters"];
if(!isset($letters)) $letters="";
if(isset($PHP_SELF)) $self=$PHP_SELF;
else $self=$_SERVER["PHP_SELF"];
$links="";
// Numar maxim de greseli
$max=6;
# error_reporting(0);
$list = strtoupper($list);
$words = explode("\n",$list);
srand ((double)microtime()*1000000);
$all_letters=$letters.$additional_letters;
$wrong = 0;
if (!isset($n)) { $n = rand(1,count($words)) - 1; }
$word_line="";
$word = trim($words[$n]);
$done = 1;
for ($x=0; $x < strlen($word); $x++)
{
if (strstr($all_letters, $word[$x]))
{
if ($word[$x]==" ") $word_line.="
"; else $word_line.=$word[$x];
}
else { $word_line.="_ "; $done = 0; }
}
if (!$done)
{
for ($c=0; $c<$len_alpha; $c++)
{
if (strstr($letters, $alpha[$c]))
{
if (strstr($words[$n], $alpha[$c])) {$links .= "[b]$alpha[$c][/b] "; }
else { $links .= "$alpha[$c]"; $wrong++; }
}
else
{ $links .= "<a href=\"hang.php?action=main&sid=$sid&letters=$alpha[$c]$letters&n=$n\">$alpha[$c]</a>"; }
}
if (strstr($word, " ")) $term="word"; else $term="word";
echo "[size="1"]Guess The $term:[/size]
";
echo $word_line;
$nwrong=$wrong; if ($nwrong>6) $nwrong=6;
echo "
[size="1"]<img src=\"/sp_$nwrong.gif\" alt=\"*\"/>[/size]
";
if ($wrong >= $max)
{
$n++;
if ($n>(count($words)-1)) $n=0;
////////////////////////if lose u then u have lost some plusses :(
$usts = mysql_fetch_array(mysql_query("SELECT gplus, plusses FROM ibwf_users WHERE id='".$uid."'"));
$gups = $usts[0]-10;
$upl = $usts[1]-10;
mysql_query("UPDATE ibwf_users SET gplus='".$gups."', plusses='".$upl."' WHERE id='".$uid."'");
// echo "
[size="1"]$word_line[/size]
";
echo "
[size="1"]LOSER![/size]
";
if (strstr($word, " ")) $term="the"; else $term="the";
echo "[size="1"]$term word is: [b]$word[/b]
You lost [b]10 game plusses[/b] and [b]10 plusses[/b][/size]
";
echo "[size="1"]<a href=\"hang.php?action=main&sid=$sid\">Play Again?</a>[/size]";
}
else
{
echo "[size="1"]Choose a letter:[/size]
";
echo $links;
echo "
[size="1"]Chances Left: $wrong wrong of $max[/size]";
// echo "
[size="1"]Greseli ramase:".($max-$wrong)."[/size]
";
}
}
else
{
$n++;
if ($n>(count($words)-1)) $n=0;
////////////////////////if win u get free plusses and game plusses :)
$usts = mysql_fetch_array(mysql_query("SELECT gplus, plusses FROM ibwf_users WHERE id='".$uid."'"));
$gups = $usts[0]+10;
$upl = $usts[1]+1;
mysql_query("UPDATE ibwf_users SET gplus='".$gups."', plusses='".$upl."' WHERE id='".$uid."'");
echo "The word is:";
echo $word_line;
$nick = getnick_sid($sid);
echo "
[size="1"]CONGRATULATIONS!!!
$nick you WIN!!!
You get [b]10 game plusses[/b] and [b]1 extra plusses[/b][/size]
";
echo "[size="1"]<a href=\"hang.php?action=main&sid=$sid\">Play Again?</a>[/size]";
}
//echo "
[size="1"]<a href=\"hangman.php?nick=$nick&pass=$pass\">Choose another category</a>[/size]";
//echo "
[size="1"]<a href=\"index.php?nick=$nick&pass=$pass\">Sistem index</a>[/size]";
//echo "
";
//echo "[size="1"]© <a href=\"index.php?nick=$nick&pass=$pass\">HT Portal</a>[/size]
";
echo "
---
<a href=\"index.php?action=main&sid=$sid\">Home</a>";
}
echo "</p>";
echo "</card>";
?>
</wml>
Lavalair Hangman (with Plusses)
Started on the old forum in July 2007 · view the original in the archive · old links redirect here
TL;DR · summary of 17 replies
- - Guest asked how to prevent points increase by refreshing success page, but no solution was provided.
- - Futurewap requested a link or script for their Hangman game, but received only a message about it not working and a suggestion to look at the code.
- - Kiss shared part of the code for a Hangman game, including links to edit the game's settings and structure.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
it wont work how do i lnk to it
LoL ... link ?! External image (may be gone)
echo "<a href=\"hang.php?action=main&sid=$sid\">HangMan</a>";
Do u realy didnt now that ?? :DDD
that was like 2 min job 4 me lol heres all my lavalair script games i hav done
CODE<?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 include("config.php"); include("core.php"); $bcon = connectdb();if (!$bcon) { echo "<head>"; echo "<title>Error!!!</title>"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> "; echo "Error! Cannot Connect To Database...
"; echo "This error happens usually when backing up the database, please be patient..."; echo " "; echo "</body>"; echo "</html>"; exit(); }
$action = $_GET["action"]; $sid = $_GET["sid"]; $sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'")); $sitename = $sitename[0]; $uid = getuid_sid($sid); $theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'"));
if((islogged($sid)==false)||($uid==0)) { echo "<head>"; echo "<title>Error!!!</title>"; echo "</head>"; echo "<body>"; echo " "; echo "You are not logged in "; echo "Or Your session has been expired
"; echo "<a href="index.php">Login</a>"; echo " "; echo "</body>"; echo "</html>"; exit(); } if(isbanned($uid)) { echo "<head>"; echo "<title>Error!!!</title>"; echo "</head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="x"/> "; echo "You are Banned
"; $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 "Time Left:$rmsg "; $nick = getnick_uid($banto[2]); echo "By:$nick "; echo "Reason:$banto[1]"; //echo "<a href="index.php">Login</a>"; echo " "; echo "</body>"; echo "</html>"; exit(); } if($action=="guessgm") { addonline(getuid_sid($sid),"Playing Gtn",""); echo "<head>"; echo "<title>Guess The Number</title>"; echo "</head>"; echo "<body>"; echo " "; $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 = "Just try to guess the number before you have no more tries, the number is between 1-100
"; echo $gmsg; $tries = $tries-1; $gpl = $tries*3; echo "Tries:$tries, Plusses:$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 "Congrats! the number was $rn, $gpl Plusses has been added to your Game Plusses, 1<a accesskey="1" href="games.php?action=guessgm&sid=$sid">New Game</a>
"; }else{ if($un <$rn) { echo "Try bigger number than $un !
"; }else{ echo "Try smaller number than $un !
"; } echo "<form action="games.php?action=guessgm&sid=$sid" method="post">"; echo "Your Guess: <input type="text" name="un" style="-wap-input-format: '*N'" size="3" value="$un"/>"; echo "<input type="hidden" name="gid" value="$gid"/>"; echo "<input type="Submit" name="try" value="TRY"></form> "; }
}else{
$gmsg = "GAME OVER, **1**<a accesskey=\"1\" href=\"games.php?action=guessgm&sid=$sid\">New Game</a>
"; echo $gmsg; } echo "
0<a accesskey="0" href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>"; echo "
</body>"; } /////////////////////////////////else if($action == "scramble") { addonline(getuid_sid($sid),"playing word scramble",""); echo "<head>"; echo "<title>Word Scramble</title>"; echo "</head>"; echo "<body>"; echo " "; $answer = $_POST["answer"]; if (empty($_POST["answer"])) {
srand((float) microtime() * 10000000);
$input = array(
"dictionary",
"recognize",
"example",
"entertainment",
"experiment",
"appreciation",
"information",
"pronunciation",
"language",
"government",
"psychic",
"blueberry",
"selection",
"automatic",
"strawberry",
"bakery",
"shopping",
"eggplant",
"chicken",
"organic ",
"angel",
"season",
"market",
"information",
"complete",
"sunset",
"unique",
"customer"
);
$rand_keys = array_rand($input, 2);
$word = $input[$rand_keys[0]];
$Sword = str_shuffle($word);
echo "
$Sword
In the text box below type the correct word that is scrambled above.
<form method=\"POST\" action=\"games.php?action=scramble&sid=$sid\">
<input type=\"text\" name=\"answer\" size=\"20\">
<input type="hidden" name="correct" value="$word"> <input type="submit" value="GO!" name="B1"> </form>
0<a accesskey="0" href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>
</body>"; } else { $answer = strtolower($answer); if($answer == $correct){ $result = "Correct! **$answer**"; $uid = getuid_sid($sid); $ugpl = mysql_fetch_array(mysql_query("SELECT gplus FROM ibwf_users WHERE id='".$uid."'")); $ugpl = "25" + $ugpl[0]; mysql_query("UPDATE ibwf_users SET gplus='".$ugpl."' WHERE id='".$uid."'");echo " $result You Have Had 25 game Plusses Added For Winning.
<a href="games.php?action=scramble&sid=$sid">Try Another Word?</a>
0<a accesskey="0" href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>
</body>";}else { $result = "Sorry! The Correct Answer Was $correct."; $uid = getuid_sid($sid); $ugpl = mysql_fetch_array(mysql_query("SELECT gplus FROM ibwf_users WHERE id='".$uid."'")); $ugpl = $ugpl[0] - "25"; mysql_query("UPDATE ibwf_users SET gplus='".$ugpl."' WHERE id='".$uid."'");
echo " $result You Have Had 25 game Plusses Deducted For Losing.
<a href="games.php?action=scramble&sid=$sid">Try Another Word?</a>
0<a accesskey="0" href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>
</body>"; } } } ////////////////////////////////////////else if($action == "hangman") { addonline(getuid_sid($sid),"Playing Hangman",""); echo "<head>"; echo "<title>Hangman</title>"; echo "</head>"; echo "<body>"; if ($cat==""){ echo "
<img src="../images/hang_6.gif" alt="Hangman"/>
Select a category: "; echo "<a href="$PHP_SELF?action=hangman&cat=anmls&sid=$sid">Animals</a> "; echo "<a href="$PHP_SELF?action=hangman&cat=clrs&sid=$sid">Colours</a> "; echo "<a href="$PHP_SELF?action=hangman&cat=comp&sid=$sid">Computers</a> "; echo "<a href="$PHP_SELF?action=hangman&cat=frt&sid=$sid">Fruit</a> "; echo "<a href="$PHP_SELF?action=hangman&cat=big&sid=$sid">Big Words</a> "; echo "<a href="$PHP_SELF?action=hangman&cat=lotr&sid=$sid">Lord Of The Rings</a> "; echo "<a href="$PHP_SELF?action=hangman&cat=mths&sid=$sid">Months</a> "; echo "<a href="$PHP_SELF?action=hangman&cat=web&sid=$sid">Web / Wap coding</a> ";
echo " <a href="index.php?action=main&sid=$sid">Back</a> ";
echo "
</body></html>"; exit(); } if ($cat==anmls){ $category="ANIMALS"; $list = "ANIMALS BABOON BEAR BULL CAMEL CAT COW CROW DOG DONKEY DUCKBILL PLATYPUS EAGLE ELEPHANT FISH FOX GIRAFFE GOAT GOLDFISH HAWK HEDGEHOG HORSE KANGAROO KITTEN MOLE MONKEY MOUSE MULE OWL PARROT PIG PINK ELEPHANT POLAR BEAR PORCUPINE POSSUM PUPPY RABBIT RACCOON RAT ROBIN SEAL SHARK SKUNK SQUIRREL STOAT WALRUS WEASEL WHALE ZEBRA";}if ($cat==clrs){ $category="COLOURS"; $list = "BLACK BLUE BROWN BUBBLEGUM PINK COLORS CYAN FUCHSIA GOLD GREEN GREY INDIGO LAVENDER LIME GREEN MAROON OLIVE ORANGE PERIWINKLE PINK PURPLE RED ROYAL BLUE SCARLET TEAL TURQUOISE VIOLET WHITE YELLOW"; }
if ($cat==comp){ $category="COMPUTERS"; $list = "ACCESS ANTI-VIRUS SOFTWARE BASIC CD-ROM DRIVE CHAT COMPUTER CPU DATABASE DOS EMAIL EXCEL FIREWALL FLOPPY DRIVE FORUMS FRONTPAGE GAMES HACKER HARD DRIVE HTML ICQ INTERNET JUNK MAIL KEYBOARD LINUX LOTUS MICROSOFT MONITOR MOTHER BOARD MOUSEPAD OPERATING SYSTEM PARALLEL PORT PHP PRINTER PUBLISHING RAM SERIAL PORT SOLITARE SPEAKERS TECHNOLOGY UNIX URL VIRUS VISUAL BASIC WINDOWS WORD WORD PROCESSING WORLD WIDE WEB ZIP"; }
if ($cat==frt){ $category="FRUIT"; $list = "APPLE BANANA BLACKBERRY BLUEBERRY FRUIT GRAPE GRAPEFRUIT KIWI MANGO ORANGE PEACH PEAR RASBERRY STRAWBERRY TANGERINE TOMATO UGLY FRUIT"; }
if ($cat==big){ $category="BIG WORDS"; $list = "AUSTRALOPITHECINE DEOXYRIBONUCLEIC ACID LARGE WORDS MITOCHONDRIA"; }
if ($cat==lotr){ $category="LORD OF THE RINGS"; $list = "AGORNATH ARAGORN ARWEN BAG END BALIN BALROG BARROW DOWNS BARROW WRIGHT BEREN BILBO BAGGINS BLACK RIDERS BOROMIR BREE BUCKLAND CELEBORN DEAD MARSHES DWARVES EDORAS ELENDIL ELFSTONE ELROND ELVES ENTS EOWYN FANGORN FOREST FARAMIR FRODO BAGGINS GALADRIEL GANDALF GILGALAD GLAMDRING GLORFINDEL GOLDBERRY GOLLUM GONDOR HALDIR HELMS DEEP HOBBITON HOBBITS ISENGARD ISILDUR LEGOLAS LEMBAS BREAD LONELY MOUNTAIN LONELY MOUNTIAN LORD OF THE RINGS LOTHLORIEN LUTHIEN MELKOR MEN MERRY MIDDLE EARTH MINAS MORGUL MINAS TIRITH MIRKWOOD MITHRANDIR MITHRIL MORDOR MORIA MT. DOOM MY PRECIOUSSS NAZGUL NUMENOR OLD FOREST OLD MAN WILLOW ORCS ORTHANC PIPE WEED PIPPIN PLAINTIR RANGERS RINGWRAITHS RIVENDELL ROHAN SAMWISE GAMGEE SARUMAN SAURON SHADOWFAX SHAGRAT SHELOB SHIRE SILMARILLIAN SMAUG SMEAGOL STEWARD OF GONDOR STING STRIDER THE FELLOWSHIP OF THE RING THE RETURN OF THE KING THE RING THE TWO TOWERS THEODIN TOM BOMBADIL TREEBEARD TROLLS UNDYING LANDS URUK-HAI VALINOR WARG RIDERS WEATHERTOP WIZARDS WORMTONGUE";}
if ($cat==mths){ $category="MONTHS"; $list = "APRIL AUGUST DECEMBER FEBRUARY JANUARY JULY JUNE MARCH MAY MONTHS NOVEMBER OCTOBER SEPTEMBER"; }
if ($cat==web){ $category="WEB / WAP CODING"; $list = "JAVA BEANS PHP SCRIPTS SOURCE CODE JAVASCRIPT GAMES SSI IS SERVER SIDE INCLUDES BILL GATES COOKIES HTTP AUTHENTICATION ERROR HANDLING MANIPULATING IMAGES FILE UPLOADS DATABASE / CONNECTION APACHE SERVER ZIP FILE TAR COMPRESSION FUNCTIONS ENCRYPTION MYSQL DATABASE INITIALIZATION FAQ - FREQUENTLY ASKED QUESTIONS DEBUGGING VERIFICATION HTML VALIDATION CASCADING STYLE SHEETS";}
below ($alpha) is the alphabet letters to guess from.
you can add international (non-English) letters, in any order, such as in:
$alpha = "????????????????????????????ABCDEFGHIJKLMNOPQRSTUVWXYZ";
$alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
below ($additional_letters) are extra characters given in words; '?' does not work
these characters are automatically filled in if in the word/phrase to guess
$additional_letters = " -.,;!?%& 0123456789/";
#========= do not edit below here ======================================================
$sid = $_GET["sid"]; $uid = getuid_sid($sid); $len_alpha = strlen($alpha);
if(isset($_GET["n"])) $n=$_GET["n"]; if(isset($_GET["letters"])) $letters=$_GET["letters"]; if(!isset($letters)) $letters="";
if(isset($PHP_SELF)) $self=$PHP_SELF; else $self=$_SERVER["PHP_SELF"];
$links=""; $max=6;
error_reporting(0);
$list = strtoupper($list); $words = explode("\n",$list); srand ((double)microtime()*1000000); $all_letters=$letters.$additional_letters; $wrong = 0;
echo " "; if (!isset($n)) { $n = rand(1,count($words)) - 1; } $word_line=""; $word = trim($words[$n]); $done = 1; for ($x=0; $x < strlen($word); $x++) { if (strstr($all_letters, $word[$x])) { if ($word[$x]==" ") $word_line.=" / "; else $word_line.=$word[$x]; } else { $word_line.="_ "; $done = 0; } }
if (!$done) {
for ($c=0; $c<$len_alpha; $c++) { if (strstr($letters, $alpha[$c])) { if (strstr($words[$n], $alpha[$c])) {$links .= "$alpha[$c] "; } else { $links .= " $alpha[$c] "; $wrong++; } } else { $links .= " <a href="$self?action=hangman&cat=$cat&letters=$alpha[$c]$letters&n=$n&sid=$sid">$alpha[$c]</a> "; } } $nwrong=$wrong; if ($nwrong>6) $nwrong=6; echo " <img src="../images/hang_$nwrong.gif" alt="Wrong: $wrong out of $max"/> ";
if ($wrong >= $max) { $n++; if ($n>(count($words)-1)) $n=0; echo "
$word_line"; echo "
SORRY, YOU ARE HANGED!!!
"; if (strstr($word, " ")) $term="answer"; else $term="word"; echo "The $term was "$word"
"; $sqlfetch=mysql_query("SELECT gplus FROM ibwf_users WHERE id='".$uid."'"); $sqlfet=mysql_fetch_array($sqlfetch); $gplusnew=$sqlfet[0] - "25"; $sql="UPDATE ibwf_users SET gplus='".$gplusnew."' WHERE id='".$uid."'"; $res=mysql_query($sql); echo "You Have Had 25 game Plusses Deducted For Losing. "; echo "<a href="$self?action=hangman&cat=$cat&n=$n&sid=$sid">Play again</a> "; echo "<a href="$self?action=hangman&sid=$sid">Change category</a>"; }else{ echo " Wrong Guesses Left: ".($max-$wrong)."
"; echo "$word_line"; echo "
Choose a letter: "; echo "$links"; } }else{ $n++; # get next word if ($n>(count($words)-1)) $n=0; echo "
\n$word_line"; echo "
Congratulations!!! You win!!!
"; $sqlfetch=mysql_query("SELECT gplus FROM ibwf_users WHERE id='".$uid."'"); $sqlfet=mysql_fetch_array($sqlfetch); $gplusnew=$sqlfet[0] + "25"; $sql="UPDATE ibwf_users SET gplus='".$gplusnew."' WHERE id='".$uid."'"; $res=mysql_query($sql); echo "You Have Had 25 game Plusses Added For Winning. "; echo "<a href="$self?action=hangman&cat=$cat&n=$n&sid=$sid">Play again</a> "; echo "<a href="$self?action=hangman&sid=$sid">Change category</a>"; } echo "
<a href="index.php?action=main&sid=$sid">Back</a>"; echo "
</body>"; } else{ addonline(getuid_sid($sid),"Lost in Games lol",""); echo "<head>"; echo "<title>Error!!!</title>"; echo "</head>"; echo "<body>"; echo " "; echo "I don't know how did you get into here, but there's nothing to show"; echo "0<a accesskey="0" href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>"; echo "
</body>"; } ?> </html>what ?? link or script ??
echo "<a href="hang.php?action=main&sid=$sid">»</a>Hangman "; External image (may be gone)
else if($action=="main") { addonline(getuid_sid($sid),"Playing Hang Man External image (may be gone)",""); echo "<card id="main" title="Hang Man">"; echo " "; // words $list = " ht portal hypetype energy game over earth google anmial food i love you flowers monster globe heaven computer love hate rainbow sunshine master ugly wallpaper ";
// letters to choose from $alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $additional_letters = " -.,;!?%&0123456789"; $len_alpha = strlen($alpha);
if(isset($_GET["n"])) $n=$_GET["n"]; if(isset($_GET["letters"])) $letters=$_GET["letters"]; if(!isset($letters)) $letters="";
if(isset($PHP_SELF)) $self=$PHP_SELF; else $self=$_SERVER["PHP_SELF"];
$links="";
// Numar maxim de greseli $max=6;
error_reporting(0);
$list = strtoupper($list); $words = explode("\n",$list); srand ((double)microtime()*1000000); $all_letters=$letters.$additional_letters; $wrong = 0;
if (!isset($n)) { $n = rand(1,count($words)) - 1; } $word_line=""; $word = trim($words[$n]); $done = 1; for ($x=0; $x < strlen($word); $x++) { if (strstr($all_letters, $word[$x])) { if ($word[$x]==" ") $word_line.=" "; else $word_line.=$word[$x]; } else { $word_line.="_ "; $done = 0; } }
if (!$done) {
for ($c=0; $c<$len_alpha; $c++) { if (strstr($letters, $alpha[$c])) { if (strstr($words[$n], $alpha[$c])) {$links .= "$alpha[$c] "; } else { $links .= "$alpha[$c]"; $wrong++; } } else { $links .= "<a href="hang.php?action=main&sid=$sid&letters=$alpha[$c]$letters&n=$n">$alpha[$c]</a>"; } }
if (strstr($word, " ")) $term="word"; else $term="word"; echo "Guess The $term: "; echo $word_line; $nwrong=$wrong; if ($nwrong>6) $nwrong=6; echo " <img src="/sp_$nwrong.gif" alt="*"/> ";
if ($wrong >= $max)
{ $n++; if ($n>(count($words)-1)) $n=0;
////////////////////////if lose u then u have lost some plusses External image (may be gone) $usts = mysql_fetch_array(mysql_query("SELECT gplus, plusses FROM ibwf_users WHERE id='".$uid."'")); $gups = $usts[0]-10; $upl = $usts[1]-10; mysql_query("UPDATE ibwf_users SET gplus='".$gups."', plusses='".$upl."' WHERE id='".$uid."'");
// echo "
$word_line
";
echo "
LOSER!
";
if (strstr($word, " ")) $term="the"; else $term="the";
echo "$term word is: $word
You lost 10 game plusses and 10 plusses
";
echo "<a href="hang.php?action=main&sid=$sid">Play Again?</a>";
}
else
{
echo "Choose a letter:
";
echo $links;
echo "
Chances Left: $wrong wrong of $max";
// echo "
Greseli ramase:".($max-$wrong)."
";
}
}
else
{
$n++;
if ($n>(count($words)-1)) $n=0;
////////////////////////if win u get free plusses and game plusses External image (may be gone) $usts = mysql_fetch_array(mysql_query("SELECT gplus, plusses FROM ibwf_users WHERE id='".$uid."'")); $gups = $usts[0]+10; $upl = $usts[1]+1; mysql_query("UPDATE ibwf_users SET gplus='".$gups."', plusses='".$upl."' WHERE id='".$uid."'"); echo "The word is:"; echo $word_line; $nick = getnick_sid($sid); echo " CONGRATULATIONS!!! $nick you WIN!!! You get 10 game plusses and 1 extra plusses "; echo "<a href="hang.php?action=main&sid=$sid">Play Again?</a>"; }
//echo "
<a href="hangman.php?nick=$nick&pass=$pass">Choose another category</a>"; //echo " <a href="index.php?nick=$nick&pass=$pass">Sistem index</a>"; //echo "
"; //echo "© <a href="index.php?nick=$nick&pass=$pass">HT Portal</a> ";
echo "
<a href="index.php?action=main&sid=$sid">Home</a>"; } echo " "; echo "</card>"; ?> </wml>
echo " CONGRATULATIONS!!! $nick you WIN!!! You get 10 game plusses and 1 extra plusses "; HOW CAN I PREVENT TO NOT RECHARGE POINT BY REFERESH?BECAUSE IF I SET OPERA TO REFERSH AT 1sec I WILL GET LOTS POINTS External image (may be gone) AND THE SAME QUESTION IT FROM SCRAMBLE TO AND OTHER GAMES LIKE THAT?????
www.inbuzunar.mobi -Your mobile portal pocket
I need answer to kiss's question too!!! External image (may be gone) how to prevent increase of points by refreshing the success page??? someone help. please....... External image (may be gone)