| 1 | <?php |
|---|
| 2 | session_start(); |
|---|
| 3 | require_once("session-check.php"); |
|---|
| 4 | require_once("../common.lib.php"); |
|---|
| 5 | include("fckeditor/fckeditor.php"); |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | if(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 | } |
|---|
| 25 | if(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 | ?> |
|---|