24Apr
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.
This entry was posted by jc on Tuesday, April 24th, 2007 at 5:22 pm and is filed under Ajax File Browser.
You can follow any responses to this entry through the RSS 2.0 feed.
You can skip to the end and leave a response. Pinging is currently not allowed.
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.
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.
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?
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
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.
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.
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 :)
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.
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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
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
I am having the same issue as johnny, andyone know how to fix this? its really annoying.
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!
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.
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!
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.
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….
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 !
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.
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.
—
> ?>
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!!
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.
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.
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?
hi.
i installed the programm, but whenever i open the site, i get an error “no result returned”.
what to do about that?
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
it works thanks
I’ve a user who is getting the message
Error – This file is only visible from an Ajax File Browser webpage. Sorry!
Anyone know why this might be? I can’t replicate the error using their login details… am waiting back to hear what browser they have
Yes I know why. It’s because there’s a header not getting sent to the server. Usually this is prevented by anti virus, anti spyware or some firewalls even.
But this is no problem to fix. In the root folder of AFB, edit the file: _ajax.php
At the top of the page you’ll see this:
define(“SECURITY”,true);
Change that to be:
define(“SECURITY”, false);
and try again. This won’t really make your site any less secure, it was just paranoia.
Hi,
I just installed this Ajax File Browser beta3. But when I login in the first time, I got this Fatal error: Maximum execution time of 30 seconds exceeded in C:\WAMP20\www\AjaxFB\_includes\functions_file.inc.php on line 163
Would anybody help me on this? Thanks.
KYC
The function where the script is stalling is trying to read a file from a location. This could be on your server, on the web, anywhere really. It would be handy to know what that file path is. It may be that it’s a network server path and there are firewalls or something stalling the retrieval of that file. Or it might just be a very large file transferring over a small network.
Oh also, if you mean you are logging in to the Admin area for the first time, the application is probably trying to check for updates on the web. You can disable this by editing /_includes/admin/home.php and replacing:
$info = GetXML(….
with:
$info = false;
Hi,
Just supplement to my last message, the error message is received when I try to login the “Admin” area.
However all the other areas seems working properly — I can assign user to share my files.
KYC
jc,
Thanks you very much for your advice. I got it work right away!!
It’s a perfect piece of work … thanks for the great work!!
KYC
jc,
I’m now getting AFB up and running!
Apart from downloading the file, is there a way that the user can opening the file directly while they’re viewing them (by clicking on the thumbnail or file list)?
KYC
Hi kyc, no there isn’t a way to do this. In the next release of AFB (yet to be completed), I plan to have a Gallery view for specific shares, so that folders with images in them can be previewed before downloading. If you have more suggested upgrades, feel free to add them to the forums: http://ajaxfb.jc21.com/forum/