Jump to content
MakeWebGames

Recommended Posts

Posted

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)

Posted

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 ;

Guest Sniko`
Posted

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

Posted

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.

Posted

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?

Posted

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.

Posted

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.

Posted

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?

Posted

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.

Posted

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

Posted

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

Posted

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.

Posted

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.

Posted

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

Posted

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 :)

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...