Jump to content
MakeWebGames

HauntedDawg

Members
  • Posts

    476
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by HauntedDawg

  1. When i am not logged in, and I click on the login button at the top right corner, it brings down a login form. However, the password is plain text and does not work.
  2. jsFiddle jquery stat bar, with mousedown action, so you dont have to click hundred times :D
  3. Post your hole ipn_donator.php here. Seems like your issue is not just with you: http://stackoverflow.com/questions/11810344/paypal-ipn-bad-request-400-error/12682872#12682872
  4. file_put_contents($file, print_r($current));
  5. That would mean usually a resource either from MySQL or fsockopen ready to be used. Make sure you use var_dump around what ever you are entering into the file. That will help you a little more with what the error is?
  6. Not always true.   <?php $testone = '5'; $testtwo = 'six'; $testthree = 'l'; if($testone == 5 && $testtwo == 'six' && $testthree == 'l') { echo 'true'; } else { echo 'false'; } ?>   echoes out true, so does this:   <?php $testone = '5'; $testtwo = 'six'; $testthree = 'l'; if(($testone == 5 || $testtwo == 'si') && $testthree == 'l') { echo 'true'; } else { echo 'false'; } ?>   It all depends what you are actually trying to verify.
  7. On your documentation page, in your html, you have an opening php tag, no echos/prints. Also, in the html on the documentation page, it says <scritp>
  8. Do you even know what node.js is?
  9. Actually you don't buy properties :D You do crimes, but the system is a lot different, and actually benefits you throughout the game, where as MCCode just gives you money and experience. Training aswell, has a big impact on your character, unlike MCCode where it only matters in attacking/defending.
  10.   I don't see where he says "only accept custom built games". But instead "only accepting games that you think have been made to a high standard". In other words, means that the owner has at least spent a month building custom like functionality, or at least make theirs stand out to others, otherwise we'd end up with a good few copies of other games.
  11. Actually, if you take the globals out, and include it from the header. Everything is already set for you, and will only use the content on your fedsupport.php file. Try out the above code, it redirects to fedsupport.php if you are not on it.
  12. Do you have a link for them to click on to go into that file? If you have the include "globals.php" on your fedsupport.php, doing an include won't work. What you can do is something like:   <?php if ($ir['fedjail'] > 0) { if($_SERVER['SCRIPT_FILENAME'] != "fedsupport.php") { @header('Location: fedsupport.php'); } }   UNTESTED
  13. The header.php if I am not mistaken, is at the bottom of the mainmenu function ( should still be in the header.php file ) Do a search on the header.php for ['fedjail']. You'll then need to put an if statement around it:   if($_SERVER['SCRIPT_FILENAME'] != "filenamehere.php") { fed jail stuff here! }
  14. Why should I? Considering the OP has MCCode in his opening message, he is looking for securing $_POST data in MCCode! I'll put this as simple as I can. Don't tell people:   when the file is not even for MCCodes. And again, let me point this out to you! MCCodes:   $db->query("INSERT INTO hoes VALUES('', $userid, '{$_POST['hname']}', '{$_POST['hage']}', 0, 1, '{$_POST['hspec']}', '{$_POST['hcolor']}')");   In your class:   public function Query($sql)   Nuf said?     -         If not, it will fail, unless you rewrite the entire engine to use $db->Query, instead of $db->query. Or alternatively rewrite the class. But you didn't answer my question. Did you bother checking the class file to see if it matches MCCode? NO Did you bother rewriting the class file to match MCCodes? NO - much simpler route By the seems of things, you went and changed every query in your code to suit that class. Which is redundant, because that class still uses plain old mysql. Now why go through 100 files to change $db->query to $db->Query? when you could of rewrote the class file to function query($sql), and the other functions. You get my point now?
  15. No, Nyna had modified the original mysql class file (some where here is a thread about it), and managed to prevent 80% of sql injections. While the other 20% were (if i remember correctly), different injections than the known sql exploits out there.
  16. Sorry, but i doubt your website is working 100% perfectly using that class. Also, whats the point of recoding the entire engine, when the class could be recoded to suit? I believe Nyna awhile back done this, and prevented 80% of hacks without touching mccodes core code!
  17. In that CASE, whats the point of passing the `id` then? Assuming its auto_increment, it's not even needed in there.. jus sayin
  18. How did you file the case in US Courts? Considering your profile says uk...
  19. Surely you did not write that. And did you bother to check if it adapts to current mccode without changing all the CODE? Or bother to adapt the class to fit in mccode?
  20. Only read this post now. Are you perhaps with hetzner? If so, when you request a new database, they would have sent you an email with all the login details.
  21. Please remember some CPanels require the login username in front of the DB (depends on the server settings). So if we were to say to login to CPanel the username is nwe, and the database is "database_1", you would essentially put "nwe_database_1".
  22. Instead of asking why, why not point out his flaw, and then correct it? I sure did ask why in other posts, but why as to understand why he is doing it like that.   exit($h->endpage());   :)
  23. You can check this out: http://www.php.net/manual/en/ref.ctype.php It will show you all the ctype functions. All of these can be used with great benefit to type checking.
  24. but you can use ctype_alnum
  25. Sorry to say this, but this module is broken beyond recognition. Some examples You are displaying cost of 2 credits for xanax, where when you go forward, it says 2 credits, and the sql says 1. $db->query("UPDATE `users` SET `credits`=`credits` - '1' WHERE userid=$userid"); Are you sure you wish to swap <b>2</b> credits for x10 Xanax? <td align = 'left'>• <i>Xanax x 10<td align = 'left'><center> [<a href='cctrade.php?step=xanax'><font color=green>Buy</font></a>]</i></a></td> <td align = 'left'>2 Credits</td>   Displaying bad request twice? Why? Opening 2 tables without closing them? Without content either? WHY? I was initially going to re-code it, but then i thought.. Perhaps you should read some books first and then try create modules. Or expect to see me often pointing out your flaws.
×
×
  • Create New...