Ticket #478: manage-main-pages.php

File manage-main-pages.php, 1.1 KB (added by seema, 18 years ago)
Line 
1<?php
2session_start();
3require_once("session-check.php");
4require_once("../common.lib.php");
5include("fckeditor/fckeditor.php");
6
7
8
9if(isset($_GET['msg']))
10{
11        $msg= $_GET['msg'];
12        switch ($msg)
13        {
14                case 1:
15                        $msg="Invalid username/password.";
16                        break;
17                case 2:
18                        $msg="Please enter username and password.";
19                        break;
20                case 3:
21                        $msg="You have been logged out successfully.";
22                        break;
23        }
24}
25if(isset($_POST['add']))
26{
27        print_r($_POST);
28       
29}
30
31/*include("fckeditor/fckeditor.php");           
32$oFCKeditor = new FCKeditor('FCKeditor1') ;
33$oFCKeditor->BasePath = 'fckeditor/';
34$oFCKeditor->Value = '';
35$html_editor=$oFCKeditor->Create('') ;*/
36//$smarty->assign('html_editor',$html_editor);
37
38$sBasePath ="fckeditor/" ;
39$oFCKeditor = new FCKeditor('FCKeditor1') ;
40$oFCKeditor->BasePath = $sBasePath ;
41$oFCKeditor->Value=stripslashes('');
42$html_editor=$oFCKeditor->Create('') ;
43
44
45$smarty->display(ADMIN_TPL_DIR."header.tpl");
46$smarty->display(ADMIN_TPL_DIR."manage-main-pages.tpl");
47$smarty->assign('html_editor',$html_editor);
48$smarty->display(ADMIN_TPL_DIR."footer.tpl");
49
50?>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy