
Equinox
Members-
Posts
553 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Equinox
-
I'll give you a healthy valuation of $10 for your engine. $15 if you catch me on a good day.
-
I'm sure Joker is going to be pleased you found his rattle! It's a cute little rattle, perfect for the baby =]
-
You waited an hour, didn't get a reply so you've now thrown your toys out the pram? It's OK, we will find your rattle and get it back to you in due course.
-
You may want to look into compressing this, otherwise it could be huge. $backupbaselocation = "/home/xxxxxx/public_html/sqlbackups"; // change the xxxxxx to your ftp username if you changed the folder name as above then change this to match $backuplocation = $backupbaselocation . "/" . date("d-m-Y"); mkdir($backuplocation, 0777); system("mysqldump --user=$mysql_user --password=$mysql_pass $mysql_db | gzip > $backuplocation/database.gz"); Should do the trick
-
'Tis because you're selling something for $5 that literally takes about 2 minutes to make. Good wage.
-
Well, does the same thing. I don't see how it differs?
-
<?php if(isset($_GET['Do'])) { echo 'You have used the healing aura'; mysql_query("UPDATE users SET hospital = 0, jail = 0, energy = maxenergy, will = maxwill, brave = maxbrave", $c) or die(mysql_error()); } else { echo 'Are you sure you would like to use the healing aaura? <a href = "?Do">Yes</a> || <a href = "index.php">No</a>'; } Sorry, but that/this is not worth $5
-
I've seen it, I wouldn't get your hopes up berty.
-
So, the poll is going in my favour? I like this. I'm sure Stud will aswell. I keep my version up to date, so I voted accordingly.
-
Yes, maybe he felt he needed something intelligent to say, so he's pointing out that Stud said his version will work with the newest PHP version, although Stud clarified this himself. So, just to make sure HD knows; Yes, we are aware Stud's method will work with the newest PHP version - as said by Stud himself, if anyone managed to miss that. Not everyone works with old, out-dated versions of PHP and not everyone here is McCode orientated.
-
There you saying it also. Need i say more? :sleeping: WTF are you going on about? You've always been stupid, and always will be. Why do you even come back here? Go work on your buggy engine. @Djkanna - I used it here because it's only being used to verify the house ID, nothing else....
-
Stud's version will work with the newest PHP version. I have no idea what Haunted is going on about. ctype_digit() will not allow letters to be passed, however is_numeric() will, also is_numeric() allows decimal points, where as ctype_digit() does not
-
$_GET['id'] = (isset($_GET['id']) && ctype_digit($_GET['id'])) ? $_GET['id'] : abs(intval($_GET['id'])); Instead of returning FALSE or empty, why not clean the number then? Either way, ctype_digit() will do all the checks you need here. If 'id' is set and is a number, we leave it otherwise we clean it. FALSE or empty will also work fine, but then no number is being sent.
-
Just really coded to my preference and implementing War_Hero's code, it's a simple addition to a game but some people may like it, I dunno :)
-
<?php include(DIRNAME(__FILE__).'/globals.php'); if(isset($_GET['ID']) && ctype_digit($_GET['ID'])) { if($_GET['ID'] == $userid) { echo 'You cannot punch yourself'; exit($h->endpage()); } $p = $db->query("SELECT userid, username FROM users WHERE userid = ".$_GET['ID']); if(!$db->num_rows($p)) { echo 'This user does not exist'; exit($h->endpage()); } $r = $db->fetch_row($p); echo 'You have punched '.$r['username']; event_add($r['userid'],'you have been punched by [url="viewuser.php?u='.$userid.'"]'.$ir['username'].'[/url]. Click [url="punch.php?ID='.$userid.'"]Here[/url] to punch him back',$c); $db->query("UPDATE users SET punches=punches+1 WHERE userid = ".$_SESSION['userid']); } else { echo 'Please specify a user'; } ?>
-
help with day cron needed for bank intrest
Equinox replied to Sokeybuster's topic in Modification Support
$db->query("UPDATE users SET bankmoney=(bankmoney*1.003) where bankmoney>0 AND active = 1"); -
Why would you make an account admin? Go to settings and get rid of the meta tag.
-
Well, you're posting the data that's been input by the user, and then have another form that needs to be submitted before the database entry is made. So you send the data and then send new data without re-sending the old. I know this sounds weird and I've probably explained it wrong. But I'm tired and my fingers hurt.
-
"FACEBOOKCOUP" is worth 15% off, we have this to advertise our Facebook page. :)
-
How Do i Get it to show How many players are online
Equinox replied to cm31's topic in Modification Support
<?php $Online = mysql_query("SELECT laston FROM users WHERE (laston > unix_timestamp()-15*60) ORDER BY laston DESC", $c) or die(mysql_error()); $Count = mysql_num_rows($Online); echo 'Users online:'.$Count; ?> -
Add me on MSN; [email protected]
-
THere is no CSS, so how can you have a div id? name="Login" - you have done name"login" - maybe just a typo Pass and confirm pass have the same name, this will not work. And I have no idea why you copyrighted a form....
-
I still disagree. Mostly all the errors in McCodes have been fixed by the members. Not so hard to fix when you take the idea of the fixes and make your own. Patches could of been made years ago by following what users post.