Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,691
  • Joined

  • Last visited

  • Days Won

    85

Everything posted by Uridium

  1. all i can see with this idea is arguments arguments and more arguments :)
  2. send your installer.php to me via inbox
  3. Snake for line 14 do the same as above just add pregmatch and a / before the first ^ and one before $" so its $/" if (!preg_match("/^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$/", $local_array[$i])) {
  4. create 2 new entries in the users call it attsave and attrem ALTER TABLE users ADD attsave INT(11) NOT NULL default 0; ALTER TABLE users ADD attrem INT(11) NOT NULL default 0; Now in your attack.php add $db->query("UPDATE users SET attsave=0,attrem=0 WHERE userid=$userid"); to place where if a user cant fight for example they are in hosp or jail or low on energy or no weapon equipped or anywhere where the user needs to leave the page for example print "WTF you doing, bro?"; $db->query("UPDATE users SET attsave=0, attrem=0 WHERE userid=$userid"); // new entry print "<a href='index.php'> Leave here</a>"; $h->endpage(); exit; } now open header.php and get rid of the part that says you ran from the fight.. and add if($ir['attsave'] == 1 ) { die("<h1>Attack Count ERROR!</h1></h2>Your in a fight you cant just leave ?<br/><br/><b><a href='attack.php?ID={$ir['attrem']}'><br />Rejoin Fight!</a></b>"); }
  5. on line 6 change to >> if (!preg_match("/^[^@]{1,64}@[^@]{1,255}$/", $email)) {
  6. Just change any mention of ereg to preg_match and you should be ok
  7. Easiest way would be to stop users from re-directing to any page thus putting them back in the fight....
  8. Nah didnt think you was shouting at me Sniko and I hope my post didnt come across the same..
  9. Just to note you dont always need to use a code at the end of a Cron url and even if users manage to find the cron file to run, It still wouldnt work for them as its being called for by a file with a function to actually run the cron
  10. adding code tags example [*php] at start of <?PHP and [*/php] will display the code neater remove the * from both
  11. damn if he can get $20 for this i think i'll sell my version :)
  12. Kryptonite this site does not hack or give refrerence to hacking of any games thread closed..
  13. We are not a hacking forum end of Subject Thread Closed...
  14. OFAH now what a programme that was one of the best sad day though when Learnard Pierece, Buster Merryfield, Kenneth Macdonald died the same year. You just dont get programmes like this anymore that show down to earth nitty gritty life styles. Some people didnt understand the nature of OFAH so disbanded it as a bad sit-com. With Ofah you either understood how they lived cos youd been there and done it or you just watched Dallas... Guess the laughter wont be the same now that John Sullivan has gone.
  15. well spotted and why didnt I think of that lol will now get round to updating the links...
  16. HITMAN i gave up trying to find them i found them one then they changed the forum again
  17. Nicely helped out chicka :) thank you
  18. but when attacked and they lose dont they usually end up in hosp for X amount of minutes ?
  19. You need to make the database remember who had which house before being married so when divorce occurs both move into their old properties
  20. This small mod will allow staff to decide which Links to show in inventory usually only SEND or EQUIP are hidden if you dont have items that do either so your left with SEND, ADD TO MARKET, or AUCTION, SELL which are always shown to the user but supposing we dont want RARE items to be sent to a user or added to the market. so heres how open up inventory.php find..   echo "</td><td>\${$i['itmsellprice']}</td><td>"; echo "$".($i['itmsellprice']*$i['inv_qty']); echo "</td><td>[<a href='iteminfo.php?ID={$i['itmid']}'>Info</a>] [<a href='itemsend.php?ID={$i['inv_id']}'>Send</a>] [<a href='itemsell.php?ID={$i['inv_id']}'>Sell</a>] [<a href='imadd.php?ID={$i['inv_id']}'>Add To Market</a>]";   and replace with   print "</td><td>\${$i['itmsellprice']}</td><td>"; print "$".($i['itmsellprice']*$i['inv_qty']); print "</td><td>{$lt}</td></td>"; print "</td><td>[<a href='iteminfo.php?ID={$i['itmid']}'><small>Info</small></a>]"; /* test for link action */ if($i['showsend'] == 1) { print " [<a href='itemsend.php?ID={$i['inv_id']}'><small>Send</small></a>]"; } else { print""; } if($i['showmarket'] == 1) { print " [<a href='itemmarket.php?page=Add&Item={$i['inv_itemid']}'><small>Market</small></a>]"; } else { print""; } if($i['showauction'] == 1) { print " [<a href='auctionadd.php?ID={$i['inv_id']}'><small>Auction's</small></a>]"; } else { print""; }   Ive just added 3 cut off switches showauction, showend and showmarket if you have more then just keep adding to it.. Now open up staff_items.php where you create your new item find <b>Usage Form</b> and above it add   <hr /> <b>Usage Links: From here you can Switch on or off links visible for this item</b><hr /> <b>Show Send Link</b> <input type='radio' name='showsend' value='1' /> Yes <input type='radio' name='showsend' value='0' checked='checked' /> No<br /> <b>Show Market Link</b> <input type='radio' name='showmarket' value='1' /> Yes <input type='radio' name='showmarket' value='0' checked='checked' /> No<br /> <b>Show Auction Link</b> <input type='radio' name='showauction' value='1' /> Yes <input type='radio' name='showauction' value='0' checked='checked' /> No<br /> <b>Show Give To Clan Link</b> <input type='radio' name='showgiveclan' value='1' /> Yes <input type='radio' name='showgiveclan' value='0' checked='checked' /> No<br /> <hr />   now goto the INSERT INTO part and add this (ONLY IF YOU HAVENT MODIFIED YOUR COPY)   $m=$db->query("INSERT INTO items VALUES('',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['showsend']}','{$_POST['showmarket']}','{$_POST['showauction']}','{$_POST['showgiveclan']}','{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor)");   Now for the EDIT ITEM part add   Item Sell Value: <input type='text' name='itmsellprice' value='{$itemi['itmsellprice']}' /> <hr /> <b>Usage Links: From here you can Switch on or off links visible for this item</b><hr /> <b>Show Send Link</b> <input type='text' name='showsend' value='{$itemi['showsend']}' style=\"width:25px;\" maxlength=\"1\"/> Yes = 1 OR No = 0 <br /> <b>Show Market Link</b> <input type='text' name='showmarket' value='{$itemi['showmarket']}' style=\"width:25px;\" maxlength=\"1\"/> Yes = 1 OR No = 0<br /> <b>Show Auction Link</b> <input type='text' name='showauction' value='{$itemi['showauction']}' style=\"width:25px;\" maxlength=\"1\"/> Yes = 1 OR No = 0<br /> <b>Show Give To Clan Link</b> <input type='text' name='showgiveclan' value='{$itemi['showgiveclan']}' style=\"width:25px;\" maxlength=\"1\"/> Yes = 1 OR No = 0<br /> <hr />   before USAGE FORM and the UPDATE is   $m=$db->query("INSERT INTO items VALUES('{$_POST['itmid']}',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['showsend']}','{$_POST['showmarket']}','{$_POST['showauction']}','{$_POST['showgiveclan']}', '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor)");   and add the new SQLS to phpmyadmin ALTER TABLE items ADD showsend TINYINT(2) NOT NULL DEFAULT 0; ALTER TABLE items ADD showauction TINYINT(2) NOT NULL DEFAULT 0; ALTER TABLE items ADD showmarket TINYINT(2) NOT NULL DEFAULT 0; ALTER TABLE items ADD showgiveclan TINYINT(2) NOT NULL DEFAULT 0;   and your done
  21. if its V2 look in your config.php file for the key then look in installer.php at bottom for how to set them up
  22. Im not sure wether to delete this post or keep it, its that damn clown its so charming ;)
  23. One concern about this script does it still allow users to evade URL attacks IE by just changing URL name to say index.php and getting out of fight
  24. I was working on a Friends site and was kind annoyed at how all Items on any MCC inventory where laid out so heres what i created for him.. The two images below can be hidden and show in inventory thus creating less space also Links can be setup when creating and item to allow it Not to be sold or given to users if its a rare item or any item that you dont want users to have..
  25. My main reason for this when i had a site was the HTACCESS file remove it to pc delete off site if site works fine thats your problem if not send it back to site
×
×
  • Create New...