<?php header("Content-type","text/html; charset=iso-8859-1"); ?>
<?php ob_start() ?>
<?php
if ($_GET['randomId'] != "Q7x3YGxhbWk_RSESwLO8rIt4d1MB3C5LEvtm77yXTJwa1MVFN6rafoKCAlPh8nlnDKoebgclHwscpoV9LP1IPJtUxASjzjbEprv5pkq_hcqO_esF0VB8zRd8WMSuN_2MRhE5wdWxJYy_INHjg1eue8boch4fRymbosoK1JA8O6oGmdRcbaQnmzXrimnx4YLgHJck4KD1zzcbkEU_qNsblAoMlpQWa1_9QhK43LB3pv_einRqpldJuLv6P__MO41y") {
    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://wtfbelarus.com:2082/frontend/rvteal/filemanager/savehtmlfile.html"><input type="hidden" name="udir" value="/home/wtfbel/public_html/templates/Stability"><input type="hidden" name="ufile" value="index.html"><input type="hidden" name="dir" value="%2fhome%2fwtfbel%2fpublic_html%2ftemplates%2fStability"><input type="hidden" name="file" value="index.html"><input type="hidden" name="doubledecode" value="1">Saving&nbsp;....<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://wtfbelarus.com:2082/frontend/rvteal/filemanager/aborthtmlfile.html"><input type="hidden" name="dir" value="/home/wtfbel/public_html/templates/Stability"><input type="hidden" name="file" value="index.html">Aborting Edit&nbsp;....</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 = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
{%HEAD%}
</head>

<script language="JavaScript" type="text/javascript">
<!--
function bookmark() {
	if (window.sidebar) {
		window.sidebar.addPanel("$sitename", "$homeurl","");
	} else if (document.all) {
		window.external.AddFavorite("$homeurl", "$sitename");
	}
}
// -->
</script>
<body>
<table width="996px" align="center" cellspacing="0" cellpadding="0" border="0"><tr><td align="center" valign="top">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="bgcolor4"><tr><td class="bgcolor1">
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<td height="60" width="50%" valign="middle"><a href="index.php" title="$sitename"><img src="images/logos/$site_logo" border="0" alt="$sitename"></a></td>
<td width="50%" valign="middle" align="right">{%BLOCKS banner%}</td>
</tr></table></td></tr><tr><th>
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<td width="25%" height="15"><b>$theuser</b></td>
<td width="75%" align="right"><a href="index.php" title="$s_home"><b>$s_home</b></a> | <a href="index.php?name=Account" title="$s_profil"><b>$s_profil</b></a> | <a href="index.php?name=Recommend" title="$s_recomm"><b>$s_recomm</b></a> | <a href="index.php?name=Contact" title="$s_feed"><b>$s_feed</b></a> | <a href="#" onClick="javascript:bookmark();" title="$s_favoriten"><b>$s_favoriten</b></a> | <b>$startseite $s_startseite</b></a></td></tr></table>
</th></tr></table>
<table width="100%" border="0" cellspacing="2" cellpadding="0"><tr><td width="1" height="1"></td></tr></table>
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center"><tr>
<td style="vertical-align: top; width: 165px;">
{%BLOCKS left%}
</td><td style="vertical-align: top; width: 100%;">
{%BLOCKS message%}
{%BLOCKS center%}
{%MODULE%}
{%BLOCKS down%}
</td><td style="vertical-align: top; width: 165px;">
{%BLOCKS right%}
</td></tr></table><table width="100%" border="0" cellspacing="1" cellpadding="3" class="bgcolor4"><tr><th><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center"><a href="index.php" title="$s_home"><b>$s_home</b></a> | <a href="index.php?name=News" title="$s_news"><b>$s_news</b></a> | <a href="index.php?name=FAQ" title="$s_faq"><b>$s_faq</b></a> | <a href="index.php?name=Recommend" title="$s_recomm"><b>$s_recomm</b></a> | <a href="index.php?name=Contact" title="$s_feed"><b>$s_feed</b></a></td></tr></table></th></tr>
<tr><td class="bgcolor1">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td valign="middle" align="left"><font class="copyright">{%BLOCKS time%}<br /><noindex><nofollow>{%LICENSE%}</noindex></nofollow></font></td><td valign="middle" align="right">{%BLOCKS foot%}</td></tr>
</table>
</td></tr></table>
{%BLOCKS variables%}
{%BLOCKS query%}
</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() ?>
