Skip to content

Commit 99cbfbb

Browse files
committed
initial commit
initial commit of the project
1 parent c37495f commit 99cbfbb

File tree

82 files changed

+21685
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+21685
-0
lines changed

Templates/blogTemplate.dwt.php

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml">
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<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." />
6+
<meta name="Keywords" content="ian meinert, blog" />
7+
<link rel="stylesheet" href="includes/css/main.css" type="text/css"/>
8+
<link rel="Stylesheet" type="text/css" href="/includes/jHtmlArea/style/jHtmlArea.css" />
9+
10+
<script type="text/javascript" src="/includes/jHtmlArea/scripts/jquery-1.3.2.js"></script>
11+
<script type="text/javascript" src="/includes/jHtmlArea/scripts/jquery-ui-1.7.2.custom.min.js"></script>
12+
<script type="text/javascript" src="/includes/jHtmlArea/scripts/jHtmlArea-0.7.5.js"></script>
13+
<script type="text/javascript">
14+
$(function() {
15+
$("textarea").htmlarea(); // Initialize all TextArea's as jHtmlArea's with default values
16+
17+
//$("#txtDefaultHtmlArea").htmlarea(); // Initialize jHtmlArea's with all default values
18+
19+
$("#txtCustomHtmlArea").htmlarea({
20+
// Override/Specify the Toolbar buttons to show
21+
toolbar: [
22+
["bold", "italic", "underline", "|", "forecolor"],
23+
["p", "h1", "h2", "h3", "h4", "h5", "h6"],
24+
["link", "unlink", "|", "image"],
25+
]
26+
});
27+
});
28+
</script>
29+
30+
<title><?PHP echo $site['title'] ?></title>
31+
<!-- TemplateBeginEditable name="head" -->
32+
33+
<!-- TemplateEndEditable -->
34+
</head>
35+
<body>
36+
<div id="outer-wrapper">
37+
<div id="inner-wrapper">
38+
<div id="content-wrapper">
39+
40+
<!-- Begin Content -->
41+
<div id="content">
42+
43+
<!-- Main Navigation -->
44+
<?PHP include("includes/topnav.php"); ?>
45+
46+
<!-- Body Content -->
47+
<div id="content-inner">
48+
<!-- TemplateBeginEditable name="body" -->
49+
50+
<!-- TemplateEndEditable -->
51+
</div>
52+
53+
</div>
54+
55+
<!-- Begin Left Column -->
56+
<?PHP include("includes/leftCol.php"); ?>
57+
58+
</div><!-- End Content-Wrapper -->
59+
60+
<!-- Begin Footer -->
61+
<?PHP include("includes/footer.php"); ?>
62+
63+
</div>
64+
</div>
65+
</body>
66+
</html>

about.php

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?PHP
2+
session_start();
3+
require_once(dirname(__FILE__) ."/includes/globals.php");
4+
require_once(dirname(__FILE__) ."/includes/functions/post.php");
5+
?>
6+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
7+
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/blogTemplate.dwt.php" codeOutsideHTMLIsLocked="false" -->
8+
<head>
9+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10+
<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." />
11+
<meta name="Keywords" content="ian meinert, blog" />
12+
<link rel="stylesheet" href="includes/css/main.css" type="text/css"/>
13+
<link rel="Stylesheet" type="text/css" href="/includes/jHtmlArea/style/jHtmlArea.css" />
14+
15+
<script type="text/javascript" src="/includes/jHtmlArea/scripts/jquery-1.3.2.js"></script>
16+
<script type="text/javascript" src="/includes/jHtmlArea/scripts/jquery-ui-1.7.2.custom.min.js"></script>
17+
<script type="text/javascript" src="/includes/jHtmlArea/scripts/jHtmlArea-0.7.5.js"></script>
18+
<script type="text/javascript">
19+
$(function() {
20+
$("textarea").htmlarea(); // Initialize all TextArea's as jHtmlArea's with default values
21+
22+
//$("#txtDefaultHtmlArea").htmlarea(); // Initialize jHtmlArea's with all default values
23+
24+
$("#txtCustomHtmlArea").htmlarea({
25+
// Override/Specify the Toolbar buttons to show
26+
toolbar: [
27+
["bold", "italic", "underline", "|", "forecolor"],
28+
["p", "h1", "h2", "h3", "h4", "h5", "h6"],
29+
["link", "unlink", "|", "image"],
30+
]
31+
});
32+
});
33+
</script>
34+
35+
<title><?PHP echo $site['title'] ?></title>
36+
<!-- InstanceBeginEditable name="head" -->
37+
38+
<!-- InstanceEndEditable -->
39+
</head>
40+
<body>
41+
<div id="outer-wrapper">
42+
<div id="inner-wrapper">
43+
<div id="content-wrapper">
44+
45+
<!-- Begin Content -->
46+
<div id="content">
47+
48+
<!-- Main Navigation -->
49+
<?PHP include("includes/topnav.php"); ?>
50+
51+
<!-- Body Content -->
52+
<div id="content-inner">
53+
<!-- InstanceBeginEditable name="body" -->
54+
<div class="content-full">
55+
<?PHP getAboutPage(9); ?>
56+
</div>
57+
<!-- InstanceEndEditable -->
58+
</div>
59+
60+
</div>
61+
62+
<!-- Begin Left Column -->
63+
<?PHP include("includes/leftCol.php"); ?>
64+
65+
</div><!-- End Content-Wrapper -->
66+
67+
<!-- Begin Footer -->
68+
<?PHP include("includes/footer.php"); ?>
69+
70+
</div>
71+
</div>
72+
</body>
73+
<!-- InstanceEnd --></html>

