Jump to content
MakeWebGames

Razor42

Members
  • Posts

    863
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Razor42

  1. Use Firefox until recently but use Chrome now
  2. People that want everything for free. People who have no ambitions or drive. When I'm trying to watch porn and the video won't load. When the porn video isn't long enough. People that copy other people. Food that's past it's sell by date but everyone insists on telling me it's fine to eat. Running out of money 3 days after pay day and being like ***?! And alot of other things.....
  3. if ($ir['fedjail'] => 1) { //file goes in here } else { print "You are not allowed to access here."; }
  4. Razor42

    Securing $_POST

    So I have been working on the system and have done some security on it.... The form still remains... echo "Fill in the form below to recruit a new hoe. It costs 1000 Gold coins to hire a hoe.<br /><br /> <form action='brothel.php?action=recruit_sub' method='post'> Name: <input type='text' name='hname' /><br /> Age: <input type='text' name='hage' /><br /> Skin Color: <input type='text' name='hcolor' /><br /> Speciality: <input type='text' name='hspec' /><br /> <input type='submit' value='Recruit' /></form><br /><br /> <a href='brothel.php'>Go back to brothel</a>";   And then.... if (empty($_POST['hname']) || empty($_POST['hage']) || empty($_POST['hcolor']) || empty($_POST['hspec'])) { echo "You have missed one or more fields. Please go back and try again.<br /> <a href='brothel.php?action=open'>Go back</a>"; $h->endpage(); exit; } if($ir['goldcoins'] < 1000) { echo "You don't have enough Gold Coins<br /> <a href='brothel.php'>Go back to brothel</a>"; $h->endpage(); exit; } echo "Your hoe was created<br /> <a href='brothel.php'>Go back to brothel</a>"; $_POST['hname'] = mysql_real_escape_string($_POST['hname']); $_POST['hage'] = (int)$_POST['hname']; $_POST['hspec'] = mysql_real_escape_string($_POST['hname']); $_POST['hcolor'] = mysql_real_escape_string($_POST['hname']); $db->query("INSERT INTO hoes VALUES('', $userid, '{$_POST['hname']}', '{$_POST['hage']}', 0, 1, '{$_POST['hspec']}', '{$_POST['hcolor']}')"); $db->query("UPDATE users SET goldcoins=goldcoins-1000 WHERE userid=$userid");
  5. Razor42

    Securing $_POST

    I know that this could be done via mysql_real_escape_string but according to PHP.net this is deprecated as of PHP 5.5.0 so what alternative could I use?
  6. Razor42

    Securing $_POST

    Hi there, I am currently creating a mod and have used quite alot of $_POST's around the mod and want to know how these can be secured and when they need to be secured. Small example of form....: echo "Fill in the form below to recruit a new hoe. It costs 1000 Gold coins to hire a hoe.<br /><br /> <form action='brothel.php?action=recruit_sub' method='post'> Name: <input type='text' name='hname' /><br /> Age: <input type='text' name='hage' /><br /> Skin Color: <input type='text' name='hcolor' /><br /> Speciality: <input type='text' name='hspec' /><br /> <input type='submit' value='Recruit' /></form><br /><br /> <a href='brothel.php'>Go back to brothel</a>";   Then entering into DB.... $db->query("INSERT INTO hoes VALUES('', $userid, '{$_POST['hname']}', '{$_POST['hage']}', 0, 1, '{$_POST['hspec']}', '{$_POST['hcolor']}')");   Is this insecure? If so why? How would it be secured? Thanks in advance.
  7. I'll probably buy a copy of this later next month. I have this already but not as nice as this one, good job :)
  8. Well guest has set you on your way pretty well. Surly you can add the little extras in yourself?
  9. Oh right thanks.
  10. To charge the user 100 crystals simply do..   $db->("UPDATE users SET crystals=crystals-100 WHERE userid=$userid");   But why charge crystals when your giving them aswell?
  11. Ncie job, quick question...   mysql_query("TRUNCATE TABLE `random_items`");   What does TRUNCATE TABLE do?
  12. For the link do something like: <a href='reward.php'>Reward</a>   Then create a file called reward and add something along the lines of.... <?php include_once 'globals.php'; echo "<h2>Reward</h2>"; $creward = mt_rand(1,100); //amount of crystals they will recieve between 1 & 100 $mreward = mt_rand(1,100); //amount of money they will recieve between 1 & 100 $db->query("UPDATE users SET money=money+$mreward, crystals=crystals+$creward WHERE userid=$userid"); echo "You recieved {$creward} crystals and \${$mreward}."; $h->endpage(); ?>   This is just soemthing really simple to show you how it can be done, you'd need to add in some kind of limiter so players can't just sit and click it all day.
  13. And damnnn I wanted this!
  14. If its not gone by the me for next week ill give you $50 for it :).
  15. I will do that for you tomorrow mate.
  16. Lee Mason designed this layout and Peter coded it.
  17. I have a gangster themed layout for sale. It’s fully coded and comes with all the images and the PSD. Looking for bids and a quick and easy sale so PM me or post here if you’re interested. Can be viewed at: http://www.razorwebdesings.post2host.co.uk/GangLayout/
  18. I have a few mods out that ill upload free and paid and I have 2 mods in the works that will be released as paid mods.
  19. Took me 5 mins to add mobile donations to my game, one simple copy and past of an html code :)
  20. Yeah, betting for swaps, money, crystals etc would be the main feature really otherwise no point in fighting them :)
  21. dog fighting system would be nice
  22. Thanks Ian, Would I do is so the report is inputted instantly into the reports page when the spy is hired but you can’t view it until the time has hit zero or would there be a more logical way of doing it? This seems the best way to me.
  23. I have now got it so you can hire the spy and it deducts money and adds the time it will take to do this. I am now thinking of how I am going to do it so when that time hits 0 you receive an event saying your report is ready go view it, any ideas?
  24. Been doing bits and bats here and there on this mod, here are some screenshots of what's done so far: [ATTACH=CONFIG]1038[/ATTACH] [ATTACH=CONFIG]1037[/ATTACH] [ATTACH=CONFIG]1039[/ATTACH]
  25. Still looking to sell...
×
×
  • Create New...