Skip to content

Commit

Permalink
Add standard Free Software files.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosslagerwall committed Jun 25, 2011
1 parent e94eaa6 commit 6f5e024
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 16 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1 @@
Ross Lagerwall <rosslagerwall@gmail.com
37 changes: 37 additions & 0 deletions ChangeLog
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,37 @@
changeset: 6:8b97911c86e9
tag: tip
user: Ross Lagerwall <rosslagerwall@gmail.com>
date: Mon May 30 08:40:55 2011 +0200
summary: Replace shiz with Ross Lagerwall.

changeset: 5:aeee641fcc94
user: Ross Lagerwall <rosslagerwall@gmail.com>
date: Mon May 30 08:40:02 2011 +0200
summary: Update copyright year.

changeset: 4:aae89c27bff8
user: Ross Lagerwall <rosslagerwall@gmail.com>
date: Mon May 30 08:39:16 2011 +0200
summary: Fix permissions: change all files from 755 to 644.

changeset: 3:050d01ddfc48
user: Ross Lagerwall <rosslagerwall@gmail.com>
date: Mon May 30 08:38:36 2011 +0200
summary: Change Readme.txt to standardized README.

changeset: 2:b06c2a3daabc
user: Ross Lagerwall <rosslagerwall@gmail.com>
date: Mon May 30 08:37:50 2011 +0200
summary: Remove unnecesary Readme files.

changeset: 1:d1e7f9e584a9
user: Ross Lagerwall <rosslagerwall@gmail.com>
date: Wed Apr 13 07:05:15 2011 +0200
summary: Added tag v1.0 for changeset f34b14136c25

changeset: 0:f34b14136c25
tag: v1.0
user: Ross Lagerwall <rosslagerwall@gmail.com>
date: Wed Apr 13 07:05:11 2011 +0200
summary: Initial commit

15 changes: 15 additions & 0 deletions INSTALL
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,15 @@
Installation Instructions
=========================

This release contains two files:
comment.php
postcomment.php

To use, place the following lines of text where you want to use it.

<?php
include("comment.php");
comment("index");
?>

where index is the name of the page that will contain the comments.
Empty file added NEWS
Empty file.
15 changes: 1 addition & 14 deletions README
Original file line number Original file line Diff line number Diff line change
@@ -1,25 +1,12 @@
SimpleCommentSystem 1.0 SimpleCommentSystem 1.0
Copyright 2011. Ross Lagerwall Copyright 2011. Ross Lagerwall


This software is released under the LGPL. This software is released under the LGPL Version 3.


SimpleCommentSystem is an easy to use comment system that does not rely on SimpleCommentSystem is an easy to use comment system that does not rely on
databases and simply uses text files to store the comments. It is easy to databases and simply uses text files to store the comments. It is easy to
implement and ensures that the comments are stripped of all html before storing implement and ensures that the comments are stripped of all html before storing
them. The html appears inside a div tag with the id of comment so any styles them. The html appears inside a div tag with the id of comment so any styles
that need to be applied can be applied. that need to be applied can be applied.


Usage:


This release contains two files:
comment.php
postcomment.php

To use, place the following lines of text where you want to use it.

<?php
include("comment.php");
comment("index");
?>

where index is the name of the page that will contain the comments.
2 changes: 1 addition & 1 deletion comment.php
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php <?php
// SimpleCommentSystem 1.0 // SimpleCommentSystem 1.0
// Copyright 2011. Ross Lagerwall // Copyright 2011. Ross Lagerwall
// This program is distributed under terms of the Lesser GPL. // This program is distributed under terms of the Lesser GPL Version 3.
function comment($pageName) { function comment($pageName) {
echo '<div id="comment"><p><span style="font-size: 18px;">Comments:</span></p>'; echo '<div id="comment"><p><span style="font-size: 18px;">Comments:</span></p>';
if (file_exists($pageName."c.txt")) { if (file_exists($pageName."c.txt")) {
Expand Down
2 changes: 1 addition & 1 deletion postcomment.php
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php <?php
// SimpleCommentSystem 1.0 // SimpleCommentSystem 1.0
// Copyright 2011. Ross Lagerwall // Copyright 2011. Ross Lagerwall
// This program is distributed under terms of the Lesser GPL. // This program is distributed under terms of the Lesser GPL Version 3.
if ($_POST['page'] != '' && $_POST['name'] != '' && $_POST['comment'] != '' && file_exists($_POST['page'].".php")) { if ($_POST['page'] != '' && $_POST['name'] != '' && $_POST['comment'] != '' && file_exists($_POST['page'].".php")) {
$name = str_replace("~", "", $_POST['name']); $name = str_replace("~", "", $_POST['name']);
$comment = str_replace("~", "", $_POST['comment']); $comment = str_replace("~", "", $_POST['comment']);
Expand Down

0 comments on commit 6f5e024

Please sign in to comment.