root/trunk/common/previewcomment.php

Revision 776, 1.2 KB (checked in by michiel, 9 months ago)

update copyright year.

Closes #180

Line 
1<?php
2/**
3 * MvBlog -- An open source no-nosense blogtool
4 *
5 * Copyright (C) 2005-2008, Michiel van Baak
6 * Michiel van Baak <mvanbaak@users.sourceforge.net>
7 *
8 * See http://www.mvblog.org for more information on MvBlog.
9 * That page also provides Bugtrackers, Filereleases etc.
10 *
11 * This program is free software, distributed under the terms of
12 * the GNU General Public License Version 2. See the LICENSE file
13 * at the top of the source tree.
14 *
15 * @package MvBlog
16 * @author Michiel van Baak
17 * @version %%VERSION%%
18 * @copyright 2005-2008 Michiel van Baak
19 */
20require("mvblog.php");
21$mvblog = new MvBlog();
22$comment = "<b><i>Comment preview: </i></b>";
23$commentdata["title"]   = htmlspecialchars(stripslashes($_REQUEST["title"]));
24$commentdata["comment"] = nl2br($mvblog->parse_bbcode($mvblog->strip_invalid_xml(stripslashes($_REQUEST["comment"]))));
25$commentdata["name"]    = htmlspecialchars(stripslashes($_REQUEST["name"]));
26$commentdata["ip"]      = $mvblog->obfuscate_ip($_SERVER["REMOTE_ADDR"]);
27$commentdata["email"]   = htmlspecialchars(stripslashes($_REQUEST["email"]));
28$commentdata["website"] = htmlspecialchars(stripslashes($_REQUEST["website"]));
29$comment .= $mvblog->show_comment($commentdata);
30echo $comment;
31?>
Note: See TracBrowser for help on using the browser.