Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: wallyrp on August 02, 2005, 12:01:29 AM

Title: What is the version of phpwebfilebrowser that contribs uses?
Post by: wallyrp on August 02, 2005, 12:01:29 AM
Good Afternoon,

What is the version? The one that I've seen available for download allows folks to create folders and such. I've poked around a bit to see if there is any security settings but I must be blind.
Title: Re: What is the version of phpwebfilebrowser that contribs u
Post by: mrjhb3 on August 03, 2005, 05:41:54 AM
Quote from: "wallyrp"
Good Afternoon,

What is the version? The one that I've seen available for download allows folks to create folders and such. I've poked around a bit to see if there is any security settings but I must be blind.


You are talking about the webfilebrowser located here, http://sourceforge.net/project/showfiles.php?group_id=47688, correct.  I think they are using the .4b14 version.  I have played with this to get my settings to look almost exactly like what is on the www.contribs.org/contribs site.  The majority of the settings start at line 156 at the
$profile = array(
section.  Here is what mine looks like:
$profile = array(
   "full" => array(
      "allowmove" => false,                 // Allows file and directory moving
      "allowrename" => false,               // Allows file and directory renaming
      "allowalias" => false,                // Allows file aliasing
      "allowcopy" => false,                 // Allows file copying
      "allowdelete" => false,               // Allows file deletion
      "allowremovedir" => false,            // Allows directory deletion
      "allowcreatefile" => false,           // Allows file creation
      "allowcreatedir" => false,            // Allows directory creation
      "allowupload" => false,               // Allows file uploads
      "allowurlupload" => false,            // Allows file uploads from URL
      "allowbrowsetrashcan" => false,       // Allows browsing of trash can
      "allowemptytrashcan" => false,        // Allows emptying of trash can
      "allowrestorefromtrashcan" => false,  // Allows restore files from trash can
      "allowdownload" => true,             // Allows file download
      "allowedit" => false,                 // Allows file edition
      "allowshow" => true,                 // Allows file viewing (useful only if allowedit is false)
      "allowsearch" => false,               // Allows searches
      "allowregexpsearch" => false          // Allows optional use of regular expressions in searches
   ),

You can change some of the values back to true and see what options you turn back on.  I also downloaded the view and download gif files and placed them in the wfbimages directory.

Here are some other changes that I made:
$title = "My download area";
#$readmefile = "wfbreadme.html";  
$useimages = true;
# "readonly" => !@is_writeable($fp),  - Line 571
#echo "<th>".$messages["tab9"]."</th>"; - Line 1593
#  echo "<td align=center>".(($file["readonly"]) ? $messages["tab14"] : "&nbsp;")."</td>"; - Line 1634
#  echo "<td align=center>".(($file["readonly"]) ? $messages["tab14"] : "&nbsp;")."</td>";  - Line 1671

Those line numbers that I remarked out should be real close if not right one.  While I was playing around, I don't believe I added any additional lines.  Now my webfilebrowser looks like the contribs.org site except I removed the search option.  I have never gotten that to work on contribs.org.  Hope this is what you were looking for.  If not, sorry for wasting you time.

JB
Title: What is the version of phpwebfilebrowser that contribs uses?
Post by: wallyrp on August 03, 2005, 01:52:09 PM
Good Morning,

Much obliged! I'll give them a whirl today while I'm at the office.