Ajax File Browser 3 Beta

Lately I’ve had some time to finally keep my promise to make a better AjaxFB.

I’ve also moved the downloads to Sourceforge, in a hope to better keep a track of bugs and other support issues.

The new version has a lot of neat stuff, and fixes a lot of bugs. Here’s a demo, give it a try.

The software is also available for download, but because it’s in beta (and even if it wasn’t) I take no responsibility for how you use or misuse the application or for any damage to or loss of files etc.

There is no documentation yet, but there are little hints here and there.

PS: I haven’t updated the official AjaxFB site yet, so you won’t find any information there.


Share this Post:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon
  • Slashdot
  1. written by Laurent May 1st, 2007 at 08:30 | #1

    Hi,

    I m Ajax File browser fan, really good work.

    I was using beta2 from a while without real problems, a good and stable version.

    I m happy to see that new major version.

    I would help you make it better.

    I see you’ve just opened a souceforge space, so i will post some bugs /requests.

    I can make some traductions like french, german and spanish.

    I can do themes (i m webmaster and have people for graphic stuff).

    Let me know, Regards.


  2. written by jc May 1st, 2007 at 09:37 | #2

    This is just a small project for me, and I think it’s helped me get a few jobs too!

    If you’re going to make some themes for yourself and you’d like to share them, great! But don’t go out of your way if you don’t need to.

    There is a preliminary french language file at the moment, but as the software is still getting improved, it would be easier to convert the language files just prior to the final release. I can contact you about this when the time comes.

    Onwards, if you do plan to make some themes, know that each theme has it’s own javascript file (for visual effect and dialog handling). This approach means that a theme can be 100% different from any other if you want it to.

    The main application has a javascript file to handle the Ajax stuff, and it then makes calls and sends results to the THEME javascript class. If you would like more info let me know.


  3. written by boxster May 10th, 2007 at 21:32 | #3

    Hi! That is the best thing? I have ever seen! But can I say some words about not english languages: there is a problem with charset (in russian, for me) when I copy file with RUSSIAN name, rename it, or do the same things with folders with russian names. Can you do something for solvong this problem, please?


  4. written by Abt Ploutôn May 11th, 2007 at 00:24 | #4

    Hello,

    Nice Program, see http://chesudia.rmxp.de/pages/downloads.php ;) (I will be update, wenn V3 is stable.)

    I can’t contact you “I have found the following errors:
    Your submission has been tagged as spam!” :/

    I has a Idea for the “Preview Pane”, can this preview the contents of txt Files? (or the beginning of this).

    Has you interest of a german lang file?

    Thanks Sven


  5. written by jc May 11th, 2007 at 09:24 | #5

    Previewing text files and torrent files was once on the todo list. As it’s not a major enhancement, I doubt I’ll be going to that length just yet. Perhaps in version 4 (or 5) when I use the ExtJS library, this could become a reality.

    I haven’t asked for any language files to be translated until the version is final. I keep making updates to the english dictionary, and only want to translate it once.

    Boxster: I thought I had covered my bases with foreign characters in file names. I’d like you to send me a file with the characters you’re having trouble with, but I cannot reply to the email you’ve supplied either.


  6. written by Todd May 24th, 2007 at 12:53 | #6

    Fatal error: Call to a member function on a non-object in /home/toddhaynes/domains/kcwebplaza.com/public_html/filemanager/_includes/settings.inc.php on line 24

    This happens after I create a MySQL DB, go to index.php and fill out the form and click submit.


  7. written by Kindred May 29th, 2007 at 16:39 | #7

    Amazing job on this one. Good looking, fast and user friendly.

    I would like to help with a spanish translation as soon as the browser goes to it final release :)


  8. written by Alcibiade June 17th, 2007 at 02:46 | #8

    Hello,

    First of all, thanks a lot for this wonderful job. It’s the most esthetical files manager that I’ve found.

    I just have a probably simple question, do you know a way to create automatically accounts (or to allow some users to create their accounts directly) ?
    Thanks in advance.

    By the way, if you ever need help for a French traduction, I will be glad to do it.


  9. written by jc June 18th, 2007 at 16:38 | #9

    Users can’t create their own accounts, nor is it automatic with the application as it stands.

    If you know your PHP or perl, you can create a script to update the database with a new user at your whim.


  10. written by Chavo September 19th, 2007 at 03:25 | #10

    I found this article: http://www.milw0rm.com/exploits/4405

    Is true that ajaxfb could be exploited?
    If that’s true. I hope that you fix it soon.

    Congratulations for Ajax File Browsing, it’s amazing.


  11. written by sctfic October 4th, 2007 at 20:19 | #11

    See an other similar project named Ajax-browser (or Ajax Browser).
    is a free (LGPL license) file manager for web sites using the HTTP protocol.
    http://ajaxbrowser.free.fr/Docs/download.php


  12. written by jc October 25th, 2007 at 13:47 | #12

    I doubt that AFB was the exploit. I had a message from a security advisor who found only one potential problem, but that would not have allowed unrestricted access to the server’s file system.

    I do suspect Wordpress or PhpBB however… there are exploits found in them all the time.


  13. written by Jason March 5th, 2008 at 10:41 | #13

    This system is for sure the best directory list script I’ve ever seen. However, I am running into one very annoying problem. I’m trying to add a folder from a NAS drive as a share location. I’ve aliased it in apache and the server most definitely has access to it. But when I log in and view the share, it simply says, “There are no files in this directory.” Any way to fix this?

    Thanks.


  14. written by jc March 8th, 2008 at 09:10 | #14

    Is the folder mounted using AutoFS?

    I’m new to linux myself having only installed it at home for the first time a month ago. I had a similar problem where I’ve used AutoFS to access remote files, and tried to use them from AjaxFB. The first time you access the share, it says the folder doesn’t exist but if you try again it works because it’s extablished a connection. To avoid the timing out issue, I had to run an hourly cron script to simply access the directory, keeping the link ‘fresh’.

    Although, even if this doesn’t relate to you, if you can list the folder contents using the shell you should definately be able to see the contents in PHP and AjaxFB.


  15. written by Jason March 11th, 2008 at 02:05 | #15

    Sorry, I should have included more information; It’s running on Windows XP Pro, not on linux. Also, when creating the share, It says that the folder exists when I write out the full path using the NAS ip address (something like \\192.168.1.2\Music\Albums\). The problem occurs when I try to view the shared files by clicking on the share name. It just says there are no files in this directory.

    Thanks for the help.


  16. written by jc March 11th, 2008 at 23:39 | #16

    Yeah other people (even myself at times) are having this trouble. As far as I know it seems that PHP is not accessing shares, or even mapped drives that exist remotely.

    Funny thing is, this used to work, and it used to work well!

    I’ve just done a test, I’ve got php 4.4.2 accessing a mounted share, and it works. I’m also running Vista. That might make a difference, it might not. Check what version of PHP you’ve got, 5.2.5 is the latest, and for my money it seems pretty stable.


  17. written by jc March 11th, 2008 at 23:42 | #17

    Also it might be a permission problem. I assume Apache is running as a service, but that account used by the service may not have access to the folder. This is usually the case with folders inside your Documents and Settings, or something you’ve made private from other accounts on the same machine.


  18. written by Jason March 12th, 2008 at 03:04 | #18

    Hi again. I’m using Apache version 2.2.6 and PHP version 5.2.5. I don’t believe it’s a permission issue since I can access the data on the NAS from a remote location in a browser using the alias I set up in Apache. Also, I tried creating the share in AFB using a mapped drive letter, but AFB tells me that the directory doesn’t exist. It’s an unfortunate problem since data is often stored somewhere other than the web server, but since I know very little PHP, I wouldn’t have the slightest idea how to solve it.

    Thanks again for your help.


  19. written by Gareth March 14th, 2008 at 01:31 | #19

    Hi I’m looking to intergrate this fantasic product into my intranet, but appear to be having problems accessing files from IE. Firefox works perfectly, however when I access using IE 6 or 7 I get:

    Internet Explorer cannot download…
    Internet Explorer was not able to open this internet site. The requested site is either unavailable or cannot be found.

    Browsing and opening text files isn’t an issue - but Word docs or PDFs for example just won’t open/download. All other functionality appears to be there (upload etc…)

    I’m usng AjaxFB 3 Beta on Apache 2, PHP 4.3.10, MySQL 4 on open SUSE.


  20. written by johnny March 19th, 2008 at 14:46 | #20

    Hi JC, thanks for this great tool.
    I installed it(beta3), got the config as required, mysql tables populated, and then got to the login screen. I click on login and enter the user name and password as I did during setup, the screen goes back to the login screen.
    Can someone please help ?
    Thanks
    Johnny


  21. written by johnny March 20th, 2008 at 00:30 | #21

    I looked at the error logs on hosted server for my site, and it shows that its looking for a session directory..
    Example of the error log:
    PHP Warning: session_start() [function.session-start]: open(/var/php_sessions/sess_b3e7636e198e11c6c30284f100c6badc, O_RDWR) failed: No such file or directory (2) in /hermes/web01/b2325/pow.johnny2001/htdocs/fb/index.php on line 5
    PHP Warning: session_start() [function.session-start]: open(/var/php_sessions/sess_b3e7636e198e11c6c30284f100c6badc, O_RDWR) failed: No such file or directory (2) in /hermes/web01/b2325/pow.johnny2001/htdocs/fb/index.php on line 5

    Where do I define the session directory, in the php.ini ? or inside the Ajax FB ?
    Is it a permission issue ?
    If some knows, can you please email me at johnny2001@hotmail.com..
    Thanks


  22. written by Mike March 27th, 2008 at 03:07 | #22

    I am having the same issue as johnny, andyone know how to fix this? its really annoying.


  23. written by Rene May 16th, 2008 at 22:04 | #23

    Hey, after playing around a bit i got confused about the permissions of files and folders. Now all my stuff is accessible through the web without logging in - http://domain.tld/share_no_1/testfile.zip can be downloaded! If i change the permissions files cant be uploaded or deleted. As i mentioned i am confused. Can you give me the “standard” permissions of files and folders that are used after a fresh ajax file browser installation? Thanks!


  24. written by jc May 18th, 2008 at 23:15 | #24

    Hi Rene,

    AFB is designed to be a Front end for the filesystem. Your files can exist anywhere on the server, yet still be downloaded through AFB.

    The example link you have mentioned seems to be the real location of the file on your webserver, thus bypassing AFB when accessing it. You can move this test directory outside of your publicly visible website, then reference it’s relative or absolute location within the share settings to avoid this potential security issue.

    Feel free to comment again if you need more help.


  25. written by Rene May 20th, 2008 at 03:01 | #25

    Hey, this would be the easiest solution but there is a problem. If i copy a share folder outsite the apche root and try within ajaxfb to set the absolute (/var/www/…. and so on) path to the share folder it tells me that the directory doesn`t exist. I checked twice, path, permissions …

    Today i noticed something about the 3 themes. If i change the default theme it`s only active if you are not logged in. If you log in the default theme appears.

    Thanks!


  26. written by jc May 20th, 2008 at 17:42 | #26

    a) Shares
    Try using a relative path. It may also be that Apache does not have the permissions to traverse the directories above your chosen directory. As another (probably easier) solution, you could leave your directory within your webroot, but create a .htaccess file within it which can use some authentication or rewrite rules to deny direct access to the files.

    b) Themes
    You can set a theme for the entire site (the default) and you can also set a theme for each user, which is probably what you have done.


  27. written by Ipomina May 24th, 2008 at 01:19 | #27

    Hi, Very nice job! It works perfectly.

    I would like to know if it is possible to custonize the browser?

    I would like to use a tree rather than an icon based browers….


  28. written by 100tral June 17th, 2008 at 23:00 | #28

    Hi, first bravo and thanks you for afb 3, il love it.
    But i have read about “approot” Parameter Remote File Inclusion Vulnerability in _includes/settings.inc.php

    do you have solve this problem yet ?
    merci thanks and sorry for my bad english !


  29. written by MLGraphics July 30th, 2008 at 08:20 | #29

    Hi,

    here is a solution for Todds problem:
    > Fatal error: Call to a member function on a non-object in
    > home/toddhaynes/domains/kcwebplaza.com/public_html/filemanager/_includes/settings.inc.php
    > on line 24
    >
    > This happens after I create a MySQL DB, go to index.php and fill out the form and click submit.

    I installed AFB 3 beta on a Buffalo LinkStation Pro with Freelink (Debian) running. Mysql Version is 5.0.32-Debian_7etch6-log, PHP Version is 5.2.0-8+etch11, Linux Version is Linux LS-GL64C 2.6.12.6-arm1.
    The Problem below occurs when an sql queue like “SELECT DISTINCT `blacklist_extension` FROM `”.TABLE_PREFIX.”blacklist_ext`”; is used on a table with more than one entry. This is the case in afb_blacklist_ext. To fix this problem, just remove the DISTINCT in all settings.inc.php files and add the following lines before “//get language file”:
    $blacklist_files = array_unique($blacklist_files);
    $blacklist_dirs = array_unique($blacklist_dirs);
    $blacklist_types = array_unique($blacklist_types);

    Background: DISTINCT selects entrys ignoring duplicates. This seems to be a problem on some systems. The fix is to select everything and later on remove the duplicates with array_unique()

    Problably the programmer should apply this fix to the next release.


  30. written by MLGraphics July 30th, 2008 at 08:27 | #30

    Here is the diff file of my patch:
    57c57
    $sql = “SELECT `blacklist_dir` FROM `”.TABLE_PREFIX.”blacklist_dirs`”;
    62a63
    > $blacklist_dirs = array_unique($blacklist_dirs);
    66c67
    $sql = “SELECT `blacklist_file` FROM `”.TABLE_PREFIX.”blacklist_files`”;
    71a73
    > $blacklist_files = array_unique($blacklist_files);
    75c77
    $sql = “SELECT `blacklist_extension` FROM `”.TABLE_PREFIX.”blacklist_ext`”;
    80a83
    > $blacklist_types = array_unique($blacklist_types);
    88c91

    \ Kein Zeilenumbruch am Dateiende.

    > ?>


  31. written by kannagi September 26th, 2008 at 04:39 | #31

    Thanks for creating this program!! it’s exactly what i’m looking for and I’ve searched forever!

    The only thing I would like to know is how to customize the front page text. What file/directory do i go in? or do i have to create a file? and where would I put it?

    thanks!!


  32. written by eXo November 6th, 2008 at 20:24 | #32

    Indeed it was a miracle finding this App. Thank you so much.

    Spanish characters don’t get displayed correctly.
    Tryed recoding the spanish file to utf-8 and it works, but app gives errors.
    Tryed replacing all charset_headers in app files and convert all files to ut-8, but app gives many more errors.

    Tryed different combnination of charsets in apache and php.in with no luck.

    Any suggestions? Thank you very much in advance.


  33. written by cail December 8th, 2008 at 08:33 | #33

    Hi, thank you for the great scripts. I am using a patch http://sourceforge.net/forum/forum.php?thread_id=1851415&forum_id=685738 to display the date of upload. Do you think it will be possible to list the files based on the date? Thanks.


  34. written by theanykey January 9th, 2009 at 05:57 | #34

    Great work! I am trying to use this through a SonicWall SSL-VPN 2000. The URL is loaded as such: https://www.domainname.com/go/http://localip/afb/

    and it tells me: Error, could not connect to server. it works great of course from the local network. Any ideas on this one?


  35. written by guest March 9th, 2009 at 20:52 | #35

    hi.
    i installed the programm, but whenever i open the site, i get an error “no result returned”.
    what to do about that?


  36. written by FEDERICO May 16th, 2009 at 02:04 | #36

    Hello, i want to know if there’s a way to download a complete folder?
    like doubleclicking the folder or something or if there’s anything like that
    thanks


  37. written by mario oyunlar? June 17th, 2009 at 00:45 | #37

    it works thanks