芝麻web文件管理V1.00
编辑当前文件:/home/krishnamexports/www/panel/fckeditor/_samples/php/sample02.php
FCKeditor - Sample
FCKeditor - PHP - Sample 2
This sample shows the editor in all its available languages.
Select a language:
BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. $sBasePath = $_SERVER['PHP_SELF'] ; $sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ; $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = $sBasePath ; if ( isset($_GET['Lang']) ) { $oFCKeditor->Config['AutoDetectLanguage'] = false ; $oFCKeditor->Config['DefaultLanguage'] = $_GET['Lang'] ; } else { $oFCKeditor->Config['AutoDetectLanguage'] = true ; $oFCKeditor->Config['DefaultLanguage'] = 'en' ; } $oFCKeditor->Value = '
This is some
sample text
. You are using
FCKeditor
.
' ; $oFCKeditor->Create() ; ?>