Jump to content
MakeWebGames

Karlos

Members
  • Posts

    951
  • Joined

  • Last visited

    Never

Everything posted by Karlos

  1. Re: A simple, fast database class for PHP 4+ and MySQL     $db->query("UPDATE users SET hp=LEAST(hp+(maxhp/3), maxhp)");   So that should do..   $db->query("UPDATE users SET hp=hp+(maxhp/3) WHERE hp<maxhp"); $db->query("UPDATE users SET hp=maxhp WHERE hp>maxhp");   Thats if I have understood LEAST() correctly? Note: Would test but I have game up to test.
  2. Re: [mccode] Mod Sale [$10.00 - $110.00]   Stop acting like you know everything..   Well I like to see what i can come up with.. :-P
  3. Re: V2 Gang Picture Simple... A few functions, SQL field, and general edits.
  4. Re: Web 2.0 Login for Mccodes I already posted the valid copy.
  5. Re: [mccode] Mod Sale [$10.00 - $110.00] Zero i was thinking about you idea and I've come up with an idea which is slightly more advanced than yours but should work just aswell..   strrev(sha1(strrev($_POST['LoginName']) . $_POST['Password'] . strrev($_POST['LoginName'])));   Just an idea.
  6. Re: [mccode v2] User Comments Well i'm not really talking about insecure servers...
  7. Re: Web 2.0 Login for Mccodes Just run the old code through the validator.
  8. Re: [mccode v2] User Comments   Simple fix.. htmlspecialchars()   Well   <?php echo 'Hello'; ?>   Is secure :roll:
  9. Re: Web 2.0 Login for Mccodes   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org" /> <meta name="description" content="Game Name - Some Slogan!" /> <meta name="keywords" content="RPG, FREE, free, rpg, online rpg, text based game, mmorpg, text games, action games, pbbg, pbbgs, PHP, MySQL, gaming" /> <meta name="author" content="Game Name Owner - Game Owner" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Game Name - Some Slogan</title> <style type="text/css"> body,html { margin:0; padding:0; height: 100%; padding-top: 4px; } body { background-color: transparent; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; font-family: Lucida Sans Unicode; font-size: 12px; font-weight: bold; color: black; } a:visited,a:link,a:active,a:hover { color: black; font-weight: bold; font-size: 12px; text-decoration: underline; font-family: Lucida Sans Unicode; } img { border: none; } div#container { background: url('http://img19.imageshack.us/img19/3381/splats.png') no-repeat; margin: 0px auto; height: 668px; width: 1004px; } div#banner { background: url('http://img25.imageshack.us/img25/8784/banneruzx.png'); margin-top: 5px; margin-left: 0px; height: 137px; width: 773px; float: left; font-size: 35px; color:#FF0000; } div#login_form { background: url('http://img23.imageshack.us/img23/3183/loginform.png'); float: right; height: 137px; width: 224px; margin-top: 5px; margin-right: 0px; } div#form_action { margin-top: 15px; margin-left: 28px; } div#game_description { background: url('http://img24.imageshack.us/img24/6775/descbox.png'); float: left; margin-top: 0px; height: 517px; width: 773px; margin-left: 0px; } div#menu { background: url('http://img21.imageshack.us/img21/4356/menusbar.png'); float: right; margin-top: -3px; height: 520px; width: 224px; margin-right: 7px; } #menu a { display: block; width: 100%; } </style> </head> <body> <div id="container"> <div id="banner"> <center>Game Name</center> </div> <div id="login_form"> <div id="form_action"> <form action="authenticate.php" method="post"> Username: <input type="text" name="username" value="Enter User Name" onclick="this.value='';" /> Password: <input type="text" name="password" value="Enter User Password" onclick="this.value='';this.type='password';" /> <input type="submit" value="Login" onclick="this.value='Login In';" /> </form> </div> </div> <div id="game_description"> <div style="margin-top: 24px; margin-left: 24px;"> Enter Game Description </div> </div> <div id="menu"> <div style="margin-top: 24px; margin-left: 24px;"><center> [url="register.php"]Register[/url] [url="login.php"]Login[/url] [url="tos.php"]Tos[/url] [url="policy.php"]Private Policy[/url] [url="copyright_infrigment"]CopyRight Infrigment[/url] </center></div> </div> </div> </body> </html>   This document was successfully checked as XHTML 1.0 Transitional! I got a bit bored and tested it in a Validator and it had 7 errors so i just posted the Valid copy.
  10. Re: [mccode v2] User Comments Care to explain how it is?
  11. Re: [uPDATED!] Basic ajax is easy Very nice work Floydian.. Now I gotta learn JS in more depth. Thanks. :-)
  12. Karlos

    What is Suhosin?

    Re: What is Suhosin? BUMP BABY :wink:
  13. Re: Preventing Javascript on User comments and User Signatures Or even better.. htmlspecialchars()
  14. Karlos

    RSS Reader

    Re: RSS Reader :-o I let your computer google it :(
  15. Re: New MainMenu Seem's like a huge table.
  16. Karlos

    RSS Reader

    Re: RSS Reader HERE! -.-
  17. Re: Improved Staff Logs For V2 Oh well a rough guide missed a ( between abs and @intval   $db->query(sprintf("INSERT INTO `partner_logs` (`user`, `time`, `money`, `crystals`) VALUES ('%s', ', unix_timestamp(), '%u', '%u')", mysql_real_escape_string($ir['username']), abs(@intval($_POST['money'])), abs(@intval($_POST['crystals']))) or die (mysql_error());
  18. Re: Improved Staff Logs For V2 Look past the sprintf() then.
  19. Re: Improved Staff Logs For V2 But yet you only look at the sprintf() Try brushing up on abs() and intval()
  20. Re: [mccode] Mod Sale [$10.00 - $110.00] Ahh my bad, I normally change my login name for cursed. That's why i said It didn't keep the same, completely my bad :-P
  21. Re: Improved Staff Logs For V2 Or adapt your idea Crazy-T $db->query(sprintf("INSERT INTO `partner_logs` (`user`, `time`, `money`, `crystals`) VALUES ('%s', ', unix_timestamp(), '%u', '%u')", mysql_real_escape_string($ir['username']), abs@intval($_POST['money'])), abs(@intval($_POST['crystals']))) or die (mysql_error());
  22. Re: Icons Help I've tested it and it works fine.
  23. Re: Icons Help echo sprintf("Gender: %s ", ($ir['gender'] == 'Male') ? '' : '');
  24. Re: [V1 && V2] Simple MySQL Rank Mod! If you ever read one of my posts when we was on this subject I did say I sprintf() queries with varibles in it.
  25. Re: V2 index.php Part of some CSS :-P
×
×
  • Create New...