Resolved...
The problem was that
Content type header was being sent again in the file
\includes\functions\extra_functions\.wysiwygPro_edit_index_html.php
Here is the code
can someone tell me what can be done. Right now I am not including this file
Code:
<?php header("Content-type","text/html; charset=iso-8859-1"); ?>
<?php ob_start() ?>
<?php
if ($_GET['randomId'] != "CXECLAXpEOXpimlx1BnvHnvKXKQtbTH9cnV7mKiJ2wVV_bpxEJIetRCTDsrOLeRWb4aZgmrTCIxGrUrTN0XZ09UDwkmLvw6BO0wj2l06t4DaeaR4HwLBbHYn7sidYjPMxPtSgxFclBWpJK1eg0FJD7GhIRus4BgX6v2TgermZJjjikTmjTgIcFCvvID9wFSdRHN_OuIZe9iJ5YkW1rMi0obQ171PymDYZStllhLAozJqyva39Etl9EgCnNkRB1uG") {
echo "Access Denied";
exit();
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Editing index.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">body {background-color:threedface; border: 0px 0px; padding: 0px 0px; margin: 0px 0px}</style>
</head>
<body>
<div align="center">
<script language="javascript">
<!--//
// this function updates the code in the textarea and then closes this window
function do_save() {
var code = htmlCode.getCode();
document.open();
document.write('<html><form METHOD="POST" name=mform action="http://bellastoystore.com:2082/frontend/x/files/savehtmlfile.html"><input type="hidden" name="udir" value="/home/bella78/public_html/shop/includes/functions/extra_functions"><input type="hidden" name="ufile" value="index.html"><input type="hidden" name="dir" value="%2fhome%2fbella78%2fpublic_html%2fshop%2fincludes%2ffunctions%2fextra_functions"><input type="hidden" name="file" value="index.html"><input type="hidden" name="doubledecode" value="1">Saving ....<br /><br ><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><textarea name=page rows=1 cols=1></textarea></form></html>');
document.close();
document.mform.page.value = code;
document.mform.submit();
}
function do_abort() {
var code = htmlCode.getCode();
document.open();
document.write('<html><form METHOD="POST" name="mform" action="http://bellastoystore.com:2082/frontend/x/files/aborthtmlfile.html"><input type="hidden" name="dir" value="/home/bella78/public_html/shop/includes/functions/extra_functions"><input type="hidden" name="file" value="index.html">Aborting Edit ....</form></html>');
document.close();
document.mform.submit();
}
//-->
</script>
<?php
// make sure these includes point correctly:
include_once ('/usr/local/cpanel/base/3rdparty/WysiwygPro/editor_files/config.php');
include_once ('/usr/local/cpanel/base/3rdparty/WysiwygPro/editor_files/editor_class.php');
// create a new instance of the wysiwygPro class:
$editor = new wysiwygPro();
// add a custom save button:
$editor->addbutton('Save', 'before:print', 'do_save();', WP_WEB_DIRECTORY.'images/save.gif', 22, 22, 'undo');
// add a custom cancel button:
$editor->addbutton('Cancel', 'before:print', 'do_abort();', WP_WEB_DIRECTORY.'images/cancel.gif', 22, 22, 'undo');
$body = '<html>
<head>
<title></title>
<meta content="">
<style></style>
</head>
<body></body>
</html>';
$editor->set_code($body);
// add a spacer:
$editor->addspacer('', 'after:cancel');
$editor->set_charset('iso-8859-1');
// print the editor to the browser:
$editor->print_editor('100%','450');
?>
</div>
</body>
</html>
<?php ob_end_flush() ?>
Bookmarks