mirror of
https://github.com/rejetto/hfs2.git
synced 2025-12-19 10:03:56 +01:00
new 'public' section flag in place of 'private', inverting logic
This commit is contained in:
parent
6729be221a
commit
efa99e7cbc
@ -139,7 +139,7 @@ type
|
||||
PtplSection = ^TtplSection;
|
||||
TtplSection = record
|
||||
name, txt: string;
|
||||
nolog, nourl, noList, cache: boolean;
|
||||
nolog, public, noList, cache: boolean;
|
||||
ts: Tdatetime;
|
||||
end;
|
||||
|
||||
@ -1020,8 +1020,8 @@ var
|
||||
begin
|
||||
if f='no log' then
|
||||
base.nolog:=TRUE
|
||||
else if f='private' then
|
||||
base.nourl:=TRUE
|
||||
else if f='public' then
|
||||
base.public:=TRUE
|
||||
else if f='no list' then
|
||||
base.noList:=TRUE
|
||||
else if f='cache' then
|
||||
@ -1095,7 +1095,7 @@ var
|
||||
begin // inherit from it
|
||||
sect.txt:=from.txt+base.txt;
|
||||
sect.nolog:=from.nolog or base.nolog;
|
||||
sect.nourl:=from.nourl or base.nourl;
|
||||
sect.public:=from.public or base.public;
|
||||
sect.noList:=from.noList or base.noList;
|
||||
continue;
|
||||
end;
|
||||
|
||||
24
default.tpl
24
default.tpl
File diff suppressed because one or more lines are too long
8
main.pas
8
main.pas
@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
Copyright (C) 2002-2020 Massimo Melina (www.rejetto.com)
|
||||
|
||||
This file is part of HFS ~ HTTP File Server.
|
||||
@ -36,8 +36,8 @@ uses
|
||||
HSlib, traylib, monoLib, progFrmLib, classesLib;
|
||||
|
||||
const
|
||||
VERSION = '2.4.0 RC4';
|
||||
VERSION_BUILD = '316';
|
||||
VERSION = '2.4.0 RC5';
|
||||
VERSION_BUILD = '317';
|
||||
VERSION_STABLE = {$IFDEF STABLE } TRUE {$ELSE} FALSE {$ENDIF};
|
||||
CURRENT_VFS_FORMAT :integer = 1;
|
||||
CRLF = #13#10;
|
||||
@ -5615,7 +5615,7 @@ var
|
||||
with tplFromFile(f) do // temporarily builds from diff tpls
|
||||
try
|
||||
section:=getsection(s);
|
||||
if assigned(section) and not section.nourl then // it has to exist and be accessible
|
||||
if assigned(section) and section.public then // it has to exist and be accessible
|
||||
begin
|
||||
if not section.cache
|
||||
or not notModified(conn, s+floatToStr(section.ts), '') then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user