Jump to content
MakeWebGames

HauntedDawg

Members
  • Posts

    476
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by HauntedDawg

  1. Ummm mate, if you had to bother reading this thread. You would see on page one I said I would personally opt for MySQLi. I bet you now, 95% of people on here, are moving away from mysql, or know that mysql is going to be dead soon. No need to show me examples. Also "depreciation": "Deprecation": Also, to be frank. the mysql_* extension is deprecated. And yes it will throw out errors, but then again, you can suppress those errors via error_reporting: error_reporting(E_ALL ^ E_DEPRECATED);   I iz gramma nazi! The reason for my response to you is. The title is set as "PDO. The way forward?", now everyone is jumping on the bandwagon, trying to learn PDO because as title and posts suggest "its the way forward", when infact its not the only way and they could simply switch to MySQLi without much fuss. You see my reasoning?
  2. PDO is just "ANOTHER" way forward, its not THE way. Plus, in a game, would you use all those drivers? Probably not. In an industry software? Probably yes, and probably not. Most developers will stick to one driver, thus rendering PDO somewhat useless as you won't require all those drivers, and will just be a burden on yourself if you are mixing all the drivers.
  3. HauntedDawg

    Question

    Yes, but not entirely.   if(array_key_exists('login', $_POST) && $_POST['login'] != '') { login(); }   Since get data is globally defined, and can be used within a function, theres no need to parse parameters to the function, or declare any variables within the function. Also, make sure your function makes proper use of type checking. Hope this answers your question.
  4. Tell me, are you a jap, thai, or chinese? Your grammar is horrible. You state he is a very nice coder and that we do not need to worry about error. Just curious why he is a "nice coder" when he opens a table on the login, then uses a div inside the table without opening a tr or a td, and then closes the table, and then continues with tr and td's.. Simply view the source and see the amount of errors for yourself, and then we do not need to worry about "error" cause he is a nice programmer.   <!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><script src="/A2EB891D63C8/avg_ls_dom.js" type="text/javascript"></script> <title>Stealth Operatives</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="stylet.css" type="text/css" /> </head> <body> <table> <div class="background"> <form method="POST" action="login.php"> <input class="login_box" type="text" maxlength="18" name="username" /> <input class="pass_box" type="password" maxlength="18" name="password" /> <input type="hidden" name="submit" value="1" /> <input class="login_button" type="submit" value="" /> </form> <form method="GET" action="register.php"> <input id="reg" type="submit" value="" /> </form> <form method="GET" action="recovery.php"> <input id="pw_rec" type="submit" title="Password Recovery" value="" /> </form> <form method="GET" action="mailto:[email protected]"> <input id="c_staff" type="submit" title="mailto:[email protected]" value="" /> </form> <form method="GET" action="tos.php"> <input id="terms_of_service" type="submit" title="Terms of Service" value="" /> </form> <div id="twitter"><a style="border-style: none;" href="http://twitter.com/#!/StealthRPG"><img style="border-style: none;" src="images/twitter.png"></a></div> <span id="description">Moving up the ranks, you are an up and coming secret agent. Other agents and agencies stand in your way. Use your cunning, stealth and wile as you interrogate, spy and even kill your way to the top.<br><br>Your agency is counting on you!</span> </div> </table> </tr> </td> </table> </td> </tr> <tr> <td> </td> </tr> </table> </body> </html> </body> </html>   How cute.
  5. nice hijack of a thread..
  6. The multiple servers mentioned above, is not actual "web servers", but "Game Servers", such as "Server 1" for english, "Server 2" for spanish. But in theory, use a different folder. The multiple servers you have mentioned is for resource usage while the game stays on 1 folder.
  7. I myself checked to see if it can be done with the default browser auto complete behavior. While there are some possible fixes, non of them worked. But instead of saying "I dont see it as a bug" (when infact it kind of is), could of just said directly that it can be disabled. Thanks anyway. - - - Updated - - - Closed. ~ TOO SHORT ~
  8. No, I do not propose to avoid browser auto-completion.   No, the point is not regarding autocomplete behaviour, but the fact that the JS is not doing a proper check to see if an element is still focused.   Since I was using the internet, I always press enter to choose an auto-suggest. Funny you don't see it as a bug, but no other website that I use apart from NW-Engine does this? Now let's look at it like this. I have a field, that i start typing ky, it then gives me a list of kyle, kyle02, kyle1 and so forth. A username i use quite often, is kyle0217. Now if I hit enter, i stay focused on the element, so as if I were to choose kyle02, hit enter and type 17, then i get a 3 trials left before being locked message. But your right. It's not a bug..duly note the sarcasm... meh, don't know why i even bother.
  9. If focused on a text input, and enter is pressed, ignore the rest. It's your engine. Not mine, I'm just pointing out a bug. So how you fix it, is not up to me.
  10. On the login/register forms, when focused on a text input, and start typing. The auto-suggest pop's up from previous input text. When selecting text, i hit enter to select it (when imposingly should use tab to move to next input). However, due to the nature of the JS on the page, it submits the login/register form. Thus resulting in getting locked out if done more than 3 times. Thanks.
  11. Sometimes it's generally better to get one person to develop the modules, than various. You end up with neat code from one person, and not different code from hole lot of developers. Feel free to PM me your ideas, and I can then give a rough estimated quote. Thanks.
  12. // START SECTION FOR DE-ACTIVATED MODULES // TableHeader('Current Locked Modules'); echo '<table class="plainTable">'; echo ' <tr class="titleLine">'; echo ' <td width="40%">' . Translate('Name') . '</td>'; echo ' <td width="30%">' . Translate('Status') . '</td>'; echo ' <td width="30%">' . Translate('Action') . '</td>'; echo ' </tr>'; $style = 'color: green; font-weight: bold;'; $row = 0; foreach ($allModules as $module) { if(file_exists($baseDir.'/modules/'.$module.'/module.lock')) { echo ' <tr class="'.(($row % 2 == 0) ? 'evenLine' : 'oddLine').'" valign="top">'; echo ' <td '.$style.'>'.$module.'</td>'; echo ' <td '.$style.'>Locked</td>'; echo ' <td><a href="index.php?p=admin_module_manager&unlock='.urlencode($module).'" '.$style.'>Un-Lock</a></td>'; echo ' </tr>'; ++$row; } } echo '</table>'; TableFooter(); // END SECTION FOR DE-ACTIVATED MODULES //   There you go. To fix your row odd/even colors :)
  13. His codes, his copyright to give it away. Not yours. And just because he gave the codes to you, does not mean you can re-distribute them at your own free will!
  14. We are waiting...
  15. down.. suspended
  16. +1, to probably the better idea. This way, you can intercept the controller that is being served for log purposes, or anything else really.
  17. Wow, mistakenly said AbsoluteZero instead of GoldenZero. Big woop woop for you. Still the fact remains, GoldenZero literally taught you and showed you the sql injections for MCCodes. I do recall ben making a thread on here regarding you, and it was not a nice one, although not 100% sure. You keep stating you been a programmer before MCCodes came out. **** sakes. You been going on like a child if you ask me. You keep saying you've been programming since the age of like what? 8. Yeah right. I've known you for well over 5 years now. Your attitude does not change. You are still the little brat you were when you first joined here. Now please, leave. Each time you come back, you act as if you are now a "much more improved" programmer. Yet the same little jackass that used to ask me for scripts awhile back. And yes, you did when i owned killah-city.com. Searching your name on google. Brings up many interesting results. http://makewebgames.io/showthread.php/38128-K1ngScorp1o-Total-idiot http://www.youtube.com/watch?v=jpG8YCGli1w - wahahaha. saw that like a year ago.. had to rewatch for the funnies!   KtnxBYE
  18. Says the person who used MCCode's as a learning point. Says the person who got AbsoluteZero to teach you mostly what you know of mccodes. Says the person who was using MCCodes 2 years ago. Should i go on "all mighty king"?
  19. To Confirm. Year1920 - The Game, has been sold.
  20. Yii, Kohana, CakePHP, Zend, Smarty is about what i have interest in learning, and can code on those with the same claim. And it would not be hard at all to change to another framework at ease. The rest of your post, is either... not interesting, or bull****.. you can choose :o
  21. This is un-efficient. By using "Options +MultiViews", you put more strain on your server, by making it "compute" and "find" the file it must serve. You should be using mod_rewrite for this.
  22. No need to be cocky, a simple Yes, it is mine would of sufficed. You claimed to be one of the best programmers on here awhile ago, now you don't know jquery? Thought you knew javascript very well? No offense, but if you look at the jquery, it doesn't even submit the form anywhere. Which shows me you did not even bother to look at it.   $(document).ready(function(){ // Change login panel to absolute so we can move it. Also set it back to intiate the move. $("#login_panel").css({"position": "absolute", "top": "-45px", "left": "0px"}); // Cannot have over Jquery 1.8.3 If upgraded please install the jQuery Migrate plugin. This is to offset an IE positioning bug. if($.browser.msie){ $("#login_form").css({"margin-top": "-5px"}); } // Initiate the dropdown. $(".show_panel").click(function(event){ event.preventDefault(); $("#login_panel").animate({"top" : "33px"}, 800, function(){ $(".show_panel").val("LOGIN").removeClass("show_panel"); }); }); });   There is no "submit" function there, it's removing the 'show_panel' class, therefor can not find it again.   var slide_down = false; $(document).ready(function() { $("#login_panel").css({"position": "absolute", "top": "-45px", "left": "0px"}); if($.browser.msie){ $("#login_form").css({"margin-top": "-5px"}); } $(".log_in").click(function(event){ if(!slide_down) { event.preventDefault(); slide_down = true; } $("#login_panel").animate({"top" : "33px"}, 800, function() { $(".show_panel").val("LOGIN").removeClass("show_panel"); }); }); });   Make sure your form has a method, and that your button is type="submit", jquery can't submit a form that does not have a "submit" type input.
  23. Is this your template to use? Can you provide proof of purchase? Again with the basic questions? Use jquery, when it slides down, change the button to a "submit" button, then when clicking, just ".submit()" the form. Simple stuffs :D
  24. No, I did not say MySQLi is the better choice. You "ass"ume things, now look at what is in quotes in that part.
  25. Whats funny in this community, is that as soon as someone starts using a new close, the rest follow? Personally, I'd opt for MySQLi, because I do not need 12 drivers supported, and I'd like the 3% - 5% speed difference from PDO to MySQLi. http://net.tutsplus.com/tutorials/php/pdo-vs-mysqli-which-should-you-use/
×
×
  • Create New...