<?php
$path = "../../../";
include($path . "core/includes/header.inc.php");
$_SESSION['content_manager']['language'] = ""; // set language to default just in case.
$sub_id = null;

$cm = new ContentManager();

if ( isset($_GET['sub_id']) && is_numeric($_GET['sub_id']) ) {

	$sub_id = $_GET['sub_id'];

}

$page_id = $cm->CreateNewPage($sub_id);

header('Location: manage.php?page='.$page_id);