Small fixes for mbfile
This commit is contained in:
parent
1ef050a583
commit
2e4eb31b7e
@ -12,7 +12,7 @@
|
|||||||
</HEAD>
|
</HEAD>
|
||||||
<BODY>
|
<BODY>
|
||||||
<BLOCKQUOTE>
|
<BLOCKQUOTE>
|
||||||
<h5>Last update 25-Jan-2002</h5>
|
<h5>Last update 26-Jan-2002</h5>
|
||||||
<P>
|
<P>
|
||||||
|
|
||||||
<H1>mbfile - File database maintenance program.</H1>
|
<H1>mbfile - File database maintenance program.</H1>
|
||||||
@ -37,6 +37,8 @@ from the crontab. example:
|
|||||||
<P><pre>
|
<P><pre>
|
||||||
30 05 * * * export MBSE_ROOT=/opt/mbse; /opt/mbse/bin/mbfile kill pack check index -quiet
|
30 05 * * * export MBSE_ROOT=/opt/mbse; /opt/mbse/bin/mbfile kill pack check index -quiet
|
||||||
</pre>
|
</pre>
|
||||||
|
Other functions in <b>mbfile</b> are meant to do manual maintenance such as
|
||||||
|
adding, deleting or moving files.
|
||||||
<P> <P>
|
<P> <P>
|
||||||
|
|
||||||
<H3>Environment.</H3>
|
<H3>Environment.</H3>
|
||||||
@ -75,23 +77,36 @@ The file is not removed until you run <strong>mbfile pack</strong>.
|
|||||||
<P>
|
<P>
|
||||||
|
|
||||||
<code><strong>mbfile</strong> import <area></code>
|
<code><strong>mbfile</strong> import <area></code>
|
||||||
Import files to the given area using files.bbs descriptions.
|
Import files to the given area using files.bbs descriptions. There are two
|
||||||
You need to be in the area where the files are stored.
|
possibilities, import from CD-rom or just from a temporary directory.
|
||||||
There must also be the files.bbs file present, if not then in the area setup
|
<UL>
|
||||||
you must enter the full filename and path where the files.bbs is. This may
|
<LI>Import from a temporary directory: Put the files to import there including the
|
||||||
be needed for some CD-roms where the files.bbs is not in the same directory
|
files.bbs file.
|
||||||
as where the files are. The files are not checked for FILE_ID.DIZ inside the
|
<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
|
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>
|
<P>
|
||||||
|
|
||||||
<code><strong>mbfile</strong> index</code>
|
<code><strong>mbfile</strong> index</code>
|
||||||
Create fast filerequest index for the <strong>mbcico</strong> filerequest
|
Create fast filerequest index for the <strong>mbcico</strong> filerequest
|
||||||
processor. In each directory with the downloadable files is also a
|
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.
|
download counter.
|
||||||
Also, if defined, in each available download area for ftp/http, index files are
|
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>
|
<P>
|
||||||
|
|
||||||
<code><strong>mbfile</strong> kill</code>
|
<code><strong>mbfile</strong> kill</code>
|
||||||
|
@ -203,7 +203,7 @@ JN|Wet U het zeker [j/N]:
|
|||||||
|Opslaan bericht op disk
|
|Opslaan bericht op disk
|
||||||
|Geef regel # te centreren
|
|Geef regel # te centreren
|
||||||
|De regel is op maximale breedte en kan niet worden gecentreerd.
|
|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 :
|
|Datum :
|
||||||
JN=|Meer (J/n/=/Gebied #):
|
JN=|Meer (J/n/=/Gebied #):
|
||||||
|Aan :
|
|Aan :
|
||||||
|
@ -101,9 +101,9 @@ void Delete(int UnDel, int Area, char *File)
|
|||||||
}
|
}
|
||||||
if (!UnDel && !fdb.Deleted) {
|
if (!UnDel && !fdb.Deleted) {
|
||||||
fdb.Deleted = TRUE;
|
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)
|
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;
|
rc = TRUE;
|
||||||
}
|
}
|
||||||
if (rc) {
|
if (rc) {
|
||||||
|
@ -130,7 +130,7 @@ int main(int argc, char **argv)
|
|||||||
if (argc > (i + 1)) {
|
if (argc > (i + 1)) {
|
||||||
i++;
|
i++;
|
||||||
Area = atoi(argv[i]);
|
Area = atoi(argv[i]);
|
||||||
cmd = xstrcat(cmd, argv[i]);
|
cmd = xstrcat(cmd, (char *)" ");
|
||||||
cmd = xstrcat(cmd, argv[i]);
|
cmd = xstrcat(cmd, argv[i]);
|
||||||
if (argc > (i + 1)) {
|
if (argc > (i + 1)) {
|
||||||
i++;
|
i++;
|
||||||
|
@ -180,9 +180,9 @@ void ImportFiles(int Area)
|
|||||||
/*
|
/*
|
||||||
* Create DOS 8.3 filename
|
* Create DOS 8.3 filename
|
||||||
*/
|
*/
|
||||||
strcpy(temp, fdb.LName);
|
strcpy(temp2, fdb.LName);
|
||||||
name_mangle(temp);
|
name_mangle(temp2);
|
||||||
strcpy(fdb.Name, temp);
|
strcpy(fdb.Name, temp2);
|
||||||
|
|
||||||
if (do_annon)
|
if (do_annon)
|
||||||
fdb.Announced = TRUE;
|
fdb.Announced = TRUE;
|
||||||
|
@ -548,6 +548,7 @@ void Index(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
chmod(temp, 0644);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -609,6 +610,8 @@ void Index(void)
|
|||||||
if ((j = execute(CFG.www_convert, linebuf, outbuf,
|
if ((j = execute(CFG.www_convert, linebuf, outbuf,
|
||||||
(char *)"/dev/null", (char *)"/dev/null", (char *)"/dev/null"))) {
|
(char *)"/dev/null", (char *)"/dev/null", (char *)"/dev/null"))) {
|
||||||
Syslog('+', "Failed to create thumbnail for %s, rc=% d", file.LName, j);
|
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\">",
|
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);
|
closepage(fa, area.Path, inArea, aTotal);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
chmod(temp, 0644);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If the time before there were more files in this area then now,
|
* 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");
|
WriteError("Can't move file in place");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
chmod(DestPath, 0644);
|
||||||
|
|
||||||
temp1 = calloc(PATH_MAX, sizeof(char));
|
temp1 = calloc(PATH_MAX, sizeof(char));
|
||||||
temp2 = 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 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 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 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")
|
case 29:E_BOOL(19,70, nodes.FNC, "Node needs ^DOS 8.3^ filenames")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user