Skip to content

Commit 47f5577

Browse files
committed
Initial population. No functionality yet.
0 parents  commit 47f5577

File tree

6 files changed

+244
-0
lines changed

6 files changed

+244
-0
lines changed

OnlyBlog.notes

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[Blog installation]
2+
3+
* Blog will be installed centrally on a server. Users can use
4+
'personalization' to make an instance that suits them
5+
* As such, there is a 'OnlyBlog' area, where all the blog
6+
infrastructure files are installed. Then there are user areas
7+
where users have their specific configuration files and blog
8+
data files
9+
10+
[Blog data organization]
11+
12+
* simple text files with a specified extension (default, .blog)
13+
* All files can be in one directory, or in a hierarchy. However,
14+
the hierarchy has no significance. It is only for easier
15+
management of files
16+
17+
[Blog file structure]
18+
19+
* Metax data sits in the header of a blog file
20+
* Content follows the metadata section
21+
* Metadata and content are separated by '+-+-+' separator
22+
* Metadata:
23+
- Tags: tag1,tag2,tag3, tag4
24+
- Published: MM/DD/YYYY HH:MM:SS
25+
This field is empty to begin with. If the author wants to
26+
publish it, this field should contain publishing date. Entry
27+
will not be displayed in the blog if the field is empty.
28+
* Content:
29+
- First line of the content is the heading
30+
- Rest of the file is free formatting. It can include HTML
31+
syntax. HTML will be displayed as in the file.
32+
33+
[Themeing]
34+
35+
* All classes and ids used in base OnlyBlog library will be
36+
documented. Themes can use these to format the output
37+
* A user stylesheet file will be allowed to be specified via
38+
blog configuration to allow non-theme styling. All non-theme
39+
styles must reside inside '.user_style' class.

README

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Only is a low system requirement, simple, light, open source blogging platform.
2+
It does not require a database engine. It works off of text files that can be
3+
edited in your favorite text editor - a la bloxsom.
4+
5+
Requirements:
6+
Web server
7+
PHP5+

config.inc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
//
3+
// OnlyBlog Configuration
4+
//
5+
6+
?>

index.php

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?php
2+
3+
//
4+
// Include library of functions
5+
//
6+
include ("lib/onlyblog.inc");
7+
include ("config.inc");
8+
9+
//
10+
// Handle requests
11+
//
12+
$page = "";
13+
14+
if (isset ($_POST['action'])) {
15+
} else {
16+
if (isset ($_GET['action'])) {
17+
} else {
18+
$page .= "<h1>Serenity here...</h1>";
19+
}
20+
}
21+
22+
?>
23+
<?php
24+
//
25+
// Display a page
26+
//
27+
28+
echo '<?xml version="1.0" encoding="utf-8"?>
29+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
30+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
31+
?>
32+
33+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
34+
<head>
35+
<?php
36+
echo "<title> OnlyBlog </title>\n";
37+
?>
38+
</title>
39+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
40+
41+
<link rel="StyleSheet" href="/style.css" type="text/css" title="MMA Library Design Style">
42+
43+
<script type="text/javascript" language="javascript" src="Library.js" />
44+
<script type="text/javascript">
45+
//<![CDATA[
46+
//]]>
47+
</script>
48+
</head>
49+
50+
<body>
51+
<?php
52+
echo $page;
53+
54+
$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('data'));
55+
56+
foreach($files as $file) {
57+
echo "$file<br>\n";
58+
}
59+
?>
60+
61+
</body>
62+
</html>

lib/onlyblog.inc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
//
3+
// OnlyBlog Library
4+
//
5+
6+
?>

style.css

+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
/* Style for PHP Labs */
2+
body {
3+
font-family : "Trebuchet MS", sans-serif;
4+
font-size : small;
5+
background-color : white;
6+
}
7+
8+
h1 {
9+
text-align : center;
10+
}
11+
12+
.error {
13+
font-weight : bold;
14+
color : #770000;
15+
text-align : center;
16+
}
17+
.status {
18+
font-weight : bold;
19+
color : #007700;
20+
text-align : center;
21+
}
22+
.info {
23+
font-weight : bold;
24+
color : #000077;
25+
text-align : center;
26+
}
27+
.message {
28+
display : table;
29+
margin-left : auto;
30+
margin-right : auto;
31+
border : thin solid #cccccc;
32+
padding : 5px 5px 5px 5px;
33+
}
34+
35+
/* Forms */
36+
.panel {
37+
display : table;
38+
margin-left : auto;
39+
margin-right : auto;
40+
margin-bottom : 5px;
41+
margin-top : 5px;
42+
}
43+
.panel_header {
44+
text-align : center;
45+
font-weight : bold;
46+
line-height : 2em;
47+
color : white;
48+
background-color : #aaaaaa;
49+
border : thin solid #aaaaaa;
50+
margin-bottom : 1px;
51+
}
52+
.entry_form {
53+
padding : 5px 5px 5px 5px;
54+
}
55+
.form_field {
56+
margin : 0 auto;
57+
padding : 3px;
58+
border : solid thin #cccccc;
59+
overflow : auto;
60+
}
61+
.form_field .form_field_name,
62+
.form_field .form_field_input {
63+
float : left;
64+
margin : 0 auto;
65+
}
66+
.form_field .form_field_name {
67+
width : 200px;
68+
font-weight : bold;
69+
}
70+
.form_field .form_field_input {
71+
margin-left : 5px;
72+
margin-right : 10px;
73+
}
74+
.sep {
75+
clear : both;
76+
line-height : 1px;
77+
}
78+
79+
.info_cntnr {
80+
/*display : table;*/
81+
Width : 600px;
82+
margin-left : auto;
83+
margin-right : auto;
84+
margin-bottom : 5px;
85+
margin-top : 5px;
86+
border : thin solid #bbbbbb;
87+
-moz-border-radius : 6px 6px 0px 0px;
88+
}
89+
.info_cntnr_header {
90+
text-align : left;
91+
font-weight : bold;
92+
line-height : 2em;
93+
color : black;
94+
background-color : #bbbbbb;
95+
border : thin solid #bbbbbb;
96+
margin-bottom : 1px;
97+
-moz-border-radius : 6px 6px 0px 0px;
98+
}
99+
.info_cntnr_cont {
100+
padding : 8px;
101+
}
102+
.info_bit {
103+
padding-left : 8px;
104+
padding-right : 8px;
105+
}
106+
107+
.srch_cntnr {
108+
Width : 600px;
109+
margin-left : auto;
110+
margin-right : auto;
111+
margin-bottom : 5px;
112+
margin-top : 5px;
113+
border : thin solid #bbbbbb;
114+
background-color : #dddddd;
115+
font-weight : bold;
116+
line-height : 2em;
117+
-moz-border-radius : 6px 6px 6px 6px;
118+
}
119+
.srch_bit {
120+
padding-left : 8px;
121+
padding-right : 8px;
122+
padding-top : 4px;
123+
padding-bottom : 4px;
124+
}

0 commit comments

Comments
 (0)