Jump to content
MakeWebGames

Poldar

Members
  • Posts

    85
  • Joined

  • Last visited

    Never

Poldar's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I've been working on a script for my Affiliate Marketing site... And I made my login page, and I have been working on my register page.. And Zend Studio, which uses a syntax highlight, is not highlighting my coding, so I think their maybe something wrong. This script is part of Torch Productions, so if you're interested PM me or MSN me at [email protected] Well here is the register page: <!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>Game Credo</title> <link href="file:///C|/wamp/www/Game Credo/styles.css" rel="stylesheet" type="text/css" /> </head> <body> [img=gamecred1.jpg] "; $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>"); } require "mysql.php"; global $c; if($_POST['username']) } $username=$_POST['username']; $username=str_replace(array("<", ">"), array("<", ">"), $username); $q=mysql_query("SELECT * FROM users WHERE username='{$username}'",$c); if(mysql_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."; } $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; } mysql_query("INSERT INTO users (username, userpass, gamecredits, gender, signedup, email, lastip) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 1, 1, 0, 'Male', unix_timestamp(), '{$_POST['email']}', '$ip')", $c); $i=mysql_insert_id($c); } print "<h3 align="center">You have signed up!Login and start completing offers!</h3> > [url='login.php']Login[/url]"; } else { print "<h3>Welcome to Game Credo! Below is the Registration Form!</h3>"; print "<form action=register.php method=post>Username: <input type=text name=username> Password: <input type=password name=password> Confirm Password: <input type=password name=cpassword> Email: <input type=text name=email> <input type=submit value=Submit></form> > [url='login.php']Go Back[/url]"; } print " </body> </html>   And here is the login page: <!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>Game Credio Login</title> <link href="file:///C|/wamp/www/Game Credo/styles.css" rel="stylesheet" type="text/css" /> </head> <body> </p> </p> </p> <table width=80% align="center"> <tr> <td><fieldset> <legend>Login</legend> "; print " <form action=authenticate.php method=post name=login onsubmit=\"return saveme();\"> Username: <input type=text name=username /> Password: <input type=password name=password /> Remember me? <input type=\"radio\" value=\"ON\" name=\"save\" /> Yes <input type=\"radio\" name=\"save\" value=\"OFF\" checked /> No <input type=submit value=Submit /> </form> </fieldset></td> </tr> </table> </p> </body> </html> I hope you guys can help, this is my first custom made and completely my own work.. Thanks :)
  2. Re: [mccodes v2]New and improved inventory Looks like a nice mod! :-o I dont think it will be free though! Righteousness and good luck with it!
  3. Re: [paid requests] Advanced attacking system [paid requests] This would be a nice modification.. Even better if it will be free :-D
  4. Re: [mccode] Gangs Nice modifcation.. You must truly enjoy TC... :mrgreen:
  5. Re: [mccode v1] Mccodes V1 Jail Some body should make this into a v2.... :mrgreen:
  6. Poldar

    Adobe CS3

    Re: Adobe CS3 I got my whole CS3 Master Collection from edit: URL removed CE does not promote warez sites :D
  7. Re: [MOD] Flash Clock suitable for all MCC versions [RE-UPLOADED] hehe Thanks..I am going to be using this..
  8. Poldar

    I Have a Problem :(

    Re: I Have a Problem :( You have a free host..and you don't have a writable have a writable game folder.. How do I know? You forgot to remove the installer.php folder
  9. Re: Is this correct? Lol Not a problem..Im a n00b with this PHP thing..but I will get the hang of it >.<
  10. Re: Is this correct? I did do a day cron sql...yours is just correct lol
  11. I programmed this script so that my users can pay a certain amount of money to see how much experience they have, as I made it so they do not know... Let me know if I did anything wrong with this script please and thanks..   <?php include "globals.php" print "<h4>Want to see how much EXPERIENCE you have?<h4> [i]You walk into the fortune teller's office... if ($ir['hospital']>"0") { echo "Blocked while in hospital"; $h->endpage(); exit; } if ($ir['rich']=="1") { echo "You have done this once today already. [url='explore.php']Back to the city[/url]"; $h->endpage(); exit; } if ($answer=="no" || $answer=="") { $answer=$_POST['answer']; print "<form action='fortuneteller.php' method=POST> <h3>Fortune Teller<h3> Welcome ($ir['user']) ! I am the fortune teller! Would you like to pay $15,000 to know how much experience you have? <select name='answer'> <option value='yes'>Yes Please</option> <option value='no'>Not today thanks Uncle</option> </select> <input type='submit' value='Confirm Answer'> </form>"; } if ($answer =="yes") { print "<font size=3> You are currently {$exp} % through your current level! </font>"; $db->("UPDATE users SET money=-15000 WHERE userid=$userid",$c); } if ($ir['fortuneteller']=="1") { print "What the hell you doing here? You were already here!"; } else { print "You must leave now! [url='index.php']Home![/url] "; $db->("UPDATE users SET fortuneteller=fortuneteller+1 WHERE userid=$userid", $c); } } $h->endpage(); ?>   And in cronday you would add $db->("UPDATE users SET fortuneteller=0",$c);   Thanks :-)
  12. How come there is no option to make organized crimes for gangs in the staff panel? I know how to insert direct through phpMyAdmin..but it doesnt have set time limits like they should Could some one help me out :? :?
  13. Re: Cookie Shop My Second MOD!! WOOT Uhm..well if you think about it...all mods are pretty much the same...spend money to get some effect..
  14. Re: My First MOD EVER!!! Need help..think there is big time mistakes... I'll make another one here soon.. :mrgreen:
  15. Re: Cookie Shop My Second MOD!! WOOT Thanks man! I see what I did..and what I can do to make it better thanks so much
×
×
  • Create New...