Jump to content
MakeWebGames

Dave

Administrators
  • Posts

    3,368
  • Joined

  • Last visited

  • Days Won

    126

Everything posted by Dave

  1. Re: [mccodes] Advanced Pet Mod [$15] Cant re-sell it :) and guys chill stop bitching about each other whats been done has been done, In the past. Just shake hands make up, kiss (If thats your kinda thing) and be happy :)
  2. Re: Selling Login/Register Use Photoshop's slicing tool to slice it up, Then when exporting it save it as image and HTML. You've got your basic HTML now you can just modify it a bit to add the actual login fields.
  3. Dave

    help

    Re: help I did help? Go to the file you downloaded after you purchased the code's of mccodes.com, Then locate the class folder inside of it and upload the 2 files inside to your web server. There we go fixed
  4. Re: Need help; Mass file editing What if they didnt do a backup Then they shouldn't own a website? Most hosting companies offer some form of backup service, Even if its just weekly its better then none. If your using a host without backup's you could be ruined if you get hacked or a server error occur's.
  5. Re: is there any tutorail on how to set up mccodes [v2]? Such an old site lol :P Glad to see someone remembers about it :D I do have a video of how to install Mccodes V2 but i have no idea where it is ill see if i can dig it up for you guys.
  6. Dave

    help

    Re: help You mean you deleted the class/class_db_mysql.php files and you would like to request if anyone can help you out? I'm sure if you check in the folder you got when you purchased mccodes that the files you need will be in there.
  7. Re: Need help; Mass file editing Why remove the code? Just restore a backup prior to you being hacked.
  8. Re: query event error If your using mccodes $ir['gangID'] should infact be $ir['gang'], But the error is being caused due to $ir['gangID'] not existing :)
  9. Re: Selling Pre Made Game Layout We can provide valid xHTML and the appropriot header.php, mainmenu.php files for a small extra fee :) (I have not gotten a confirmed fee for this yet but im speaking with Peter on it :))
  10. Re: align left <div align="left"> Left aligned text </div> Start and end
  11. Re: [Mccodes V2] [bIG MOD] Trading Card Game [$15] PayPal causes more problems then its worth... Because its free every time you get money in plonk it straight into your bank account, Then its more safe (Well after the 3-5 days it takes to get to your bank), But normally PayPal should take your side as you are the one in the right but make sure you stay calm :). and Nice mod!
  12. Re: Naruto Online RPG Very true... Most people think by putting your details into a website there going to try and sell your details on or something simular (Some sites will so watch out!) but the fully genuin ones are using this as a business stratergy to gain more clients and most the time it works....
  13. Re: why isnt it refilling? Like this kind of but you'll need to change it around to suit and work for this mod.... $db->query("UPDATE users SET mine_power=mine_power+5 WHERE mine_power<max_mine_power");
  14. Re: multi curency Your probably gonna need to create some form of "exchange" system so if your account is currently in $'s and you want to change it to say pounds or yen... To make the game more interesting you could have this change but then your players might get annoyed. You'd also need to automatically work out the prices for the items in say Yen aswell as US. Your idea is good but i would say quite hard to implement across a hole game.
  15. Re: please help Whats the difference from the other one posted? lol btw..you should sanitize the $_POST. values with mysql_real_escape_string(). To the OP, you could try this: <?php /* Mccode V1, authenticate.php recode by PHP Scene. */ session_start(); include ('mysql.php'); $username = mysql_real_escape_string($_POST['username']); $password = mysql_real_escape_string($_POST['password']); if ($username == '' || $password == ''){ exit('Please make sure you fill the username and password fields in. [url="login.php"]Back[/url]'); } $check = mysql_query("SELECT `userid` FROM `users` WHERE `login_name` = '{$username}' AND `userpass` = md5('$password') LIMIT 1;", $c) or die(mysql_error()); if(!mysql_num_rows($check)){ exit('Account cannot be found with that username and password.'); }else{ $_SESSION['loggedin'] = 1; $user = mysql_fetch_object($check); $_SESSION['userid'] = $user->userid; header('Location: index.php'); } ?> (recode from scratch) You don't need to use "mysql_real_escape_string" on a password, if it's beening hashed.. with md5/sha1/ ect So mres'ing the password would potentially lock out any users with a ' in their password.
  16. Re: [V1][V2] 50/50 Chance Mod. Free Version Ripped of? Sorry but im with Isomerizer on this one his coding is quality and shouldn't be dis-respected at all! The code's may do the same thing but Isomerizer's code is most likely more efficent and better layed out then yours is.
  17. Dave

    Hes Back

    Re: Hes Back Is this a good thing me wonders ;)
  18. Re: Monorail Problem Add an order thing to your cities table then modify your code to order by the order number (That sounds confusing lol)
  19. Re: Malacious Error Detected Seeing the script would help greatly.
  20. Dave

    Game Security

    Re: Game Security Which domain/site was this on? And do you have any evidence? (No i am not acting childish i've recently had a few memory "issues" so i cannot completly remember certain area's of my life).
  21. Re: Advanced Voting $15 This paid mod was made before Cronus released his quite badly made mod, Thus meaning that HD will still be trying to sell copies of this mod.
  22. Dave

    Game Security

    Re: Game Security Is it? Or you already forgot what have you done in DS and i guess a few more places? (or maybe as you "operate" under a new name, you think people might have forgotten who you are?) Can you explain to me what a DS is and what the incident(s) that you are refering to please (Please provide proof or i shall completly discard them).
  23. Re: [REVIEW] BuskerWars - Please review!! It's good to see a game using a free template once in a while :) But a game that big should invest in a graphics designer to get a nice professional game design for there site :). From the login it looks like a good game and seems quite active aswell considering its saying you have ?75709 players signed up?
  24. Dave

    Game Security

    Re: Game Security My record of hacking peoples site after i get access is null, So thats why i offered to help expecting just to be allowed in (Like i do with most people i help some just ask for my word which im happy to give). But this guy was saying its just an email and so on, So i refused because if he wanted it to be secured that badly and wanted some form of legal documentation to prove that i or the person who does the work is not going to "destory" his site (I never actually saw the document), Is well pointless and incrediably annoying, Just makes me wonder sometimes why i offer to help people for free then they ask for me to sign a legal contract?
  25. Hey, Well i was incrediably bored and decided to re-code a file, I ended up doing lucky boxes which was originally quite simple but had a few bugs such as it going from say "First outcome" to "Fourth outcome" thats been fixed. I also added the option for admin's to change how many times a user has opened a box in a day along with other little things like images for each one and updating some of the text. Anymore suggestions of what i could do with this code? <?php require_once('globals.php'); function Stop() { global $h; echo ' > [url="lucky.php"]Back[/url]'; $h->endpage(); exit(); } ## Settings ## define('__BOXCOST__', 1000); //The cost to open a Lucky Box. define('__BOXDAY__', 5); //The amount of times a user can open boxes a day! Anymore then 9 and you will get some issues. ## End Of settings ## print "<h3>Lucky Boxes</h3><hr />"; if($_GET['modify'] AND $ir['user_level'] == 2) { if($_POST['boxes'] OR $_SESSION['user_edit']) { if(!ctype_digit($_POST['boxes'])) { echo 'The amount of boxes opened must be numeric!'; Stop(); } $check = $db->query('SELECT userid, username, boxes_opened FROM users WHERE userid='.$_SESSION['user_edit']); if(!$db->num_rows($check)) { echo 'The user you are trying to update dosen\'t exist!'; Stop(); } $user = mysql_fetch_object($check); if($user->boxes_opened == $_POST['boxes']) { echo 'There is no point in updating a users boxes opened with the same amount?'; Stop(); } $db->query('UPDATE users SET boxes_opened='.$_POST['boxes'].' WHERE userid='.$_SESSION['user_edit']); echo $user->username.'\'s account has been updated with '.$_POST['boxes'].' boxes opened today'; unset($_SESSION['user_edit']); Stop(); } if($_POST['user']) { $_POST['user'] = htmlentities(mysql_real_escape_string($_POST['user'])); $check = $db->query('SELECT userid, username, boxes_opened FROM users WHERE userid='.$_POST['user']); if(!$db->num_rows($check)) { echo 'We cannot find that user'; Stop(); } $user = mysql_fetch_object($check); $_SESSION['user_edit'] = $user->userid; echo '<h3>Lucky stats for [url="viewuser.php?u='.$user->userid.'"]'.$user->username.'[/url] ['.$user->userid.']</h3> <form action="lucky.php?modify=1" method="post"> Boxes Opened Today: <input type="text" name="boxes" value="'.$user->boxes_opened.'" size="'.count($user->boxes_opened).'" /> <input type="submit" value="Update" /> </form> <hr />'; } else { echo '<h3>Modify a users box opens</h3> If you wish to give a users more chances of opening boxes or just want to see how many times a user has opened the boxes you can check here!<hr /> <form action="lucky.php?modify=1" method="post"> '.user_dropdown($c, 'user').' <input type="submit" value="Submit" /> </form> <hr />'; } } elseif($_GET['open']) { if($ir['boxes_opened'] >= __BOXDAY__) { echo 'Sorry, you have already opened '.__BOXDAY__.' boxes today. Come back tomorrow.'; Stop(); } if($ir['money'] < __BOXCOST__) { echo 'Sorry, it costs '.money_formatter(__BOXCOST__).' to open a box. Come back when you have enough.'; Stop(); } $num = mt_rand(1, 5); $db->query('UPDATE users SET boxes_opened=boxes_opened+1, money=money-'.__BOXCOST__.' WHERE userid='.$userid); $ir['money']-=__BOXCOST__; $_SESSION['num']++; $word = array('First', 'Second', 'Third', 'Fourth', 'Fifth', 'Sixth', 'Seventh', 'Eighth', 'Ninth', 'Tenth'); $numbers = array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10'); $images = array( '1' => 'http://community.gemtradenet.com/2008/07/15/crystals.jpg', '2' => 'http://www.thewashingtonnote.com/archives/dollars%20pic.jpg', '3' => 'http://www.moonbattery.com/archives/money_down_drain.jpg', '4' => 'http://www.lindashauntedhalloween.net/twf_spirit/tumbleweed.gif', '5' => 'http://www.lindashauntedhalloween.net/twf_spirit/tumbleweed.gif'); // Modify these each one matches a case below. $outcome = str_replace($numbers, $word, $_SESSION['num']); switch($num) { case 1: $tokens = (mt_rand(1,3)*$ir['level']); echo '[img='.$images[$num].'] '; echo $outcome.' outcome - You gain '.$tokens.' crystals! <font color="green">+ '.$tokens.' crystals</font>'; $db->query("UPDATE users SET crystals=crystals+{$tokens} WHERE userid={$userid}"); break; case 2: $money = (mt_rand(330, 3300)*$ir['level']); echo '[img='.$images[$num].'] '; echo $outcome.' outcome - You gain '.money_formatter($money).' <font color="green">+ '.money_formatter($money).'</font>'; $db->query("UPDATE users SET money=money+{$money} WHERE userid={$userid}"); break; case 3: $stole = min(mt_rand($ir['money']/10, $ir['money']/5), 5000); echo '[img='.$images[$num].'] '; echo $outcome.' outcome - You lost '.money_formatter($stole).' <font color="red">- '.money_formatter($stole).'</font>'; $db->query("UPDATE users SET money=money-{$stole} WHERE userid={$userid}"); break; case 4: echo '[img='.$images[$num].'] '; echo $outcome.' outcome - You neither gain or loose anything'; break; case 5: echo '[img='.$images[$num].'] '; echo $outcome.' outcome - You neither gain or loose anything'; break; } echo '<hr /> [url="lucky.php?open=1"]Open Another[/url] [url="explore.php"]Back to Town[/url]'; } else { $_SESSION['num'] = 0; echo 'A man comes up to you and whispers, "I have magical boxes, I let you open one for '.money_formatter(__BOXCOST__).'. You can open a maximum of '.__BOXDAY__.' a day. Deal or no deal?"<hr /> [url="lucky.php?open=1"]Okay, open one.[/url] [url="explore.php"]No thanks.[/url] '; if($ir['user_level'] == 2) { echo '<hr /><h3>Admin Options</h3><hr /> [url="lucky.php?modify=1"]Modify a users box opens[/url]'; } } $h->endpage(); ?>
×
×
  • Create New...