Configuration
Inside 'flashcommander' you find three folders: You can move these two separately, but then you have to update 'config.xml' in 'bin'. For example you can copy the 'amfphp' folder to different servers, and run flashcommander from a local folder.

Client side
'bin' - contains the client side files;

bin folder
  • FlashCommander.swf - the flex application
  • index.php - the html wrapper
  • config.xml - the configuration file for the client
  • icons - the icons used for different file types


Edit 'config.xml' in order to change a few parameters:

<trial>
  • 'url' specifies the path to 'gateway.php'; this can be a relative path or a full url
  • 'key' is the trial licence key, which enables you to use flashcommander for 30 days
<licences> - here you have a list of the domains, for which you have purchased a licence
  • 'url' is the full url to 'gateway.php'
  • 'key' is the licence key for the domain; within the domain you can move your installation anywhere you want, just don't forget to update the url
<trial>
   <item url="../amfphp" key="58c99f68afce48b2b8448e3bc24ad8f6" />
</trial>

<licences>
   <item url="http://domain1/flashcommander/amfphp" key="2a4d765e1fbdc03b0b84870f5e0c30ab"/>
   <item url="http://domain2/user/fcomm/amfphp" key="7815696ecbf1c96e6894b779456d330e" />
</licences>


<filetypes> - this is a list of the file types recognized by flashcommander
  • if you want to treat 'asp' files as text, add this extension to the 'text' node
  • if you don't want users to be able to view/edit images, remove it's extension from the 'image' node
<filetypes>
	<text>txt;xml;htm;html;js;css;php;</text>
	<image>jpg;jpeg;png;gif</image>
	<swf>swf</swf>
	<video>flv</video>
	<music>mp3</music>
</filetypes>


<startview> - specifies what kind of view you want at startup; set "thumbnail" for Thumbnail view

<thumbnail> - properties of thumbnails in Thumbnail view
  • size - the size of the thumbnail image
  • colwidth - the width of the whole thumbnail (including the blank area around the image)
  • colheight - the height of a tile; this should be big enough to acommodate the thumbnail label

<copy> - if overwriteprompt is 'true' the user is asked whether he wants to overwrite a file

<preview> - preview of images in Thumbnail view
  • show - if true (default), the images are shown as thumbnails, otherwise their icons are shown
  • generate - if true (default), the small thumbnails are generated on the fly on the server, otherwise the big images are loaded, and resized to fit; set 'false' only if your server doesn't support Php GD functions

<mouse> - mouse navigation
  • navclick - navigate by single or double clicking
  • viewclick - view file content by single or double clicking
<startview left="" right="thumbnail"/>

<thumbnail>
	<size>50</size>
	<colwidth>74</colwidth>
	<rowheight>78</rowheight>
</thumbnail>
	
<copy overwriteprompt="true" />

<preview show="true" generate="true" />

<mouse>
	<navclick>single</navclick>
	<viewclick>double</viewclick>
</mouse>	


<icons> - the list of icons used in File view and Thumbnail view
  • small - the small icons (16x16 pixel) are shown in File view in the first column
  • big - the big icons (32x32 pixel) are shown in Thumbnail view (except for image files where preview is shown)
  • you can add your own file icons or change the existing ones
<icons>
	<up small="icons/up16.png" big="icons/up32.png" />
	<dir small="icons/dir16.png" big="icons/dir32.png" />
	<file small="icons/file16.png" big="icons/file32.png" />
	<jpg small="icons/jpg16.png" big="icons/jpg32.png" />
	...
</icons>


Server side
'amfphp' - contains the server side files

amfphp folder
  • .htaccess - this is for hiding user.xml from the web
  • user.xml - contains user data
  • gateway.php - the main php file

User data is stored in 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.
  • 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
<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>

Skins
In the 'style' folder you can find the skin files for flashcommander. The application loads the specified swf file at startup. The path to the skin can be set in 'config.xml' in the