addCategory.php

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<?PHP
2+
session_start();
3+
require_once(dirname(__FILE__) ."/includes/globals.php");
4+
?>
5+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6+
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/blogTemplate.dwt.php" codeOutsideHTMLIsLocked="false" -->
7+
<head>
8+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9+
<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." />
10+
<meta name="Keywords" content="ian meinert, blog" />
11+
<link rel="stylesheet" href="includes/css/main.css" type="text/css"/>
12+
<link rel="Stylesheet" type="text/css" href="/includes/jHtmlArea/style/jHtmlArea.css" />
13+
14+
<script type="text/javascript" src="/includes/jHtmlArea/scripts/jquery-1.3.2.js"></script>
15+
<script type="text/javascript" src="/includes/jHtmlArea/scripts/jquery-ui-1.7.2.custom.min.js"></script>
16+
<script type="text/javascript" src="/includes/jHtmlArea/scripts/jHtmlArea-0.7.5.js"></script>
17+
<script type="text/javascript">
18+
$(function() {
19+
$("textarea").htmlarea(); // Initialize all TextArea's as jHtmlArea's with default values
20+
21+
//$("#txtDefaultHtmlArea").htmlarea(); // Initialize jHtmlArea's with all default values
22+
23+
$("#txtCustomHtmlArea").htmlarea({
24+
// Override/Specify the Toolbar buttons to show
25+
toolbar: [
26+
["bold", "italic", "underline", "|", "forecolor"],
27+
["p", "h1", "h2", "h3", "h4", "h5", "h6"],
28+
["link", "unlink", "|", "image"],
29+
]
30+
});
31+
});
32+
</script>
33+
34+
<title><?PHP echo $site['title'] ?></title>
35+
<!-- InstanceBeginEditable name="head" -->
36+
37+
<!-- InstanceEndEditable -->
38+
</head>
39+
<body>
40+
<div id="outer-wrapper">
41+
<div id="inner-wrapper">
42+
<div id="content-wrapper">
43+
44+
<!-- Begin Content -->
45+
<div id="content">
46+
47+
<!-- Main Navigation -->
48+
<?PHP include("includes/topnav.php"); ?>
49+
50+
<!-- Body Content -->
51+
<div id="content-inner">
52+
<!-- InstanceBeginEditable name="body" -->
53+
<?PHP
54+
if(isset($_SESSION['user']))
55+
{
56+
require_once(dirname(__FILE__) ."/includes/modules/postMenu.php");
57+
?>
58+
<form action="/includes/ui/addCategory.php" method="post">
59+
<table>
60+
<tr>
61+
<td><label for="categoryName">Name:</label></td>
62+
<td><input type="text" name="categoryName"/></td>
63+
</tr>
64+
<tr>
65+
<td><label for="categoryDescription">Description:</label></td>
66+
<td><input type="text" name="categoryDescription"/></td>
67+
</tr>
68+
<tr>
69+
<td><label for="isCoveryPage">Display on cover page:</label></td>
70+
<td><select name="isCoveryPage">
71+
<option value="1" >Yes</option>
72+
<option value="0" >No</option>
73+
</select>
74+
</td>
75+
</tr>
76+
<tr>
77+
<td colspan="2"><INPUT Type="button" VALUE="Cancel" onClick="history.go(-1);return true;"><button type="submit" name="Submit" >Submit</button></td>
78+
</tr>
79+
</table>
80+
</form>
81+
<?PHP } ?>
82+
<!-- InstanceEndEditable -->
83+
</div>
84+
85+
</div>
86+
87+
<!-- Begin Left Column -->
88+
<?PHP include("includes/leftCol.php"); ?>
89+
90+
</div><!-- End Content-Wrapper -->
91+
92+
<!-- Begin Footer -->
93+
<?PHP include("includes/footer.php"); ?>
94+
95+
</div>
96+
</div>
97+
</body>
98+
<!-- InstanceEnd --></html>

