Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

File_manager.php


Guest

Recommended Posts

Hi,

 

Im trying to create a new page more or less exact to the file_manager page in admin. I want to list the directoy and then when i click on a file in there for to it open for editing (just like admin one) I dont want to copy the page as i wont to create a fresh one. I have searched and tried most the code on the file_manager.php file without success, i have also been on php.net for hours without any luck.

 

If anybody can help me i would be very gratefull,

 

Thanks

Link to comment
Share on other sites

Never mind think i have got it

 

just incase anybody else wanted to no here is the code from the page that does it

 

if ($file_array = file('../includes/modules/contact-us.php')) {

$file_contents = addslashes(implode('', $file_array));

}

 

tep_draw_textarea_field('file_contents', 'soft', '80', '20', $file_contents, (($file_writeable) ? '' : 'readonly'))

 

 

Thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...