-
Posts
2,691 -
Joined
-
Last visited
-
Days Won
85
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
Re: [Mccodes V2] Easter Egg Events Dont worry i havent forgotten about this mod just fixing some bugs
-
mccode-v2 Reset password + Secret question before password is sent.
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] Reset password + Secret question before password is sent. I suppose thats the beauty of CE forums whatever ive lost i can usually track down what ive posted on here.. -
mccode-v2 Reset password + Secret question before password is sent.
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] Reset password + Secret question before password is sent. I dont have an old copy of it i lost quite a lot of files on a reformat so im back to the basic MCC V2 at moment -
mccode-v2 Reset password + Secret question before password is sent.
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] Reset password + Secret question before password is sent. Open up register.php and find else if($_POST['password'] != $_POST['cpassword']) { print "The passwords did not match, go back and try again. >[url='register.php']Back[/url]"; } Underneath add else if($_POST['squestion'] != $_POST['csquestion']) { print "<h1>ERROR! The Questions Dont Match</h1> >[url='register.php']Back[/url]"; } Same file Alter this line from $db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')"); To this one $db->query("INSERT INTO users (username, login_name, userpass, squestion, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), '{$_POST['squestion']}', 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')"); Same File Again find <tr> <td><div align='center'>Password:</div></td> <td><div align='center'> <input type='password' name='password' /> </div></td> </tr> <tr> <td><div align='center'>Confirm Password: </div></td> <td><div align='center'> <input type='password' name='cpassword' /> </div></td> </tr> Underneath Add <tr> <td><div align='center'>Secret Question</div></td> <td><div align='center'> <input type='text' name='squestion' /> </div></td> </tr> <tr> <td><div align='center'>Re-type Secret Question</div></td> <td><div align='center'> <input type='text' name='csquestion' /> </div></td> </tr> And Thats it i havent added this to the preferences.php file yet but will do over time. -
mccode-v2 Reset password + Secret question before password is sent.
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] Reset password + Secret question before password is sent. Okies here goes SQL ALTER TABLE `users` ADD `squestion` VARCHAR( 255 ) NOT NULL ; call this file resend.php <? include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); ?> <html> <style> body { background: #1E1E1E; color: #fff; font-size: 11px; font-family: Verdana; } td { color: #fff; font-size: 11px; font-family: Verdana; } #foot { color: #fff; font-size: 11px; font-family: Verdana; width: 808px; height: 24px; background: #1E1E1E; } a, a:visited { color: #D9C5C5; font-weight: bold; text-decoration: none; } a:hover, a:active { color: #fff; font-weight: bold; text-decoration: none; } #head { background: #1E1E1E url(title.jpg) no-repeat; width: 808px; height: 154px; font-size: 11px; font-family: Verdana; } #menu { background: #1E1E1E; width: 808px; height: 30px; font-size: 11px; font-family: Verdana; padding-top: 6px; padding-left: 16px; } #body { background: #1E1E1E; width: 580px; height: 500px; font-size: 11px; font-family: Verdana; padding-top: 10px; padding-left: 20px; } #body-right { background: #1E1E1E; width: 208px; height: 500px; font-size: 11px; font-family: Verdana; } input, select { font-size: 11px; } </style> </HEAD> <BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> <TABLE align=center width='808' BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD colspan='2' valign='top' id='head'> </TD> </TR> <TR> <TD colspan='2' valign='top' id='menu'> [url='login.php']Login[/url] | [url='register.php']Join the game[/url] | [url='resend.php']Lost pass?[/url] </TD> </TR> <TR> <TD valign='top' align='left' id='body'> <? if(isset($_POST['resend'])) { $email = mysql_real_escape_string($_POST["email"]); if ($email == '') { echo '<script>alert("Not sure what happened there did you actually give me an address to lookup ?");</script>'; echo '<script>history.back(1);</script>'; exit; } if((!strstr($email , "@")) || (!strstr($email , "."))) { echo '<script>alert("Sorry the Address type was not recognised.");</script>'; echo '<script>history.back(1);</script>'; exit; } $q = mysql_query("SELECT * FROM users WHERE email = '$email'") or die(mysql_error()); if(mysql_num_rows($q) > 0) { $q2 = mysql_fetch_assoc($q); $username = $q2[username]; //$pass = $q2[pass]; } else { echo '<script>alert("Sorry that Email Address was not found in our Database");</script>'; echo '<script>history.back(1);</script>'; exit; } function makePassword($len = 8) // << Change for greater lengh { $vowels = array('a', 'e', 'i', 'o', 'u'); //Bang in some Vowels cos we love em $confusing = array('I', 'l', '1', 'Z', '0'); //Confuse the array even more with some capitals $replacements = array('A', 'k', '3', 'U', '9'); //If not happy with Vowels or Confuse then add replacemnts for the happy chappy $choices = array(0 => rand(0, 1), 1 => rand(0, 1), 2 => rand(0, 2)); $parts = array(0 => '', 1 => '', 2 => ''); if ($choices[0]) $parts[0] = rand(1, rand(9,99)); if ($choices[1]) $parts[2] = rand(1, rand(9,99)); $len -= (strlen($parts[0]) + strlen($parts[2])); for ($i = 0; $i < $len; $i++) { if ($i % 2 == 0) $parts[1] .= chr(rand(97, 122)); else $parts[1] .= $vowels[array_rand($confusing)]; } if ($choices[2]) $parts[1] = ucfirst($parts[1]); if ($choices[2] == 2) $parts[1] = strrev($parts[1]); $r = $parts[0] . $parts[1] . $parts[2]; $r = str_replace($confusing, $replacements, $r); return $r; } $p = makePassword(8); // <<< Change value for lenght of password given $pass = md5($p); $squestion = mysql_real_escape_string($_POST["squestion"]); $q1 = mysql_query("SELECT * FROM users WHERE squestion = '$squestion'") or die(mysql_error()); if(mysql_num_rows($q1) < 0) { $q3 = mysql_fetch_assoc($q1); $username = $q3[username]; } if ($squestion == '') { echo '<script>alert("Please go back and check your Secret Question Again it doesnt seem to be the same as the one we have in our database");</script>'; echo '<script>history.back(1);</script>'; exit; } if ($squestion !== $question) $query = mysql_query( "UPDATE users SET userpass = '$pass' WHERE email = '$email' AND username = '$username'" ) or die(mysql_error()); $send = mail($email , "Password retrieval" , "You or someone using your mail has requested a password reset.\r\nYour data is:\r\nusernamename: $username\r\nPassword: $p\n\r\n\rYou can now login, thank you.", "FROM: [email][email protected][/email];"); if($query && $send) { echo ' <div class="info"> <center><h1>Success!!</h1></center> Your new password has been sent to the mail address you provided.</p> Once you get it, click [url="index.php"]here[/url] to login.</p> </div> '; } else { echo ' <div> Accept our apologies, we have encountered some problems.</p> ',$question.'</p> Your data is not lost, no need to worry. [b]<h2>Account Data Found For Username:<font color=lightgreen> '.$username.'</font>[/b]</h2>[b]<h2>New Password Changed To:<font color=yellow> '.$p.'</font>[/b]</h2> Your MD5 pass is <h2>'.$pass.'</h2></p> Try again later.</p> </div> '; } } else { ?> <div>[b]Re-New Password Request[/b]</div> We will Require your Email and Secret Password you used to Join the Game with.</p> <form method="post" action="resend.php"> Email: <input name="email" type="text" class="textBox"> Secret Question you gave when you signed up: <input name="squestion" type="text" class="textBox"> <input name="resend" type="submit" class="textBox" id="resend" value="Resend email"> </form> </p> After you enter your e-mail and Secret Question Correctly we will check if it exists in the database We will then send a Temporary Password to you. So you can Login to your Account You Can change this Password from the Settings Menu</div> <? } ?> Part 2 to follow could put it here but incase i mess it up lol -
mccode-v2 Reset password + Secret question before password is sent.
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] Reset password + Secret question before password is sent. good thinking :) i'll do it so both questions have to match -
I liked the idea of a Password Retrivel system on a game but it dawned on me that as players get to know one another and sometimes fall out they may give their email addy away to a friend quite harmlessley only to find with the Password Retrieval from old they could just Pissss people off by entering their Addy all the time to send out new passwords...... So whys this one better ? Well this one still uses the email system as before but on registration users Now have to enter a Secret question so they can retrieve passwords. Even if a user gets their email address correct and the Secret Question Wrong then No email will be sent to a user saying a password reset occured.. Both the email and the secret Question have to be exact.. Will post in a few moments when i get the files ive adjusted together.....
-
Re: Battle ladder [Mccodes V2] Yep gotta agree the Editing of posts is a bit silly i would recommend 24 hours from posting the script so you can fine tune faults you find later... But to add my script again would just confuse anyone who hasnt read this post page and is just working from say page 2 or 3....
-
Re: [Mccodes V2] Easter Egg Events screenie setup
-
Re: [Mccodes V2] Easter Egg Events Ok i kinda went a bit mental i was sat here working out the sqls when i decided to alter it a bit and save me a lot of time doing a mod for every festivity of the year. So the updated version will let you name your festivity event example easter, christmas, blah, blah, blah. Pages can be linked to any page that you already have on your game. even if your pages require an action. I'll post up an image in about 5 mins so you get the idea. as always ive included an installer for easy installation.
-
Thought id do an Easter Egg event seeing as its drawing near Very basic uses the Streets system. The cron will give each user 10 egg Tokens The player then searches the Basket with their 10 tokens to try dig out the 10 eggs Hidden in the basket some results are Red Herrings and others will reward the player with an egg after the 24 hour even the person with the most eggs collected will be rewarded with a desired item chosen by the game admin. Its about 75% complete just making a few improvements
-
Re: [MCCODES V2]My First Mod (Flash Games) pointless or not its here its free and its available for others giving someone Crappy feedback like that isnt going to inspire them to do better and be creative. The guy has seen an opportunity for a bit of free entertainment and shared it. All my mods are crap they dont give money they dont give crystals but they do give users entertainment. so im going to give him +1 just to piss you off ;)
-
Re: V2 index.php The amount of files MCC could be cut down to half if people were to do things like you have just done. The attack uses 5 files and 4 are just wasted they could all be put into one script and you could save server space.. The files for staff could also be reduced to 2 files that being staff.php and smenu.php
-
Re: V2 index.php Nice to see some people thinking out side the box :) Nice work gideon.... Can i just mention though thst you add the ability for those that are in hosp or jail not to be able to see the bank... Just add if($ir['jail'] or $ir['hospital']) { die("Your Bank cannot be accessed while in jail or hospital."); } Before your bank routine :) +1
-
Re: Businesses Mod [Mccode V2] Check your script for extra Quotation Marks " these should only be found on the script your using with PRINT" and "; in your explore .php if you find any that are not like the above example like here Business listings change to Business listings
-
[MCCODES V2] Updated Jail now lets users Offer rescue Price
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] Updated Jail now lets users Offer rescue Price What is your problem the above script is NOT yours and any edits from this script were not taken from yours. I dont steal from people on here and never have done. if yours is called rescue.php and mine is called rescue.php that is purely coincidental. -
[MCCODES V2] Updated Jail now lets users Offer rescue Price
Uridium replied to Uridium's topic in Free Modifications
Re: [MCCODES V2] Updated Jail now lets users Offer rescue Price Thanks for adding back this post MD -
Re: [Mccodes V2] Item Sell Update [Javascript!] Yet another Quality product from Iamwicked +1
-
Re: Contact Staff Through Email Eternal can you explain what errors you fixed so the postee knows for future reference :)
-
Heres a small fix for those using the 150 energy bar mod. Some will have noticed that when its changed from 100-150 the bar stretches and becomes longer than the other bars. This small fix will make the energy bar stay at 100 lenght no matter what size the bar is.. open header.php and add this before PRINT <<<OUT section for where your energy bar is.. $width = 100; $left_width = round(($ir['energy']/$ir['maxenergy'])*$width); $right_width = $width - $left_width; Now alter your image part of the bar to read [b]Energy:[/b]{$ir[energy]} <img src=animatedbar.gif width=$left_width height=10><img src=redbar.png width=$right_width height=10> Change the img llink to that of your own... Your energy bar wont overstretch anymore You can apply the same rule for the other bars but make sure you change the energy and maxenergy to the bar your editing...
-
Re: one of my mods deleted ? replace your rescue.php eith this one see if that helps... <?php include "globals.php"; if($ir['jail']) { die("<h1>You cannot bail out people while in jail.</h1>"); } $_GET['ID']=abs((int) $_GET['ID']); $r=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}")); if(!$r['userid']) { die("Invalid user"); } if(!$r['jail']) { die("That user is not in jail!"); } if($r['rescue'] AND ($r['money'] > $r['rescue'])) { $cost = $r['rescue']; } else { $cost = 0; } $cf=number_format($cost); if($ir['money'] < $cost) { die("Sorry, you do not have enough money to bail out {$r['username']}. You need \$$cf."); } print "You successfully bailed {$r['username']} out of jail for \$$cf. > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET money=money-{$cost} WHERE userid={$r['userid']}"); $db->query("UPDATE users SET money=money+{$cost} WHERE userid=$userid"); $db->query("UPDATE users SET energy=energy-2 WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}"); $db->query("UPDATE users SET money=money-{$cost} WHERE userid={$r['userid']}"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] rescued you ftom jail you payed them \$$cost", $c); $h->endpage(); ?> This version will also deduct 10 energy for every rescue from the rescuer
-
Re: [mccode v2] Items Pic mod yes sorry myfault it is impic not itmpics as i suggested.. send me your addy and i'll take a look
-
Re: [mccode v2] Items Pic mod Lycan check to make sure all references for itmpics are the same even for the one in your items Dbase so all should be itmpics and not any as itmpic
-
Re: one of my mods deleted ? After reading that i see what you mean.. I guess i was kinda annoyed the way it was done. but not to receieve an explanation as to why is also a pain.. So for those reading this my stsements above although at the time felt strongly about, i guess now ive seen it in a different light.
-
Re: one of my mods deleted ? glad that modify button was still here ;)