Jump to content
MakeWebGames

AlabamaHit

Members
  • Posts

    1,308
  • Joined

  • Last visited

Everything posted by AlabamaHit

  1. Re: Strange Ip problem i added it to viewuser.php.
  2. Re: Strange Ip problem lol Thanks....I didn't echo it, lol...thats why.. Once strange thing... It makes everyones IP mine............ i used echo getip(); any ideas....
  3. Re: Strange Ip problem might sound crazy..... But how would i call the function? I tried to use it but ip comes blank so i know im diong it wrong, lol
  4. Re: [mccodes V2] Donation Mod. simplest fix would be make it verify the data coming back from pay pal....Like price for example.
  5. Re: [mccodes v2] Jail Bust Offer [$5.00] [email protected] <---- Not MSN thats yahoo, lol [email protected] <--- thats MSN
  6. Re: Ip check print "You have signed up, enjoy the game. > Login"; <---You just missed that "; thats why you got error } $db->query("SELECT * FROM users WHERE lastip='$ip'"); if(mysql_num_rows($a) > 0) { event_add(1,'<font color="red">' IP match found for '.['$IP].'); }
  7. Re: [mccodes v2] Jail Bust Offer [$5.00] lol, I think we all have our moments.
  8. Re: [mccodes v2] Jail Bust Offer [$5.00] Where doyou see 10.......its $5, lol
  9. Re: [mccodes]Updated Education http://criminalexistence.com/ceforums/i ... ic=16666.0
  10. Re: [mccodes]Updated Education sounds like you have v2 that mod was made for v1 you need to do some minor changest o get it to v2
  11. Re: GRPG Exploits - Help needed there ya go :-D Killah can help he probarly knows exactly what they are doing. Seems he has expericence with it ;)
  12. Re: [mccodes v2] Jail Bust Offer [$5.00]   u m
  13. Re: [mccode V2]Loan Office $5   u m
  14. Re: [Mccodes v2] Voting System ($15)   u m
  15. Re: [v2] If course done? The code I gave does work... I have tested it. And if your not talking about making them not be able to see the page when in a course already, then im sorry,thats what i undstood from it.......
  16. Re: GRPG Exploits - Help needed not familiar with game....but im sure its gong to be about the same. just check all the inputs......like the cmarket on mccodes...... sorry for the vagueness of this post, but its kinda vague itself lol....and grpg engine in mccocdes section loll.....just messing with ya :)
  17. Re: [mccode] Staff Positions Mod Yeah...but I have heard that opening and closing PHP tags are slower lol but in a case like this where the whole page is html don't know. lol
  18. Re: [mccode] donator day market for v2   <?php include_once("globals.php"); print "<h3>Donator Day Market</h3>"; $_GET['ID'] = abs(@intval($_GET['ID'])); $_GET['action'] = isset($_GET['action']) && is_string($_GET['action']) ? strtolower(trim($_GET['action'])) : ""; switch($_GET['action']) { case "buy": crystal_buy(); break; case "remove": crystal_remove(); break; case "add": crystal_add(); break; default: ddmarket_index(); break; } function ddmarket_index() { global $db,$ir,$c,$userid,$h; echo "[url='ddmarket.php?action=add']> Add A Listing[/url] Viewing all listings... <table width=75% cellspacing=1 class='table'> <tr style='background:red'> <th>Adder</th> <th>Qty</th> <th>Price each</th> <th>Price total</th> <th>Links</th> </tr>"; $q = $db->query("SELECT dd.*, u.userid, u.username FROM ddmarket dd LEFT JOIN users u ON u.userid = dd.ddADDER ORDER BY ddPRICE/ddQTY ASC"); while($r=$db->fetch_row($q)) { if($r['ddADDER'] == $userid) { $link = "[url='ddmarket.php']Cannot Remove[/url]"; } else { $link = "[url='ddmarket.php?action=buy&ID={$r[']Buy[/url]"; } $each = (int) $r['ddPRICE'] / $r['ddQTY']; echo "<tr>"; echo sprintf("<td>[url='viewuser.php?u=%u']%s[/url] [{$r['userid']}]</td>",($r['userid']),($r['username'])); echo sprintf("<td>%u</td>",($r['ddQTY'])); echo "<td> \$" . number_format($each)."</td>"; echo "<td>\$".number_format($r['ddPRICE'])."</td>"; echo sprintf("<td>[%s]</td> </tr>"($link)); } echo "</table>"; } function crystal_remove() { global $db,$ir,$c,$userid,$h; $q = $db->query(sprintf("SELECT * FROM ddmarket WHERE ddID = %u AND ddADDER = %u",($_GET['ID']),($userid))); if(!$db->num_rows($q)) { echo "Error, either these dd do not exist, or you are not the owner. [url='ddmarket.php']> Back[/url]"; $h->endpage(); exit; } $r = $db->fetch_row($q); $db->query(sprintf("UPDATE users SET donatordays = donatordays + %u WHERE userid = %u",($r['ddQTY']),($userid))); $db->query(sprintf("DELETE FROM ddmarket WHERE ddID = %u",($_GET['ID'])); echo "dd removed from market! [url='ddmarket.php']> Back[/url]"; } function crystal_buy() { global $db,$ir,$c,$userid,$h; $q = $db->query(sprintf("SELECT * FROM ddmarket dd WHERE ddID = %u",($_GET['ID'])); if(!$db->num_rows($q)) { echo "Error, either these dd do not exist, or they have already been bought. [url='ddmarket.php']> Back[/url]"; $h->endpage(); exit; } $r = $db->fetch_row($q); if($r['ddPRICE'] > $ir['money']) { print "Error, you do not have the funds to buy these dd. [url='ddmarket.php']> Back[/url]"; $h->endpage(); exit; } $db->query(sprintf("UPDATE users SET donatordays = donatordays + %u, money = money - %u WHERE userid = %u",($r['ddQTY']),($r['ddPRICE']),($userid))); $db->query(sprintf("DELETE FROM ddmarket WHERE ddID = %u",($_GET['ID']))); $db->query("UPDATE users SET money = money + %u WHERE userid = %u",($r['ddPRICE']),($r['ddADDER']))); event_add($r['ddADDER'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] bought your {$r['ddQTY']} Donator Days from the market for \$".number_format($r['ddPRICE']).".",$c); echo printf("You bought the {$r['ddQTY']} dd from the ",($r['ddQTY'])); echo "market for \$".number_format($r['ddPRICE'])."."; } function crystal_add() { global $db,$ir,$c,$userid,$h; $_POST['amnt'] = abs((int) $_POST['amnt']); $_POST['price'] = abs((int) $_POST['price']); if($_POST['amnt']) { if($_POST['amnt'] > $ir['donatordays']) { die ("You are trying to add more donator days to the market than you have. [url='ddmarket.php']> Back[/url]"); } $tp = $_POST['amnt'] * $_POST['price']; $db->query(sprintf("INSERT INTO ddmarket VALUES('', %u, %u, %u)",($_POST['amnt'],($userid),($tp))); $db->query(sprintf("UPDATE users SET donatordays = donatordays - %u WHERE userid = %u",($_POST['amnt']),($userid))); echo "dd added to market! [url='ddmarket.php']> Back[/url]"; } else { print "[b]Adding a listing...[/b] "; echo sprintf("You have [b]%u[/b] donator ",($ir['donatorydays'])); echo "days that you can add to the market."; echo "<form action='ddmarket.php?action=add' method='post'>"; echo "<table width=50% border=2>"; echo "<tr>"; echo "<td>Donator days:</td>"; echo sprintf("<td><input type='text' name='amnt' value='%u' /></td>",($ir['donatordays'])) echo "</tr><tr>"; echo "<td>Price Each:</td>"; echo "<td><input type='text' name='price' value='200' /></td>"; echo "</tr><tr>"; echo "<td colspan=2 align=center><input type='submit' value='Add To Market' /></td>"; echo "</tr></table></form>"; } } $h->endpage(); ?>   I just took a post from here. and added a little.................Never tested this....
  19. Re: mccodes V2] Upgrade IPFINDER original Script by Magicaltallguy I noticed that this works as well..   $IP = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
  20. Re: [v2] If course done? if($ir['cdays'] > 0) { die(""); }
  21. Re: Cron Hour Gang Crimes   $db->query("UPDATE gangs SET gangCHOURS=gangCHOURS-1 WHERE gangCRIME>0 AND gangCHOURS > 0");
  22. Re: Changing Header.php V2 search the forums. I have explained this already...
  23. Re: Mccodes sql injection you must be crazy to think smeone is going to send you a "game hack/exploit" tahts just stupid. There are post on here to help you block on site. So um....no we are not telling you the exploit so you can go expoit games. You don't need to know the expoit to block it. you just need to konw where. thats all if tahts what you want you beter say it differntly..
  24. Re: Cron Hour Gang Crimes If you ain't going to use the damn search.. Why the hell would I use it for you..?
  25. Re: V2 Education days go negative   $q=$db->query("SELECT * FROM users WHERE cdays=0 AND course > 0"); while($r2=$db->fetch_row($q2))   change to   $q=$db->query("SELECT * FROM users WHERE cdays=0 AND course > 0"); while($r=$db->fetch_row($q))
×
×
  • Create New...