############################################################################### # MoveThread.pl # ############################################################################### # YaBB: Yet another Bulletin Board # # Open-Source Community Software for Webmasters # # Software Version: YaBB 1 Gold - SP1 # # Released: December 2001 # # =========================================================================== # # Software Distributed by: http://yabb.xnull.com # # Support, News, Updates at: http://yabb.xnull.com/community/ # # =========================================================================== # # Copyright (c) 2000-2002 Xnull (www.xnull.com) - All Rights Reserved. # # Software by: The YaBB Development Team # # with assistance from the YaBB community. # ############################################################################### $movethreadplver = "1 Gold - SP1"; sub MoveThread { if((!exists $moderators{$username}) && $settings[7] ne "Administrator") { &fatal_error("$txt{'134'}"); } fopen(FILE, "$vardir/cat.txt"); @categories = ; fclose(FILE); $boardlist=""; foreach $curcat (@categories) { $curcat =~ s/[\n\r]//g; fopen(CAT, "$boardsdir/$curcat.cat"); @catinfo = ; fclose(CAT); $catinfo[1] =~ s/[\n\r]//g; $curcatname="$catinfo[0]"; foreach $curboard (@catinfo) { $curboard =~ s/[\n\r]//g; fopen(BOARD, "$boardsdir/$curboard.dat"); @boardinfo = ; fclose(BOARD); chomp @boardinfo; $curboardname = $boardinfo[0]; if($curboard ne "$catinfo[0]" && $curboard ne "$catinfo[1]" && $currentboard ne $curboard) { $curboard =~ s/[\n\r]//g; $boardlist .= "