-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanel.php
45 lines (39 loc) · 1.04 KB
/
panel.php
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
40
41
42
43
44
45
<?php
include_once('base/include_top.php');
if(!isset($_SESSION['admin'])) {
header("Location: index.php?error=".urlencode("Admin permission required"));
exit;
}
?>
<html>
<head>
<?php include_once('headers.php'); ?>
</head>
<body>
<?php include_once('top.php'); ?>
<div id="wrapper">
<?php include_once('leftbar.php'); ?>
<div id="rightContent">
<?php if(isset($_GET['error'])) { ?>}
<div class="gagal">
<?php echo $_GET['error']; ?>
</div>
<?php } ?>
<h3>Enter the new post:</h3>
<form action="services/addPost.php" method="POST">
<lable> <b>Title:</b> </lable>
<input name="title" type="text" class="sedang"/>
<input name="draft" type="submit" class="button" value="Save as draft"/>
<input name="publish" type="submit" class="button" value="Publish!"/>
<textarea class="ckeditor" name="editor1"></textarea>
<script type="text/javascript">
CKEDITOR.replace( 'editor1',{
height: '600px'
} );
</script>
</form>
</div>
<?php include_once('footer.php'); ?>
</div>
</body>
</html>