Home
Name Modified Size InfoDownloads / Week
wnc2 2011-07-13
wnc1 2010-01-18
README.md 2011-07-11 5.1 kB
Totals: 3 Items   5.1 kB 0

Webnight Commander 2.2

Copyright 2007-2011 Webnight Commander Project

http://sourceforge.net/projects/wnc

Pavel Tzonkov, Jakub Mikians, Vincent Michel

WNC Icon

I. DESCRIPTION


Webnight Commander is web file manager with interface similar to GNU Midnight Commander. The main difference is that Webnight Commander have only one directory panel.

II. FEATURES


  • File manipulations like copy, cut, paste, move, view, edit, upload, download, change permissions, creating new file, directory, symlink, execute (root users only).
  • Browse root filesystem (outside DocumentRoot) if thus is configured.
  • Ability to integrate all source code in single PHP file.
  • Compress whitespaces in HTML, CSS and JavaScript output.
  • Fully integrated Ajax engine.
  • Multiple user accounts, configurable with editing an ini file.
  • User specific home directories.

III. REQUIREMENTS


  • UNIX-like operating system (Linux, BSD, Solaris, Max OS X).
  • Apache 1.3.xx or 2.x.xx.
  • PHP 5.x.x.

IV. INSTALLATION


1. SINGLE FILE VERSION

  1. Edit wnc.php located in root directory of the package. At the beginning of the script you can find the place where you can change script settings. Configure user account(s) in users.ini file. See the comments in the source for details.

  2. Upload or copy wnc.php and users.ini.php to browsable directory on the web server.

  3. Open wnc.php in a web browser.

  4. Log in.

  5. Enjoy!

2. MULTIPLE FILES VERSION

  1. Edit 01_config.php in "source/includes" folder to configure script settings. Edit users.ini.php in "source/" folder to configure default users (sample file).See the comments in the source for details.

  2. Upload or copy content of "source" directory to browsable place on the web server.

  3. Open wnc.php in web browser.

  4. Log in.

  5. Enjoy!

V. CHANGING SOURCE CODE


If you want to change source code, it's recommended to use multiple files version. After changing you can integrate new source in single PHP file using command line PHP script named single_file_generator. Syntax:

    php single_file_generator <gen_file> <source_dir>
  • gen_file - Generated PHP file (default: wnc.php)
  • source_dir - Path to source directory (default: source)

Configuration templates files .ini.php in "source" folder are copied in the <gen_file> directory if they do not already exists.

Becouse of comressing HTML, CSS & JavaScript sources, strict JavaScript syntax is required (; at the end of command rows).

VI. SECURITY NOTES


If your Apache server supports SSL browsing, it's recommended to open wnc.php with https:// instead of http:// at the beginning of the URL address.

VII. CHANGELOG


VERSION 2.2 - 2011-07-12

  • Fixed security issue in users.ini
  • Fixed single file generation problem

VERSION 2.1 - 2011-07-11

  • Evol: Adding user configuration feature through an ini file
  • Evol: Adding execute functionnality for root users only
  • Evol: Removing references to "Webnight Commander" in login page to avoid the attacker to identify the system used
  • Evol: Adding mime types and file extension management for better download support
  • Evol: Adding information about disk space if available by the web server
  • Evol: Adding error reporting and level configuration: filesize function sometimes generates warnings
  • Evol: Changed default charset to utf8
  • Fixed issues with directory names containing simple and doubles quotes
  • Fixed removed short tags <?= by <?php echo for better support
  • Fixed the main script name (wnc.php, index.php...) which is variable and needs to be adaptated correctly in forms

VERSION 2.0 - 2009-01-27

  • Completely new object-oriented source code from scratch, requires PHP 5
  • New dialog boxes (replacement of confirm() and prompt() JavaScript functions)
  • Fully integrated Ajax engine
  • Ability to change file permissins
  • User specific home directories
  • Fixed symlink file permissions
  • "Group" column

VERSION 1.5 - 2009-01-18

  • Jakub Mikians: "Perm" and "Owner" columns and download button
  • Security: Browse user specified directory ($browse setting)
  • Security: Session protection

VERSION 1.0 RC3 - 2007-02-17

  • Edit/View file bugfixes.
  • IE compatibility. Unfortunately IE7 warns when JavaScript prompt called for ChDir, NewFile, NewDir, NewLink, CopyTo, MoveTo actions.
  • Other small bugfixes.

Version 1.0 RC2 - 2007-02-15

  • Selected items posting engine changed. Now posts the file names instead their item number.
  • Edit file: On save - Don't close popup window.
  • Edit file: On close - Confirm to save if file is modified.
  • Many small fixes.

Version 1.0 RC1 - 2007-02-13

  • The first release. No changes, no added things.
Source: README.md, updated 2011-07-11