Beispiel #1
0
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
 *
 * @package irlist
 * @subpackage functions
 */
/**
 * required setup
 */
require_once '../kernel/setup_inc.php';
include_once LIBERTY_PKG_PATH . 'edit_help_inc.php';
include_once IRLIST_PKG_PATH . 'IRList.php';
$gBitSystem->verifyPackage('irlist');
$gBitSystem->isPackageActive('irlist', TRUE);
$gContent = new IRList();
if (!empty($_REQUEST['content_id'])) {
    $gContent->load($_REQUEST['content_id']);
}
// Get plugins with descriptions
global $gLibertySystem;
//if( $gContent->isLocked() ) {
//	$gBitSystem->fatalError( 'Cannot edit page because it is locked' );
//}
if (!empty($gContent->mInfo)) {
    $formInfo = $gContent->mInfo;
    $formInfo['edit'] = !empty($gContent->mInfo['data']) ? $gContent->mInfo['data'] : '';
}
if (isset($_REQUEST["edit"])) {
    $formInfo['edit'] = $_REQUEST["edit"];
}
if (isset($_REQUEST['title'])) {
    $formInfo['title'] = $_REQUEST['title'];