*Get-A-Web version 0.6* * avoids *.lock files * usable as a link * you can download last version of topics Here you can download a zipped copy of the web of your choice. The .haccess and .htpasswd files are excluded for security reasons. (the access rights can be checked by apache directives ...). %INCLUDE{"getweb-list"}% Here you can easily download all TWiki.tgz topics. (the link works if you install also the following rules in wikicfg.pl) * Add the rendering rule
#AS
    # Automatically gets a web content
    s#(^|\s)(([A-Z][a-zA-Z0-9]*[\.\/])*([A-Z][a-zA-Z0-9]*))\.((zip)|(tgz)|(tar\.gz)|(tar\.bz2))(\s|$)#"$1".&handleGetAWeb("$2","$4","$5","yes")."$10"#geo;
#AS
* And add the sub
#AS
# =========================
sub handleGetAWeb
{
    # we substitute the web with a get-a-web link
    my ($web, $name, $zip, $lastOnly) = @_ ;

    $web =~ s/\./\//go ;

    if (webExists($web)) {
	return "$name.$zip";

    }
    return "$name.$zip";
}
#AS
-- %MAINWEB%.AndreaSterbini 25 Aug 2000

TWikiCategory

TopicClassification:
Enhancement
TopicStatus:
Test