Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Flie not recognized


mcki0127

Recommended Posts

Posted

I have a few installations of osc on my website. I noticed that when I log into the admin panel for a store and click on the "file manager" link, I can see every file on the server. I don't want different store owners having access to all the files. The filename in question is "file_manager.php" My solution is to move this file to it's own directory and password protect it, so only the administrator (me) can access the filemanager for each store.

 

Right now I'm testing this on my home computer, localhost. I moved the file to /admin/filemanager/file_manager.php Then, I defined that directory in /admin/includes/configure.php like this: define('DIR_WS_FILE_MANAGER', 'filemanager/'); I also changed this line in /admin/includes/filenames: define('FILENAME_FILE_MANAGER', DIR_WS_FILE_MANAGER . 'filemanager.php');

 

For some reason, osc will not recognize this file. I get this error when I click on the "File Manager" link:

 

Fatal error: main() Failed opening required 'includes/application_top.php' (include_path='.;c:\php4\pear') in c:\program files\appserv\www\ ... \admin\filemanager\file_manager.php on line 13

 

Ive tried restarting the webserver, but it doesn't help. Any ideas?

 

Thanks,

Steve

new as they come, and greener than...

Posted

Line 13 in file_manager.php is:

 

  require('includes/application_top.php');

 

This is a relative path, so it would be expected that application_top.php would be found in /admin/filemanager/includes/ :D

 

Matti

Posted
I have a few installations of osc on my website.  I noticed that when I log into the admin panel for a store and click on the "file manager"  link, I can see every file on the server.  I don't want different store owners having access to all the files.  The filename in question is "file_manager.php"  My solution is to move this file to it's own directory and password protect it, so only the administrator (me) can access the filemanager for each store. 

 

Right now I'm testing this on my home computer, localhost.  I moved the file to /admin/filemanager/file_manager.php  Then, I defined that directory in /admin/includes/configure.php like this:  define('DIR_WS_FILE_MANAGER',  'filemanager/');  I also changed this line in /admin/includes/filenames:  define('FILENAME_FILE_MANAGER', DIR_WS_FILE_MANAGER . 'filemanager.php');

 

For some reason, osc will not recognize this file.  I get this error when I click on the "File Manager" link:

 

Fatal error: main() Failed opening required 'includes/application_top.php' (include_path='.;c:\php4\pear') in c:\program files\appserv\www\ ... \admin\filemanager\file_manager.php on line 13

 

Ive tried restarting the webserver, but it doesn't help.  Any ideas?

 

Thanks,

Steve

 

 

forget the filemanager, delete it

Treasurer MFC

Posted

Oh, I misunderstood the error message. Going with Amanda's idea, I may just delete it all together since I never use it. But for future reference, how would I remedy this?

 

Thnaks to both of you.

new as they come, and greener than...

Posted
Oh, I misunderstood the error message.  Going with Amanda's idea, I may just delete it all together since I never use it.  But for future reference, how would I remedy this?

 

Thnaks to both of you.

 

 

Never mind. I guess I was pretty tired last night at 3:00am :wacko: I know how to change the path to fix this problem.

new as they come, and greener than...

Archived

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

×
×
  • Create New...