Jump to content
MakeWebGames

deathknight90

Members
  • Posts

    33
  • Joined

  • Last visited

    Never

deathknight90's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: Help Please ok, i read my code error better and figured it out. Was very simple.
  2. Ok I was making a new register.php and when I added a few new options it works great. They all go into the database but once you try and login it says:   Warning: Cannot modify header information - headers already sent by (output started at /home/cloutier/public_html/RPG/config.php:13) in /home/cloutier/public_html/RPG/authenticate.php on line 53   <?php session_start(); if(get_magic_quotes_gpc() == 0) { die("Fatal error: MCCode cannot function without MagicQuotes GPC being turned on in PHP.INI."); } 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']; } if ($_POST['username'] == "" || $_POST['password'] == "") { die("{$set['game_name']} Error You did not fill in the login form! > Back"); } $uq=$db->query("SELECT userid FROM users WHERE login_name='{$_POST['username']}' AND `userpass`=md5('{$_POST['password']}')"); if ($db->num_rows($uq)==0) { die("{$set['game_name']} Error Invalid username or password! > Back"); } else { $_SESSION['loggedin']=1; $mem=$db->fetch_row($uq); $_SESSION['userid']=$mem['userid']; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $db->query("UPDATE users SET lastip_login='$IP',last_login=unix_timestamp() WHERE userid={$mem['userid']}"); if($set['validate_period'] == "login" && $set['validate_on']) { $db->query("UPDATE users SET verified=0 WHERE userid={$mem['userid']}"); } header("Location: loggedin.php"); } ?>   This is line 53: header("Location: loggedin.php");
  3. Re: [TGM] Stat Level [TGM]   If you read my post it stated that I already made this. Has it made for a while.
  4. Re: [TGM] Stat Level [TGM] well I see josh you stolen my idea. I had this mod mad for sometime. I showed you my game and this is what you do. Well im no longer showing you my game. Also my stats are a lot better.
  5. Re: Getting Rid of the 2.147 bil cap in MCcode No its not , that is if you make it hard to earn money.
  6. Re: neab for sale     Yes I bought these codes. And I may resell it but I cant use it or resell it. The person that buys it will have full right to it. So if your interested please let me know. When I sell it I will let Alian know who the new owner is.
  7. Hey guys im selling neab because it was a waist of money. Im selling the $200 ones for? Im not sure I guess for like $500 lol jk. Ill sell it for 50% off so $100 Message me if you wanna buy it
  8. Re: [mccode] item images well its not very hard to do. All my items have pics but its not free. Im shure there is someone here that will give you a free one. Sorry:(
  9. Re: Getting Rid of the 2.147 bil cap in MCcode first of all why do you guys allow so much money going into the players banks, hand etc. Its stupid. Cut the money down a bit. When you first join most games start with $200-$1000 cash. Then when players see another player 7 days old they have over 3 million. Why? Why? Why? Its stupid.
  10. Re: Multi Account Issues the reason this is not working... My gues sthat your using v. 2 codes. This codes is for v.1 and v. 1.1
  11. Re: Coding Error (criminal.php) - Please help!!! if you bought these codes then they would work. And if you did buy them ask the owners for a new copy.
  12. Re: Coding Error (itemmarket.php) - Please help!!! thats very funny. Its the same error I an old friend has. He got his copy off me. And yes I didnt buy mine. But I have contacted the owners and currently waiting for an reply. But your error is one small code that is changed.
  13. Re: [mccode] item images then why would you post a code if it will not show a pic.
  14. Re: Making A template   Did I say I can? No I didnt I said its very easy to because there is a way to figure out how to read that file. So many people have mccodes and have learned them. So if someone wanted to then they could.
  15. Re: Making A template U dont need to know a lot of html and you dont need to know any css. (very easy) If you know php then use that. And if you want your login to show online users, high score, etc then you need to make it connect to your database. include "config.php"   that would be what mccodes would be used for. Dont use config on your game just because people can hack your server easy.
×
×
  • Create New...