Jump to content
MakeWebGames

Jordan Palmer

Members
  • Posts

    1,660
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Jordan Palmer

  1. Haha; Great find man! :P
  2. No but were talking about games; I think this is a good way to keep inflation down :)
  3. MCCodes have a event_add function you can make use off ;) I don't think people should get there money back, IMO :/
  4. Thread locked too prevent more discussion about each others code;
  5. He's never liked me so he take's all the chances he can get too prove me wrong; Shame really;
  6. NOT TESTED; Replace login.php with this <? include(DIRNAME(__FILE__) . '/nliheader.php'); if(isset($_POST['submit'])){ $username = mysql_real_escape_string($_POST['username']); $password = $_POST['password']; $hashpw = hash("sha512",$password); $result = mysql_query("SELECT * FROM `grpgusers` WHERE `username`='$username'") or die("Name and password not found or not matched"); $worked = mysql_fetch_array($result); $user_class = new User($worked['id']); if($worked['password'] == $hashpw) { if($user_class->rmdays > 0){ echo '<meta http-equiv="refresh" content="0;url=index.php">'; } else { ?> <tr><td class="contenthead">GRPG Is Brought To You By:</td></tr> <tr><td class="contentcontent"> [url="index.php"]Continue[/url] Want to see your ad here? For only $20 a month you could put anything you want on this page! Contact me at [email][email protected][/email] </center> </td></tr> <? } $_SESSION['id'] = $worked['id']; exit; } else { echo Message('Sorry, your username and password combination are invalid.'); } } ?> <tr><td class="contenthead"> .: Login </td></tr> <tr><td class="contentcontent"> <form name='login' method='post' action='login.php'> <table width='25%' border='0' align='center' cellpadding='0' cellspacing='0'> <tr> <td width='35%' height='27'><font size='2' face='verdana'>Username</font></td> <td width='65%'><font size='2' face='verdana'> <input name='username' type='text' size='22'> </font></td> </tr> <tr> <td height='24'><font size='2' face='verdana'>Password</font></td> <td><font size='2' face='verdana'> <input name='password' type='password' size='22'> </font></td> </tr> <tr> <td></td> <td><font size='2' face='verdana'> <input type='submit' name='submit' value='Login'> </font></td> </tr> </table> </form> <center> </center> </td></tr> <? include(DIRNAME(__FILE__) . '/nlifooter.php'); ?>   then replace register.php with this   <?php include(DIRNAME(__FILE__) . '/nliheader.php'); $domain = $_SERVER['HTTP_HOST']; $year=date("Y"); $IP = $_SERVER['REMOTE_ADDR']; if (isset($_POST['submit'])) { $username = strip_tags(mysql_real_escape_string($_POST["newname"])); $signuptime = time(); $password = hash("sha512", $_POST['newpass']); $password2 = hash("sha512", $_POST['newpassagain']); $email = mysql_real_escape_string($_POST["email"]); $checkuser = mysql_query("SELECT * FROM `grpgusers` WHERE `username`='$username'"); $username_exist = mysql_num_rows($checkuser); if($username_exist > 0){ $message .= "<div>I'm sorry but the username you chose has already been taken. Please pick another one.</div>"; } if(strlen($username) < 4 or strlen($username) > 20){ $message .= "<div>The username you chose has " . strlen($username) . " characters. You need to have between 4 and 20 characters.</div>"; } if(strlen($password) < 4 or strlen($username) > 20){ $message .= "<div>The password you chose has " . strlen($password) . " characters. You need to have between 4 and 20 characters.</div>"; } if($password != $password2){ $message .= "<div>Your passwords don't match. Please try again.</div>"; } if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) { $message .= "<div>The e-mail address you entered was invalid.</div>"; } if(file_exists('ipbans/'.$IP)) { echo Message('[b]You\'re IP has been banned from the site, Please email IPbanned@'.$domain.'[/b]'); } //insert the values if (!isset($message)){ $result= mysql_query("INSERT INTO `grpgusers` (ip, username, password, email, signuptime, lastactive)". "VALUES ('".$IP."', '$username', '$password', '$email', '$signuptime', '$signuptime')"); echo 'Your account has been created successfully! Redirecting to login page in 5 seconds. <meta http-equiv="refresh" content="5;url=login.php">'; if ($_POST['referer'] != ""){ $result= mysql_query("INSERT INTO `referrals` (`when`, `referrer`, `referred`)". "VALUES ('$signuptime', '".$_POST['referer']."', '".$username."')"); } exit; } } ?> <? if (isset($message)) { echo Message($message); } ?> <tr><td class="contenthead"> .: Register </td></tr> <tr><td class="contentcontent"> <table width='28%' border='0' align='center' cellpadding='0' cellspacing='0'> <form name='register' method='post' action='register.php'> <tr> <td height='26'><font size='2' face='verdana'>Username: </font></td> <td><font size='2' face='verdana'> <input type='text' name='newname'> </font></td> </tr> <tr> <td height='28'><font size='2' face='verdana'>Password: </font></td> <td><font size='2' face='verdana'> <input type='password' name='newpass'> </font></td> </tr> <tr> <td height='28'><font size='2' face='verdana'>Confirm Password: </font></td> <td><font size='2' face='verdana'> <input type='password' name='newpassagain'> </font></td> </tr> <tr> <td height='26'><font size='2' face='verdana'>Email address: </font></td> <td><font size='2' face='verdana'> <input type='text' name='email'> </font></td> </tr> <tr> <td></td> <td><font size='2' face='verdana'> <input type='hidden' name='referer' value='<? echo $_GET['referer'] ?>'> <input type='submit' name='submit' value='Register'> </font></td> </tr> </table> </form> <center> <? echo '© '.$domain.' 2010 - '.$year.' '; ?> </center> </td></tr> <? include 'nlifooter.php'; ?>   THIS ISN'T TESTED: This is using sha512 hash not md5; Alter the db row too varchar(255) This should work fine;
  7. Code updated; Guess I should really not try and multitask :L
  8. thats how much attention I paid too it while doing it :L oh well idc :L
  9. Topic locked [infobox]I doubt anyone will help you do this as it's pretty obvious your plain lazy.[/infobox]
  10. I like this but I noticed a few things which could be better & A few css mistake's and so forth so I decided I'd recode it :); Nothing really has changed; I've just changed alot around and spaced out the code <?php $housequery=1; include_once(DIRNAME(__File__) . '/globals.php'); $exp=(int)($ir['exp']/$ir['exp_needed']*100); $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank'] = get_rank($ir['strength'],'strength'); $ir['agirank'] = get_rank($ir['agility'],'agility'); $ir['guarank'] = get_rank($ir['guard'],'guard'); $ir['labrank'] = get_rank($ir['labour'],'labour'); $ir['IQrank'] = get_rank($ir['IQ'],'IQ'); $tsrank = get_rank($ts,'strength+agility+guard+labour+IQ'); $ts = number_format($ts); if(!$ir['display_pic']) { $profilepic = 'http://swemat01.sweblend.se/smallpics/default.jpg'; } else { $profilepic = ''.$ir['display_pic'].''; } echo '<table width = "95%" border = "1" hight = "60%" cellspacing = "0" class = "table"> <tr style = "background:black"> <th><span style = "color:#000000">'.htmlentities($ir['username']).'s Profile Page</th></tr> </table>'; echo '<table width = "95%" border = "1" hight = "60%" cellspacing = "0" class = "table"> <tr style = "background:black"><th><span style = "color:#000000">General Info</th><th>Display Pic</th><th>Stats</th></span></tr> <td valign=top width = "33%"> [b]Crystals:[/b] '.$cm.' [b]Level:[/b] '.number_format($ir['level']).' [b]Exp:[/b] '.$exp.'% [b]Money:[/b] '.$fm.' [b]HP:[/b] '.number_format($ir['hp']).'/'.number_format($ir['maxhp']).' [b]Property:[/b] '.htmlentities($ir['hNAME']).' <td valign = "top" width = "33%"> [img='.$profilepic.'] <td valign = "top" width = "33%"> [b]Strength:[/b] '.number_format($ir['strength']).' [Ranked: '.$ir['strank'].'] [b]Agility:[/b] '.number_format($ir['agility']).' [Ranked: '.$ir['agirank'].'] [b]Guard:[/b] '.number_format($ir['guard']).' [Ranked: '.$ir['guarank'].'] [b]Labour:[/b] '.number_format($ir['labour']).' [Ranked: '.$ir['labrank'].'] [b]IQ: [/b] '.number_format($ir['IQ']).' [Ranked: '.$ir['IQrank'].'] [b]Total stats:[/b] '.$ts.' [Ranked: '.$tsrank.'] </table>'; if(isset($_POST['pn_update']) && is_string($_POST['pn_update'])) { $db->query("UPDATE `users` SET `user_notepad` = '".mysql_real_escape_string($_POST['pn_update'])."' WHERE `userid` = $userid"); echo 'Your notepad has been updated'; } echo '<hr>Your Personal Notepad:<form action = "index.php" method = "POST"> <textarea rows = "20" cols = "100" name = "pn_update">'.htmlentities(stripslashes($ir['user_notepad'])).'</textarea> <input type = "submit" value = "Update Notes" /></form>'; $h->endpage(); ?>   I haven't coded in about 5months so chances are they're quite alot off mistakes but blah; It took me 15minuets maximum :)
  11. MD Will not be able to contact you - he no longer own's the forum nor is he active
  12. Shops(Upgraded) [infobox]Topic closed as I have linked to a version which is fully working with staff control :)[/infobox]
  13. Make a FTP Account Connect too it via a FTP Client (Filezilla is the best 4 me) Upload the codes Bam you're done. @Hitman; Were are here too help people using MCCodes but ones that TRY to help themselfs.
  14. This is pure laziness; I doubt anyone with any common sense will waste they're time.
  15. Forum Staff; We're not official reps however while we hold a staff place We do represent mccodes on the forums;
  16. I do agree MDShare played a bigger part in mwg and it's post's, however mdshare didn't need to develop MCCodes new engine/mods/site ect so in all fairness we just have too cope with each other, ColdBlooded & Dabs will probably play a bigger part when they have the time
  17. I speak too both, however I only talk too Cold Blooded regular & I can assure you he's working away on things to do with MCCodes, I wont reveal what but I'll assure you he is; The support in the forums is for us as a community too answer & provide help for others, The support on the MCCodes.com site is where they'll keep check & answer - thats why there is one there. @Time taken; They do have day jobs & they do actually have quite alot off things to do so it will take a while at whatever they create unless it's for work as that needs to do done asap.
  18. Sounds very good, I think you're the only guy up too you yet too manage to create a few pvp scripts and sell on, That I have too say good job for, This looks nice
  19. Ok so I didn't mail you this? Now lets add some common sense in here Your using MCCodes, so it'll come under MCCode development, there's only one support area.. now tell me again we need to organise the forum?
  20. Let me tell you again, POST IN THE CORRECT SECTION. I've already emailed you, You said you'd post in the right sections from here on out...
  21. Whoops, I have no idea why I used a full stop lol, Dayo I hope you work it out, If you do need any help with mods I'll help in my spare time :)
  22. I haven't coded in month's, I do the odd bit here and they're but I officially stop developing a while back :) ALL projects was given away. @Dayo; Could you not add a rule too automatically add .zip/whatever at the end? Like In ht.access?
  23. I could most probably help you secure some off the more popular mods, however I don't really code anymore so lol
  24. Topic made sticky so it's easier to get too, Please keep all updates and such in here so we don't have 1million threads :) + Very good idea, I hope this turns out well, MCCodes needed something like this, the next step would be recoding all them to be secured & updated, It's add that as a extra offer, Like they can hire you to do that kinda thing :)
  25. This is a very old application, I'd be very surprised if it actually worked
×
×
  • Create New...