canibalstew Posted August 5, 2009 Posted August 5, 2009 If there are any issues Please feel free to message. Gallery Mod(Revised) Quote
Strats Posted August 5, 2009 Posted August 5, 2009 Re: Gallery MOD Fixed and Secured Will this work with V2? Quote
canibalstew Posted August 5, 2009 Author Posted August 5, 2009 Re: Gallery MOD Fixed and Secured yes both ver1 and 2 as there is instructions with simple replace. Quote
Haunted Dawg Posted August 5, 2009 Posted August 5, 2009 Re: Gallery MOD Fixed and Secured Who's modification was this before? Quote
canibalstew Posted August 5, 2009 Author Posted August 5, 2009 Re: Gallery MOD Fixed and Secured Mine created from a class found at phpclasses.org under gpl I just updated this mod to secure and simplify things for it. Quote
Strats Posted August 5, 2009 Posted August 5, 2009 Re: Gallery MOD Fixed and Secured Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/*****/public_html/preferences.php on line 73 What's wrong with : if($ir['galleryid']>0) Quote
canibalstew Posted August 5, 2009 Author Posted August 5, 2009 Re: Gallery MOD Fixed and Secured one sec i will look THIS You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. looks correct to me. did you add the sql and such Check line above look for missing ", ' or ; Quote
Strats Posted August 5, 2009 Posted August 5, 2009 Re: Gallery MOD Fixed and Secured Yes I did is it different for V2? Quote
Guest Sniko` Posted August 5, 2009 Posted August 5, 2009 Re: Gallery MOD Fixed and Secured Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/*****/public_html/preferences.php on line 73 What's wrong with : if($ir['galleryid']>0) The problem could e with the link below.... Does it have print ' Or echo ' Before it becase that may cause the error with the ahref tag with a ' in it Quote
canibalstew Posted August 5, 2009 Author Posted August 5, 2009 Re: Gallery MOD Fixed and Secured issue fixed as a note there is an ending } so if your adding the if statement to the area there will be two } at the end of the section for example it would look like this; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
D T K Posted August 5, 2009 Posted August 5, 2009 Re: Gallery MOD Fixed and Secured Ok Canibal while your online is this secure form extra extensions such as .jpg.txt or from Uploading shells will it strip the Code from it? Or if by some chance someone knows what they are doing and binds it to an Image will the Uploader detect the shell? Quote
canibalstew Posted August 5, 2009 Author Posted August 5, 2009 Re: Gallery MOD Fixed and Secured well in most instances of my code the secured issue that was troubling everything is how I had it set as it ran off of some plain sets of stuff like in iframe it had an actual link and had major security exploits as some could jump to my server or someone elses in which is now fixed. There may be other exploits that I do not know about as I am still in school and there is still much to learn. I would appreciate any other security update you wish to provide. I appreciate your comments. Quote
Spudinski Posted August 5, 2009 Posted August 5, 2009 Re: Gallery MOD Fixed and Secured Who's modification was this before? When I created my version it was my original concept and idea for something like this in an MCCodes based game, so I really don't know why it says "Fixed and Secured". I've checked for similarities, not to much as this is a "very" basic uploader and class. Not trying to steal any attention from this thread, but my original Gallery Modification can be found here. Quote
kevj2 Posted August 5, 2009 Posted August 5, 2009 Re: Gallery MOD Fixed and Secured hey guys i have an erro on the upload page Warning: include(mysql.php) [function.include]: failed to open stream: No such file or directory in /home/cambusco/public_html/upload.php on line 10 Warning: include() [function.include]: Failed opening 'mysql.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cambusco/public_html/upload.php on line 10 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/cambusco/public_html/upload.php on line 20 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/cambusco/public_html/upload.php on line 21 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/cambusco/public_html/upload.php on line 104 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/cambusco/public_html/upload.php on line 105 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/cambusco/public_html/upload.php on line 121 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/cambusco/public_html/upload.php on line 122 Can you help? Quote
kevj2 Posted August 5, 2009 Posted August 5, 2009 Re: Gallery MOD Fixed and Secured i have fied that erro but now i have another that is if you go to view user gallery and they have no imges then there is a lot off warning erros is there anyway to fix this. Quote
Strats Posted August 5, 2009 Posted August 5, 2009 Re: Gallery MOD Fixed and Secured hey guys i have an erro on the upload page Warning: include(mysql.php) [function.include]: failed to open stream: No such file or directory in /home/cambusco/public_html/upload.php on line 10 Warning: include() [function.include]: Failed opening 'mysql.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cambusco/public_html/upload.php on line 10 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/cambusco/public_html/upload.php on line 20 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/cambusco/public_html/upload.php on line 21 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/cambusco/public_html/upload.php on line 104 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/cambusco/public_html/upload.php on line 105 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/cambusco/public_html/upload.php on line 121 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/cambusco/public_html/upload.php on line 122 Can you help? I have the same thing Quote
endo Posted August 5, 2009 Posted August 5, 2009 Re: Gallery MOD Fixed and Secured erm if its within a function adn your using v2 you need to have $db as a global and then change mysql_ to $db-> and that should sort your problems Quote
Strats Posted August 5, 2009 Posted August 5, 2009 Re: Gallery MOD Fixed and Secured I thought it was v2 :roll: Great idea but lots of little problems. Buy a gallery works fine View users with galleries is fine When clicking on to upload page this is shown You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. When clicking up load this is shown You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. When trying to view a users gallery I get this : You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Also got this when trying to upload aswell You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
canibalstew Posted August 6, 2009 Author Posted August 6, 2009 Re: Gallery MOD Fixed and Secured yeah, add a image should fix the issue Quote
canibalstew Posted August 6, 2009 Author Posted August 6, 2009 Re: Gallery MOD Fixed and Secured lol this says secured and updated because I had errors before and had a security issue as I edited and added alot to work with the mccodes game and added the gallery class and upload info to the code as well. I just wanted to update my posts and soon will be adding more especially since I have been away I am building a vault full of scripts in which I have made and is one big modification. I will release when finished. Either way why post if your not contributing or constructively criticizing it just wastes yours and my time. Quote
canibalstew Posted August 6, 2009 Author Posted August 6, 2009 Re: Gallery MOD Fixed and Secured sorry wrong post wrong mod ....lol lol this says secured and updated because I had errors before and had a security issue as I edited and added alot to work with the mccodes game and added the gallery class and upload info to the code as well. I just wanted to update my posts and soon will be adding more especially since I have been away I am building a vault full of scripts in which I have made and is one big modification. I will release when finished. Either way why post if your not contributing or constructively criticizing it just wastes yours and my time. include "mysql.php" is my custom thing use config.php and your good also if it has no images it will show errors but add one pic and its golden Quote
canibalstew Posted August 6, 2009 Author Posted August 6, 2009 Re: Gallery MOD Fixed and Secured also mysql_query can be used in both ver 1 and 2 I coded it this way to be compatable with vers 1 and 2 Quote
Strats Posted August 6, 2009 Posted August 6, 2009 Re: Gallery MOD Fixed and Secured sorry wrong post wrong mod ....lol lol this says secured and updated because I had errors before and had a security issue as I edited and added alot to work with the mccodes game and added the gallery class and upload info to the code as well. I just wanted to update my posts and soon will be adding more especially since I have been away I am building a vault full of scripts in which I have made and is one big modification. I will release when finished. Either way why post if your not contributing or constructively criticizing it just wastes yours and my time. include "mysql.php" is my custom thing use config.php and your good also if it has no images it will show errors but add one pic and its golden Thanks for replying hun I will try :) Quote
rulerofzu Posted March 8, 2011 Posted March 8, 2011 Not sure. I think spudinski made a gallery mod. Its a paid mod but its rather good. 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.