Small fixes for mbfile
This commit is contained in:
parent
1ef050a583
commit
2e4eb31b7e
@ -12,7 +12,7 @@
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<BLOCKQUOTE>
|
||||
<h5>Last update 25-Jan-2002</h5>
|
||||
<h5>Last update 26-Jan-2002</h5>
|
||||
<P>
|
||||
|
||||
<H1>mbfile - File database maintenance program.</H1>
|
||||
@ -37,6 +37,8 @@ from the crontab. example:
|
||||
<P><pre>
|
||||
30 05 * * * export MBSE_ROOT=/opt/mbse; /opt/mbse/bin/mbfile kill pack check index -quiet
|
||||
</pre>
|
||||
Other functions in <b>mbfile</b> are meant to do manual maintenance such as
|
||||
adding, deleting or moving files.
|
||||
<P> <P>
|
||||
|
||||
<H3>Environment.</H3>
|
||||
@ -75,23 +77,36 @@ The file is not removed until you run <strong>mbfile pack</strong>.
|
||||
<P>
|
||||
|
||||
<code><strong>mbfile</strong> import <area></code>
|
||||
Import files to the given area using files.bbs descriptions.
|
||||
You need to be in the area where the files are stored.
|
||||
There must also be the files.bbs file present, if not then in the area setup
|
||||
you must enter the full filename and path where the files.bbs is. This may
|
||||
be needed for some CD-roms where the files.bbs is not in the same directory
|
||||
as where the files are. The files are not checked for FILE_ID.DIZ inside the
|
||||
Import files to the given area using files.bbs descriptions. There are two
|
||||
possibilities, import from CD-rom or just from a temporary directory.
|
||||
<UL>
|
||||
<LI>Import from a temporary directory: Put the files to import there including the
|
||||
files.bbs file.
|
||||
<LI>Import from CD-rom: Go into the directory on the CD
|
||||
where the files are. If the files.bbs is not in the same directory,
|
||||
you must enter the full filename and path where the files.bbs is with
|
||||
<b>mbsetup</b> 8.4.area.6.
|
||||
</UL>
|
||||
To start the import, type <code>mbfile import area</code> where area is the
|
||||
number of the destination filearea.
|
||||
The files are not checked for FILE_ID.DIZ inside the
|
||||
archives. If you have virus scanners defined, the files are checked for
|
||||
virussed before they are added the the bbs.
|
||||
virusses before they are added the the bbs. If you don't want these fresh files
|
||||
to be announced, add the <code>-announce</code> option on the commandline. This
|
||||
may be a good idea if you migrate from another bbs system.
|
||||
<P>
|
||||
|
||||
<code><strong>mbfile</strong> index</code>
|
||||
Create fast filerequest index for the <strong>mbcico</strong> filerequest
|
||||
processor. In each directory with the downloadable files is also a
|
||||
<strong>files.bbs</strong> file written is msdos cr/lf format. This includes a
|
||||
<strong>files.bbs</strong> file written in msdos cr/lf format. This includes a
|
||||
download counter.
|
||||
Also, if defined, in each available download area for ftp/http, index files are
|
||||
created, starting at the ftp pub directory.
|
||||
created, starting at the ftp pub directory. If the area contains gif or jpg
|
||||
images, thumbnails are created using the <b>convert</b> program if you have that
|
||||
installed. The thumbnails have the same filenames as the original images, only
|
||||
they start with a dot. The convert command is defined with <b>mbsetup</b> menu
|
||||
1.19.8, if you don't have it or don't want thumbnails, make that entry empty.
|
||||
<P>
|
||||
|
||||
<code><strong>mbfile</strong> kill</code>
|
||||
|
@ -203,7 +203,7 @@ JN|Wet U het zeker [j/N]:
|
||||
|Opslaan bericht op disk
|
||||
|Geef regel # te centreren
|
||||
|De regel is op maximale breedte en kan niet worden gecentreerd.
|
||||
|Er zijn geen breichten in dit gebied.
|
||||
|Er zijn geen berichten in dit gebied.
|
||||
|Datum :
|
||||
JN=|Meer (J/n/=/Gebied #):
|
||||
|Aan :
|
||||
|
@ -101,9 +101,9 @@ void Delete(int UnDel, int Area, char *File)
|
||||
}
|
||||
if (!UnDel && !fdb.Deleted) {
|
||||
fdb.Deleted = TRUE;
|
||||
Syslog('+', "Marked file %s in area %d for undeletion", File, Area);
|
||||
Syslog('+', "Marked file %s in area %d for deletion", File, Area);
|
||||
if (!do_quiet)
|
||||
printf("Marked file %s in area %d for undeletion\n", File, Area);
|
||||
printf("Marked file %s in area %d for deletion\n", File, Area);
|
||||
rc = TRUE;
|
||||
}
|
||||
if (rc) {
|
||||
|
@ -130,7 +130,7 @@ int main(int argc, char **argv)
|
||||
if (argc > (i + 1)) {
|
||||
i++;
|
||||
Area = atoi(argv[i]);
|
||||
cmd = xstrcat(cmd, argv[i]);
|
||||
cmd = xstrcat(cmd, (char *)" ");
|
||||
cmd = xstrcat(cmd, argv[i]);
|
||||
if (argc > (i + 1)) {
|
||||
i++;
|
||||
|
@ -180,9 +180,9 @@ void ImportFiles(int Area)
|
||||
/*
|
||||
* Create DOS 8.3 filename
|
||||
*/
|
||||
strcpy(temp, fdb.LName);
|
||||
name_mangle(temp);
|
||||
strcpy(fdb.Name, temp);
|
||||
strcpy(temp2, fdb.LName);
|
||||
name_mangle(temp2);
|
||||
strcpy(fdb.Name, temp2);
|
||||
|
||||
if (do_annon)
|
||||
fdb.Announced = TRUE;
|
||||
|
@ -548,6 +548,7 @@ void Index(void)
|
||||
}
|
||||
}
|
||||
fclose(fp);
|
||||
chmod(temp, 0644);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -609,6 +610,8 @@ void Index(void)
|
||||
if ((j = execute(CFG.www_convert, linebuf, outbuf,
|
||||
(char *)"/dev/null", (char *)"/dev/null", (char *)"/dev/null"))) {
|
||||
Syslog('+', "Failed to create thumbnail for %s, rc=% d", file.LName, j);
|
||||
} else {
|
||||
chmod(outbuf, 0644);
|
||||
}
|
||||
}
|
||||
fprintf(fa, "<TD align=center valign=top><A HREF=\"%s/%s%s/%s\">",
|
||||
@ -650,6 +653,7 @@ void Index(void)
|
||||
}
|
||||
closepage(fa, area.Path, inArea, aTotal);
|
||||
fclose(fp);
|
||||
chmod(temp, 0644);
|
||||
|
||||
/*
|
||||
* If the time before there were more files in this area then now,
|
||||
|
@ -314,6 +314,7 @@ int AddFile(struct FILERecord fdb, int Area, char *DestPath, char *FromPath)
|
||||
WriteError("Can't move file in place");
|
||||
return FALSE;
|
||||
}
|
||||
chmod(DestPath, 0644);
|
||||
|
||||
temp1 = calloc(PATH_MAX, sizeof(char));
|
||||
temp2 = calloc(PATH_MAX, sizeof(char));
|
||||
|
@ -877,7 +877,7 @@ int EditNodeRec(int Area)
|
||||
case 25:E_BOOL(15,70, nodes.NoZmodem, "Disable ^Zmodem^ protocol with this node")
|
||||
case 26:E_BOOL(16,70, nodes.NoZedzap, "Disable ^Zedzap^ protocol with this node")
|
||||
case 27:E_BOOL(17,70, nodes.NoHydra, "Disable ^Hydra^ protocol with this node")
|
||||
case 28:E_BOOL(18,70, nodes.NoTCP, "Disable ^TCP/IP^ protocol whith this node")
|
||||
case 28:E_BOOL(18,70, nodes.NoTCP, "Disable ^TCP/IP^ protocol with this node")
|
||||
case 29:E_BOOL(19,70, nodes.FNC, "Node needs ^DOS 8.3^ filenames")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user