![]() |
CMS
Version 3.9
|
Go to the source code of this file.
Functions | |
saveNewComment ($form) | |
Variables | |
$comment_id = checkNumeric($_GET["comment_id"]) | |
$xref_class = ConnectionManager::escape($_GET["xref_class"]) | |
$key_name = ConnectionManager::escape($_GET["key_name"]) | |
$key_value = checkNumeric($_GET["key_value"]) | |
$xref_component = ConnectionManager::escape($_GET["xref_component"]) | |
global | $user |
$comment = new Comment() | |
if($comment_id) | else |
$comment | date_posted = today() |
$newPost = true | |
$returnFn = "commentFormResult" | |
$form = new AutoForm($comment, "POST", "/action/comment/comment_form?comment_id=$comment_id&xref_class=$xref_class&key_name=$key_name&key_value=$key_value&xref_component=$xref_component", "EditComment_form") | |
if(! $comment_id) | $posted = new DateTimeFieldRenderer($form) |
$posted | template = "m/d/Y" |
$captchaMode = Settings::getValue("comment", "use_captcha") | |
if(! $comment_id &&($captchaMode=="Always"||($captchaMode=="Anonymous Only" &&! $user))) $form | allowDelete = true |
if ( $method=="POST") | |
saveNewComment | ( | $form | ) |
Definition at line 103 of file comment_form.inc.
$captchaMode = Settings::getValue("comment", "use_captcha") |
Definition at line 75 of file comment_form.inc.
$comment = new Comment() |
Definition at line 20 of file comment_form.inc.
$comment_id = checkNumeric($_GET["comment_id"]) |
Definition at line 11 of file comment_form.inc.
$form = new AutoForm($comment, "POST", "/action/comment/comment_form?comment_id=$comment_id&xref_class=$xref_class&key_name=$key_name&key_value=$key_value&xref_component=$xref_component", "EditComment_form") |
Definition at line 36 of file comment_form.inc.
$key_name = ConnectionManager::escape($_GET["key_name"]) |
Definition at line 13 of file comment_form.inc.
$key_value = checkNumeric($_GET["key_value"]) |
Definition at line 14 of file comment_form.inc.
$newPost = true |
Definition at line 32 of file comment_form.inc.
if (! $comment_id) $posted = new DateTimeFieldRenderer($form) |
Definition at line 48 of file comment_form.inc.
$returnFn = "commentFormResult" |
Definition at line 33 of file comment_form.inc.
global $user |
Definition at line 16 of file comment_form.inc.
$xref_class = ConnectionManager::escape($_GET["xref_class"]) |
Definition at line 12 of file comment_form.inc.
$xref_component = ConnectionManager::escape($_GET["xref_component"]) |
Definition at line 15 of file comment_form.inc.
if (! $comment_id &&( $captchaMode=="Always"||( $captchaMode=="Anonymous Only" &&! $user))) $form allowDelete = true |
Definition at line 82 of file comment_form.inc.
$comment date_posted = today() |
Definition at line 31 of file comment_form.inc.
Definition at line 28 of file comment_form.inc.
if | ( | $method = = "POST" | ) |
Definition at line 84 of file comment_form.inc.
$posted template = "m/d/Y" |
Definition at line 49 of file comment_form.inc.