1<?php 2/* 3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net 4 * Copyright (C) 2003-2007 Frederico Caldeira Knabben 5 * 6 * == BEGIN LICENSE == 7 * 8 * Licensed under the terms of any of the following licenses at your 9 * choice: 10 * 11 * - GNU General Public License Version 2 or later (the "GPL") 12 * http://www.gnu.org/licenses/gpl.html 13 * 14 * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") 15 * http://www.gnu.org/licenses/lgpl.html 16 * 17 * - Mozilla Public License Version 1.1 or later (the "MPL") 18 * http://www.mozilla.org/MPL/MPL-1.1.html 19 * 20 * == END LICENSE == 21 * 22 * Sample page. 23 */ 24 25include("../../fckeditor.php") ; 26?> 27<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 28<html> 29 <head> 30 <title>FCKeditor - Sample</title> 31 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 32 <meta name="robots" content="noindex, nofollow"> 33 <link href="../sample.css" rel="stylesheet" type="text/css" /> 34 </head> 35 <body> 36 <h1>FCKeditor - PHP - Sample 1</h1> 37 This sample displays a normal HTML form with an FCKeditor with full features 38 enabled. 39 <hr> 40 <form action="sampleposteddata.php" method="post" target="_blank"> 41<?php 42// Automatically calculates the editor base path based on the _samples directory. 43// This is usefull only for these samples. A real application should use something like this: 44// $oFCKeditor->BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. 45$sBasePath = $_SERVER['PHP_SELF'] ; 46$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ; 47 48$oFCKeditor = new FCKeditor('FCKeditor1') ; 49$oFCKeditor->BasePath = $sBasePath ; 50$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; 51$oFCKeditor->Create() ; 52?> 53 <br> 54 <input type="submit" value="Submit"> 55 </form> 56 </body> 57</html>