Jump to content
MakeWebGames

Kieran-R

Members
  • Posts

    551
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Kieran-R

  1. Because it makes money. Why do drug dealers sell drugs if it's illegal ehh?   You can use raven if you have an MCCodes license. But as said before, you may get into trouble for using the layout. If you buy raven, and recode it, you will still need to buy MCCodes because after all, it's baser is always going to be MCCodes.]
  2. How are you expecting anyone to buy it if they can't even see a live demo?
  3. Glad your please with the mod :)
  4. Kieran-R

    Query Trouble!

    Try this:   <?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"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } session_start(); print <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd%22"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"[/url]> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>W.O.T.S</title> <script type="text/javascript"> var xmlHttp // xmlHttp variable function GetXmlHttpObject(){ // This function we will use to call our xmlhttpobject. var objXMLHttp=null // Sets objXMLHttp to null as default. if (window.XMLHttpRequest){ // If we are using Netscape or any other browser than IE lets use xmlhttp. objXMLHttp=new XMLHttpRequest() // Creates a xmlhttp request. }else if (window.ActiveXObject){ // ElseIf we are using IE lets use Active X. objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP") // Creates a new Active X Object. } // End ElseIf. return objXMLHttp // Returns the xhttp object. } // Close Function function CheckPasswords(password){ // This is our fucntion that will check to see how strong the users password is. xmlHttp=GetXmlHttpObject() // Creates a new Xmlhttp object. if (xmlHttp==null){ // If it cannot create a new Xmlhttp object. alert ("Browser does not support HTTP Request") // Alert Them! return // Returns. } // End If. var url="check.php?password="+escape(password) // Url that we will use to check the password. xmlHttp.open("GET",url,true) // Opens the URL using GET xmlHttp.onreadystatechange = function () { // This is the most important piece of the puzzle, if onreadystatechange = equal to 4 than that means the request is done. if (xmlHttp.readyState == 4) { // If the onreadystatechange is equal to 4 lets show the response text. document.getElementById("passwordresult").innerHTM L = xmlHttp.responseText; // Updates the div with the response text from check.php } // End If. }; // Close Function xmlHttp.send(null); // Sends NULL insted of sending data. } // Close Function. function CheckUsername(password){ // This is our fucntion that will check to see how strong the users password is. xmlHttp=GetXmlHttpObject() // Creates a new Xmlhttp object. if (xmlHttp==null){ // If it cannot create a new Xmlhttp object. alert ("Browser does not support HTTP Request") // Alert Them! return // Returns. } // End If. var url="checkun.php?password="+escape(password) // Url that we will use to check the password. xmlHttp.open("GET",url,true) // Opens the URL using GET xmlHttp.onreadystatechange = function () { // This is the most important piece of the puzzle, if onreadystatechange = equal to 4 than that means the request is done. if (xmlHttp.readyState == 4) { // If the onreadystatechange is equal to 4 lets show the response text. document.getElementById("usernameresult").innerHTM L = xmlHttp.responseText; // Updates the div with the response text from check.php } // End If. }; // Close Function xmlHttp.send(null); // Sends NULL insted of sending data. } // Close Function. function PasswordMatch() { pwt1=document.getElementById('pw1').value; pwt2=document.getElementById('pw2').value; if(pwt1 == pwt2) { document.getElementById('cpasswordresult').innerHT ML="<font color='green'>OK</font>"; } else { document.getElementById('cpasswordresult').innerHT ML="<font color='red'>Not Matching</font>"; } } </script> <style> body { font-family:Verdana;font-size:9pt;color: white; background-color:#C3C3C3; background-image:url(/images/hfmainback.jpg)<img src="images/smilies/wink.png" border="0" alt="" title="Wink" class="inlineimg" /> scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: white;text-decoration: none; } table,tr,td { font-size:9pt; } img { border:none; } </style> </head> <body> <center><h3>W.O.T.S Registration</h3><form action=register.php method=post> <table width='75%' class='table' cellspacing='1'> <tr> <td class="lgrad"></td> <td class="center"><img src="images/banner.png" alt="W.O.T.S Test Side" /> <!-- Begin Main Content --> EOF; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$IP)) { die("<b><font color=red size=+1>Your IP has been banned, there is no way around this.</font></b></body></html>"); } if($_POST['username']) { if($set['regcap_on']) { if(!$_SESSION['captcha'] or $_SESSION['captcha'] != $_POST['captcha']) { unset($_SESSION['captcha']); die("Captcha Test Failed ><a href='register.php'>Back</a>"); } unset($_SESSION['captcha']); } if(strlen($_POST['username']) < 4) { die("Sorry, the username is too short. ><a href='register.php'>Back</a>"); } $sm=100; if($_POST['promo'] == "Your Promo Code Here") { $sm+=100; } $username=$_POST['username']; $username=str_replace(array("<", ">"), array("<", ">"), $username); $q=$db->query("SELECT * FROM users WHERE username='{$username}' OR login_name='{$username}'"); if($db->num_rows($q)) { print "Username already in use. Choose another. ><a href='register.php'>Back</a>"; } else if($_POST['password'] != $_POST['cpassword']) { print "The passwords did not match, go back and try again. ><a href='register.php'>Back</a>"; } else { $_POST['ref'] = abs((int) $_POST['ref']); $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $q=$db->query("SELECT * FROM users WHERE lastip='$IP' AND userid={$_POST['ref']}"); if($db->num_rows($q)) { die("No creating referral multies. Bad dog. ><a href='register.php'>Back</a>"); } if($_POST['ref']) { $q=$db->query("SELECT * FROM users WHERE userid={$_POST['ref']}"); $r=$db->fetch_row($q); } $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, bankmoney, lastip, lastip_signup, elements, villages) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), -1, '$IP', '$IP','{$_POST['elements']}', '{$_POST['villages']}'"); $i=$db->insert_id(); $db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)"); if($_POST['ref']) { require "global_func.php"; $db->query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}"); event_add($_POST['ref'],"For refering $username to the game, you have earnt 2 valuable crystals!",$c); $db->query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$IP')"); } print "You have signed up, enjoy the game. > <a href='login.php'>Login</a>"; } } else { if($set['regcap_on']) { $chars="123456789abcdefghijklmnpqrstuvwxyzABCDEFGH IJKLMNOPQRSTUVWXYZ!?\\/%^"; $len=strlen($chars); $_SESSION['captcha']=""; for($i=0;$i<6;$i++) $_SESSION['captcha'].=$chars[rand(0, $len - 1)]; } print "<h3>Way Of The Shinobi</h3>"; print "<form action=register.php method=post> <center><h3>W.O.T.S Registration</h3><form action=register.php method=post> <table width='75%' class='table' cellspacing='1'> <tr> <td width='30%'>Username</td> <td width='40%'><input type=text name=username onkeyup='CheckUsername(this.value);'></td> <td width='30%'><div id='usernameresult'></div></td> </tr> <tr> <td>Password</td> <td><input type=password id='pw1' name=password onkeyup='CheckPasswords(this.value);PasswordMatch( );'></td> <td><div id='passwordresult'></div></td> </tr> <tr> <td>Confirm Password</td><td><input type=password name=cpassword id='pw2' onkeyup='PasswordMatch();'></td> <td><div id='cpasswordresult'></div></td> </tr> <tr> <td>Gender</td> <td> <select name='gender' type='dropdown'> <option value='Male'>Male <option value='Female'>Female</select></td> </tr> <td>Element</td> <td> <select name='elements' type='dropdown'> <option value='3'>Lighting <option value='1'>Fire <option value='5'>Water <option value='2'>Wind <option value='4'>Earth </select></td> </tr> <tr> <td>Villages</td> <td> <select name='villages' type='dropdown'> <option value='1'>Amegakure <option value='2'>Getsugakure <option value='3'>Hoshigakure <option value='4'>Ishigakure <option value='5'>Iwagakure <option value='6'>Jomae <option value='7'>Kiragakure <option value='8'>Konohagakure <option value='9'>Kumogakure <option value='10'>Kusagakure <option value='11'>Otogakure <option value='12'>Shimogakure <option value='13'>Sunagakure <option value='14'>Takigakure <option value='15'>Takumi </select></td> </tr> <tr> <input type=hidden name=ref value='' /> <tr> <tr><td colspan=3 align=center><input type=submit value=Submit></td></tr> </tr> </table> </form> > <a href='login.php'>Go Back</a>";
  5. Just becaus ethere is a mod similar to this one on here for free, doesnt mean that part of the mod is worth $0. If you want to make this mod for $1 or $2, then go ahead. :)
  6. Thanks Smokey.
  7. I would like to add: If you are a 'respected member' of MWG, and have a decent programming and MCCodes knowledge, I would happily send you a free copy so that you could do a small review on the modification. I just want to proove that this IS NOT just a simple 'tweak', and is most certainly worth $5.
  8. The correct ZIP file has been sent to you. Sorry about that. You will find detailed instructions and SQL data, and an upload folder in the ZIP file which has been sent.
  9. I think I sent you the wrong file. Ill email you when I find the correct one as I defintelly made instructions, SQL's ect. Ill get to you soon.
  10. What is your purpose here? Stop trying to damage sales...
  11. This is $5 we are talking about... Thats not much. If you dont like it, then fair goes. But no point making your point here if you have no intentions of even buying the mod ;)
  12. Seems pretty decent. I think the simplicity of the text is good. Sometimes putting too much effects on text makes it look worse. However like the post above says, it's not worth much, and wouldnt take long to make for people who have a decent knowledge of photoshop. Keep it up though,
  13. How can you say that? LOL. It's $5 for more than 600 lines of code which include AJAX, Js, PHP, and MySQL. There is two mods themselves in this - contact lists, and profiles. Most of the other mods which go for $5 have not got half the amount of complexity and features as this mod... Ive seen plenty of mods for $5 which would take 10 minutes to code.
  14. This is more than just a bb code signature... Read the feature list. Also, the mod has been sent. Thanks!
  15. Less and less people are using mccodes every day in my opinion. I suggest you start thinking about making mods for other engines because my bet would be that n a few years, MCCides will no longer be as popular as other engines. However making mods in general is still a good idea. There is still many people who are developing games on this forum.
  16. Wasnt aiming my post at you ;) Don't worry. I'm warning you that somoene may steal your template if you show them a HTML document of it. Rather safe than sorry is the way I would look at it.
  17. I'd be careful when doing that... Theres a few thefts going around reselling layouts. (I suspect it's someone in this thread. < I have my reasons.)
  18. No problem. Glad I could help.
  19. To change default time zone, you can either change the time zone in your WHM (thats if you own your own server), or you can use the following php function: date_default_timezone_set (); If you want, London time for example, date_default_timezone_set ('Europe/London' );   About the daylight saving, you would have to do something like this: $hour = date("h", time()); if ($v3 < 12) { echo "Its morning"; ) ^^ That would tell you whether its morning/night ect. I havent tested it, so it may not work however thats the kind of script you would have to use.
  20. In my opinion, Gangster Legends is the best free engine unless you are a very good coder. However like I said, all your users will be removed if you go for this engine. Generic RPG is also decent in my opinion, however, its very insecure.
  21. If you change to mccodes V2 then you wont lose anything other than the files. Therer may be some bugs doing it like this, but they should be fix able. However if you change to a different engine you will lose EVERYTHING. Including the users.
  22. If your wanting to insult me, then theres a great feature called the PM system. People like you really drive me round the bend.
  23. A good forum post is something which is informative, and is not a massive big long paragraph. No-one likes reading a big massive post. Similar to the one above - Looked at it, and thought 'no way im reading all that'.
  24. If you have read his pask few comment, he 'does not care whether it's a ripped mccodes or not'.
×
×
  • Create New...