-
Posts
2,210 -
Joined
-
Last visited
-
Days Won
47
Content Type
Profiles
Forums
Events
Everything posted by sniko
-
It will be the same techniques; Opening a database connection Encrypting/hashing the passcode Inserting into dataase Close database connection You will have to find out how IPB forums encrypt/hash the passcodes, as it would have to be the same.
-
Web Archive captured it December 14, 2004 capture....probably a late capture
-
Two consecutive positive feedback from zu.....I'm getting scared :p (Friendly banter) True words about it being global ;) I am, maybe people try and exploit it...but I had a few minutes on my hand, so might as well ;)
-
There are many tools on the internet, where you just type in a URL, for example LOIC. I don't see how someone can be 'bad' at it. I thought he was quite good :? End point. Don't accuse someone of doing something illegal until you have proof.
-
Kim Dotcom realizes he's being spied on when his ping goes up in Modern Warfare 3.
-
or /* -- We are in jail.php -- This portion will show the link to use the jail key -- Change the value of $jailkey to match the correct item id */ $jailkey = 109; if( has_item($jailkey) ) { echo '<a href="?use_key=TRUE">Use Jail Key</a>'; } /* -- We are in jail.php -- Somewhere near the top, or bottom.... you decide. */ $_GET['use_key'] = filter_var($_GET['use_key'], FILTER_VALIDATE_BOOLEAN) ? $_GET['use_key'] : FALSE; if( $_GET['use_key'] == TRUE ) { /* -- Not sure if you want a success rate of the key, for example; 70% of the time the key works... -- If so, use mt_rand() and an if() statement */ if( !has_item($jailkey) ) { echo 'You don\'t have a jail key!'; } else { echo 'The door unlocks when you used the jail key!'; item_remove($userid, $jailkey, 1); $db->query("UPDATE `users` SET `jail`=0 WHERE `userid`={$userid}"); } } function has_item($itemid) { global $db, $userid; $item = $db->query("SELECT `inv_id` FROM `inventory` WHERE (`inv_itemid`={$itemid}) AND (`inv_userid`={$userid}) AND (`inv_qty` > 0)"); if( $db->num_rows($item) ) { return TRUE; } esle { return FALSE; } }
-
Assumes position at the end of the firing range.... :p @replies Thank you!
-
How to integrate simple machine forums into any mccodes package Addons Import existing members (By KyleMassacre) (Code mucked up, or not showing? Click me) Update info center stats (By sniko) KyleMassacre's standardization (By KyleMassacre) Requirements Enough server space to host the software (Optional) Able to create another database, with a separate database user; keeping things separate + these.... Why use this? Install awesome packages Very easy to manage Hardly no programming required Probably ((don't quote me) much more secure than your current forums) No need for users to register twice, data is copied into SMF on signup What do I have to do? Really, nothing, apart from the following; If you chose to create another database, with a separate database user, do so. Download simple machine forums into (preferable) a different directory, perhaps /forum and run the installer. Run the installer; http://www.game.com/forum Fill in the form appropriately Create your admin account Complete Downfalls This method 'copies' the user details from register into the smf tables, so existing members won't be automatically signed up Preferably used on fresh installs Instructions Open up register.php, and find the section where is says "You've signed up, enjoy the game", then a query. Just before this, add; (Code mucked up, or not showing? Click me) /* SMF Integration - The following ___VALUE___'s, enter the relevant details for SMF database*/ $link = mysql_connect("localhost", "__DATABASE_USER__", "__DATABASE_PW__"); mysql_select_db("__DATABASE_DB__", $link) or die(mysql_error()); $passwd = sha1(strtolower($username) . $_POST['password']); mysql_query("INSERT INTO __DATABASE_DB__.`smf_members` (`member_name`,`date_registered`,`real_name`,`email_address`,`passwd`) VALUES ('{$username}',unix_timestamp(),'{$username}','{$email}', '{$password}')"); mysql_close($link); /* SMF Integration */ Now, using SMF admin panel, remove the use of register ....and you're all set ;) When people sign up, they've been entered into SMF database, so they can just log in with their game details on SMF forum Notes.... I chose SMF as it's fairly easy to use, and install, as well as being very flexible - granted, I haven't explored other forum software - don't gun me down, trolls.
-
PirateBay did however, get shut down for 2 days recently. I couldn't find the news article I read a few days ago, but this covers it.
-
This applies. http://prntscr.com/gq1li
-
If you've used this, then there is a jail check: http://prntscr.com/gpyms To be honest, I think I've read this whole topic wrong... Ahaha.
-
if($r['effect1_on']) { $einfo=unserialize($r['effect1']); if($einfo['inc_type']=="percent") { if(in_array($einfo['stat'],array('energy','will','brave','hp'))) { $inc=round($ir['max'.$einfo['stat']]/100*$einfo['inc_amount']); } else { $inc=round($ir[$einfo['stat']]/100*$einfo['inc_amount']); } } else { $inc=$einfo['inc_amount']; } if($einfo['dir']=="pos") { if(in_array($einfo['stat'],array('energy','will','brave','hp'))) { $ir[$einfo['stat']]=min($ir[$einfo['stat']]+$inc, $ir['max'.$einfo['stat']]); } else { $ir[$einfo['stat']]+=$inc; } } else { $ir[$einfo['stat']]=max($ir[$einfo['stat']]-$inc, 0); } $upd=$ir[$einfo['stat']]; if(in_array($einfo['stat'], array('strength', 'agility', 'guard', 'labour', 'IQ'))) { $db->query("UPDATE `userstats` SET {$einfo['stat']} = '{$upd}' WHERE userid={$userid}"); } else { $db->query("UPDATE `users` SET {$einfo['stat']} = '{$upd}' WHERE userid={$userid}"); } } This.
-
Yep, I just used $r as $result (from the query) if one was made...
-
I believe that's already been done through the item use and user edit attributes in creating an item. To address the issue you have, Try looking for something like this in the source of inventory.php <a href="itemuse.php?ID={$r['itmid']}"]}">Use</a> Or something similar.
-
If someone DDoS'd you, then your bandwidth would increase over your ISP limit, and you'd you have to pay the costs. A somewhat ineffective way to show development.
-
Hardly any, I could count them on one hand.
-
this. /sorry my reply is spam
-
mccode-v2 streets.php includes image + ability to fight NPCS
sniko replied to Uridium's topic in Free Modifications
I think you've just put yourself forward for bumping it. -
With them being difficult to bookmark and/or remember shouldn't make a difference in game, in my opinion, as you have the links to click in game, as it's part of the game.
-
Perhaps use some sort of token before such actions are taken. Pardon the lingo, but isn't this a case of csrf?
-
You must spread some Reputation around before giving it to Spudinski again. Oops! Google Chrome could not connect to 76.169.202.236
-
Send one my direction, too! I could do with a refreshing beverage.