Fatal if content dirs are unwritable

This commit is contained in:
baffo32 2015-10-12 16:16:22 -04:00
parent 8f2e073735
commit 362b190641
1 changed files with 6 additions and 0 deletions

View File

@ -125,6 +125,12 @@ else
require_once( 'includes/lang.php' );
require_once( 'includes/functions.php' );
// Check for valid content dirs
if ( !is_writable(ZM_DIR_EVENTS) || !is_writable(ZM_DIR_IMAGES) )
{
Fatal( "Cannot write to content dirs('".ZM_DIR_EVENTS."','".ZM_DIR_IMAGES."'). Have you run zmlinkcontent.sh?");
}
if ( isset($_REQUEST['view']) )
$view = detaintPath($_REQUEST['view']);