Jump to content
MakeWebGames

Haunted Dawg

Members
  • Posts

    2,933
  • Joined

  • Last visited

    Never
  • Days Won

    1

Everything posted by Haunted Dawg

  1. All of us need some help in some time. But this is not for people who will say check over your code. Im sure i am pretty into it but ive got a slight problem. So its got to do with array's and etc.   <?php $array = array(1 => "Exploring", 2 => "Home", 3 => "Items", 4 => "Checking Mail", 5 => "Checking Events", 6 => "Training", 7 => "Training Donator", 8 => "Criminal Grounds", 9 => "Doing Crime", 10 => "Searching Streets", 11 => "Checking Announcements", 12 => "At Your Job", 13 => "At School", 14 => "At The Hospital", 15 => "At The Jail", 16 => "At The Forums", 17 => "Reading Newspaper", 18 => "TESTING"); $loop = array("explore.php","index.php","inventory.php","mailbox.php", "events.php","gym.php","gym2.php","criminal.php","docrime.php", "streets.php","announcements.php","job.php","education.php", "hospital.php","jail.php","forums.php","newspaper.php","/test.php"); $count = count($loop); $n = -1; $page_e = $_SERVER['PHP_SELF']; if(in_array($page_e, $loop)) { while($n > $count) { $n++; $page = $loop[$array[$n]]; } } ?>   Thanks
  2. Re: My forgot password. [v2] & [v1]   I don't think you are funny. Keep your comment's to your self. And don't you have a game you should be running? Rather than posting something so pathetic. Lately all your post's has just been containing 2 - 8 words.
  3. Re: My forgot password. [v2] & [v1] Oh yh lol i dont use the top part but put another ) after the first if statement. so:   if(file_exist("config.php")) { include("config.php"); } else { ### UPDATE IF USING v1 ### $_CONFIG['username'] = "Your cpanel password"; $_CONFIG['password'] = "You cpanel password"; $_CONFIG['database'] = "Your game database"; }
  4. Here is my forgot password system, i just finished making it for my game www.rapid-riot.com It works for v1 & v2 only thing that needs to be edited is whats bellow the ### tags. Thanks.   <?php if(file_exist("config.php")) { include("config.php"); } else { ### UPDATE IF USING v1 ### $_CONFIG['username'] = "Your cpanel password"; $_CONFIG['password'] = "You cpanel password"; $_CONFIG['database'] = "Your game database"; } mysql_connect('localhost',$_CONFIG['username'],$_CONFIG['password']); mysql_select_db($_CONFIG['database']); if($_POST['email']) { $_POST['email'] = htmlentities($_POST['email']); $_POST['username'] = htmlentities($_POST['username']); if($_GET['username']) { $search_users = mysql_query("SELECT * FROM users WHERE login_name='".$_POST['username']."'") or die(mysql_error()); if(mysql_num_rows($search_users) == 0) { echo 'There is no user\'s with that login name.'; exit; } } $search_email = mysql_query("SELECT * FROM users WHERE email='".$_POST['email']."'") or die(mysql_error()); if(mysql_num_rows($search_email) == 0) { echo 'No user\'s with this email.'; exit; } $password = rand(10000,20000); $fetch_data = mysql_fetch_assoc($search_email); $username = $fetch_data['username']; $body = "Welcome to Rapid - Riot automated email.\n\nYour password is: ".$password."\nYour login name is: ".$fetch_data['login_name']."\n\nPlease login at [url]http://www.rapid-riot.com[/url]. Enjoy\n\nYour's sincerly Rapid - Riot Staff."; $subject = "Your Forgotten Password"; $email = $fetch_data['email']; $from = "From: Rapid - Riot Automated Email <[email protected]>"; mail($email, $subject, $body, $from); mysql_query("UPDATE users SET userpass='".md5($password)."' WHERE login_name='".$_POST['username']."' AND email='".$_POST['email']."'") or die(mysql_error()); echo 'Mail has been sent. Please check your spam box also.'; exit; } echo '<form action="?act=FPass" method="post"> Email: <input type="text" name="email"> Login Name: <input type="text" name="username"> <input type="submit" value="Submit"> </form>'; ?>   DO NOT GO CHANGE SOME TEXT AND SAY IT IS YOURS!
  5. Re: Help Easy, you insert your own config.php provided from the source. look for file config.php. Create your database, run sql. And done. Could be done under 5 minutes if you knew what you were doing but like you i would say about 10 minutes.
  6. Re: Help I dont use the installer.php best to install it your self.
  7. Re: To all who read this board. never said the name...
  8. Re: To all who read this board. Y: you M: may N: now P: post
  9. Re: FaceBook How is facebook for adult's? Not no where have i seen 18+. Unless you trying to add an appi.
  10. To all whom it may concern. I am finding it annoying how some of you use some of my freebies and change some text on it or make it into some thing different. What i find annoying is that you people say you coded it, its not mine, its coppied from some where else. I dont mind people using my freebies, but please atleast post that where it came from befor.
  11. Re: Kill A Gangster [v2]   <?php include("globals.php"); echo '<h1>Brothel</h1>'; #### Prices ##############Bellow is females ok ############Bellow is the males ### $prices = array("##FEMALES##",'500','700','900','400',"##MALES##",'500','600','800','700'); if($_GET['act']) { $will = rand(1,5); $cost = abs(@intval($_POST['price'])); mysql_query("UPDATE users SET will=will+".$will.",money=money-".$cost." WHERE userid=".$ir['userid']) or die(mysql_error()); mysql_query("UPDATE users SET will=maxwill WHERE will>maxwill") or die(mysql_error()); echo 'You payed '.$_POST['who'].' '.money_formatter($cost).' to sleep with them, you gain '.$will.'% will.'; $h->endpage(); exit; } else { echo '<h3>Woman:</h3> <table border="1" cellspacing="0" class="table" width="50%"> <tr> <th>Name</th> <th>Price</th> <th>Rent</th> </tr> <tr> <td>Roxy</td> <td>'.money_formatter($prices[1]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="roxy"><input type="hidden" name="price" value="'.$prices[1].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Kelly</td> <td>'.money_formatter($prices[2]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Kelly"><input type="hidden" name="price" value="'.$prices[2].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Shanique</td> <td>'.money_formatter($prices[3]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Shanique"><input type="hidden" name="price" value="'.$prices[3].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Rhonda</td> <td>'.money_formatter($prices[4]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Rhonda"><input type="hidden" name="price" value="'.$prices[4].'"><input type="submit" value="Rent"></form></td> </tr> </table> <h3>Men:</h3> <table border="1" cellspacing="0" class="table" width="50%"> <tr> <th>Name</th> <th>Price</th> <th>Rent</th> </tr> <tr> <td>Bill</td> <td>'.money_formatter($prices[6]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Bill"><input type="hidden" name="price" value="'.$prices[6].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Marcus</td> <td>'.money_formatter($prices[7]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Marcus"><input type="hidden" name="price" value="'.$prices[7].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Greg</td> <td>'.money_formatter($prices[8]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Greg"><input type="hidden" name="price" value="'.$prices[8].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Sam</td> <td>'.money_formatter($prices[9]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Sam"><input type="hidden" name="price" value="'.$prices[9].'"><input type="submit" value="Rent"></form></td> </tr> </table>'; } $h->endpage(); ?>   All i can see is you took some code away, changed some text. and that's it, you say you copied from other mod's. Do i have to prove everyone wrong at times?
  12. Re: Kill A Gangster [v2] This is actualy my mod you added some bits & pieces!
  13. Re: Kill A Gangster [v2] You serious? You edited my version of the brothel & this mod does not even kill any one!
  14. Re: miniNEAB 3.0 released How much is this script?
  15. Hello, who has got facebook and would like to join my mob? We can create a big mob and take over FB :D
  16. Re: 8 Lines to secure your site from known sql injections. No, it stop's cmarket.php, donator market(if you have), car market(if you have), forums, gang market(if you have).
  17. Re: 8 Lines to secure your site from known sql injections. Yh most probly no wonder use this then:   $count = 1; $x = -1; while($x < $count) { $places_to_be_secured = array("ID"); $x++; $_GET[$places_to_be_secured[$x]] = abs(@intval($_GET[$places_to_be_secured[$x]])); }   And you say you coded most of the forums your self, you should put the $_GET['']'s into the array.
  18. Re: 8 Lines to secure your site from known sql injections. my forums do, do you have a differnt type of forums? :|
  19. Re: 8 Lines to secure your site from known sql injections. @ the hacker07: i keep posting new ways & better ways to secure your site from known sql injections. I posted the $_GET['ID'] = abs(@intval($_GET['ID'])); , and not to mention by finding new sql injections using that way you will end up having lets say 15 lines. It will take longer to load. I there for use this method from now on since it is quicker & easier. @ dementor: It's really not my fault you dont know how to add it. Hell why did u put it in forums? and atleast the sql exploiters wont be able to get the information they required.
  20. Re: 8 Lines to secure your site from known sql injections. You know the cmarket exploit? forum exploit x2? well it will secure it.
  21. Re: 8 Lines to secure your site from known sql injections. Secure's your site from known sql injections.
  22. Yes 8 lines!!! Easy add this to header.php $count = 3; $x = -1; while($x < $count) { $places_to_be_secured = array("ID","viewforum","viewtopic"); $x++; $_GET[$places_to_be_secured[$x]] = abs(@intval($_GET[$places_to_be_secured[$x]])); } Ok so if you find more sql injections just update the 3 at the top and change the array.
  23. Re: lost cron code Yes it will work like that. You can change the cron code when ever you feel like.
  24. Re: lost cron code Now you could always just change the cron code in the config.php file. No other place's need the code in config.php
  25. Re: lost cron code Easy, look at your cron tabs where you insert it, now then look at ?code=XXXXX and copy XXXX and put it into your config.php file.
×
×
  • Create New...