<?php defined('BLUDIT') or die('Bludit CMS.');

// ============================================================================
// Check role
// ============================================================================

// ============================================================================
// Functions
// ============================================================================

// ============================================================================
// Main before POST
// ============================================================================

// ============================================================================
// POST Method
// ============================================================================

if( $_SERVER['REQUEST_METHOD'] == 'POST' )
{
	if( createPage($_POST)!==false ) {
		Alert::set( $Language->g('Page added successfully') );
	}

	Redirect::page('pages');
}

// ============================================================================
// Main after POST
// ============================================================================