1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-26 15:54:43 +02:00

hybridAuth loop fix. Comment fixes for anonymous users.

This commit is contained in:
CaMer0n
2012-06-18 13:00:47 +00:00
parent 4ae91639e4
commit d52eec6673
5 changed files with 60 additions and 11 deletions

View File

@@ -223,8 +223,11 @@ class comment_shortcodes extends e_shortcode
if($this->mode == 'edit')
{
if (ANON == TRUE && USER == FALSE) // (anonymous comments - if allowed)
{
return "<input class='tbox comment author' type='text' placeholder=\"".COMLAN_16."\" name='author_name' size='61' value='{$_SESSION['comment_author_name']}' maxlength='100' />";
{
$disabled = ($_SESSION['comment_author_name']) ? "disabled='disabled'" : ""; // prevent anon users changing names on the same session.
return "<input {$disabled} class='tbox comment author' type='text' placeholder=\"".COMLAN_16."\" name='author_name' size='61' value='{$_SESSION['comment_author_name']}' maxlength='100' />";
}
}
}