addPost.php

+108
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
<?PHP
2+
session_start();
3+
require_once(dirname(__FILE__) ."/includes/globals.php");
4+
?>
5+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6+
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/blogTemplate.dwt.php" codeOutsideHTMLIsLocked="false" -->
7+
<head>
8+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9+
<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." />
10+
<meta name="Keywords" content="ian meinert, blog" />
11+
<link rel="stylesheet" href="includes/css/main.css" type="text/css"/>
12+
<link rel="Stylesheet" type="text/css" href="/includes/jHtmlArea/style/jHtmlArea.css" />
13+
14+
<script type="text/javascript" src="/includes/jHtmlArea/scripts/jquery-1.3.2.js"></script>
15+
<script type="text/javascript" src="/includes/jHtmlArea/scripts/jquery-ui-1.7.2.custom.min.js"></script>
16+
<script type="text/javascript" src="/includes/jHtmlArea/scripts/jHtmlArea-0.7.5.js"></script>
17+
<script type="text/javascript">
18+
$(function() {
19+
$("textarea").htmlarea(); // Initialize all TextArea's as jHtmlArea's with default values
20+
21+
//$("#txtDefaultHtmlArea").htmlarea(); // Initialize jHtmlArea's with all default values
22+
23+
$("#txtCustomHtmlArea").htmlarea({
24+
// Override/Specify the Toolbar buttons to show
25+
toolbar: [
26+
["bold", "italic", "underline", "|", "forecolor"],
27+
["p", "h1", "h2", "h3", "h4", "h5", "h6"],
28+
["link", "unlink", "|", "image"],
29+
]
30+
});
31+
});
32+
</script>
33+
34+
<title><?PHP echo $site['title'] ?></title>
35+
<!-- InstanceBeginEditable name="head" -->
36+
37+
<!-- InstanceEndEditable -->
38+
</head>
39+
<body>
40+
<div id="outer-wrapper">
41+
<div id="inner-wrapper">
42+
<div id="content-wrapper">
43+
44+
<!-- Begin Content -->
45+
<div id="content">
46+
47+
<!-- Main Navigation -->
48+
<?PHP include("includes/topnav.php"); ?>
49+
50+
<!-- Body Content -->
51+
<div id="content-inner">
52+
<!-- InstanceBeginEditable name="body" -->
53+
<?PHP
54+
if(isset($_SESSION['user']))
55+
{
56+
require_once(dirname(__FILE__) ."/includes/modules/postMenu.php");
57+
?>
58+
<form action="/includes/ui/addPost.php" method="post">
59+
<table>
60+
<tr>
61+
<td><label for="postTitle">Post Title:</label></td>
62+
<td><input type="text" name="postTitle"/></td>
63+
</tr>
64+
<tr>
65+
<td><label for="postAuthor">Author:</label></td>
66+
<td><input type="text" name="postAuthor" value="<?PHP echo $_SESSION['name']; ?>"/></td>
67+
</tr>
68+
<tr>
69+
<td><label for="postCatID">Category:</label></td>
70+
<td><select name="postCatID" >
71+
<option value="">Select a Category</option>
72+
<?PHP
73+
require_once(dirname(__FILE__) ."/includes/functions/category.php");
74+
75+
getCategoryItemsAsList($post['Category_ID']);
76+
?>
77+
</select>
78+
</td>
79+
</tr>
80+
<tr>
81+
<td colspan="2"><textarea name="postContent" rows="10" cols="84"></textarea></td>
82+
</tr>
83+
<tr>
84+
<td colspan="2">
85+
<button type="button" name="Cancel" onClick="history.go(-1);return true;">Cancel</button>
86+
<button type="submit" name="Submit" >Submit</button>
87+
</td>
88+
</tr>
89+
</table>
90+
</form>
91+
<?PHP } ?>
92+
<!-- InstanceEndEditable -->
93+
</div>
94+
95+
</div>
96+
97+
<!-- Begin Left Column -->
98+
<?PHP include("includes/leftCol.php"); ?>
99+
100+
</div><!-- End Content-Wrapper -->
101+
102+
<!-- Begin Footer -->
103+
<?PHP include("includes/footer.php"); ?>
104+
105+
</div>
106+
</div>
107+
</body>
108+
<!-- InstanceEnd --></html>

0 commit comments

Comments
 (0)