<?php
include '../config.inc.php' ;
include 'functions.php' ;
include '../functions_main.php' ;
$login_line = check_user_rights( ) ;
$js = "" ;
include 'header.inc.php' ;
?>
<script type="text/javascript" src="../tinymce/js/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
height : 500,
width: 1000,
selector: "textarea",
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste"
],
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
});
</script>
<?
include 'menu.inc.php' ;
if ( isset ( $_POST [ 'editor1' ] ) ) { $infotext = $_POST [ 'editor1' ] ;
$file = @ fopen ( "$sitedir /templates/help/informtext" , 'w' ) or
die ( "<span style=\" color:red\" >Не удалось открыть файл</span> " ) ; fwrite ( $file , $infotext ) or
die ( "Не удалось записать файл" ) ; //записываем в файл echo "<span style=\" color: green\" >Изменения сохранены</span>" ;
}
$file = fopen ( "$sitedir /templates/help/informtext" , 'r' ) or
die ( "Не удалось открыть файл " ) ; $content = fread ( $file , filesize ( "$sitedir /templates/help/informtext" ) ) ; ?>
<form method="post" >
<textarea name="editor1" id="editor1" rows="10" cols="80">
<?
echo $content ;
?>
</textarea>
<input type="submit">
</form>
<?
include 'footer.inc.php' ;
?>
PD9waHAKCgpzZXNzaW9uX3N0YXJ0KCk7CmluY2x1ZGUgJy4uL2NvbmZpZy5pbmMucGhwJzsKCmluY2x1ZGUgJ2Z1bmN0aW9ucy5waHAnOwppbmNsdWRlICcuLi9mdW5jdGlvbnNfbWFpbi5waHAnOwokbG9naW5fbGluZSA9IGNoZWNrX3VzZXJfcmlnaHRzKCk7CiRqcyA9ICIiOwppbmNsdWRlICdoZWFkZXIuaW5jLnBocCc7Cj8+CiAgICA8c2NyaXB0IHR5cGU9InRleHQvamF2YXNjcmlwdCIgc3JjPSIuLi90aW55bWNlL2pzL3RpbnltY2UvdGlueW1jZS5taW4uanMiPjwvc2NyaX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