Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Link in Admin to login page for gallery


Guest

Recommended Posts

Posted

Hi! A new day, a new problem!

I've installed Coppermine gallery and there you have a login page: login_gallery.php. That's ok...but I don't want it to be displayed as a link-button on my site, so that I don't confuse clients. I want to be the only one to upload pictures and everything. So, I was thinking to have the login_gallery link in the Admin section. Is it possible to do that? And if so, how? Login_gallery.php is in the catalog directory, I've tried adding in admin/includes/column left require(DIR_WS_CATALOG. 'login_gallery.php'); but it gives me an error and I know I'm missing something. But what? This is the error I'm getting:

 

Warning: main(): open_basedir restriction in effect. File(/muccelmic/login_gallery.php) is not within the allowed path(s): (/home/muccelmi/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/muccelmi/public_html/muccelmic/andi/includes/column_left.php on line 26

 

Warning: main(/muccelmic/login_gallery.php): failed to open stream: Operation not permitted in /home/muccelmi/public_html/muccelmic/andi/includes/column_left.php on line 26

 

Fatal error: main(): Failed opening required '/muccelmic/login_gallery.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/muccelmi/public_html/muccelmic/andi/includes/column_left.php on line 26

Posted

I've waited a few days, not to be pushy or anything...Maybe some one knows now how to do it? Please! I may not have explained it right but I still want to do it. The easier way would be just to delete the Login link from the album and then to type in the browser www.mysite.com/login_gallery.php, but I really would like to avoid that.

Thank you!

Posted

I had a similar error message & had my hosting co. look into it. They said:

 

"This problem occured as we have introduced a new security feature called php_basedir protection. This protection will stop people from accessing other users' files via php scripts."

 

My host offered to disable the feature on affected accounts, which was nice :) Check to see if that's the problem with yours.

 

Hope that helps!

 

:D

Posted

Could some one explain me more about this? How could this affect the security or something like this on my site? And is this the only solution?

Posted

Hi there,

 

I'm not sure of the specifics of the security feature. I read in another post here that if sessions are saved to the database instead of the tmp folder, the error won't happen.

  • 4 weeks later...
Posted

Well, i still haven't figured out this. Is there any other solution than to completely delete the login link and to go to the login gallery page just to type the path in the browser? I'd really need to have a way to acces this login page from the admin section....Maybe I didn't explain correctly the situation?...If so, please someone tell me so I can give you the proper details.

 

Thank you so very much!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...