Posted on: 12/05/03 02:19pm
By: pernas
if (isset($save)) { require_once($GEEKLOG_DIR . '/lib-common.php'); global $_USER, $_CONF; $commenter_name = '<a href="' . $_CONF['site_url'] . '/users.php?mode=profile&uid=' . $_USER['uid'] . '">' . $_USER['usern ame'] . '</a>'; if (!$_USER['uid'] >= 2) {$commenter_name = "";}; if ($commenter_name && $comment_text) { $comment_text = removeTags($comment_text); // $commenter_name = removeTags($commenter_name); $IPNumber = $HTTP_SERVER_VARS['REMOTE_ADDR']; $gallery->album->addComment($index, stripslashes($comment_text), $IPNumber, $commenter_name); $gallery->album->save(); dismissAndReload(); return; } else { $error_text = _("Name and comment are both required to save a new comment!"); } } ?>
<tr> <td><?php echo _("Name or email:") ?></td> <td><input name="commenter_name" value="<?php echo $commenter_name ?>" size=30></td> </tr>