cvs: bugtracker /includes comment.php

From: Date: Thu, 10 Jul 2008 00:10:40 +0000
Subject: cvs: bugtracker /includes comment.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-2065@lists.php.net to get a copy of this message
bcarlyon Thu Jul 10 00:10:40 2008 UTC Modified files: /bugtracker/includes comment.php Log: added spawn_form funcion Modified Files: includes/comment.php http://cvs.php.net/viewvc.cgi/bugtracker/includes/comment.php?r1=1.1&r2=1.2&diff_format=u Index: bugtracker/includes/comment.php diff -u bugtracker/includes/comment.php:1.1 bugtracker/includes/comment.php:1.2 --- bugtracker/includes/comment.php:1.1 Wed Jul 9 13:07:22 2008 +++ bugtracker/includes/comment.php Thu Jul 10 00:10:40 2008 @@ -29,6 +29,33 @@ } function delete_comment() { } + function spawn_form() { + global $user,$content; + //generate a comment form + + //test logged in + + $content .= ' +<tr><td>&nbsp;Add Comment</td></tr> +<tr><td></td><td colspan="2">'; + + if ($user->logged_in) + { + $content .= ' +<form action="ARG" method="post"> + +</form> +'; + } + else + { + $content .= '<p>You don&#39;t appear to be logged in</p>'; + } +$content .= ' +</td></tr> +'; + return; + } } ?>

« previous php.webmaster (#2065) next »