Source for file previewcomment.php

Documentation is available at previewcomment.php

  1. <?php
  2. /**
  3.  * MvBlog -- An open source no-nosense blogtool
  4.  *
  5.  * Copyright (C) 2005-2007, 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-2007 Michiel van Baak
  19.  */
  20. require("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);
  30. echo $comment;
  31. ?>

Documentation generated on Fri, 28 Dec 2007 13:17:42 +0100 by phpDocumentor 1.4.1