bludit/bl-kernel/admin/controllers/new-page.php

32 lines
1.2 KiB
PHP
Raw Normal View History

2015-05-05 03:00:01 +02:00
<?php defined('BLUDIT') or die('Bludit CMS.');
2015-08-03 02:49:12 +02:00
// ============================================================================
// Check role
// ============================================================================
2015-07-14 06:41:32 +02:00
// ============================================================================
// Functions
// ============================================================================
2015-08-03 02:49:12 +02:00
// ============================================================================
// Main before POST
// ============================================================================
2015-07-14 06:41:32 +02:00
// ============================================================================
// POST Method
// ============================================================================
2017-08-11 21:22:26 +02:00
if( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
if (createPage($_POST)!==false) {
2017-06-22 23:50:12 +02:00
Alert::set( $Language->g('Page added successfully') );
}
Redirect::page('pages');
2015-05-31 03:06:55 +02:00
}
2015-08-03 02:49:12 +02:00
// ============================================================================
// Main after POST
// ============================================================================
// Title of the page
$layout['title'] .= ' - '.$Language->g('New content');