<?php

/**
 * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @package clearFusionCMS
 * @copyright Copyright (c) 2012 - 2013 clearFusionCMS. All rights reserved.
 * @link http://clearfusioncms.com
 */

/**
 * cfBackendPrivatefilemgrAction Class
 *
 * The action class to display the private file manager.
 *
 * @package clearFusionCMS
 */
class cfBackendPrivatefilemgrAction extends cfBackendControllerAction {

	/**
	 * Process the page.
	 */
	function process() {
		$this->testPermission('cfContent.private');
		$this->breadcrumbTrail->addCrumb(__('Manage Private Files', 'cfBackend'), $this->assemble('', 'privatefilemgr'));

		$this->renderPage(__('Manage Private Files', 'cfBackend'),
			$this->renderBlock(__('Manage Private Files', 'cfBackend'), '<iframe src="' . $this->assemble('', 'browsefiles') . 'private/" class="filemanager"></iframe>')
		);
	}
}
