Jump to content
MakeWebGames

bling

Members
  • Posts

    66
  • Joined

  • Last visited

    Never

bling's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: So many of one? I feel the same way that is was i don't post mods on here just help some times lmao but in a way its funny to see 10 of the same mods but only have like a few simple {$ir['somethings']} added to it and bang a new version as been made lol but wouldn't that just be edit to and to top it off most of the time they just take off the credits from the top and say its theirs and that they made it but this i why only a few real coders post anything on here all the stealing of code and here say
  2. Re: [mc codes lite] User Credit Card Companys i test this out few few mins ago and come too how do other get loans when the no link to get a loan only start a ccard Company
  3. Re: [mccode] 8 Lines to secure your site from known sql injections. Nyna do you think what i have posted can help ?
  4. Re: [mccode] 8 Lines to secure your site from known sql injections. this will help some add this to your globals function cleanQuery($string) { if(get_magic_quotes_gpc()) // prevents duplicate backslashes { $string = stripslashes($string); } if (phpversion() >= '4.3.0') { $string = mysql_real_escape_string($string); } else { $string = mysql_escape_string($string); } return $string; } you can use the filtering the Query // if you are using form data, use the function like this: if (isset($_POST['itemID'])) $itemID = cleanQuery($_POST['itemID']); // you can also filter the data as part of your query: SELECT * FROM items WHERE itemID = '". cleanQuery($itemID)."' " i know not all of you will get how this works or some thing like function cleanQuery($value="",$filter_type="basic",$data_type="array") { if($data_type=="array") { foreach($value as $x=>$y) { switch($filter_type) { case 'basic': //filter out slashes from a post/get/cookie $retvar[$x]=stripslashes($y); break; case 'dbencode': //encode db data using mysql_escape_string $retvar[$x]=mysql_real_escape_string($y); break; case 'shellencode': //encode shell argument string data $retvar[$x]=escapeshellarg($y); break; case 'htmlencode': //encode for form display with htmlentities $retvar[$x]=htmlentities($y,ENT_QUOTES); break; } } } elseif($data_type=="string") { switch($filter_type) { case 'basic': //filter out slashes from a post/get/cookie $retvar=stripslashes($value); break; case 'dbencode': //encode db data using mysql_escape_string $retvar=mysql_real_escape_string($value); break; case 'shellencode': //encode shell argument string data $retvar=escapeshellarg($value); break; case 'htmlencode': //encode for form display with htmlentities $retvar=htmlentities($value,ENT_QUOTES); break; } } return $retvar; }
  5. Re: [mccode] Crimes give random money   <?php $macropage="docrime.php?c={$_GET['c']}"; include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } $_GET['c']=abs((int) $_GET['c']); if(!$_GET['c']) { print "Invalid crime"; } else { $q=$db->query("SELECT * FROM crimes WHERE crimeID={$_GET['c']}",$c); $r=$db->fetch_row($q); if($ir['brave'] < $r['crimeBRAVE']) { print "You do not have enough Brave to perform this crime."; } else { $ec="\$sucrate=".str_replace(array("LEVEL","CRIMEXP","EXP","WILL","IQ"), array($ir['level'], $ir['crimexp'], $ir['exp'], $ir['will'], $ir['IQ']),$r['crimePERCFORM']).";"; eval($ec); print " [b]{$r['crimeITEXT']}[/b]"; $ir['brave']-=$r['crimeBRAVE']; $db->query("UPDATE users SET brave={$ir['brave']} WHERE userid=$userid",$c); if(rand(1,100) <= $sucrate) { print str_replace("{money}",$r['crimeSUCCESSMUNY'],"<font color='green'> [b]{$r['crimeSTEXT']}[/b] </font>"); $muny = rand($r['crimeMINMONEY'],$r['crimeMAXMONEY'])); $ir['money']+=$muny; $ir['crystals']+=$r['crimeSUCCESSCRYS']; $ir['exp']+=(int) ($r['crimeSUCCESSMUNY']/8); $db->query("UPDATE users SET money={$ir['money']}, crystals={$ir['crystals']}, exp=exp+{$r['crimeXP']},crimexp=crimexp+{$r['crimeXP']} WHERE userid=$userid",$c); $db->query("INSERT INTO `criminalrecord` (`crID`, `crCRIME`, `crUSER`, `crRESULT`) VALUES ('', '$_GET[c]', '$userid', '1');",$c); if($r['crimeSUCCESSITEM']) { item_add($userid, $r['crimeSUCCESSITEM'], 1); } } else { if(rand(1, 2) == 1) { print "<font color='orange'> [b]{$r['crimeFTEXT']}[/b] </font>"; } else { print "<font color='red'> [b]{$r['crimeJTEXT']} {$r[crimeJAILTIME]} minutes.[/b] </font>"; $db->query("UPDATE `users` SET `jail` = '$r[crimeJAILTIME]', `jail_reason` = '$r[crimeJREASON]' WHERE `userid` = '$userid'"); $db->query("INSERT INTO `criminalrecord` (`crID`, `crCRIME`, `crUSER`, `crRESULT`) VALUES ('', '$_GET[c]', '$userid', '0');",$c); } } print " [url='docrime.php?c={$_GET[']Try Again[/url] [url='criminal.php']Crimes[/url]"; } } $h->endpage(); ?> try this docrime.php tested works
  6. Re: [mccode] Crimes give random money this $muny=(int) (rand($r['crimesMINMONEY'],$r['crimesMAXMONEY'])); needs to be $muny= rand($r['crimeMINMONEY'],$r['crimeMAXMONEY']);
  7. Re: [mccode] Crimes give random money never mind find it out
  8. Re: [mccode] Crimes give random money ok this might be a little bit off topic but how can i go about to show the Username just like the {money} i have tryed many diff way but it seems it dos not want to show the username can anyone help?
  9. Re: [showcase] D4rk-Forces ok i have updated the hole look of d4rk forc3s let me know what you think of it
  10. Re: [mccode v2] Organizations & Productions lol you don't get it i did read all the code but i also tested and i see when you first go to it the table repeats itself 3 times and when you go to buy it will tell you you don't have enough space
  11. Re: [mccode v2] Organizations & Productions looks to me as if this will not work like this for most lol   $space = $s['tsspace']; because it do's not know where to call it from see you got it in the start of the page <?php //This script was made by illes ignath (a.k.a ishmell) //Please do not delete this credit. //Feel free to edit the script however you may please. //This is just version 2.0 and ill be sure to add more features to it over time. //Thats all for now, I hope you enjoy it. require "globals.php"; global $db,$c,$ir, $set; $totaltroops = $s['bodyguards']+$s['hustlers']+$s['bootleggers']+$s['whores']; $space = $s['tsspace'];--------------here---------- $usersid= $ir['userid'];   so how are the player going to have space
  12. Re: [showcase] D4rk-Forces Thank you Casanova for your reply
  13. Re: [showcase] D4rk-Forces lol well i like the name and is why i bought it and named the game it bro lol and also the game is now open let me know what you all think of it
  14. Re: Basic Stock Market [V2] im not using v1 lol
  15. Re: Basic Stock Market [V2] when i tried it it would not up date a stock and also if the stock hit 0 people could of bought it for 0 and bought millions of the stock also i added it so that it updates a different stock but only one at a time
×
×
  • Create New...