Jump to content
MakeWebGames

HauntedDawg

Members
  • Posts

    476
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by HauntedDawg

  1. 4G is better, why you complaining?
  2. Hahaha... So, just because i said "in theory jquery", you think to yourself that i can not work without jquery?, well sorry sir. You are a complete dumbass. So, let's put this to a test shall we? Create a basic html page. with 20 plain <div> elements. Select the 9th and 12th element, then fade them out on page load. Then, register an event to a button that when clicked. Will fade out the rest, and only fade in those 2 selected divs. WITH NO JQUERY.
  3. Zu, he stated he wants it done with Javascript, so in theory, jquery. It does not mean he does not know the basics of PHP and html, but he might not know how to do it in jquery. So shush! If he wanted to pay 2 people, its his choice! Perhaps one of them create a better working system, while the other just cant. Never can be sure anymore, so he is right by having a backup.   And then again, for $20. Jeez, it's better than $2 - $5 that the actual "noobs" used to offer! With $20, i can at least buy something.
  4. Or, instead of complaining, you could of Windows: ctrl&+, Mac: Command&+ That way, it will adjust the font size one up, you can use the - for down and 0 to reset.
  5. Ive updated my post, its merely going to output how many users it went through, but you will at least know the script "completed" it's cycle.
  6. <?php // Commandline only if(isset($_SERVER["REMOTE_ADDR"]) && ($_SERVER["REMOTE_ADDR"] != $_SERVER["SERVER_ADDR"])) die('Access Is Denied!'); require_once("dbcon.php"); require_once("classes.php"); //REGULAR CRON SCRIPT $num_updates = 1; $result = mysql_query("SELECT `id` FROM `grpgusers`"); while($line = mysql_fetch_assoc($result)) { $updates_user = new User($line['id']); $multiplier = ($updates_user->rmdays) ? .25 : .20; $username = $updates_user->username; $newawake = $updates_user->awake + ($num_updates * 20); $newawake = ($newawake > $updates_user->maxawake) ? $updates_user->maxawake : $newawake; $newhp = $updates_user->hp + round($num_updates * $updates_user->maxhp * $multiplier); $newhp = ($newhp > $updates_user->maxhp) ? $updates_user->maxhp : $newhp; $newenergy = $updates_user->energy + round($num_updates * $updates_user->maxenergy * $multiplier); $newenergy = ($newenergy > $updates_user->maxenergy) ? $updates_user->maxenergy : $newenergy; $newnerve = $updates_user->nerve + round($num_updates * $updates_user->maxnerve * $multiplier); $newnerve = ($newnerve > $updates_user->maxnerve) ? $updates_user->maxnerve : $newnerve; mysql_query('UPDATE `grpgusers` SET `awake` = "'.$newawake.'", `energy` = "'.$newenergy.'", `nerve` = "'.$newnerve.'", `hp` = "'.$newhp.'", `gcrime` = "0" WHERE `id` = '.$updates_user->id); ++$num_updates; } file_put_contents('5mincron_check.txt', "{$num_updates} updates on ".date('l jS \of F Y h:i:s A')."\n"); ?>   A bit more efficient, there is no need to select *(everything) in the grpg users as we only use the ID. Also, this outputs into a "5mincron_check.txt" file, each update that happens. So you can follow that to see if something is stopping or not.
  7. http://www.globalpost.com/dispatches/globalpost-blogs/the-grid/megaupload-kim-dotcom-ready-return
  8. Sorry, no visual attraction at all. Spend some dough and get a design, then a storyline, then you must think what modules/scripts/mods fit your specific story line. Apart from that... I agree with the one above "It's just plain boring"
  9. Understandable, it's his "learning" language. "2 same name cnt." - Definitely not even close to any English language, altho he tried. As far as it goes to not being great. Would be because you can't turn it off/on. Or the "PHP_SELF" issue. But, it at least has proper English, and can read my code. Then again, it's legacy code from 4 year's ago. Anyway. It's up to who ever decides to use it on their game. Just providing mine for better English :)
  10. Or, instead of having REALLY bad English & issues. http://makewebgames.io/showthread.php/24018 Only thing missing is that you can't enable/disable it. Very simple, and can be used from this script as well.
  11. Let me point out, that this was tested on 6 server's this morning, Which i doubt you ran accross 58 to test. On another note. It's weird that for the past 3 year's, gmail, hotmail, yahoo & so many other people have received their email from email's such as <something>_verify(1-6)@domain.com, yet not a single person complained that they never received their email, not ONCE. This is including personal website's. Now, what i do see commonly from sending emails with image's, is if you don't use HTML and just plain text and include more than 4 image's in your mail. The receiver's mail client will reject it, or mark it as spam (Commonly gmail). Apart from that, I've not once encountered an issue of the email account NEEDING to be created on the server. Mind you, this is talking on a large scale system where over 100,000 emails are sent out weekly to verify their email address. Not one of them has came back to say "Oh hey, i signed up, but didnt get my verification email". Across the 6 year's I've been working with PHP, I've not once come across the situation of having to specifically create the email address on the server. Many people suggest it to be created, but speaking from experience, I've not once needed to.
  12. Form fixed to from. DONT -> Sometimes. Hmmmm, on 6 different server's, they all worked. WILL -> Might. Again, 6 different server's proved that the email address DOES NOT NEED TO EXIST on the server AT ALL Those 6 Servers range from 2 dedicated servers, 2 shared hosting accounts & 2 cloud hosting accounts. All worked fine.
  13. Last Attempt from me:   if($them['email'] != '') { ?> <h3>Continuing Account Setup: What is your email address?</h3> <form action="prefs.php?act=AccountSetup&continue=1" method="post"> <input type="text" name="email" /> <input type="submit" value="Confirm" /> </form> <?php } if(isset($_GET['continue']) && $_GET['continue'] == 1) { $check = mysql_query('SELECT `email` FROM `players` WHERE `email` = "'.mysql_real_escape_string($_POST['email']).'"'); if(mysql_num_rows($check)) { ?> <div style="color: red;" align="center"> Email already in use. Choose another one.<br /> <form action="prefs.php?act=AccountSetup" method="post"> <input type="submit" value="Continue" /> </form> </div> <?php exit($h->endpage()); } $code = mt_rand(1000000000, 9000000000); $to = $_POST['email']; $subject = 'Email Activator'; $from = 'Criminals Nightmare - No Reply<[email protected]>'; $headers = 'MIME-Version: 1.0rn'; $headers.= '\r\nContent-type: text/html; charset=utf8'; $headers.= 'From: '.$from.'\r\n'; $message = <<<EOF <html> <head> <title>Criminals Nightmare Account Activation</title> </head> <body bgcolor="#999" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <center> <table width="600" cellpadding="0" cellspacing="0" border="0"> <tr> <td colspan="5" align="left" bgcolor="#999" style="font-size: 10px;"> Learn more about the latest specials for Criminals Nightmare.</td> <td colspan="3" align="right" bgcolor="#999" style="font-size: 10px;"></td> </tr> <tr> <td colspan="8"><img src="http://criminals-nightmare.com/mesi/topimage.jpg" width="600" height="135" alt="Criminals Nightmare" style="display: block;" /></td> </tr> <tr> <td bgcolor="#999" color="#323232" style="margin: 3px;"> <center> <a href="_blank" href="http://www.criminals-nightmare.com/login.php" style="color: #373737;"><strong><h3>LOGIN HERE</h3></strong></a> __________________________________________________________________________________________<br /> Your code to activate your account is: <strong>{$code}</strong><br /> Enter this code inside the game on Account Setup. __________________________________________________________________________________________ </center> </td> </tr> </table> </center> </body> </html> EOF; if(mail($to, $subject, $message, $headers)) { ?> Email has been sent to "<?php echo $_POST['email']; ?>" with a code.<br /> <form action="prefs.php?act=AccountSetup" method="post"> <input type="submit" value="Enter Code" /> </form> <?php } else { echo 'Email could not be sent.'; } }   post up any errors and shall help you fix them :) Also, you DONT need to have the account setup on your server. You can have [email protected] and it WILL work. Alternatively, you can use: http://sourceforge.net/projects/phpmailer/
  14. @ Spud The time was not out, no process was using the required port's if it does, as we rebooted his PC. Can't find the thread i used to find the issue. But your more than welcome to find out why it was the Server Certificate, however.. it had nothing to do with any SSL Certificates.
  15. No, like this:   if($them['email'] != '') { echo '<h3>Continuing Account Setup: what is your email address?</h3> <form action="prefs.php?act=AccountSetup&continue=1" method="post"> <input type="text" name="email" size="25"> <input type="submit" value="Confirm" /> </form>'; } if(@abs(intval($_GET['continue'])) == 1) { $check = mysql_query("SELECT email FROM players WHERE email='".mysql_real_escape_string($_POST['email'])."'"); if(mysql_num_rows($check)){ echo "<font color=red size=-1><center>E-Mail already in use.Choose another one.</font> <form action='prefs.php?act=AccountSetup' method='post'> <input type='submit' value='Continue' /> </form></center>"; exit($end->page()); } $code = rand(1000000000,9000000000); mysql_query("INSERT INTO email_confirm VALUES ('{$them['UserID']}', '{$_POST['email']}', '$code', '0')"); $to = "".$_POST['email'].""; $subject = "Criminals Nightmare Email Activator"; $from = "[email protected]"; $headers = "From: $from\r\n"; $headers .= "Content-type: text/html\r\n"; $message = '<html> <body bgcolor="#999999" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <center><table width="625" cellpadding="0" cellspacing="0" border="0"> <tr> <td colspan="5" align="left" bgcolor="#999999" style="font-size: 10px;"> Learn more about the latest specials for Criminals Nightmare.</td> <td colspan="3" align="right" bgcolor="#999999" style="font-size: 10px;"></td> </tr> <tr> <td colspan="8"> <img src="http://criminals-nightmare.com/mesi/topimage.jpg" width="635" height="137" alt="Criminals Nightmare" style="display: block;"></td> </tr> <tr> <td bgcolor="#999999" color="#232323" style="margin: 3px;"> <center><a target="_blank" href="http://www.criminals-nightmare.com/login.php" style="color: #373737; font-weight: bold;"><h3>LOGIN HERE</h3></a></center> <center>__________________________________________ ________________________________________________</center> Your code to activate your account is.. <h3><b>'.$code.'</b></h3> Enter this code inside the game on Account Setup. <center>__________________________________________ ________________________________________________</center> </td> </tr> </table></center> </body> </html>'; if(mail($to, $subject, $message, $headers)) { echo "Email has been sent to (".mysql_real_escape_string($_POST['email']).") with a code.<form action='prefs.php?act=AccountSetup' method='post'> <input type='submit' value='Enter Code' /> </form>"; } else { echo 'Email could not be sent.'; } }
  16. if(mail()) { mail sent } else { mail not sent } Try that if the email is not in your spam folder.
  17. Ha, mtg.. your come back.. on your 1000th post :P http://makewebgames.io/showthread.php/32459-v2-CSS-Administration-System-10 -> Link to CSS Admin System
  18. Clearly, you might have some issue with me..so.. to the point.. because i pointed out a possible flaw/vulnerability, you take it offensive to say the OP is not using MCCode's and by all means trying to argue that statement? Sheesh.. Thats bad.. When you've worked with mccode's and moved to a complete new standard & methods, you can clearly see when MCCode's is being used or not. I like to amuse people :), rather be wierd, than be boring :D
  19. I can't prove he is using McCodes, but i can guarantee 95% that, that script is meant for MCCodes. What's your guarantee he is not using McCodes? I am happily fine to continue :)
  20. Until you can prove he doesn't use MCCode, your argument is invalid. So keep quiet until then.
  21. `userpass` gives it all way he is using MCCode's. I might be "assuming" the he is using mccode's, but your method is incorrect. You don't even think of vulnerabilities. The primary key for the users table is `userid` as i said here:     Then again, seems like I'm arguing with a bunch of nitwit's that think the security only lies within certain parameters. (On exception 2 people from this thread). Or do you mind explaining your preferred method of use for this situation, with in mind that the OP is not using mccode's and we are unsure if the email address is unique or not, ontop of that, the possibility of 2 accounts having the same email address. Please.
  22. Octarine, just explaining that specific scenario, obviously if found an SQL Exploit, much more damage than just changing the email address can be done. I agree to use the primary key, if i see the rest of the script would be easier. However, in this case. The email field is NOT (by my knowledge) a primary key and shouldn't be treated as one. Primary key (being the users ID) would be the best solution in this case.
  23. Firstly, never assume. Secondly, MCCode does not use indexing properly, thus the email field is not even considered to be unique. - And, who's to say the OP/Admin didnt set up a demo account with their same email address? Login name is clearly the $lname variable.   if($dbemail == $email AND $dblname == $lname) { # Everything checks out, continue. $password = mt_rand(10000,20000); $passnew = md5($password); try { if(mysql_query('UPDATE `users` SET `userpass` = "'.$passnew.'" WHERE `email` = "'.$email.'" AND `login_name` = "'.$lanme.'"')) { if(mysql_affected_rows()) { echo '<p>Password has been successfuly updated.</p>'; } else { echo '<p>Some records do not match this account. Please try again.</p>'; } } else { throw new Exception('MYSQL Error: '.mysql_error()); } } catch(Exception $e) { echo '<p>Caught Exception:</p><br />'.$e->getMessage(); } }   NOT TESTED.   @DJK: Think of this scenario. I manage to gain access to an SQL exploit, i hereby change your email address to mine. I request a forgot password to my email address for my account. Everything matches up. Your account password is now my new password, my password is also the new password. Figure out your login name, and im into your account. But that's a bit to much of a work around to get into the admin's account. But then again, what if you had a demo admin account. You'd realize that i am new to the staff list. But you won't realize i have access to the demo admin account. From there, i can keep on screwing up, while you "assume" the attack is from another place.
  24. DJK, what if somewhere in the system there is 2 user accounts with the same email but not login name? You will have 2 affected row's meaning, you will be displaying to the user their password could not be updated. So kindly make sure where email is one being submitted and login name is one being submitted.
  25. Like he has to care if you read it.. or not..
×
×
  • Create New...