Jump to content
MakeWebGames

shinobi

Members
  • Posts

    54
  • Joined

  • Last visited

shinobi's Achievements

Newbie

Newbie (1/14)

1

Reputation

  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
×
×
  • Create New...