#TITLE tForum b0.94.1.2 #IFNOT includes/functions.php $fSettings['Version'] = 'b0.94.1.1'; #INFO This .tmi file can only be used to upgrade from tForum b0.94.1.1 to tForum b0.94.1.2! #CANCEL #ENDIF #QUESTION This will upgrade your tForum to b0.94.1.2. Do you want to continue? #ELSE #CANCEL #ENDIF #OPEN includes/functions.php #FIND $fSettings['Version'] = 'b0.94.1.1'; #REPLACE $fSettings['Version'] = 'b0.94.1.2'; #FIND ( '#(\[url\])(.+)(\[/url\])#is', // normal url tags '#(\[url=)(\S+?)(\])(.+?)(\[/url\])#i', // url tags with url inside #REPLACE ( '#(\[url\])(.+)(\[/url\])#Uis', // normal url tags '#(\[url=)(\S+?)(\])(.+?)(\[/url\])#Ui', // url tags with url inside #OPEN admin/adminfunctions.php #FIND /*if (file_exists('../install.php') || file_exists('../import.php') || file_exists('../dropdb.php' || file_exists('../upgrade.php'))) AdminUhOh('For security reasons, please remove any install script (dropdb.php,install.php,import.php and upgrade.php) before continuing'); */$AnnounceID = (isset($AnnounceID)) ? intval($AnnounceID) : 0; #REPLACE if (file_exists('../install.php') || file_exists('../import.php') || file_exists('../dropdb.php' || file_exists('../upgrade.php'))) AdminUhOh('For security reasons, please remove any install script (dropdb.php,install.php,import.php and upgrade.php) before continuing'); $AnnounceID = (isset($AnnounceID)) ? intval($AnnounceID) : 0; #OPEN includes/template_parser.php #FIND $template = SCRIPT_ABS_PATH.'/templates/'.$template.'.html'; $theTemplate = @fopen($template,'r'); if (!$theTemplate) { die('Can not open '.$template); #REPLACE $theTemplate = @fopen(SCRIPT_ABS_PATH.'/templates/'.$template.'.html','r'); if (!$theTemplate) { die('Can not open '.$template.'.html.
Either this file does not exist or SCRIPT_ABS_PATH is not properly set.'); #OPEN templates/attachpostbit.html #FIND
#REPLACE
#OPEN templates/viewtopic.html #FIND   #REPLACE   #OPEN CHANGES.txt #FIND b.94.1.1 #REPLACE b.94.1.2 - Fixed a typo that prevented 'Mark Topic as Unread' from being parsed - Fixed a the link problem for filedownloads - Changed function ReadTemplate to display a more informative error message - Changed the url regular expressions to be ungreedy b.94.1.1 #OPEN config.php #FIND * AVATAR_ABS_PATH = This is the name of the directory which you will upload avatars. * Only important if you save to a directory * UPLOAD_ABS_PATH = This is the name of the directory which you will upload attached files. * Only important if you save to a directory #REPLACE * SCRIPT_ABS_PATH = This is the absolute path to the directory which you have your forum files. * Only important if you save to a directory. No trailing slash. * AVATAR_ABS_PATH = This is the absolute path of the directory which you will store avatars. * Only important if you save to a directory. No trailing slash. * UPLOAD_ABS_PATH = This is the absolute path of the directory which you will store attached files. * Only important if you save to a directory. No trailing slash. #FIND // SQL LOGIN INFORMATION #REPLACE /* SQL LOGIN INFORMATION */ #FIND // TABLE PREFIX #REPLACE /* TABLE PREFIX */ #FIND // EMERGENCY EMAIL // #REPLACE /* EMERGENCY EMAIL */ #FIND // FORUM SCRIPT ABSOLUTE PATH #REPLACE /* FORUM SCRIPT ABSOLUTE PATH */ #FIND // AVATAR UPLOAD DIRECTORY ABSOLUTE PATH // #REPLACE // AVATAR UPLOAD DIRECTORY ABSOLUTE PATH */ #FIND // ATTACHED FILE UPLOAD ABSOLUTE PATH // #REPLACE // ATTACHED FILE UPLOAD ABSOLUTE PATH */ #IF config.php define('EMERGENCY_EMAIL', 'youremail@yourdomain.com'); #FIND define('EMERGENCY_EMAIL', 'youremail@yourdomain.com'); #REPLACE define('EMERGENCY_EMAIL', 'admin@yourdomain.com'); #ENDIF #IF config.php define('SCRIPT_ABS_PATH', ''); #FIND define('SCRIPT_ABS_PATH', ''); #REPLACE define('SCRIPT_ABS_PATH', '/path/to/your/forum'); #ENDIF #OPEN db.php #FIND //This class is here for portability to other SQL servers, though its not ready for other SQL servers yet. =) #DELETE #FIND @include('config.php'); #ADDAFTER #OPEN message.php #FIND $ent['attachname'] = '
get_assoc()) { $colors[$row['Name']] = $row['Value']; #ADDAFTER } $_SERVER['PATH_TRANSLATED'] = trim(str_replace('//','/',str_replace('\\','/',$_SERVER['PATH_TRANSLATED']))); $ScriptPath = trim(substr($_SERVER['PATH_TRANSLATED'],0,strrpos($_SERVER['PATH_TRANSLATED'],'/'))); if (trim($ScriptPath)=='') { $ScriptPath = trim(substr($_SERVER['SCRIPT_FILENAME'],0,strrpos($_SERVER['SCRIPT_FILENAME'],'/'))); #FIND this script will email all admins telling them that there was an unauthorized attempt at upgrading this forum has occurred as well as your IP. You know the drill.

#REPLACE this script will email all admins informing them that there has been an unauthorized attempt at upgrading this forum as well as your IP. You know the drill.

#FIND define('SCRIPT_ABS_PATH',''); define('AVATAR_ABS_PATH','/avatar'); define('UPLOAD_ABS_PATH','/uploads'); #REPLACE define('SCRIPT_ABS_PATH',''); define('AVATAR_ABS_PATH','/avatar'); define('UPLOAD_ABS_PATH','/uploads'); #END