<?php ob_start() ?>
<?php
if ($_GET['randomId'] != "GWzEQFiX6AbBioRXHVLTcEA2MgH9KinQ3KR_qTu2N0uxykeAEdkU5ep2Oaqxj4gVR36jjgMQkMIpZ104h1vBOmuC0tQKJmngPP4G_gwLZLS3A7vBMkqOI8xJ8yVezlXmayKVveLMj1PkgWrPtKNMzF5rwBhVGEXPIJEiMKQlqW9rsmVlpRXWNSp9OBNj1KzLUwNSAycxyKkH3RX8RfjiGKOMjiUUbgC58bTL24fBSyFxNL33JCv_uzxT6x_fbNT4") {
    echo "Access Denied";
    exit();
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Editing default.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css">body {background-color:threedface; border: 0px 0px; padding: 0px 0px; margin: 0px 0px}</style>
</head>
<body>
<div align="center">

<div id="saveform" style="display:none;">
<form METHOD="POST" name=mform action="https://box586.bluehost.com:2083/frontend/bluehost/filemanager/savehtmlfile.html">
    <input type="hidden" name="charset" value="us-ascii">
    <input type="hidden" name="baseurl" value="http://cyberwebdevelopment.com/tstonemailing/">
    <input type="hidden" name="basedir" value="/home5/cyberwe2/public_html/">
    <input type="hidden" name="udir" value="/home5/cyberwe2/public_html/tstonemailing">
    <input type="hidden" name="ufile" value="default.html">
    <input type="hidden" name="dir" value="%2fhome5%2fcyberwe2%2fpublic_html%2ftstonemailing">
    <input type="hidden" name="file" value="default.html">
    <input type="hidden" name="doubledecode" value="1">
<textarea name=page rows=1 cols=1></textarea></form>
</div>
<div id="abortform" style="display:none;">
<form METHOD="POST" name="abortform" action="https://box586.bluehost.com:2083/frontend/bluehost/filemanager/aborthtmlfile.html">
    <input type="hidden" name="charset" value="us-ascii">
    <input type="hidden" name="baseurl" value="http://cyberwebdevelopment.com/tstonemailing/">
    <input type="hidden" name="basedir" value="/home5/cyberwe2/public_html/">
    <input type="hidden" name="dir" value="%2fhome5%2fcyberwe2%2fpublic_html%2ftstonemailing">
        <input type="hidden" name="file" value="default.html">
    <input type="hidden" name="udir" value="/home5/cyberwe2/public_html/tstonemailing">
    <input type="hidden" name="ufile" value="default.html">

        </form>
</div>
<script language="javascript">
<!--//

function setHtmlFilters(editor) {
// Design view filter
editor.addHTMLFilter('design', function (editor, html) {
        return html.replace(/\<meta\s+http\-equiv\="Content\-Type"[^\>]+\>/gi, '<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />');
});

// Source view filter
editor.addHTMLFilter('source', function (editor, html) {
        return html.replace(/\<meta\s+http\-equiv\="Content\-Type"[^\>]+\>/gi, '<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />');
});
}

// this function updates the code in the textarea and then closes this window
function do_save() {
    document.mform.page.value = WPro.editors[0].getValue();
	document.mform.submit();
}
function do_abort() {
	document.abortform.submit();
}
//-->
</script>
<?php
// make sure these includes point correctly:
include_once ('/usr/local/cpanel/base/3rdparty/wysiwygPro/wysiwygPro.class.php');

// create a new instance of the wysiwygPro class:
$editor = new wysiwygPro();

$editor->registerButton('save', 'Save',
        'do_save();', '##buttonURL##save.gif', 22, 22,
        'savehandler'); 
$editor->addRegisteredButton('save', 'before:print' );
$editor->addJSButtonStateHandler ('savehandler', 'function (EDITOR,srcElement,cid,inTable,inA,range){ 
        return "wproReady"; 
        }'); 


$editor->registerButton('cancel', 'Cancel',
        'do_abort();', '##buttonURL##close.gif', 22, 22,
        'cancelhandler'); 
$editor->addRegisteredButton('cancel', 'before:print' );
$editor->addJSButtonStateHandler ('cancelhandler', 'function (EDITOR,srcElement,cid,inTable,inA,range){ 
        return "wproReady"; 
        }'); 
$editor->theme = 'blue'; 
$editor->addJSEditorEvent('load', 'function(editor){editor.fullWindow();setHtmlFilters(editor);}');

$editor->baseURL = "http://cyberwebdevelopment.com/tstonemailing/";

$editor->loadValueFromFile('/home5/cyberwe2/public_html/tstonemailing/default.html');

$editor->registerSeparator('savecan');

// add a spacer:
$editor->addRegisteredButton('savecan', 'after:cancel');

//$editor->set_charset('iso-8859-1');
$editor->mediaDir = '/home5/cyberwe2/public_html/';
$editor->mediaURL = 'http://cyberwebdevelopment.com/';
$editor->imageDir = '/home5/cyberwe2/public_html/';
$editor->imageURL = 'http://cyberwebdevelopment.com/';
$editor->documentDir = '/home5/cyberwe2/public_html/';
$editor->documentURL = 'http://cyberwebdevelopment.com/';
$editor->emoticonDir = '/home5/cyberwe2/public_html/.smileys/';
$editor->emoticonURL = 'http://cyberwebdevelopment.com/.smileys/';
$editor->loadPlugin('serverPreview'); 
$editor->plugins['serverPreview']->URL = 'http://cyberwebdevelopment.com/tstonemailing/.wysiwygPro_preview_24390761b1374f92b0e726f2aaa588fb.php?randomId=GWzEQFiX6AbBioRXHVLTcEA2MgH9KinQ3KR_qTu2N0uxykeAEdkU5ep2Oaqxj4gVR36jjgMQkMIpZ104h1vBOmuC0tQKJmngPP4G_gwLZLS3A7vBMkqOI8xJ8yVezlXmayKVveLMj1PkgWrPtKNMzF5rwBhVGEXPIJEiMKQlqW9rsmVlpRXWNSp9OBNj1KzLUwNSAycxyKkH3RX8RfjiGKOMjiUUbgC58bTL24fBSyFxNL33JCv_uzxT6x_fbNT4';
// print the editor to the browser:
$editor->htmlCharset = 'us-ascii';
$editor->urlFormat = 'relative';
$editor->display('100%','450');

?>
</div>
<script>

</script>

</body>
</html>
<?php ob_end_flush() ?>
