Haunted Dawg Posted January 5, 2009 Posted January 5, 2009 Just replace search.php with this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And then delete: searchname.php searchlocation.php And your done. Quote
John99 Posted January 5, 2009 Posted January 5, 2009 Re: [MCC V2] - Search.php in one | Optimized Kool any screenies? Quote
Haunted Dawg Posted January 5, 2009 Author Posted January 5, 2009 Re: [MCC V2] - Search.php in one | Optimized It's basicly a code update. No visual update as of yet. Quote
radio_active Posted January 5, 2009 Posted January 5, 2009 Re: [MCC V2] - Search.php in one | Optimized It looks pretty much exactly the same Crazy-T, its just more effecient as it doesnt require 3 files to get one job done.. Simple, nice work :wink: +1 Quote
John99 Posted January 5, 2009 Posted January 5, 2009 Re: [MCC V2] - Search.php in one | Optimized Oh just coded into one php file insted of like 2 or 3 i see now :) Quote
Karlos Posted January 5, 2009 Posted January 5, 2009 Re: [MCC V2] - Search.php in one | Optimized And by guessing average MCCodes security and coding, this is more secure and better laid out out Quote
Haunted Dawg Posted January 5, 2009 Author Posted January 5, 2009 Re: [MCC V2] - Search.php in one | Optimized Yes. It is. I am going through my game file's once more and saw this would be alright to give out. Quote
Magictallguy Posted January 5, 2009 Posted January 5, 2009 Re: [MCC V2] - Search.php in one | Optimized Learn about isset() It will help you get rid of unwanted errors popping up (E_WARNING) Quote
POG1 Posted January 5, 2009 Posted January 5, 2009 Re: [MCC V2] - Search.php in one | Optimized In the form you have; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. The action to the same page isn't needed, it will do it anyway ;) Apart from that it looks good though Quote
Haunted Dawg Posted January 5, 2009 Author Posted January 5, 2009 Re: [MCC V2] - Search.php in one | Optimized I always prefer to put action="'.$_SERVER['PHP_SELF'].'". And MTG. i know ISSET() Quote
John99 Posted January 5, 2009 Posted January 5, 2009 Re: [MCC V2] - Search.php in one | Optimized Yah but at least killah is giving stuff to C.E members for free and some of you ain't so ill give killah +1 for that !!! Quote
Assault Posted May 30, 2009 Posted May 30, 2009 Re: [mccode v2] Search.php in one | Optimized slight modification made all mysql_query to $db->query made all mysql_num_rows to $db->num_rows You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Haunted Dawg Posted May 30, 2009 Author Posted May 30, 2009 Re: [mccode v2] Search.php in one | Optimized slight modification made all mysql_query to $db->query made all mysql_num_rows to $db->num_rows For what reason? MCCodes v2 does NOT always need $db->, it take's longer, plus their class is ubberly gah. Mysql_query will perform faster. Quote
Assault Posted May 30, 2009 Posted May 30, 2009 Re: [mccode v2] Search.php in one | Optimized I've read that it is more secure. Quote
Faz` Posted May 30, 2009 Posted May 30, 2009 Re: [mccode v2] Search.php in one | Optimized I've heard they can both be used? Doesn't really matter what you use? Lol Quote
Haunted Dawg Posted May 30, 2009 Author Posted May 30, 2009 Re: [mccode v2] Search.php in one | Optimized @ Faz: they can both be used, how ever, what do you prefer, speed or noncense? @ Assault: Who ever said "it is more secure" to you completly lied :lol: The class itself only handles error's for you in a more managable (faster fix) for you, how ever, my script has no mysql error's therfor no need for 'or die(mysql_error());' or $db-> Quote
Faz` Posted May 30, 2009 Posted May 30, 2009 Re: [mccode v2] Search.php in one | Optimized With this brain of mine, nonsense of course :) Quote
Haunted Dawg Posted May 30, 2009 Author Posted May 30, 2009 Re: [mccode v2] Search.php in one | Optimized Cluttered code, Displays nasty code at visitors, leaving you more vulnerable to exploit's.. finding what field is what, what table is what. Quote
Strats Posted May 31, 2009 Posted May 31, 2009 Re: [mccode v2] Search.php in one | Optimized Thanks! :-) Quote
Zero-Affect Posted May 25, 2010 Posted May 25, 2010 $_SERVER['PHP_SELF'] alternative/vulnerability Quote
Haunted Dawg Posted May 26, 2010 Author Posted May 26, 2010 $_SERVER['PHP_SELF'] alternative/vulnerability No Thank's. Quote
Zero-Affect Posted May 29, 2010 Posted May 29, 2010 No Thank's. So since your modification is technically XSS exploitable i mean no thanks is a good reply... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. So im sure you have some idiotic come back but i was only trying to help... No need to be rather disrespectful to people who are trying to help specially when clearly your in the wrong. I always prefer to put action="'.$_SERVER['PHP_SELF'].'". Quote
Haunted Dawg Posted May 29, 2010 Author Posted May 29, 2010 I was not trying to have some idiotic reply, it's simply that, this modification is long time ago, thus. I do not support it in any way. How ever, if you want to post your security crap on my thread, do it your self. Please & Thank you. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.