#!/usr/bin/perl -- # $Id: YaBB FixFile Utility $ # $HeadURL: YaBB $ # $Source: /FixFile.pl $ ############################################################################### # FixFile.pl # # $Date: 01.14.13 $ # ############################################################################### # YaBB: Yet another Bulletin Board # # Open-Source Community Software for Webmasters # # Version: YaBB 2.5.4 # # Packaged: January 1, 2013 # # Distributed by: http://www.yabbforum.com # # =========================================================================== # # Copyright (c) 2000-2013 YaBB (www.yabbforum.com) - All Rights Reserved. # # Software by: The YaBB Development Team # # with assistance from the YaBB community. # ############################################################################### # use strict; # use warnings; no warnings qw(uninitialized once redefine); use CGI::Carp qw(fatalsToBrowser); use English qw(-no_match_vars); our $VERSION = '2.5.4'; $fixfileplver = 'YaBB 2.5.4 $Revision$'; if ( $ENV{'SERVER_SOFTWARE'} =~ /IIS/sm ) { $yyIIS = 1; if ( $PROGRAM_NAME =~ m{(.*)(\\|/)}xsm ) { $yypath = $1; } $yypath =~ s/\\/\//gxsm; chdir $yypath; push @INC, $yypath; } ### Requirements and Errors ### $script_root = $ENV{'SCRIPT_FILENAME'}; if ( !$script_root ) { $script_root = $ENV{'PATH_TRANSLATED'}; $script_root =~ s/\\/\//gxsm; } $script_root =~ s/\/FixFile\.(pl|cgi)//igxsm; if ( -e './Paths.pm' ) { require Paths; } elsif ( -e './Variables/Paths.pm' ) { require './Variables/Paths.pm'; } else { $boardsdir = './Boards'; $sourcedir = './Sources'; $memberdir = './Members'; $vardir = './Variables'; } $thisscript = "$ENV{'SCRIPT_NAME'}"; if ( -e ('YaBB.cgi') ) { $yyext = 'cgi'; } else { $yyext = 'pl'; } if ($boardurl) { $set_cgi = "$boardurl/FixFile.$yyext"; } else { $set_cgi = "FixFile.$yyext"; } $scripturl = "$boardurl/YaBB.$yyext"; # Make sure the module path is present push @INC, './Modules'; require Sources::Subs; require Sources::System; require Sources::Load; require Sources::DateTime; require Admin::Admin; ############################################# # Conversion starts here # ############################################# $px = 'px'; if ( -e "$vardir/Setup.lock" ) { if ( -e "$vardir/FixFile.lock" ) { FoundFixFileLock(); } tempstarter(); tabmenushow(); if ( !$action ) { $yytabmenu = $NavLink1 . $NavLink2 . $NavLink3 . $NavLink5 . $NavLink6; $yymain = qq~
| YaBB 2.5.4 Converter | |
|
|
|
- Conversion can take a long time depending on the size of your forum (30 seconds to a couple hours). - Your browser will be refreshed automatically every $max_process_time seconds and you will see the ongoing process in the status bar. - Some internet connections refresh their IP-Address automatically every 24 hours. Make sure that your IP-Address will not change during conversion, or you must restart the conversion after that! - Your forum will be set to maintenance while converting. Click on 'Members' in the menu to start. |
| YaBB 2.5.4 Converter | |
|
Member Import.
$ConvDone
Board and Category Import.
$ConvNotDone
Message Import.
$ConvNotDone
Clean Up
$ConvNotDone
|
|
User data files have been imported. You are importing ~ . int( ( $INFO{'st'} + 60 ) / 60 ) . qq~ minutes. Click on 'Boards & Categories' in the menu to continue. |
| YaBB 2.5.4 Converter | |
|
Member Import.
$ConvDone
Board & Category Import.
$ConvDone
Message Import.
$ConvNotDone
Clean Up.
$ConvNotDone
|
|
All Boards threads imported. You are converting ~ . int( ( $INFO{'st'} + 60 ) / 60 ) . qq~ minutes. Click on 'Messages' in the menu to continue. |
| YaBB 2.5.4 Converter | |
|
Member Import.
$ConvDone
Board and Category Import.
$ConvDone
Message Import.
$ConvDone
Clean Up.
$ConvNotDone
|
|
$INFO{'total_threads'} Threads have been converted. $INFO{'total_mess'} Messages have been converted. You are converting ~ . int( ( $INFO{'st'} + 60 ) / 60 ) . qq~ minutes. Click on 'Clean Up' in the menu to continue. |
| YaBB 2.5.4 Converter | |
|
Member Import.
$ConvDone
Board and Category Import.
$ConvDone
Message Import.
$ConvDone
Clean Up.
$ConvDone
|
|
$forumstarttext
$convtext The conversion took ~ . int( ( $INFO{'st'} + 60 ) / 60 ) . qq~ minutes. We recommend you delete the file "$ENV{'SCRIPT_NAME'}". This is to prevent someone else running the converter and damaging your files. Further more, we strongly recommend to run the following "Maintenance Controls" in the "Admin Center" before you start doing other things: - Rebuild Message Index - Recount Board Totals - Rebuild Members List - Recount Membership - Rebuild Members History - Rebuild Notifications Files - Clean Users Online Log - Attachment Functions => Rebuild Attachments You may now login to your forum. Enjoy using YaBB 2.5.4! |
| YaBB 2.5.4 Setup | |
|
$fixa2 |
| $fixa | |
~;
$tabfill = qq~
~;
$NavLink1 = qq~$tabfill Members $tabfill~;
$NavLink2 = qq~$tabsep$tabfill Boards & Categories $tabfill~;
$NavLink3 = qq~$tabsep$tabfill Messages $tabfill~;
$NavLink5 = qq~$tabsep$tabfill Clean Up $tabfill~;
$NavLink6 = qq~$tabsep$tabfill Login $tabfill$tabsep ~;
$NavLink1a =
qq~$tabfill Members $tabfill~;
$NavLink2a =
qq~$tabsep$tabfill Boards & Categories $tabfill~;
$NavLink3a =
qq~$tabsep$tabfill Messages $tabfill~;
$NavLink5a =
qq~$tabsep$tabfill Clean Up $tabfill~;
$NavLink6a =
qq~$tabsep$tabfill Login $tabfill$tabsep ~;
$ConvDone = q~
| An Error Has Occurred! |
$e |