-
Posts
3,137 -
Joined
-
Last visited
-
Days Won
35
Content Type
Profiles
Forums
Events
Everything posted by Djkanna
-
Idea for MWG: Introductions
Djkanna replied to Dillion & Amanda 4 Lif's topic in Feedback and Site Support
Poll added (much better to have a poll XD) I like this idea and I agree with chit chat we could always have a litte notice box at the top of the page saying something like "We see that you are new would you like to introduce yourself? You can do this here" (here being the link) -
if(filter_var($var, FILTER_VALIDATE_INT)) { exit; } else { $id = abs(filter_var($var, FILTER_SANITIZE_NUMBER_INT)); } I use something to that effect.
-
[REQUEST] Rating Modification
Djkanna replied to Dillion & Amanda 4 Lif's topic in Free Modifications
Well it is a big deal yes.. You've got to learn to do it right :P (by you've I do mean all of us not just you.) -
SolidSnake: Be nice -.- Dandre02: http://www.colorcombos.com/ is a good site for finding colour matches
-
[REQUEST] Rating Modification
Djkanna replied to Dillion & Amanda 4 Lif's topic in Free Modifications
== (equals too) = (assigns) So you're are correct AH -
Well there is that but there absolutly rubbish for testing purposes aswell as the game needs to be active for them to run :/
-
Yeah that's good but it does have it's flaws :S
-
Digsby = IM + E-Mail + Social Networks
Djkanna replied to Dillion & Amanda 4 Lif's topic in Chit Chat
Hmm.. Yeah maybe handy but not to my liking I'll stick with what I use for now but great find nonetheless -
Alternative to strip_slashes()
Djkanna replied to Dillion & Amanda 4 Lif's topic in General Discussion
Thanks for confirming that I wasn't too sure XD -
Alternative to strip_slashes()
Djkanna replied to Dillion & Amanda 4 Lif's topic in General Discussion
magic_quotes adds addslashes() to all $_GET, $_POST,$_COOKIE.. If magic_quotes is disabled (like I mentioned in my previous post) there is no addslashes added to those var's to therefor no need to use stripslashes(). As magic_quotes is deprecated and removed as of PHP 6.0 (I think that's right) there will be no use of stripslashes in the instance of how it's being used to date. As for databases addslashes() escapes it then you happen to use for example mysql(i)_real_escape_string() which would en up being: (example) This little Piggy wasn\\'t home for Dinner(/example) Which gives the misconception of stripslashes needed when using mres or addslashes however this is not the case the reason you end up with a / in the database is because you're double escaping(not a good thing) the said variable so ofcourse you want to get rid of the extra backslash(or is it a forward slash :S ) hense the use of stripslashes. Now if magic_quotes is disabled and you use an escaping function inside a query it would look like : (example)mysql_query("UPDATE `blah` SET `blah` = 'This little Piggy wasn\'t home for dinner' ") (/example) In the database it would look like: Blah: This little Piggy wasn't home for dinner Wait a minute no slash? So that then renders the stripslashes() on output that you did useless at best. -
It's the best acronym to date... BTW: people who are off topic please get back to the point of the topic (myself included)
-
Alternative to strip_slashes()
Djkanna replied to Dillion & Amanda 4 Lif's topic in General Discussion
stripslashes does not rely on magic_quotes. Also if you have magic_quotes disabled there is no need to stripslashes() on output from the database :) -
Damn -.-
-
Okay not exactly what you are after but it may give you an idea. $(document).ready(function() { $('button.login').click(function() { //Once the user has clicked the login button assign checking span. $('<span class="checking">Checking blah</span>').appendTo('div.page'); //Then do the ajax request // Success function success: function() { //Remove the checking.. $('span.checking').fadeOut(200).remove(); } }); }); EDIT: Just found out fadeOut() takes another param so you could actually call another funtion inside of it.. $(document).ready(function() { $('button.login').click(function() { //Once the user has clicked the login button assign checking span. $('<span class="checkingUser">Checking Username</span>').appendTo('div.page').fadeOut(500, function() { $(this).remove(); $('<span class="checkingPass">Checking Password</span>').appendTo('div.page').fadeIn(200); }); //Then do the ajax request $.ajax({ //......// // Success function success: function() { //Remove the checking.. $('span.checkingPass').fadeOut(200).remove(); } }); return false; }); }); Maybe this would work.
-
Well for one You're stripping the tags then converting those magically stripped tags into their entity
-
$db->escape(strip_tags(htmlentities($_POST['bugREPORT']))) For real? O.o
-
Good luck AlabamaHit :)
-
Don't know if that's good or not but oh well :S
-
preg_replace('/(https?://)?(www\.)?([a-zA-Z0-9_%]*)\b\.[a-z]{2,4}(\.[a-z]{2})?((/[a-zA-Z0-9_%]*)+)?(\.[a-z]*)?/i', '', $_POST['message']); Then the problem would be, It matches google.com http://www.google.com/ https://www.blah.com/ https://blah.com http://www.blah.com http://blah.com But fails obviously on http:// www . google .com Which wouldn't be a problem if you encode it first as all links with spaces would be encoded like http://www.site.tld/no%20links%20allowed/ which would match. Regex(p) source Gskinner Community
-
[infobox]Brad: Stop with the double posts.[/infobox]
-
Save yourself more hassle and just sell the layout :)
-
iconfinder iconarchive iconpot Google them all great Icon resources :)
-
Thanks but no thanks :P
-
Fair enough. Ps: Isn't that valid email function within MCCodes v2 login/register by default anyway or am I seeing things?