echo " <textarea class=\"$useck\" id=\"story\" class=\"story\" name=\"story\" style=\"width: 100%; height: 250px;\">$story</textarea>\n";
echo " <textarea class=\"$useck\" id=\"story\" class=\"story\" name=\"story\" style=\"width: 100%; height: 250px;\">
$story</textarea>\n
<script type=\"text/javascript\">
CKEDITOR.replace( 'story',
{
filebrowserBrowseUrl : './js/ckfinder/ckfinder.html',
filebrowserImageBrowseUrl : './js/ckfinder/ckfinder.html?Type=Images',
filebrowserFlashBrowseUrl : './js/ckfinder/ckfinder.html?Type=Flash',
filebrowserUploadUrl : './js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
filebrowserImageUploadUrl : './js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : './js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
});
</script>";
function CheckAuthentication()
{
// WARNING : DO NOT simply return "true". By doing so, you are allowing
// "anyone" to upload and list the files in your server. You must implement
// some kind of session validation here. Even something very simple as...
// return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];
// ... where $_SESSION['IsAuthorized'] is set to "true" as soon as the
// user logs in your system. To be able to use session variables don't
// forget to add session_start() at the top of this file.
return false;
}
$baseUrl = 'http://www.yoursite.com/news/uploads/';
$baseDir = '/home/***/domains/yoursite.com/public_html/news/uploads/';