In Chapter 6 there is a problem downloading files from
directories below the base directory (BASEDIR).
In filemanager.
js there is a call to download.php. The
parameters passed to this download.php function are being passed by a query string.
In download.php, they are trying to get the directory.
The code is using $_POST['dir'] for the directory parameter. It
it should be using $_GET['dir']
In the book, Chapter 6, page 160, in the section that has the code for
download.php, line 6 is as follows and this is not correct.
$dir = BASEDIR . $_POST['dir'];
It should use GET instead, and look like this.
$dir = BASEDIR . $_GET['dir'];
If you don't make this change you will not be able to download files
from directories below the base directory (BASEDIR).