
hamster01
Members-
Posts
1,108 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by hamster01
-
Re: Online Cricket Management Game And is a valid Mysql operator yes, for php no! I actually do not think php.net will actually say it is valid.
-
Re: Guess the next poster My dog 'little one'. d:
-
Re: XHTML Valid Game? http://validator.w3.org/check?uri=http% ... ne&group=0 So what, nice people don't like me, what's new? http://validator.w3.org/check?uri=http% ... ne&group=0
-
Re: Game in Different Languages. And why is that? Edit: Oh now I see.. so i'm slow, so what. d:
-
Re: Game in Different Languages. Or, $lang = array( 'af' => array( 'reg' => 'registreer', 'bye' => 'baai'), 'en' => array( 'reg' => 'register', 'bye' => 'bye')); Then to use it, you would use. echo $lang['af']['reg']; ps. decepti0n, thanks for the new bbc, and your avatar is not very good. ):
-
Re: Game in Different Languages. Mysql with this would be pointless. Rather check how things like phpbb and smf do it, language packs.
-
Re: WWI USA-20 Germany-20 Russia-20 Great Britan-20 France-20
-
Re: Online Cricket Management Game <?php $batter = rand(1,count($batters)); if ($batter <= 79) echo 'Batter: ', $batter <= 50 ? 'Whatever1' : 'Whatever2'; else echo 'Whatever 3'; ?> 'And' is not a valid operator, '||' is.
-
Re: What is the greatest threat to mankind? hamsters, and aliens. See, the hamsters communicate with a specific ultra sound to another species, that can not be heard by the human ear. On a true note; People them selfs. Why do planes crash? Maintenance issues. Why do people kill? Because they need money or was abused as a kid. Why do people goto war, and does gorge bush have 8 000 elite tanks ready for battle? Dominance, or is it Power?
-
Re: Here Some Joke lol, I'm also frustrated with people that are like that. :'(
-
Re: In game forums for sale I get a 504..
-
[Free] [v1] User Verification [Captcha]
hamster01 replied to Isomerizer's topic in Free Modifications
Re: [Free] [v1] User Verification [Captcha] Headers... header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); Tried all that .... Nothing works. :( Try again.. Show me the script on how you are using it. -
[Free] [v1] User Verification [Captcha]
hamster01 replied to Isomerizer's topic in Free Modifications
Re: [Free] [v1] User Verification [Captcha] No, The piece of code I posted is to solve his problem. -
[Free] [v1] User Verification [Captcha]
hamster01 replied to Isomerizer's topic in Free Modifications
Re: [Free] [v1] User Verification [Captcha] Headers... header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -
Re: 3 Word Game nemo that died
-
Re: Securing Variables Ok, thanks Ferdi. Ive been reading up about them functions, and trying to work out when there needed excactly... This is a part of my authenticate.php (DBS v1) i just re-wrote. $username=htmlspecialchars(mysql_real_escape_string($_POST['username']), ENT_QUOTES); $password=htmlspecialchars(mysql_real_escape_string($_POST['password']), ENT_QUOTES); $uq=mysql_query("SELECT userid FROM users WHERE login_name='$username' AND `userpass`=md5('$password')",$c) or die(mysql_error()); Is this now secure enough? Or am i still missing something? $username = htmlspecialchars($_POST['username']); // You do not want to strip characters from their username, only encode it. $password = md5($_POST['password']); // screw them... $uq = mysql_query("SELECT userid FROM users WHERE login_name='$username' AND `userpass`='$password'",$c) or die(mysql_error());
-
Re: Securing Variables You need to clean the Post and get Super Globals. 1. I suppose you mean 'stripslashes', why would you want to do this, there is no logic to this? 2. Eh.. What does this have to do with security? Here is a list of functions I use to secure input from users. htmlspecialchars, htmlentities, urlencode/_decode, mysql_real_escape_string, and a few I cannot remember.
-
Re: [mccode] jail/hosp shoutbox uhmm, Why? It's a log of what people chatted about, so if a spammer goes on, you can quickly see what they said.
-
Re: [mccode] jail/hosp shoutbox <? $dataf = "jailshouts.txt"; $limit = 10; if(isset($_POST['Submit'])) { ?><table width="100%" border="0" cellspacing="1" bordercolor="#000000" bgcolor="#333333"> <tr> <td width="432" bgcolor="#FFFFFF"><? $name = $ir['username']; $message = $_POST['message']; $message = htmlspecialchars(stripslashes($message)); if ($message != "") { $get = fopen($dataf, 'a+'); fwrite($get, $name.':'.$message."\n"); fclose($get); echo '[b]Comment Added![/b]'; } ?></td> </tr> </table><? unset($message); unset($name); } ?> <table width="100%" border="0" cellspacing="1" bordercolor="#000000"> <tr> <td width="432"><form name="guestbook" action="" method="post"> <input name="message" type="text" id="message"><input type="submit" name="Submit" value="Shout"> </p> </form></td> </tr> </table> [i][b]<font color=white>Shouts</font>[/b][/i]:: <table width="100%" border="-" cellpadding="0" cellspacing="1"> <? $fp = fopen($dataf, 'r'); if ($fp) { $lines = array(); while (($line = fgets($fp)) !== false) { $lines[] = $line; while (count($lines) > $limit) array_shift($lines); } foreach (array_reverse($lines) as $line) { list($name,$message) = explode(':',$line); $message = urldecode($message); ?> <tr> <td><?=$name?></td><td><?=$message?></td> </tr> <? } fclose($fp); } ?> </table>
-
Re: Guess the next poster llama
-
Re: [mccode] jail/hosp shoutbox Well, try this. <?php $dataf = "jailshouts.txt"; $limit = 10; if (isset($_POST['Submit'])) { ?><table width="100%" border="0" cellspacing="1" bordercolor="#000000" bgcolor="#333333"> <tr> <td width="432" bgcolor="#FFFFFF"><?php $name = $ir['username']; $message = $_POST['message']; $message = htmlspecialchars(stripslashes($message)); if ($message != "") { $get = fopen($file, 'a+'); fwrite($get, $name . ':' . $message . "\n"); fclose($get); echo '[b]Comment Added![/b]'; } ?></td> </tr> </table><?php unset($message); unset($name); } ?> <table width="100%" border="0" cellspacing="1" bordercolor="#000000"> <tr> <td width="432"><form name="guestbook" action="" method="post"> <input name="message" type="text" id="message"><input type="submit" name="Submit" value="Shout"> </p> </form></td> </tr> </table> [i][b]<font color=white>Shouts</font>[/b][/i]:: <table width="100%" border="-" cellpadding="0" cellspacing="1"> <?php $fp = fopen($dataf, 'r'); if ($fp) { $lines = array(); while (($line = fgets($fp)) !== false) { $lines[] = $line; while (count($lines) > $limit) array_shift($lines); } foreach (array_reverse($lines) as $line) { list($name, $message) = explode(':', $line); $message = urldecode($message); ?> <tr> <td><?=$name?></td><td><?=$message?></td> </tr> <?php } fclose($fp); } ?> </table> It removes the need for the cron, and it reverses the output, and limits the comments to then. Let me know if it works. Ferdi
-
[Free] [v1] User Verification [Captcha]
hamster01 replied to Isomerizer's topic in Free Modifications
Re: [Free] [v1] User Verification [Captcha] Or sometimes I do use G2P.. -
Re: Attractive Advertisement Tutorial! (: