
seanybob
Members-
Posts
666 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by seanybob
-
Re: [mccode] jail/hosp shoutbox Silly ;P If I remember correctly, the shoutbox is only visible to those in jail. The $ir['user_level']==2 means that in addition to those who are in jail, Admins can always see it (regardless of being in jail or not)
-
Re: World's Second Unlocked iPhone you can use essentially any sim card you want, for any service/provider you want (so you're not forced to do the $60 a month plan with AT&T)
-
Re: World's Second Unlocked iPhone Like any ebay scammer will tell you... There's a thousand ways to get around all the "stuff" ebay has in place. Fake bids are extremely common, often on high profile items or used as a means by sellers to raise the price on their own items.
-
Re: Recycle Query Results When you do the query, the results are stored in the variable $q. $q itself is not changed again (even throughout the loop), so why can't you simply use it again? (There's a good chance I'm missing something here, or there's some factor I don't fully understand)
-
Re: World's Second Unlocked iPhone psh beat me to it That phone is indeed the second unlocked iphone. However, that is the only true reason it's special... within days or weeks, tons of unlocked iphones will find their way onto the market (if they haven't already). I would expect that specific phone to sell for somewhere between 5,000-25,000 bucks. Any higher than that is a fake bid.
-
This board looks like it can use some spice... When is a lie ok? Should you always tell the truth? I'd like to hear different people's opinions on this. Then I'll post my own ;)
-
Forums Function On staff Panel V2 Codes
seanybob replied to chaoswar4u's topic in General Discussion
Re: Forums Function On staff Panel V2 Codes replace staff_forums.php with this staff_forums.php <?php include "sglobals.php"; if($ir['user_level'] > 2) { die("403"); } //This contains forum stuffs switch($_GET['action']) { case "addforum": addcity(); break; case "editforum": editcity(); break; case "delforum": delcity(); break; default: print "Error: This script requires an action."; break; } function addcity() { global $db, $ir, $c, $h, $userid; $name=$_POST['name']; $desc=$_POST['desc']; $auth=$_POST['auth']; if($auth and $desc and $name) { $q=$db->query("SELECT * FROM forum_forums WHERE ff_name='{$name}'"); if($db->num_rows($q)) { print "Sorry, you cannot have two forums with the same name."; $h->endpage(); exit; } $db->query("INSERT INTO forum_forums (ff_name, ff_desc, ff_auth, ff_lp_poster_name, ff_lp_t_name) VALUES('$name', '$desc', '$auth', 'N/A', 'N/A')"); print "Forum {$name} added to the game."; stafflog_add("Created Forum $name"); } else { print "<h3>Add Form</h3><hr /> <form action='staff_forums.php?action=addforum' method='post'> Name: <input type='text' name='name' /> Description: <input type='text' name='desc' /> Authorization: <input type='radio' name='auth' value='public' checked='checked' /> Public <input type='radio' name='auth' value='staff' /> Staff Only <input type='submit' value='Add Forum' /></form>"; } } function editcity() { global $db, $ir, $c, $h, $userid; switch($_POST['step']) { case "2": $name=$_POST['name']; $desc=$_POST['desc']; $auth=$_POST['auth']; $q=$db->query("SELECT * FROM forum_forums WHERE ff_name='{$name}' AND ff_id!={$_POST['id']}"); if($db->num_rows($q)) { print "Sorry, you cannot have two forums with the same name."; $h->endpage(); exit; } $name=$_POST['name']; $q=$db->query("SELECT * FROM forum_forums WHERE ff_id={$_POST['id']}"); $old=$db->fetch_row($q); $db->query("UPDATE forum_forums SET ff_desc='$desc', ff_name='$name', ff_auth='$auth' WHERE ff_id={$_POST['id']}"); print "Forum $name was edited successfully."; stafflog_add("Edited forum $name"); break; case "1": $q=$db->query("SELECT * FROM forum_forums WHERE ff_id={$_POST['id']}"); $old=$db->fetch_row($q); print "<h3>Editing a Forum</h3><hr /> <form action='staff_forums.php?action=editforum' method='post'> <input type='hidden' name='step' value='2' /> <input type='hidden' name='id' value='{$_POST['id']}' /> Name: <input type='text' name='name' value='{$old['ff_name']}' /> Description: <input type='text' name='desc' value='{$old['ff_desc']}' /> "; if($old['ff_auth']=="public") { print "Authorization: <input type='radio' name='auth' value='public' checked='checked' /> Public <input type='radio' name='auth' value='staff' /> Staff Only "; } else { print "Authorization: <input type='radio' name='auth' value='public' /> Public <input type='radio' name='auth' value='staff' checked='checked' /> Staff Only "; } print " <input type='submit' value='Edit Forum' /></form>"; break; default: print "<h3>Editing a Forum</h3><hr /> <form action='staff_forums.php?action=editforum' method='post'> <input type='hidden' name='step' value='1' /> Forum: ".forum2_dropdown($c, "id")." <input type='submit' value='Edit Forum' /></form>"; break; } } function delcity() { global $db,$ir,$c,$h,$userid; if($_POST['forum']) { $q=$db->query("SELECT * FROM forum_forums WHERE ff_id={$_POST['forum']}"); $old=$db->fetch_row($q); if($_POST['forum']==$_POST['forum2']) { die("You cannot select the same crime group to move the crimes to."); } $db->query("UPDATE forum_posts SET fp_forum_id={$_POST['forum2']} WHERE fp_forum_id={$old['ff_id']}"); $db->query("UPDATE forum_topics SET ft_forum_id={$_POST['forum2']} WHERE ft_forum_id={$old['ff_id']}"); recache_forum($_POST['forum2']); $db->query("DELETE FROM forum_forums WHERE ff_id={$old['ff_id']}"); print "Forum {$old['ff_name']} deleted."; stafflog_add("Deleted forum {$old['ff_name']}"); } else { print " <script type='text/javascript'> function checkme() { if(document.theform.forum.value==document.theform.forum2.value) { alert('You cannot select the same forum to move the posts to.'); return false; } return true; } </script> <h3>Delete Forum</h3><hr /> Deleting a forum is permanent - be sure. .<form action='staff_forums.php?action=delforum' method='post' name='theform' onsubmit='return checkme();'> Forum: ".forum2_dropdown($c, "forum")." Move posts & topics in the deleted forum to: ".forum2_dropdown($c, "forum2")." <input type='submit' value='Delete Forum' /></form>"; } } function report_clear() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 3) { die("403"); } $_GET['ID'] = abs((int) $_GET['ID']); stafflog_add("Cleared player report ID {$_GET['ID']}"); $db->query("DELETE FROM preports WHERE prID={$_GET['ID']}"); print "Report cleared and deleted! [url='staff_users.php?action=reportsview']> Back[/url]"; } function recache_forum($forum) { global $ir, $c, $userid, $h, $db; $q=$db->query("SELECT p.*,t.* FROM forum_posts p LEFT JOIN forum_topics t ON p.fp_topic_id=t.ft_id WHERE p.fp_forum_id=$forum ORDER BY p.fp_time DESC LIMIT 1"); if(!$db->num_rows($q)) { $db->query("update forum_forums set ff_lp_time=0, ff_lp_poster_id=0, ff_lp_poster_name='N/A', ff_lp_t_id=0, ff_lp_t_name='N/A',ff_posts=0, ff_topics=0 where ff_id={$forum}"); } else { $r=$db->fetch_row($q); $tn=mysql_escape($r['ft_name']); $pn=mysql_escape($r['fp_poster_name']); $posts=$db->num_rows($db->query("SELECT fp_id FROM forum_posts WHERE fp_forum_id=$forum")); $topics=$db->num_rows($db->query("SELECT ft_id FROM forum_topics WHERE ft_forum_id=$forum")); $db->query("update forum_forums set ff_lp_time={$r['fp_time']}, ff_lp_poster_id={$r['fp_poster_id']}, ff_lp_poster_name='$pn', ff_lp_t_id={$r['ft_id']}, ff_lp_t_name='$tn',ff_posts=$posts, ff_topics=$topics where ff_id={$forum}"); } } $h->endpage(); ?> -
Re: HELP!!!!!!!!!!! http://www.ibdhost.com/contact/
-
Re: [TGM] Federal Jail Court System [TGM] Perhaps... An ultimatum should be issued to Cronus. 1) He fixed the bugs in his mod. 2) One of the people who bought the mod posts it here, and the community fixes the bugs in the mod. (I would be willing to head this effort) Unorthodox? Perhaps. But stealing money from people for faulty code is gay.
-
Re: Texas Hold 'Em Mod 1) Could you rephrase the question? A bit confused as to what you're asking... 2) Currently it is using 4 tables in the DB. I could easily narrow it down to 2-3, however I'll be doing some more testing on it, see what takes up less resources. 3) Coding it in v2. Easily converted to v1. 4) That's the portion I'm coding right now... open to ideas. I'm thinking keeping the poker rooms open as long as there is someone in the room, but having a cron running (or perhaps a timestamp comparison) that deletes rooms that haven't had any activity in the past hour or so. I could make that customizable if you wish.
-
Re: Texas Hold 'Em Mod mmk, will do
-
Re: Texas Hold 'Em Mod The test version is mainly just showing that the scoring method is working right now. I decided to go ahead and make both versions. The player vs. computer one will probably take a lil bit longer (as you said, I have to program the AI controls so it is a game of skill rather than change). My immediate project will be the player vs. player. There will be the betting rounds before the flop, after the flop, after the turn, and after the river. There will be multiple tables set up, with different stats for each table (as a user defines). Players at a table (currently max of 7, number can be changed though) play the game, each has a max of 30 seconds for their turn (although the user can change this setting when creating a table). If they don't do something within those 30 seconds, they fold. When logged in, go to this page http://www.seanybob.net/rc/playpoker.php you will see a bit more about how the layout will be (I'll be cleaning that up tho, that's just for testing) To check out the area where you create rooms and such, go here while logged in http://www.seanybob.net/rc/pokerroom.php I'm moving some stuff around, and adding more and more safeguards, but it's coming together :)
-
For a demo, check out http://galacticcrusade.com (click explore -> texas hold 'em) user-test pass-test (NOT FULLY COMPLETED YET) Currently, I just finished the scoring system. It has taken me about a week to get the scoring system setup, getting rid of all the bugs. Now, I have a few options about where to take this. 1)I can set it up so users can play each other, meeting up in different rooms, with the board being updated every 20 seconds or so (or could set up some ajax for it) 2)I can set it up so individual players play the computer It would follow all the rules of a standard texas hold em game. Prices? For the finished product, the price for scenario 2 (player v. comp) would be around 75 bucks, while scenario 1 (player v. player) would be around $125 Think prices are unreasonable? I encourage you to try coding it yourself. This project has taken up about 1300 lines of code so far, with another several hundred to go. My code is as efficient as I can make it, while still ensuring no bugs can be abused and maintaining neatness of coding (such as indenting, etc). I'm posting this mod before it's finished on CE in order to get input on what direction you think I should take this mod, as well as inviting people to poke around and try to find bugs if they wish. God bless, Seanybob
-
Re: FREE RAFFLE MOD V1 raffle.php <?php /*----------------------------------------------------- -- Made by Daniel Robert -- Free mod for v1 -- Please do not resell -- Please leave this note -- Other than that have a nice time -- Don't do drugs. They aren't good for you. -----------------------------------------------------*/ session_start(); 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']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $costperticket=2000; print "<h3>Raffle Machine</h3><hr />"; if($_GET['play']) { if($ir['raffle_played'] >= 10) { die("Nope sorry, you done 10 raffles already. Come back tomorrow."); } if($ir['money'] < $costperticket) { $cpt=number_format($costperticket); die("Nope sorry, it costs \$$cpt to get a raffle ticket. Come back when you have cash to gamble."); } $num=rand(1, 6); $db->query("UPDATE users SET raffle_played=raffle_played+1, money=money-$costperticket WHERE userid=$userid"); $ir['money']-=$costperticket; switch($num) { case 1: $rafs=rand(1,5); print "1st Outcome:Gained {$rafs} crystals"; $db->query("UPDATE users SET crystals=crystals+{$rafs} WHERE userid={$userid}"); break; case 2: $money=rand(320, 2600); print "Second Outcome: Gained \${$money}"; $db->query("UPDATE users SET money=money+{$money} WHERE userid={$userid}"); break; case 3: $stole=min(rand($ir['money']/10, $ir['money']/5), 5000); print "Third Outcome: Lost \${$stole}"; $db->query("UPDATE users SET money=money-{$stole} WHERE userid={$userid}"); break; case 4: print "Fourth Outcome: You did not win anything"; break; case 5: print "Fifth Outcome: You did not win anything"; break; } print "<hr /> [url='raffle.php?play=1']>Try Again[/url] [url='explore.php']>Back to the city[/url]"; } else { print "Welcome to the friday night raffle please take a seat and enjoy the night <hr /> [url='raffle.php?play=1']>Ok roll the raffle again.[/url] [url='explore.php']>No thanks go back to city.[/url]"; } $h->endpage(); ?> SQL QUERY ALTER TABLE `users` ADD `raffle_played` INT( 11 ) NOT NULL DEFAULT '0' ADD TO CRON (Either daily or weekly) $db->query("UPDATE users SET raffle_played=0");
-
Re: FREE RAFFLE MOD I made a few changes... V2 raffle.php <?php /*----------------------------------------------------- -- Made by Daniel Robert -- Free mod for v1 -- Please do not resell -- Please leave this note -- Other than that have a nice time -- Don't do drugs. They aren't good for you. -----------------------------------------------------*/ include "globals.php"; $costperticket=2000; print "<h3>Raffle Machine</h3><hr />"; if($_GET['play']) { if($ir['raffle_played'] >= 10) { die("Nope sorry, you done 10 raffles already. Come back tomorrow."); } if($ir['money'] < $costperticket) { $cpt=number_format($costperticket); die("Nope sorry, it costs \$$cpt to get a raffle ticket. Come back when you have cash to gamble."); } $num=rand(1, 6); $db->query("UPDATE users SET raffle_played=raffle_played+1, money=money-$costperticket WHERE userid=$userid"); $ir['money']-=$costperticket; switch($num) { case 1: $rafs=rand(1,5); print "1st Outcome:Gained {$rafs} crystals"; $db->query("UPDATE users SET crystals=crystals+{$rafs} WHERE userid={$userid}"); break; case 2: $money=rand(320, 2600); print "Second Outcome: Gained \${$money}"; $db->query("UPDATE users SET money=money+{$money} WHERE userid={$userid}"); break; case 3: $stole=min(rand($ir['money']/10, $ir['money']/5), 5000); print "Third Outcome: Lost \${$stole}"; $db->query("UPDATE users SET money=money-{$stole} WHERE userid={$userid}"); break; case 4: print "Fourth Outcome: You did not win anything"; break; case 5: print "Fifth Outcome: You did not win anything"; break; } print "<hr /> [url='raffle.php?play=1']>Try Again[/url] [url='explore.php']>Back to the city[/url]"; } else { print "Welcome to the friday night raffle please take a seat and enjoy the night <hr /> [url='raffle.php?play=1']>Ok roll the raffle again.[/url] [url='explore.php']>No thanks go back to city.[/url]"; } $h->endpage(); ?> SQL QUERY ALTER TABLE `users` ADD `raffle_played` INT( 11 ) NOT NULL DEFAULT '0' ADD TO CRON (Either daily or weekly) $db->query("UPDATE users SET raffle_played=0");
-
Re: Gift V2 Create a file called gift.php and add this to it <?php include("globals.php"); if ($ir['thanks'] > 0) { die("Sorry, you already got your treat today"); } $auto = (int)rand(1, 10); if ($auto == 1) { mysql_query("UPDATE users SET money=money+10000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $10,000"; } if ($auto == 2) { mysql_query("UPDATE users SET money=money+20000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $20,000"; } if ($auto == 3) { mysql_query("UPDATE users SET money=money+30000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $30,000"; } if ($auto == 4) { mysql_query("UPDATE users SET money=money+40000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $40,000"; } if ($auto == 5) { mysql_query("UPDATE users SET money=money+50000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $50,000"; } if ($auto == 6) { mysql_query("UPDATE users SET crystals=crystals+100 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 100 crystals"; } if ($auto == 7) { mysql_query("UPDATE users SET crystals=crystals+200 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 200 crystals"; } if ($auto == 8) { mysql_query("UPDATE users SET crystals=crystals+300 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 300 crystals"; } if ($auto == 9) { mysql_query("UPDATE users SET crystals=crystals+400 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 400 crystals"; } if ($auto == 10) { mysql_query("UPDATE users SET crystals=crystals+500 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 500 crystals"; } ?> Add this somewhere like in main menu if($ir['thanks'] == 0) { print "[<a href=/"gift.php/">Click Here to get your free gift!</a>]"; } And use this SQL for it all ALTER TABLE `users` ADD `thanks` int(11) NOT NULL default '0';
-
Re: Gift I just ran through it and editted a few things. This looks remarkably familiar... can't think of why though. V1 Create a file called gift.php and add this to it <?php session_start(); 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(); if ($ir['thanks'] > 0) { die("Sorry, you already got your treat today"); } $auto = (int)rand(1, 10); if ($auto == 1) { mysql_query("UPDATE users SET money=money+10000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $10,000"; } if ($auto == 2) { mysql_query("UPDATE users SET money=money+20000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $20,000"; } if ($auto == 3) { mysql_query("UPDATE users SET money=money+30000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $30,000"; } if ($auto == 4) { mysql_query("UPDATE users SET money=money+40000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $40,000"; } if ($auto == 5) { mysql_query("UPDATE users SET money=money+50000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $50,000"; } if ($auto == 6) { mysql_query("UPDATE users SET crystals=crystals+100 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 100 crystals"; } if ($auto == 7) { mysql_query("UPDATE users SET crystals=crystals+200 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 200 crystals"; } if ($auto == 8) { mysql_query("UPDATE users SET crystals=crystals+300 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 300 crystals"; } if ($auto == 9) { mysql_query("UPDATE users SET crystals=crystals+400 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 400 crystals"; } if ($auto == 10) { mysql_query("UPDATE users SET crystals=crystals+500 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 500 crystals"; } ?> Add this somewhere like in main menu if($ir['thanks'] == 0) { print "[<a href=/"gift.php/">Click Here to get your free gift!</a>]"; } And use this SQL for it all ALTER TABLE `users` ADD `thanks` int(11) NOT NULL default '0';
-
To cut down on the massive quantities of PM's I've been getting on where to find free hosting... I thought I'd post a thread where everyone can post the free hosts they know of. If you need a free host, please scan through this thread and find one that suits you. My contributions: http://heliohost.org http://freeopenhost.com
-
Re: Help cron job error that, or you somehow missed something that you altered in your cron_fiive_mins file. I'd suggest reuploading the default file, and see if that works
-
Re: Medical - Reduce Hospital Time I'm gonna try and do this from memory... open up "useitem.php" find the part where it's something like... (psuedocode) if(item_type=medical) { mysql_query(UPDATE users SET hp=maxhp WHERE userid=$userid); } What that code does is just increase a user's health when they use a medical item. Alter the query like so if(item_type=medical) { mysql_query(UPDATE users SET hp=maxhp,hospital=hospital-50 WHERE userid=$userid); }
-
Re: Cron Job Hosting I'd check out http://www.webbasedcron.com/ Haven't tested it, but it looks pretty ;)
-
Re: Cash Send Logs I think he's right... it was a bug I noticed a long time ago. Something most people probably offhandedly fixed, it was something stupid if I member correctly
-
Re: Email change for preferences.php fixed. He forgot the "s" in his preferences link. My post is updated.
-
Re: Email change for preferences.php goto preferences.php find [url='preferences.php?action=namechange']Name Change[/url] after this add [url='preferences.php?action=emailchange']Email Adress Change[/url] find case 'passchange': pass_change(); break; after it add case 'emailchange2': do_email_change(); break; case 'emailchange': email_change(); break; Then find $h->endpage(); ?> Before it add function email_change() { global $ir,$c,$userid,$h; print "<h3>Email Change</h3> <form action='preferences.php?action=emailchange2' method='post'> New email address: <input type='text' name='newemail' /> <input type='submit' value='Change Email' /></form>"; } function do_email_change() { global $ir,$c,$userid,$h; if($_POST['newemail'] == "") { print "You did not enter a new email. [url='preferences.php?action=emailchange']> Back[/url]"; } else { $_POST['newemail']=str_replace(array("<", ">", "\\\'"), array("<", ">", "'"), $_POST['newemail']); mysql_query("UPDATE users SET email='{$_POST['newemail']}' WHERE userid=$userid",$c); print "Email changed!"; } }
-
Re: harry potter when i read about that, i really had to laugh... poor guy