-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·39 lines (31 loc) · 1010 Bytes
/
index.php
File metadata and controls
executable file
·39 lines (31 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
if($_POST["content"]) {
file_put_contents("data", addslashes($_POST["content"]));
}
if(file_exists("data")) {
$content = file_get_contents("data");
$content = stripslashes($content);
}
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>clippy</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script>
CKEDITOR.on('instanceReady', function(evt) {
var editor = evt.editor;
editor.execCommand('maximize');
});
</script>
<link rel="shortcut icon" href="favicon.ico" />
</head>
<body>
<form action="index.php" method="post">
<textarea name="content" class="ckeditor"><?php echo $content; ?></textarea>
</form>
</body>
</html>