32 lines
1.2 KiB
PHP
32 lines
1.2 KiB
PHP
<?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
|
|
// ============================================================================
|
|
|
|
// Title of the page
|
|
$layout['title'] .= ' - '.$Language->g('New content'); |