[Phpslash-commit] CVS: phpslash-ft/public_html comment.php3,1.30,1.31
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2003-02-20 16:38:36
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory sc8-pr-cvs1:/tmp/cvs-serv6624/phpslash-ft/public_html Modified Files: comment.php3 Log Message: Norwegian translation, comment IP with register globals off Index: comment.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/comment.php3,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** comment.php3 19 Feb 2003 20:20:13 -0000 1.30 --- comment.php3 20 Feb 2003 16:38:31 -0000 1.31 *************** *** 41,45 **** // when you are previewing a comment before submitting ! $ary['replying_to'] = $cmt->formatComment($ary); $content .= $cmt->getForm($ary); --- 41,46 ---- // when you are previewing a comment before submitting ! $ary['ip'] = gethostbyaddr($HTTP_SERVER_VARS['REMOTE_ADDR']); /* add the poster's IP addr */ ! $ary['replying_to'] = $cmt->formatComment($ary); $content .= $cmt->getForm($ary); *************** *** 55,59 **** $content .= getTitlebar("100%", "Submitted Comment"); ! $ary['ip'] = $REMOTE_ADDR; /* add the poster's IP addr */ $id = $cmt->update($ary); --- 56,60 ---- $content .= getTitlebar("100%", "Submitted Comment"); ! $ary['ip'] = $HTTP_SERVER_VARS['REMOTE_ADDR']; /* add the poster's IP addr */ $id = $cmt->update($ary); |