#TITLE tForum b0.93.2.5 #IFNOT includes/functions.php $fSettings['Version'] = 'b0.93.2.4'; #INFO This .tmi file can only be used to upgrade from tForum b0.93.2.4 to tForum b0.93.2.5! #CANCEL #ENDIF #QUESTION This will upgrade your tForum to b0.93.2.5. Do you want to continue? #ELSE #CANCEL #ENDIF #OPEN includes/functions.php #FIND $fSettings['Version'] = 'b0.93.2.4'; #REPLACE $fSettings['Version'] = 'b0.93.2.5'; #FIND // Returns a string after undoing what htmlspecialchars has done to it. Completely untested. function unhtmlspecialchars($string) { return strtr(array_flip(get_html_transistion_table(HTML_SPECIALCHARS))); #REPLACE // Returns a string after undoing what htmlspecialchars has done to it. function unhtmlspecialchars($string) { return strtr($string,array_flip(get_html_translation_table(HTML_SPECIALCHARS))); #OPEN includes/mail.php #FIND $this->usesmtp = $fSettings['usesmpt']; #REPLACE $this->usesmtp = $fSettings['usesmtp']; #FIND function send_command($command,$code) { fwrite($this->fp,$command.$crlf); #REPLACE function send_command($command,$code) { $crlf = "\r\n"; fwrite($this->fp,$command.$crlf); #OPEN templates/viewtopic.html #FIND : #REPLACE :
#FIND : #REPLACE :
#OPEN CHANGES.txt #FIND b.93.2.4 #REPLACE b.93.2.5 - Fixed a problem dates on inbox and outbox views - Fixed a problem in the mail function - Fixed a problem in index and viewcat on shortening subject names with specialchars in them - Fixed a problem in viewboard when checking the edit permission bit - Fixed the unhtmlspecialchars function - Fixed a problem in the viewtopic template regarding a missing
tag - Fixed a problem with guests regdate showing up as an empty string - Fixed a problem with kooky admins who have over 100 emoticons in their database and wanting them all to show up. Weirdos. =P b.93.2.4 #OPEN index.php #FIND $ent['LatestMsgSubject'] = ''.((strlen($ent['LatestMsgSubject'])<=25)?$ent['LatestMsgSubject']:substr($ent['LatestMsgSubject'],0,22).'...').''; #REPLACE $ent['LatestMsgSubject'] = ''.((strlen($ent['LatestMsgSubject'])<=25)?$ent['LatestMsgSubject']:htmlspecialchars(substr(unhtmlspecialchars($ent['LatestMsgSubject']),0,22)).'...').''; #OPEN member.php #FIND function register2() { global $CookieInfo,$action,$fSettings,$ent,$txt,$querycount,$start_time; #REPLACE function register2() { global $CookieInfo,$action,$fSettings,$ent,$txt,$querycount,$start_time,$EmergencyEmail; #OPEN misc.php #FIND $query.= ' ORDER BY EmoteOrder ASC LIMIT '.$start.',100'; #REPLACE $query.= ' ORDER BY EmoteOrder ASC LIMIT '.$start.',1000'; #OPEN pm.php #FIND $ent['pmDate'] = FormatDate($TimeStamp); $ent['pmTime'] = FormatTime($TimeStamp); #REPLACE $ent['pmDate'] = FormatDate($TimeStamp,$CurrentUser['TimeZone']); $ent['pmTime'] = FormatTime($TimeStamp,$CurrentUser['TimeZone']); #FIND $ent['pmDate'] = FormatDate($TimeStamp); $ent['pmTime'] = FormatTime($TimeStamp); #REPLACE $ent['pmDate'] = FormatDate($TimeStamp,$CurrentUser['TimeZone']); $ent['pmTime'] = FormatTime($TimeStamp,$CurrentUser['TimeZone']); #OPEN viewboard.php #FIND $ent['edit'] = (!CheckBit($CurrentUser['BitMask'],$BPermDefs,'reply')) ? $txt['no'] : $txt['yes']; #REPLACE $ent['edit'] = (!CheckBit($CurrentUser['BitMask'],$BPermDefs,'edit')) ? $txt['no'] : $txt['yes']; #OPEN viewcat.php #FIND $ent['LatestMsgSubject'] = ''.((strlen($ent['LatestMsgSubject'])<=25)?$ent['LatestMsgSubject']:substr($ent['LatestMsgSubject'],0,22).'...').''; #REPLACE $ent['LatestMsgSubject'] = ''.((strlen($ent['LatestMsgSubject'])<=25)?$ent['LatestMsgSubject']:htmlspecialchars(substr(unhtmlspecialchars($ent['LatestMsgSubject']),0,22)).'...').''; #OPEN viewtopic.php #FIND $ent['PosterNumPost'] = 'N/A'; #ADDAFTER $ent['PosterRegDate'] = 'N/A'; #END