Configuration

You can configurate Flashcommander by editing bin/config.xml.

 <root>

	<gateway>
		<item endpoint="../amfphp/gateway.php" />
	</gateway>

	<license>
		<item domain="flashcommander.org" key="c45fc9649e44d9ae95435d3783a31244" />
	</license>

	<style>../styles/flashcommander_white.swf</style>

	<modules>
		<item name="TextEditor" data="module" url="modules/TextEditor.swf" ext="txt;htm;xml" />
		<item name="ImageViewer" data="module" url="modules/ImageViewer.swf" ext="jpg" />
		<item name="SwfPlayer" data="module" url="modules/SwfPlayer.swf" ext="swf" />
		<item name="VideoPlayer" data="module" url="modules/VideoPlayer.swf" ext="flv" />
		<item name="Mp3Player" data="module" url="modules/Mp3Player.swf" ext="mp3" />
	</modules>

	<browser ext="pdf;mov" />

	<startview left="" right="thumbnail"/>

	<navclick>single</navclick>

 </root>
  • gateway – endpoint is the url to gateway.php, the main file of the amfphp framework;

    items listed here appear in the server combo box at login
  • license – licensed domains are listed here
  • style – path to style swf
  • modules – modules used by the program; this is where you can associate extensions to modules
  • browser – file types to be opened by the browser
  • startview – if ‘thumbnail’ the respective pane (left or right) has a thumbnail view
  • navclick – use ‘single’ or ‘double’ click for navigation

User data

User data is stored in services/flashcommander_2_5/user/user.xml.

Edit this file to manually change user settings or to add users.

However you can do these from the Users menu in flashcommander.

This file cannot be accessed from the web as it is protected by a .htaccess file.

<users>
  <user>
    <name>user</name>
    <pass>74be16979710d4c4e7c6647856088456</pass>
    <email>user@user.com</email>
    <rootdir>../..</rootdir>
    <permissions>copy;upload;download</permissions>
    <uploadfilter name="Images( *.jpeg, *.jpg, *.png)" type="*.jpg;*.jpg;*.png" />
  </user>
</users>
  • name – user name; the default user name is ‘admin’ with password ‘admin’
  • password – passwords are twice md5 encoded strings; if you forget your admin password, you can change your pass here
  • email – an email adress for the user; this is optional
  • rootdir – the root directory of the user; this is the folder that you are in after logging on to flashcommander
    • the default is a relative path to the parent folder of the ‘flashcommander’ folder, but you can set an absolute system path as well:
      ‘/users/myusername’
  • permissions – this is a colon separated list of the permissions; possible values are:
    • copy;delete;rename;mkdir;overwrite;extension;upload;download;users;editimage;edittext
    • the default user can only copy, upload and download files
    • ‘users’ permission means that you have access to the Users menu
  • uploadfilter – specifies what kind of files can be uploaded by this user
    • name – this is a label that apears in the Browse file dialog
    • type – this is a colon separated list of the allowed extensions
    • in the example below the user can only upload jpeg and png files

5 Responses to Configuration

  1. admin says:

    Uploading can fail for many reasons. I can try to debug it but for that I’d charge $30/hour.

    The automatic login happens at flashcommander.php
    To receive a login window go to FlashCommander.html

    Ivan

  2. Alan says:

    Very nice, and if I have get a permission to give my humble ideas, I think there are two additional functions which will make it a super commander :D

    1. Better to see a brief infomation of a file or folder on mouseover

    2. TextEditor module enables user to get a list of secure urls of remote files when they are selecting files on the grid view or thumbnail view with Ctrl or Shift key pressed.

    Thanks,

    PS: By the way, the ‘double’ for navclick seems not to work.

  3. Charlie K. says:

    Hi Iván, the VIdeoPlayer module in FC2.5 does not seem to play .mp4 files. FLV videos play just fine. What am I doing wrong? Is it the videos themselves? Can I use another flex video player instead of the default one? What do I need to do? Thanks for reply.

  4. admin says:

    You need to add the mp4 extension to the video player module in config xml:

    Also the video need to have the right encoding (h264 codec) – you can check this with the Adobe Media Player.

    Ivan

  5. Charlie K. says:

    I have tried that before (adding mp4 to the VideoPlayer module config in config.xml, now it reads ext=”flv;mp4″). My videos are encoded with h264, still no video playback. Have the latest Flash player on Win7. In fact, the VideoPlayer module even refuses to play FLV files…

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">