-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathposts.php
93 lines (80 loc) · 4.18 KB
/
posts.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?PHP
require_once(dirname(__FILE__) ."/includes/globals.php");
require_once(dirname(__FILE__) ."/includes/connection/db.php");
require_once(dirname(__FILE__) ."/includes/functions/post.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/blogTemplate.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Description" content="This is a blog that is a work-in-progress. It is completely written by hand by me. Well, minus the jHtmlArea WYSIWYG and jQuery." />
<meta name="Keywords" content="ian meinert, blog" />
<link rel="stylesheet" href="includes/css/main.css" type="text/css"/>
<link rel="Stylesheet" type="text/css" href="/includes/jHtmlArea/style/jHtmlArea.css" />
<script type="text/javascript" src="/includes/jHtmlArea/scripts/jquery-1.3.2.js"></script>
<script type="text/javascript" src="/includes/jHtmlArea/scripts/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="/includes/jHtmlArea/scripts/jHtmlArea-0.7.5.js"></script>
<script type="text/javascript">
$(function() {
$("textarea").htmlarea(); // Initialize all TextArea's as jHtmlArea's with default values
//$("#txtDefaultHtmlArea").htmlarea(); // Initialize jHtmlArea's with all default values
$("#txtCustomHtmlArea").htmlarea({
// Override/Specify the Toolbar buttons to show
toolbar: [
["bold", "italic", "underline", "|", "forecolor"],
["p", "h1", "h2", "h3", "h4", "h5", "h6"],
["link", "unlink", "|", "image"],
]
});
});
</script>
<title><?PHP echo $site['title'] ?></title>
<!-- InstanceBeginEditable name="head" -->
<script type="text/javascript">
function confirm_delete() {
return confirm('Delete this post?');
}
</script>
<!-- InstanceEndEditable -->
</head>
<body>
<div id="outer-wrapper">
<div id="inner-wrapper">
<div id="content-wrapper">
<!-- Begin Content -->
<div id="content">
<!-- Main Navigation -->
<?PHP include("includes/topnav.php"); ?>
<!-- Body Content -->
<div id="content-inner">
<!-- InstanceBeginEditable name="body" -->
<?PHP
if(isset($_SESSION['user']))
{
require_once(dirname(__FILE__) ."/includes/modules/postMenu.php");
?>
<table cellspacing="0" cellpadding="10">
<thead>
<tr>
<td>Post Title</td>
<td>Author</td>
<td>Action</td>
</tr>
</thead>
<tbody>
<?PHP managePosts(); ?>
</tbody>
</table>
<?PHP } ?>
<!-- InstanceEndEditable -->
</div>
</div>
<!-- Begin Left Column -->
<?PHP include("includes/leftCol.php"); ?>
</div><!-- End Content-Wrapper -->
<!-- Begin Footer -->
<?PHP include("includes/footer.php"); ?>
</div>
</div>
</body>
<!-- InstanceEnd --></html>