Changeset 884 for trunk/Modules/User
- Timestamp:
- Apr 8, 2020, 7:27:09 PM (5 years ago)
- Location:
- trunk/Modules/User
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/Options.php
r880 r884 53 53 '</form>'; 54 54 55 $Output .= ' 55 $Output .= '<fieldset><legend>'.T('Translation team').'</legend>'; 56 56 $DbResult = $this->Database->query('SELECT `Id`, `Name` FROM `Team`'); 57 $Output .= '<a href=" team/?action=create">'.T('Create team').'</a><br />'.58 '<a href=" team/?action=leave">'.T('Leave team').'</a><br />'.59 '<br /><form action=" team/" method="get">'.57 $Output .= '<a href="'.$this->System->Link('/team/?action=create').'">'.T('Create team').'</a><br />'. 58 '<a href="'.$this->System->Link('/team/?action=leave').'">'.T('Leave team').'</a><br />'. 59 '<br /><form action="'.$this->System->Link('/team/').'" method="get">'. 60 60 '<input type="hidden" name="action" value="gointeam"/>'. 61 61 '<select name="id">'; … … 66 66 $Output .= '>'.htmlspecialchars($LineTeam['Name']).'</option>'; 67 67 } 68 $Output .= '</select> <input type="submit" value="'.T('Enter').'" /> 69 </form>'; 70 $Output .= '</fieldset>'; 68 $Output .= '</select>'. 69 '<input type="submit" value="'.T('Enter').'" />'. 70 '</form>'; 71 '</fieldset>'; 71 72 return $Output; 72 73 } -
trunk/Modules/User/Registration.php
r880 r884 103 103 if (array_key_exists('Language', $_POST)) $Language = $_POST['Language'] * 1; 104 104 else $Language = ''; 105 if (array_key_exists('ClientVersion', $_POST)) $PreferredVersion = $_POST['ClientVersion'] * 1; 105 if (array_key_exists('ClientVersion', $_POST) and is_numeric($_POST['ClientVersion'])) 106 $PreferredVersion = $_POST['ClientVersion'] * 1; 106 107 else $PreferredVersion = ''; 107 108 if ($PreferredVersion == '') $PreferredVersion = 'NULL'; -
trunk/Modules/User/User.php
r880 r884 257 257 // Refresh time of last access 258 258 $this->Database->update('UserOnline', 'SessionId="'.$SID.'"', array('ActivityTime' => 'NOW()')); 259 } else { 259 } else 260 { 260 261 if (GetRemoteAddress() != '') $HostName = gethostbyaddr(GetRemoteAddress()); 261 262 else $HostName = ''; … … 313 314 $UserId = $this->Database->insert_id; 314 315 $this->Database->query('INSERT INTO `UserTrace` (`User`, `LastIP`, `UserAgent`) '. 315 316 316 'VALUES ('.$UserId.', "'.GetRemoteAddress().'", '. 317 '"'.$this->Database->real_escape_string($_SERVER['HTTP_USER_AGENT']).'")'); 317 318 } 318 319 }
Note:
See TracChangeset
for help on using the changeset viewer.