<?php
session_start();
require_once("session-check.php");
require_once("../common.lib.php");
include("fckeditor/fckeditor.php");



if(isset($_GET['msg']))
{
	$msg= $_GET['msg'];
	switch ($msg)
	{
		case 1:
			$msg="Invalid username/password.";
			break;
		case 2:
			$msg="Please enter username and password.";
			break;
		case 3:
			$msg="You have been logged out successfully.";
			break;
	}
}
if(isset($_POST['add']))
{
	print_r($_POST);
	
}

/*include("fckeditor/fckeditor.php");		
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = 'fckeditor/';
$oFCKeditor->Value = ''; 
$html_editor=$oFCKeditor->Create('') ;*/
//$smarty->assign('html_editor',$html_editor);

$sBasePath ="fckeditor/" ;
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = $sBasePath ;
$oFCKeditor->Value=stripslashes('');
$html_editor=$oFCKeditor->Create('') ;


$smarty->display(ADMIN_TPL_DIR."header.tpl");
$smarty->display(ADMIN_TPL_DIR."manage-main-pages.tpl");
$smarty->assign('html_editor',$html_editor);
$smarty->display(ADMIN_TPL_DIR."footer.tpl");

?>
