Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use major/minor/micro version numbering. Add proper license messages …

…to source files.
  • Loading branch information...
commit 5ffe2e9e1416c143838be4f560d1bd80895d7c08 1 parent 464f4d6
@rosslagerwall authored
Showing with 47 additions and 7 deletions.
  1. +15 −1 README
  2. +16 −3 comment.php
  3. +16 −3 postcomment.php
View
16 README
@@ -1,4 +1,4 @@
-SimpleCommentSystem 1.0
+SimpleCommentSystem 1.0.0
Copyright 2011. Ross Lagerwall
This software is released under the LGPL Version 3.
@@ -9,4 +9,18 @@ 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
that need to be applied can be applied.
+License:
+ Copyright (C) 2011 Ross Lagerwall <rosslagerwall@gmail.com>
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
View
19 comment.php
@@ -1,7 +1,20 @@
<?php
- // SimpleCommentSystem 1.0
- // Copyright 2011. Ross Lagerwall
- // This program is distributed under terms of the Lesser GPL Version 3.
+/*
+ Copyright (C) 2011 Ross Lagerwall <rosslagerwall@gmail.com>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
function comment($pageName) {
echo '<div id="comment"><p><span style="font-size: 18px;">Comments:</span></p>';
if (file_exists($pageName."c.txt")) {
View
19 postcomment.php
@@ -1,7 +1,20 @@
<?php
- // SimpleCommentSystem 1.0
- // Copyright 2011. Ross Lagerwall
- // This program is distributed under terms of the Lesser GPL Version 3.
+/*
+ Copyright (C) 2011 Ross Lagerwall <rosslagerwall@gmail.com>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
if ($_POST['page'] != '' && $_POST['name'] != '' && $_POST['comment'] != '' && file_exists($_POST['page'].".php")) {
$name = str_replace("~", "", $_POST['name']);
$comment = str_replace("~", "", $_POST['comment']);
Please sign in to comment.
Something went wrong with that request. Please try again.