| @@ 110-115 (lines=6) @@ | ||
| 107 | $logname = $xoopsConfig['anonymous']; |
|
| 108 | } |
|
| 109 | ||
| 110 | if ($xoopsUser) { |
|
| 111 | $result = $xoopsDB->query("select email from ".$xoopsDB->prefix("users")." where uname='$logname'"); |
|
| 112 | list($address) = $xoopsDB->fetchRow($result); |
|
| 113 | } else { |
|
| 114 | $address = $xoopsConfig['adminmail']; |
|
| 115 | } |
|
| 116 | ||
| 117 | if ($xoopsModuleConfig['mailtoadmin'] == 1) { |
|
| 118 | $adminMessage = sprintf( _MD_LEXIKON_WHOASKED, $logname ); |
|
| @@ 207-211 (lines=5) @@ | ||
| 204 | if (!is_object($xoopsUser)) { |
|
| 205 | $username = _MD_LEXIKON_GUEST; |
|
| 206 | $usermail = ''; |
|
| 207 | } else { |
|
| 208 | $username = $xoopsUser->getVar("uname", "E"); |
|
| 209 | $result = $xoopsDB->query("select email from ".$xoopsDB->prefix("users")." WHERE uname='$username'"); |
|
| 210 | list($usermail) = $xoopsDB->fetchRow($result); |
|
| 211 | } |
|
| 212 | ||
| 213 | if ($xoopsModuleConfig['mailtoadmin'] == 1) { |
|
| 214 | $adminMessage = sprintf( _MD_LEXIKON_WHOSUBMITTED, $username ); |
|