Location: PHPKode > projects > MyFWB - Faisal Shah's dition > MyFWB/includes/core_editor_edit.php
<?php
session_start();

if($_SESSION["admin_permission"] == "Yes")
{

}else
{
echo "don't try to access the style of editor directly";
exit();
}
 
?>
<html>
<head>
<title>FCKeditor - Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow">
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'page_content' ) ;
oFCKeditor.BasePath = "fckeditor/" ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
</head>
<body>
	<?php
	$page_title = stripslashes("$page_edit[pagetitle]");
	 echo "<form action=\"?action=edited&sid=$sid\" method=\"post\">
		<b>Page title/name :</b>
		<input type=\"text\" name=\"pagetitle\" value=\"$page_title\" size=\"86\" maxlength=\"99\">"; 
$page_content = kill_slashes($page_edit["page_content"]);

echo "<textarea id=\"page_content\" name=\"page_content\"  row=\"1\" cols=\"20\">$page_content</textarea>";
$page_id = $page_edit["pageid"];
echo "<input type=\"hidden\" name=\"pageid\" value=\"$page_id\" />";
echo "<input name=\"submit\" type=\"submit\" value=\"Submit\">";
echo "</form>";
?>
</body>
</html>
Return current item: MyFWB - Faisal Shah's dition