This program will convert an existing YaBB 1 Gold install, into an existing YaBB SE install. If you have not installed YaBB SE yet, please do so.
Now to collect some information from you regarding your YaBB SE Install
Converting Settings...
We are now going to attempt to convert your member data files.
We are now going to attempt to convert your message files. This may take a while.
Conversion Complete!
We are now copying your selections
";
else
print "template.html copy failed. ";
}
if (isset($copys) && !$mode)
{
$settingsToCopy = array('guestaccess', 'mbname', 'Cookie_Length', 'RegAgree', 'emailpassword', 'emailnewpass', 'emailwelcome', "color{'titlebg'}", "color{'titletext'}", "color{'windowbg'}", "color{'windowbg2'}", "color{'windowbg3'}", "color{'catbg'}", "color{'bordercolor'}", "color{'fadertext'}", "color{'fadertext2'}", 'MenuType', 'curposlinks', 'profilebutton','allow_hide_email', 'showlatestmember', 'shownewsfader', 'Show_RecentBar', 'Show_MemberBar', 'showmarkread', 'showmodify', 'ShowBDescrip', 'showuserpic', 'showusertext', 'showgenderimage', 'showyabbcbutt', 'enable_ubbc', 'enable_news', 'allowpics', 'enable_guestposting', 'enable_notification', 'TopAmmount', 'MembersPerPage', 'maxdisplay', 'maxmessagedisplay', 'MaxMessLen', 'MaxSigLen', 'ClickLogTime', 'timeout', 'JrPostNum', 'FullPostNum', 'SrPostNum', 'GodPostNum', 'userpic_width', 'userpic_height');
print"";
$copiedSettings = array();
$settingsArray = file("$y1gdir/Settings.pl");
for($i = 0; $i < sizeof($settingsArray); $i++)
{
foreach ($settingsToCopy as $curset)
{
if (substr($settingsArray[$i],1,strlen($curset))==$curset)
{
preg_match("/=(.*);/",$settingsArray[$i],$matches);
$copiedSettings[$curset] = $matches[1];
print "Copied value of $curset... ";
continue;
}
}
}
print " ";
$settingsArray = file("$installdir/Settings.php");
$url = "";
for($i = 0; $i < sizeof($settingsArray); $i++)
{
foreach ($copiedSettings as $set => $val)
{
$set = str_replace("{'","['",$set);
$set = str_replace("'}","']",$set);
if (substr($settingsArray[$i],1,strlen($set))==$set)
{
$settingsArray[$i] = preg_replace("/=(.*);/","= $val;",$settingsArray[$i],1);
print "Replaced value of $set..with $val ";
continue;
}
}
}
$fp = fopen("$installdir/Settings.php", "w");
foreach($settingsArray as $row)
fputs($fp, $row);
fclose ($fp);
}
include("$installdir/Settings.php");
?>
|
Installation Complete!
Click Here to go to your board
|