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