
Poldar
Members-
Posts
85 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Poldar
-
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 :)
-
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!
-
[paid requests] Advanced attacking system [paid requests]
Poldar replied to 03laceys's topic in General Discussion
Re: [paid requests] Advanced attacking system [paid requests] This would be a nice modification.. Even better if it will be free :-D -
Re: [mccode] Gangs Nice modifcation.. You must truly enjoy TC... :mrgreen:
-
Re: [mccode v1] Mccodes V1 Jail Some body should make this into a v2.... :mrgreen:
-
Re: Adobe CS3 I got my whole CS3 Master Collection from edit: URL removed CE does not promote warez sites :D
-
[mccode] Flash Clock suitable for all MCC versions [RE-UPLOADED]
Poldar replied to Uridium's topic in Free Modifications
Re: [MOD] Flash Clock suitable for all MCC versions [RE-UPLOADED] hehe Thanks..I am going to be using this.. -
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
-
Re: Is this correct? Lol Not a problem..Im a n00b with this PHP thing..but I will get the hang of it >.<
-
Re: Is this correct? I did do a day cron sql...yours is just correct lol
-
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 :-)
-
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 :? :?
-
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..
-
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
-
Re: Bar [v1] [FREE] Mmkay..so there isnt really anything wrong with it.. Thanks :D
-
Re: Bar [v1] [FREE] I wouldnt know what is wrong with it..I wrote it as a version 2..and did the conversion tutorial on how to convert it to v2 basically... So yea..if you can fix >.< Let me know what is wrong
-
Re: Bar [v1] [FREE]
-
Okay..so I have been practicing PHP ALL day now..writing out modifications for McCodes..and I wrote 2 v2 ones today..so I decided to make a v1.. I dont know if it is right..so post some info on it... Im not all that good with PHP yet..but I am learning..slowly.. Thanks all.. Bar.. Name is bar.php <?php //MOD MADE BY POLDAR/MOTESE require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); print "<h3><h3 align="center">The Saloon</h3> [url='index.php']Home[/url] "; if ($ir['money'] < 500) { print "Welcome to the Bar son...Need to drown some of those sorrows? Need to gain some more will in your life? You've come to the right place"; } <table width=70% border=0> <th height=8%>Drink</th><th height=8%>Cost</th> <tr> <td>Vodka</td> <td>$500 [url='bar.php?spend=1']Buy[/url]</td> </tr> <tr> <td>Jack Daniels</td> <td>$1000 [url='bar.php?spend=2']Buy[/url]</td> </tr> <tr> <td>Jose Cuervo Hard Tequila</td> <td>$2000 [url='bar.php?spend=3']Buy[/url]</td> </tr> </table>; if ($_GET['spend'] == '1') { if ($ir['money'] < 500) { print "You don't have enough money to pay for the Vodka"; } else { if ($ir['money'] > 500) { print "Have a swig of this fine Vodka young sir"; { mysql_query("UPDATE users SET will=will+3 WHERE userid=$userid",$c); } if ($_GET['spend' == '2') { if ($ir['money'] < 1000) { print "You dont have enough money to buy the Jack Daniels"; } else { if ($ir['money'] > 1000) { print "Drink this...it'll put some lead into your pencil.."; { mysql_query("UPDATE users SET will=will+10 WHERE userid=$userid",$c); } if ($_GET['spend' == '3') { if ($ir['money'] < 2000) { print "You dont have enough money to buy the Jose Cuervo" } else { if ($ir['money'] > 2000) { print "Drink this..you'll drop and then..you'll pop"; { mysql_query("UPDATE users SER will=will+15 WHERE userid=$userid",$c); } } } $h->endpage(); ?>
-
Re: Cookie Shop My Second MOD!! WOOT Could you point out exactly what I did wrong?? And show me how to fix it? Thanks so much! EDIT: I figured out my mistakes forfor "; after the tables..
-
Re: Cookie Shop My Second MOD!! WOOT Oh well >.< It is my second modification EVER made.. So I think I did pretty damn well >.< Thanks all..and how would I do the end page text correctly?
-
Re: Cookie Shop My Second MOD!! WOOT Doesnt seem as if you changed anything..except some quotations..but alright thanks >.< :D
-
Re: Cookie Shop My Second MOD!! WOOT Should work just fine now..I havent tested it.. I forgot some quotations in the script Thanks for the error. :D
-
This is the second mod I have coded.... Please do gimme some insight....and some constructive criticism... <?php //mod created by Poldar //FREE MOD include "globals.php"; print "<h2>Cookie Store</h2> [i]Walking in to the Cookie Shop..you decide whether or not to buy a cookie.. <table width="70%" border="1"> <th height=8%>Cookie</th><th height=8%>Cost</th> <tr> <td>Chocolate Chip Cookie</td> <td>$10 [url='cookieshop.php?spend=1']Buy cookie[/url]</td> </tr> </table> if ($_GET['spend'] == '1') { if ($ir['money'] < 10) { print "You don't have enough money to buy the cookie..Best leave now.."; } else { if ($ir ['money'] >10) { print "You buy the cookie! You feel happier inside! [url='explore.php']Back to City[/url] "; $db->("UPDATE users SET money=money-10, nerve=nerve+1 WHERE userid=$userid",$c); } } } $h=>endpage(); ?> Thanks all and hope you like it..
-
Re: Crimes??? ((WILL*3.5)/3)+(LEVEL/3) Say you wanted to use EXP? Could you make it something like ((EXP*3.5)/12)+(LEVEL/3) Could you put into that into the value formulas?