Jump to content
MakeWebGames

shinobi

Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by shinobi

  1. Hey america killed "saddam Hussein" (terrorist) a while ago and they didn't kill him right away ! they captured him and showed off pictures and videos to people ... this i dont this is true ... i think osama bin ladin was dead years ago but obama just want to take the credit and doesn't want to leave the seat of president.
  2. i didnt say i designed it but i did code it to mc code
  3. iMac Apple iMac :P http://www.apple.com
  4. layout is legal ! its for free
  5. Hey the stat bars on my game arent working for some reason ? http://countrywars-rpg.pcriot.com/login.php User: test Pass: test please check it out and give me any ideas to fix it :)
  6. Hey here is the layout for my game :) http://countrywars-rpg.pcriot.com/login.php i decided to sell it this is my first time making a sale ... never made one before so ill need guidence :P
  7. All Done :P
  8. thanks :) its fixed now ... so the registration is complete now for the in-game :)
  9. <?php session_start(); include_once (DIRNAME(__FILE__) . '/config.php'); global $_CONFIG; define("MONO_ON", 1); include_once (DIRNAME(__FILE__) . '/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']; } echo " <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <meta http-equiv='Content-Type'content='text/html; charset=iso-8859-1' /> <title>Country Wars</title> <link rel='stylesheet' type='text/css' href='perfect.css' /> <link rel='stylesheet' type='text/css' href='ddcolortabs.css' /> <script language='javascript' type='text/javascript' src='jquery-1.2.3.min.js'></script> <script language='javascript' type='text/javascript' src='query.flow.1.0.js'></script> <script language='javascript' type='text/javascript'> $(document).ready(function(){ $('#myController').jFlow({ slides: '#mySlides', width: '387px', height: '254px', duration: 400 }); }); </script> <script type='text/javascript' src='dropdowntabs.js'></script> </head> <body>"; $IP = $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$IP)) { echo('<b><font color=red size=+1>Your IP has been banned, there is no way around this.'); exit; } echo" <div id='container'> <div id='top'> Registration Page</div> <div id='banner'></div> <div id='colortab' class='ddcolortabs'> <ul id='nav'> <li><a href='index.html' id='home'><span><img src='i/nav_homee_roll.jpg' alt='' /></span></a></li> <li><a href='reg.html' id='community'><span><img src='i/nav_community_roll.jpg' alt='' /></span></a></li> <li><a href='story.html' id='standings'><span><img src='i/nav_standings_roll.jpg' alt='' /></span></a></li> <li><span class='Apple-tab-span' style='white-space: pre'> </span> </li> <li><br /> </li> <li><br /> </li></ul></div> <div id='left'> <div class='content'></div> <div class='black_bar'>Registration Form</div> <div class='content'> <p><font face='wp_bogus_font' size='3'></font></p> <center> <h2>Registration Form</h2>"; global $c; if($_POST['username']) { $sm=100; if($_POST['promo'] == 'country wars') { $sm+=100; } $username=$_POST['username']; $username=str_replace(array("<", ">"), array("<", ">"), $username); $q=$db->query("SELECT * FROM users WHERE username='{$username}'",$c); if($db->num_rows($q)) { print "Username already in use. Choose another."; } else if($_POST['password'] != $_POST['cpassword']) { print "The passwords did not match, go back and try again."; } else { $_POST['ref'] = abs(@intval($_POST['ref'])); $q=$db->query("SELECT * FROM users WHERE lastip='$IP' AND userid={$_POST['ref']}",$c); if($db->num_rows($q)) { die("Registration Error"); } if($_POST['ref']) { $q=$db->query("SELECT * FROM users WHERE userid={$_POST['ref']}",$c); $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, 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')"); $i=$db->insert_id(); $db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)"); if($_POST['ref']) { $db->query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}",$c); 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')", $c); } print "You have signed up, enjoy the game.<br> <a href='login.php'>Login</a>"; } } else { echo " <form id='Register' action='reg.php' method='POST' runat='vdaemon' disablebuttons='ll'><font face='wp_bogus_font' size='3'> <table cellpadding='2' cellspacing='0' border='0'> <tbody> <tr> <td width='130'> <vllabel validators='UserID,UserIDExist' errclass='error' for='UserID' cerrclass='controlerror'>Username:</vllabel> </td> <td width='140'> <input style='background-color: #000000; color: #FFFFFF' name='UserID' type='text' class='control' id='UserID' size='15' /> <vlvalidator name='UserID' type='required' control='UserID' errmsg='User ID required'> <vlvalidator name='UserIDExist' type='custom' control='UserID' errmsg='User ID already exist' function='UserIDCheck'> </vlvalidator></vlvalidator></td> <td width='300' rowspan='7' valign='top'></td></tr> <tr> <td> <vllabel errclass='error' validators='Password,PassCmp' for='Password' cerrclass='controlerror'>Password:</vllabel> </td> <td> <input style='background-color: #000000; color: #FFFFFF' name='Password' type='password' class='control' id='Password' size='15' /> <vlvalidator type='required' name='Password' control='Password' errmsg='Password required'> <vlvalidator name='PassCmp' type='compare' control='Password' comparecontrol='Password2' operator='e' validtype='string' errmsg='Both Password fields must be equal'> </vlvalidator></vlvalidator></td> </tr> <tr> <td> <vllabel validators='Password,PassCmp' errclass='error' for='Password2' cerrclass='controlerror'>Confirm Password:</vllabel> </td> <td> <input style='background-color: #000000; color: #FFFFFF' name='Password2' type='password' class='control' id='Password2' size='15' /> </td> </tr> <tr> <td></td> <td></td></tr> <tr> <td> <vllabel errclass='error' validators='EmailReq,Email' for='Email' cerrclass='controlerror'>E-mail:</vllabel> </td> <td> <input style='background-color: #000000; color: #FFFFFF' name='Email' type='text' class='control' id='Email' size='15' /> <vlvalidator type='required' name='EmailReq' control='Email' errmsg='E-mail required'> <vlvalidator type='format' format='email' name='Email' control='Email' errmsg='Invalid E-mail'> </vlvalidator></vlvalidator></td> </tr> <tr>"; if($_GET['REF']) { print $_GET['REF']; } print "> <td colspan='2'> <input style='background-color: #000000; color: #FFFFFF' type='submit' class='control' value='Register' /> <input style='background-color: #000000; color: #FFFFFF' type='reset' class='control' value='Reset' /> </td> </tr> </tbody></table> <br /> </font></form> <p> </p></center><font face='wp_bogus_font' size='3'><br /> </font><font size='3' face='wp_bogus_font'></font></div></div> echo '<div id='right'> <div class='right_head'> <span class='Apple-tab-span' style='white-space: pre'> </span>What You Can Do</div> <ul class='right_list'> <li class='light'>Earn Money</li> <li class='dark'>Buy Weapons / Armor</li> <li class='light'>Fight</li> <li class='light'>Do Missions</li> <li class='light'>Create a Gang</li> <li class='dark'>Gang Wars</li> <li class='light'>Enter The Hall Of Fame</li></ul> <div class='right_head'> <span class='Apple-tab-span' style='white-space: pre'> </span>Top Players</div> <ul class='right_list'> <li class='light'> </li> <li class='dark'><br /> </li> <li class='light'><br /> </li> <li class='dark'><br /> </li> <li class='light'><br /> </li> <li class='dark'><br /> </li> <li class='light'><br /> </li></ul><br /> </div> <div class='clear'></div> <div id='footer'><br /> <br /> <center>Copyright Goes here</center></div></div> </body> </html>"; ?> thats my register game code ??? what have i done wrong...... this error shows up : Parse error: syntax error, unexpected $end in /home/adrpg/public_html/reg.php on line 183
  10. Managed to Connect login to the game :) i'll do register page tommorow and also ill design in-game on PS
  11. :) lol @ lilith ill make my next one mainly blue for you :P
  12. html its not php yet :P
  13. navigation! Check out my navigation bar :) taking any advise on it
  14. hey i tried to style it with html :) check it out :)
  15. Thanks I'm Not Really Good With Styling Login's But ill give it a go and post it agaain :) thanks @ AB and ruler of zu
  16. Hey Guys, I've been working on a template for the past week or so ... and this is what I've come up with (html) http://countrywars-rpg.pcriot.com/login.php still have a lot to code so coming soon: - Navigation - Registration - In game template - Full Game (Mc codes) If You Professional Designer/Coders Have any comments for me please post away :) if there is something you don't prefer please say so... i would have trouble changing it after its all done ;)
  17. on the cron jobs section type in curl http://videoshare.co.cc/cron_fivemins.php?code=codehere
  18. Awesome Cant wait for the coded one O.O i could experiment on it and learn alot XD
  19. Use Pictures : would make alot difference :)
      • 1
      • Like
  20. i think i posted a thread with all my brushes attached ill loook for it and post the link here
  21. Search Really nice mod Curt but when i click search after typing 100 nothing comes up ... its a blank white page how can i fix this
  22. Error Hey , i installed this and i had a few errors .. i fixed some and the page finally showed up: this it what it say all the time : Stealing Error Player does not exist.   any ideas how to fix it
  23. error what is the error on line 23 ?? i tryed putting ; at the end still doesnt work
  24. here Sure, Register.php & login.php converted to Mc Codes v2 and the other files i think do not need to be converted. <?php/*------------------------------------------------------- # Created by wrx 1/26/2010-- # Edited by Jordan Palmer - 25th Feb 2010-- # Filename : register.php-----------------------------------------------------*/session_start();include_once (DIRNAME(__FILE__) . '/config.php');global $_CONFIG;define("MONO_ON", 1);include_once (DIRNAME(__FILE__) . '/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'];}echo "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8' /><title>Lycan Wars</title><link rel='stylesheet' type='text/css' href='style.css' /></head><body>";$IP = $_SERVER['REMOTE_ADDR'];if(file_exists('ipbans/'.$IP)){echo("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>");exit;}echo"<div id='wrap'> <div id='header'> <h1>[img=images/title.png]</h1> <div align='right'> <form action=authenticate.php method=post name=login id='sc'> <table width='400' border='0' cellspacing='10' cellpadding='10'> <tr><td colspan='4'></td></tr> <tr><td> [img=images/username.png]<input name='username' type='text' id='username' class='name'/></td> <td>[img=images/password.png]<input name='password' type='password' id='password' class='pass'/></td> <td align='center' valign='bottom'><input type='image' src='images/login.png' name='submit' id='submit' value='Login' class='submit'/></td> <td align='center' valign='bottom'></td> </tr></table></form> </div> <ul id='nav'>[b] <li class='first'>[url='login.php']HOME[/url] [*][url='about.php']ABOUT[/url] [*][url='contact.php']CONTACT[/url] [*][url='register.php']REGISTER[/url][/b] [/list] </div> <div id='content'> <div class='main fr'> <div class='mainin'> <h2>Lycan Wars Registration</h2>";////////////////Registration//////////////////global $c;if($_POST['username']){$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}'",$c);if($db->num_rows($q)){print "Username already in use. Choose another.";}else if($_POST['password'] != $_POST['cpassword']){print "The passwords did not match, go back and try again.";}else{$_POST['ref'] = abs(@intval($_POST['ref']));$q=$db->query("SELECT * FROM users WHERE lastip='$IP' AND userid={$_POST['ref']}",$c);if($db->num_rows($q)){die("Registration Error");}if($_POST['ref']) {$q=$db->query("SELECT * FROM users WHERE userid={$_POST['ref']}",$c);$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, 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')");$i=$db->insert_id();$db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)");if($_POST['ref']) {$db->query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}",$c);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')", $c);}print "You have signed up, enjoy the game. [url='login.php']Login[/url]";}}else{print "<form action=register.php method=post><table border='0' width='100%'><tr><td>Username: </td><td><input type=text name=username></td></tr><tr><td>Password: </td><td><input type=password name=password></td></tr><tr><td>Confirm Password: </td><td><input type=password name=cpassword></td></tr><tr><td>Email: </td><td><input type=text name=email></td></tr><tr><td>Promo Code: </td><td><input type=text name=promo></td></tr><input type=hidden name=ref value='";if($_GET['REF']) { print $_GET['REF']; }print "'><tr><td align='right' colspan='2'><input type=submit value=Submit></td></tr></form></table>";}///////////////////End Registration////////////////////////// echo" </div> </div> <div class='side fl'> <div class='sinner'><center> [img=images/screenshots.png][img=images/screenshots.png] [img=images/screenshots.png][img=images/screenshots.png] </p> </center></div> <div id='bg'> <center>[url='register.php'][img=images/join.png][/url]</center> </div> </div> </div> </div> </body></html>";?>   Login.php   <?php/*------------------------------------------------------- # Created by wrx 1/26/2010-- # This file is Creative Commons Attributions 2.5 license-- # Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). # Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same, similar or a compatible license.-- # Filename : login.php-----------------------------------------------------*/session_start();require "config.php";require "global_func.php";echo"<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8'><title>WorldWars</title><link rel='stylesheet' type='text/css' href='style.css'></head> "; $IP = $_SERVER['REMOTE_ADDR'];if(file_exists('ipbans/'.$IP)){print("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>");exit;}echo"<body><div id='wrap'> <div id='header'> <h1>[img=images/title.png]</h1> <div align='right'> <form action=authenticate.php method=post name=login id='sc'> <table width='400' border='0' cellspacing='10' cellpadding='10'> <tr><td colspan='4'></td></tr> <tr><td> [img=images/username.png]<input name='username' type='text' id='username' class='name'/></td> <td>[img=images/password.png]<input name='password' type='password' id='password' class='pass'/></td> <td align='center' valign='bottom'><input type='image' src='images/login.png' name='submit' id='submit' value='Login' class='submit'/></td> <td align='center' valign='bottom'></td> </tr></table></form> </div> <ul id='nav'>[b] <li class='first'>[url='login.php']HOME[/url] [*][url='about.php']ABOUT[/url] [*][url='contact.php']CONTACT[/url] [*][url='register.php']REGISTER[/url][/b] [/list] </div> <div id='content'> <div class='main fr'> <div class='mainin'> <h2>Home Page</h2> This template is allowed for all uses, including commercial use, as it is released under the Creative Commons Attributions 2.5 license. The only stipulation to the use of this free template is that the links appearing in the footer remain intact. Beyond that, simply enjoy and have fun with it!</p> <h2>Home Page</h2> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse pretium commodo lorem. Cras gravida, mauris pellentesque aliquet posuere, sapien eros interdum orci, et sagittis sem dolor eu est. Curabitur et urna. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Mauris laoreet egestas tortor. Donec sit amet ante sit amet velit bibendum interdum. Curabitur vitae enim. Curabitur sapien. Nullam sit amet urna ac velit tincidunt dapibus. Maecenas iaculis, orci eu hendrerit vehicula, turpis nunc vestibulum velit, quis tristique pede mauris eu arcu. Morbi fringilla, orci malesuada lobortis sollicitudin, magna odio interdum sem, sit amet ultricies metus dolor non nunc. In odio tortor, suscipit sit amet, placerat vel, vulputate nec, turpis. Morbi dictum nibh in est. Proin luctus malesuada odio. Praesent ut ipsum a nibh lobortis semper. </p> </div> </div> <div class='side fl'> <div class='sinner'><center> [img=images/screenshots.png][img=images/screenshots.png] [img=images/screenshots.png][img=images/screenshots.png] </p> </center></div> <div id='bg'> <center>[url='register.php'][img=images/join.png][/url]</center> </div> </div> </div> </div> </body></html>";?>
  25. hey jordan ur register doesnt work
×
×
  • Create New...