Jump to content
MakeWebGames

jds137

Members
  • Posts

    402
  • Joined

  • Last visited

Everything posted by jds137

  1. Re: [FREE][V2] Club Mod (my version) This line causes an error: I added it, but when you leave the club, it doesnt remove the 1 saying you are not there. Which in turn causes all my pages where that is used to have the main content move down and to the left under my menu's.
  2. Re: [v1] Rich Uncle Ill comment. I like it, and used it. I just added more security, and the ability to access it once a week, not day.
  3. Re: My Orginization & My Production (V2) I will test it and let you know how it works. for the scripts, dont you think you need to add some sql injection protection:
  4. Re: [v2]Casino[v2] I tried, it and found out it was really buggy. 2 thumbs down
  5. Re: Basic Stock Market [V2] You know what, I agree. I tried out the mod since the day it was posted, and watching it I learned, anything involving cash is really exploitable. The stock market, being one of the big ones. I had a player show me his 1 trillion shares, he got in a 24 hour period. Think before you add this...
  6. Re: Basic Stock Market [V2] I decided to just take it out, till some one gets it working better.
  7. Re: [MOD] Auto Hide Game Pages Cant we all just get along?
  8. Re: Basic Stock Market [V2] I have been trying it out, and adding all the new updates, but one thing I noticed was this:  
  9. Re: Improved Delete User for V1!!! Heres V2, but mine has it so staff, and npc's cant be deleted.   function deluser() { global $ir,$c,$h,$userid,$db; if($ir['user_level'] != 2) { die("403"); } $undeletable = array('0','1','2','4','5','6','7','8','9','10','52'); // add more IDs here, such as NPCs switch ($_GET['step']) { default: echo "<h3>Deleteing User</h3> Here you can delete a user. <form action='staff_users.php?action=deluser&step=2' method='post'> User: ".user_dropdown($c,'user')." <input type='submit' value='Delete User' /></form> OR enter a user ID to Delete: <form action='staff_users.php?action=deluser&step=2' method='post'> User: <input type='text' name='user' value='0' /> <input type='submit' value='Delete User' /></form>"; break; case 2: $target = $_POST['user']; if (!is_numeric($target)) exit; if (in_array($target,$undeletable)) { die('You cannot delete this person.'); } $d=$db->query("SELECT username FROM users WHERE userid='$target'"); $itemi=$db->fetch_row($d); print "<h3>Confirm</h3> Delete user ".$itemi["username"]."? <form action='staff_users.php?action=deluser&step=3' method='post'> <input type='hidden' name='userid' value='$target' /> <input type='submit' name='yesorno' value='Yes' /> <input type='submit' name='yesorno' value='No' onclick=\"window.location='staff_users.php?action=deluser';\" /></form>"; break; case 3: $target = $_POST['userid']; if (!is_numeric($target)) exit; if (in_array($target,$undeletable)) { die('You cannot delete this person.'); } if($_POST['yesorno']=='No') { die("User not deleted. [url='staff_users.php?action=deluser']>Back to main Delete Users page.[/url]"); } if ($_POST['yesorno'] != ("No" || "Yes")) die('Eh'); $d=$db->query("SELECT username FROM users WHERE userid='$target'"); $itemi=$db->fetch_row($d); $db->query("DELETE FROM mail WHERE mail_from={$_POST['user']}",$c); $db->query("DELETE FROM itemmarket WHERE imADDER={$_POST['user']}",$c); $db->query("DELETE FROM crystalmarket WHERE cmADDER={$_POST['user']}",$c); $db->query("DELETE FROM users WHERE userid='$target'"); $db->query("DELETE FROM userstats WHERE userid='$target'"); $db->query("DELETE FROM inventory WHERE inv_userid='$target'"); $db->query("DELETE FROM fedjail WHERE fed_userid='$target'"); echo "User {$itemi['username']} Deleted. [url='staff_users.php?action=deluser']>Back to main Delete Users page.[/url]"; stafflog_add("Deleted User {$itemi['username']} [{$_POST['userid']}]"); break; }
  10. Re: [FREE][V2] Club Mod (my version) I like it, it is cool. Good Mod, I was thinking about something like this, but could not decide how to add it.
  11. Re: [V2] SafeHouse Its missing something lol :mrgreen: :roll:  
  12. Re: [V2] Libary If the following was added, would it limit book reading to once a day. Its a good mod, but I dont want someone spending a ton of money, and getting too smart too fast? And besides, we sell IQ DP packs, so we would lose in that aspect as well?       Cron add it to the day cron, to reset the books read   $db->query("TRUNCATE TABLE booksread_here;");
  13. Re: [v1] Travel to User Location button on profiles [FREE] I like it, and added it to www.mobslife.net One thing I did was added to donators only, as people wont use it, since its more expensive than the monorail. Another thing I added was you cant access from jail, or the hosp. I noticed on alot of scripts here that is missing, and if you type the script as a url, you can access it from both. And that is even when you are in either one.   <?php include "globals.php"; if($ir['donatordays'] == 0) { die("This feature is for donators only."); } if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } if($ir['money'] < 5000) { print "<center> <font color='red'>[b]ERROR:[/b]</font> You dont have enough money travel to this location. [url='viewuser.php?u={$_GET[']> Go Back[/url]"; $h->endpage(); exit(); } $ct=mysql_query("SELECT * FROM cities WHERE cityid='{$_GET['to']}'",$c) or die(mysql_error()); $to=mysql_fetch_array($ct); if($ir['level'] < $to['cityminlevel']) { print "<center> <font color='red'>[b]ERROR:[/b]</font> You cannot yet travel to this location. [url='viewuser.php?u={$_GET[']> Go Back[/url]"; $h->endpage(); exit(); } else { mysql_query("UPDATE users SET money=money-5000, location='{$_GET['to']}' WHERE userid=$userid",$c) or die(mysql_error()); print "<center>You have paid $5,000 and traveled to {$to['cityname']}. [url='viewuser.php?u={$_GET[']> Back to Users Profile[/url]"; $h->endpage(); exit(); } ?>
  14. Re: Page Tutorials [$5] Cool, thats really good to know. I had to ask, since there is so much he said she said here.
  15. Re: Page Tutorials [$5] How can people sell other people mods, that were given free? http://criminalexistence.com/ceforums/index.php?topic=24555.0
  16. Re: [V2] Ignore User Mail [V2] Worked like a charm :-o
  17. Re: [V2] Ignore User Mail [V2] Thanks. I know it will all be sorted out, as both of you are great at what you do .
  18. Re: [V2] Ignore User Mail [V2] I removed them on 3 of the lines, and still am receiving the error message.
  19. Re: [V2] Ignore User Mail [V2]   Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/ml/public_html/ignore.php on line 86
  20. Re: Basic Stock Market [V2] I started working on a stock portfolio, if anyone wants to help out? I assume it could work as well, for the staff seeing players stocks...   <?php include "globals.php"; print "<center><h3>Your Stock Portfolio</h3>"; $a=mysql_query("SELECT * FROM stock WHERE stOWNER=$userid",$c); print "<table width=75% border='1' cellpadding='3'> <tr bgcolor=gray> <th>Stock Name</th> <th>Price per Share (avg)</th> <th>Total Sell Price</th> <th>Your Shares</th> <th>Last Change</th> </tr>"; while($b=mysql_fetch_array($a)) { $q=mysql_query("SELECT * FROM stock WHERE stockid='{$b['stock']}'",$c); $r=mysql_fetch_array($q); $stockprice=$b['qty']*$r['price']; print "<tr align=center><td>{$r['usSTOCK']}</td><td>\${$r['stockprice']}</td><td>\$$usSHARES</td><td>{$b['qty']}</td><td>{$r['stockchange']}</td></tr>"; } print "</table>"; print " <h5>What would you like to do?</h5> [url='stockmarket.php']View Stockmarket[/url] [url='stockmarket.php?action=sell_stock']Sell Stock[/url] "; $h->endpage(); ?>
  21. Re: {MOD} Upload Item Pics Via admin panel + Create Description.. I followed it step by step, and do not see the pic. Heres a screen shot of what I get:
  22. Re: ADDON For Burn Down Users House Vr1 All we need now is a mod to really burn their house... lol
  23. Re: [V2] Ignore User Mail [V2] Great Job
  24. Here it is again, since some people here are not reading old posts. Nothing else is needed, just add to donator.php, and your all set. Well dont forget to change your pay pal info... lol It also lets you donate for other players.   <?php /*----------------------------------------------------- -- Donator Page For MC Code V2 -- Free Mod -- [url]http://www.mobslife.net[/url] -- By jsmigle -- Psycho Killa Entertainment -----------------------------------------------------*/ include "globals.php"; function escapeString($string) { if (get_magic_quotes_gpc()) $string = stripslashes($string); return mysql_real_escape_string($string); } $person = $userid; if(isset($_GET['person'])) { $person = abs((int) $_GET['person']); } $pdonate=mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE userid='".$person."'",$c)); $pname=$pdonate['username']; if(!$pname) { die("You selected a person that does not exist. Put the person's ID# in the box! <input type=\"button\" name=\"Button\" value=\"Back\" onClick=\"history.back()\" />"); } $for = "<font color='red'>[b]yourself[/b].</font>"; if($person!=$userid) { $for = "<font color='red'>[b]".$pname."[/b].</font>"; } print <<<EOF <script> var message = new Array() message[0] = "Thank"; message[1] = "You"; message[2] = "For"; message[3] = "Donating"; message[4] = "To"; message[5] = "Mobslife"; var reps = 1 var speed = 200 var p=message.length; var T=""; var C=0; var mC=0; var s=0; var sT=null; if(reps<1)reps=1; function doTheThing(){ T=message[mC]; A();} function A(){ s++ if(s>9){s=1} if(s==1){document.title='|D========| '+T+' -----'} if(s==2){document.title='|DO=======| '+T+' -----'} if(s==3){document.title='|DON======| '+T+' -----'} if(s==4){document.title='|DONA=====| '+T+' -----'} if(s==5){document.title='|DONAT====| '+T+' -----'} if(s==6){document.title='|DONATI===| '+T+' -----'} if(s==7){document.title='|DONATIO==| '+T+' -----'} if(s==8){document.title='|DONATION=| '+T+' -----'} if(s==9){document.title='|DONATIONS| '+T+' -----'} if(C<(9*reps)){ sT=setTimeout("A()",speed); C++ }else{ C=0; s=0; mC++ if(mC>p-1)mC=0; sT=null; doTheThing();}} doTheThing(); </script> <center> <h3>Donations</h3> [b][[url='willpotion.php']Buy Will Potions[/url]][/b] [b][[url='buypower.php']Buy 150 Power Bar[/url]][/b] [b]Please read our [url='donatortos.php']Donator Terms of Service[/url], last updated 08/10/08.[/b] [b]NOTE: [url='#']Read Note[/url][/b] You are currently donating for: $for <form action='donator.php' method='get'>Want to donate for someone else? No problem. Enter their user ID in the box and hit Go. <input type='text' name='person' size='5' maxlength='6'><input type='submit' value='Go'></form> Please look at this table to look into donating/actually donate. With all packs you will receive a friend/black list, advanced search, the donator icon next to your name, and much more in the future. <table class='table' width='75%' border='0' cellspacing='1' cellpadding='2'> <tr> <th>Pack Name</th> <th>Pack Cost</th> <th>Game Money</th> <th>Crystals</th> <th>IQ</th> <th>Donator Days</th> <th>Donate Now</th> </tr> <tr> <td>Starter's Pack <b style='color:blue;'>Buy this pack its a great deal![/b]</td> <td>$3.00 USD ([url='http://www.xe.com/ucc/convert.cgi?Amount=3.00&From=USD&To=GBP']GBP[/url] | [url='http://www.xe.com/ucc/convert.cgi?Amount=3.00&From=USD&To=EUR']EUR[/url] | [url='http://www.xe.com/ucc/convert.cgi?Amount=3.00&From=USD&To=AUD']AUD[/url])</td> <td>$1,000</td> <td>20</td> <td>50</td> <td>30</td> <td><form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type=hidden name=cmd value=_xclick> <input type="hidden" name="business" value="{$set['paypal']}"> <input type="hidden" name="item_name" value="{$domain}|DP|1|{$userid}|{$person}"> <input type="hidden" name="amount" value="3.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="page_style" value="MonoCountry"> <input type="hidden" name="return" value="http://{$domain}/donatordone.php?action=done&type=standard"> <input type="hidden" name="cancel_return" value="http://{$domain}/donatordone.php?action=cancel"> <input type="hidden" name="notify_url" value="http://{$domain}/ipn_donator.php"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form></td> </tr> <tr> <td>Crystals Pack <b style='color:blue;'>Buy this pack its a great deal![/b]</td> <td>$3.00 USD ([url='http://www.xe.com/ucc/convert.cgi?Amount=3.00&From=USD&To=GBP']GBP[/url] | [url='http://www.xe.com/ucc/convert.cgi?Amount=3.00&From=USD&To=EUR']EUR[/url] | [url='http://www.xe.com/ucc/convert.cgi?Amount=3.00&From=USD&To=AUD']AUD[/url])</td> <td>$0</td> <td>50</td> <td>0</td> <td>30</td> <td><form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="{$set['paypal']}"> <input type="hidden" name="item_name" value="{$domain}|DP|2|{$userid}|{$person}"> <input type="hidden" name="amount" value="3.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="page_style" value="MonoCountry"> <input type="hidden" name="return" value="http://{$domain}/donatordone.php?action=done&type=crystals"> <input type="hidden" name="cancel_return" value="http://{$domain}/donatordone.php?action=cancel"> <input type="hidden" name="notify_url" value="http://{$domain}/ipn_donator.php"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form></td> </tr> <tr> <td>IQ Pack <b style='color:blue;'>Buy this pack its a great deal![/b]</td> <td>$3.00 USD ([url='http://www.xe.com/ucc/convert.cgi?Amount=3.00&From=USD&To=GBP']GBP[/url] | [url='http://www.xe.com/ucc/convert.cgi?Amount=3.00&From=USD&To=EUR']EUR[/url] | [url='http://www.xe.com/ucc/convert.cgi?Amount=3.00&From=USD&To=AUD']AUD[/url])</td> <td>$0</td> <td>0</td> <td>100</td> <td>30</td> <td><form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="page_style" value="MonoCountry"> <input type="hidden" name="business" value="{$set['paypal']}"> <input type="hidden" name="item_name" value="{$domain}|DP|3|{$userid}|{$person}"> <input type="hidden" name="amount" value="3.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://{$domain}/donatordone.php?action=done&type=iq"> <input type="hidden" name="cancel_return" value="http://{$domain}/donatordone.php?action=cancel"> <input type="hidden" name="notify_url" value="http://{$domain}/ipn_donator.php"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form></td> </tr> <tr> <td>Advanced Pack <b style='color:blue;'>Buy this pack its a great deal![/b]</td> <td>$5.00 USD ([url='http://www.xe.com/ucc/convert.cgi?Amount=5.00&From=USD&To=GBP']GBP[/url] | [url='http://www.xe.com/ucc/convert.cgi?Amount=5.00&From=USD&To=EUR']EUR[/url] | [url='http://www.xe.com/ucc/convert.cgi?Amount=5.00&From=USD&To=AUD']AUD[/url])</td> <td>$3,000</td> <td>40</td> <td>80</td> <td>55</td> <td><form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="page_style" value="MonoCountry"> <input type="hidden" name="business" value="{$set['paypal']}"> <input type="hidden" name="item_name" value="{$domain}|DP|4|{$userid}|{$person}"> <input type="hidden" name="amount" value="5.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://{$domain}/donatordone.php?action=done&type=fivedollars"> <input type="hidden" name="cancel_return" value="http://{$domain}/donatordone.php?action=cancel"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="hidden" name="notify_url" value="http://{$domain}/ipn_donator.php"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form></td> </tr> <tr> <td>Best Pack <b style='color:blue;'>Buy this pack its a great deal![/b]</td> <td>[b]$10.00 USD[/b] ([url='http://www.xe.com/ucc/convert.cgi?Amount=10.00&From=USD&To=GBP']GBP[/url] | [url='http://www.xe.com/ucc/convert.cgi?Amount=10.00&From=USD&To=EUR']EUR[/url] | [url='http://www.xe.com/ucc/convert.cgi?Amount=10.00&From=USD&To=AUD']AUD[/url])</td> <td>$7,000</td> <td>85</td> <td>180</td> <td>115</td> <td><form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="page_style" value="MonoCountry"> <input type="hidden" name="business" value="{$set['paypal']}"> <input type="hidden" name="item_name" value="{$domain}|DP|5|{$userid}|{$person}"> <input type="hidden" name="amount" value="10.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://{$domain}/donatordone.php?action=done&type=tendollars"> <input type="hidden" name="cancel_return" value="http://{$domain}/donatordone.php?action=cancel"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="hidden" name="notify_url" value="http://{$domain}/ipn_donator.php"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form></td> </tr> </table></center></center></div> </div> </div> </div> </div> <div id="wrapperB"></div> <br style="clear: both;" /> </div> </div> <center> </font> </form> EOF; $h->endpage(); ?>
  25. Re: Passes Mod [v2] Actually this looks to be the whore house/ brothel mod...   { print "You don't have enough money to hire a Autum!"; }
×
×
  • Create New...