[GastForen Archiv Perl und CGI automatische ftp-ordner aktualisierung

  • Suche
  • Hilfe
  • Lesezeichen
  • Benutzerliste
Archiv - Archivierte Foren
Themen
Beiträge
Moderatoren
Letzter Beitrag

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

23. Apr 2004, 21:35
Beitrag # 1 von 32
Bewertung:
(5883 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
hallo,

gibt es ein script, das meine ordner /h tml-datein in einem ordner anzeigt, und das ganze verzeichnis automatisch ändert, wenn ich einen ordner / file per ftp uploade?

es wäre noch toll, wenn ich das in eimem bestimmten design darstellen könnte...

mfg p@
---
mailto:admin@pat87.ch
http://www.pat87.ch/
X

automatische ftp-ordner aktualisierung

SabineP
Beiträge gesamt: 7586

23. Apr 2004, 22:26
Beitrag # 2 von 32
Beitrag ID: #81620
Bewertung:
(5879 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hallo p@

vielleicht gefällt Dir dieses Script, das eine Sitemap aus einer Ordner- und Dateistruktur erzeugt:
http://www.danielnaber.de/tree/

und hier gibt es noch mehr Scripte, die eine Sitemap anzeigen können:
http://www.hotscripts.com/...ograms/Site_Mapping/

Gruß Sabine


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

26. Apr 2004, 21:19
Beitrag # 3 von 32
Beitrag ID: #82034
Bewertung:
(5879 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
und wie muss ich das jetzt anwenden? ich kann es zwar per ftp uploaden, und beide anzeigen lassen, aber er zeigt mir keine ordnerstruktur...

ich habe unter: http://www.pat87.ch/acb/test.html und unter http://www.pat87.ch/tree.pl die 2 datein abgelegt. aber es funktioniert nicht richtig...

mfg p@
---
mailto:admin@pat87.ch
http://www.pat87.ch/


als Antwort auf: [#81616]
(Dieser Beitrag wurde von pat87 am 26. Apr 2004, 21:25 geändert)

automatische ftp-ordner aktualisierung

SabineP
Beiträge gesamt: 7586

27. Apr 2004, 10:46
Beitrag # 4 von 32
Beitrag ID: #82125
Bewertung:
(5879 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hallo pat,

drei Parameter müssen im Script noch angepaßt werden:

### The next 4 options are important to make tree.pl work. ###

Wenn das Script im Browser aufgerufen werden soll, dann hier eine 1 einsetzen
$conf::cgi = 1; # Set to 1 to run tree.pl as a CGI script

Der Pfad zu Deinem Ordner, der angezeigt werden soll
$conf::basedir_cgi = "/pfad/zum/DOCUMENT_ROOT/pfad/zum/ordner"; # CGI mode only: list which directory

Der Name der Template-Datei (Template und Script im gleichen Ordner ablegen)
$conf::templatefile = "test.html"; # The template (set to "" to disable it)


Den Pfad zum DOCUMENT_ROOT erfährst Du von Deinem Provider
oder mit dem kleinen Script aus dem Beitrag "passwortgeschützter Ordner".
Hier noch einmal das Script, das Dir auch den DOCUMENT_ROOT anzeigt:

#!/usr/bin/perl
print "Content-Type: text/html\n\n";
for ( keys %ENV){
print "$_ : $ENV{$_} <br>";
}


Den Pfad zu Deinem Ordner siehst Du mit FTP.
Das ist der Ordner dessen Inhalt angezeigt werden soll mit allen Unter-Ordnern.

Gruß Sabine


als Antwort auf: [#81616]
(Dieser Beitrag wurde von SabineP am 27. Apr 2004, 10:51 geändert)

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

28. Apr 2004, 21:59
Beitrag # 5 von 32
Beitrag ID: #82526
Bewertung:
(5879 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

SabineP
Beiträge gesamt: 7586

28. Apr 2004, 22:11
Beitrag # 6 von 32
Beitrag ID: #82532
Bewertung:
(5879 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hui, Glückwunsch Pat :-)
Wenn Du noch Fragen hast, dann melde Dich wieder.

Gruß Sabine


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

1. Mai 2004, 21:58
Beitrag # 7 von 32
Beitrag ID: #83096
Bewertung:
(5879 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
hier ist schon meiner erste frage:

kann mir jemand dieses script so anpassen, dass mir das script alles in der schrift verdana anzeigt, und die schrift-grösse überall "1" ist?


#!/usr/bin/perl -w
# tree.pl. Creates a nested HTML list ('sitemap') of files in a directory.
# Copyright (C) 1998-2003 Daniel Naber (daniel.naber at t-online de)
# version 2.0.6, 2003-01-22
# Homepage: http://www.danielnaber.de/tree/
# See README for more information

# COPYRIGHT:
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

###############################################################
# User configuration
###############################################################

### The next 4 options are important to make tree.pl work. ###

$conf::cgi = 1; # Set to 1 to run tree.pl as a CGI script
$conf::basedir_cgi = "/home/httpd/vhosts/pat87.ch/httpdocs/acb"; # CGI mode only: list which directory
$conf::templatefile = "tree.html"; # The template (set to "" to disable it)
$conf::baseurl = ""; # Set first part of any URL (leave empty if unsure)

### The options below have sensible defaults, if tree.pl doesn't work ###
### at all it's probably caused by wrong values for the options above. ###

# Default-files' names (files like index.html that are shown if you use
# the URL of a directory):
@conf::defaultfiles = ('index.html', 'index.htm', 'index.php');

# Here you can decide which files will be listed, depending on the
# files' suffix. Comment in the appropriate line:
# List all files:
@conf::file_suffixes = ();
# Only list typical web files:
#@conf::file_suffixes = ('shtml', 'html', 'htm', 'pdf');
# Only list typical multimedia files:
#@conf::file_suffixes = ('mp3', 'wav', 'avi', 'wmv', 'mpg', 'mpeg');
# Only list files that have no suffix:
#@conf::file_suffixes = ('');

# Which files and directories should be included? @conf::includefiles
# will be evaluated first, @conf::excludefiles will then be used
# to filter the remaining files. You can use '*' as joker:

# Default is @conf::includefiles = (), which means 'include everything':
@conf::includefiles = ();
# Comment in the next line to include only the default files (like index.html)
# and nothing else:
#@conf::includefiles = ('*/');

# Do not include these files/directories:
@conf::excludefiles = ();
# To exclude one directory use this:
#@conf::excludefiles = ('/secret/*');
# To exclude more than one directory use this:
#@conf::excludefiles = ('/secret/*', '/anothersecret/*');

# How should the files be linked? URL, TITLE, UPDATED, SIZE, DATE, and TIME
# will be replaced by actual values:
$conf::link =<<EOF;
<a href="URL">TITLE</a> UPDATED <span class="info">SIZE kB, DATE TIME</span>
EOF

# Link all directories, even those without default files?
$conf::link_all_directories = 0;
# If the option above is not set, use this to show directories
# without a default file:
$conf::nolink =<<EOF;
TITLE
EOF

# How to mark files that were recently modified:
$conf::updatedtag = '<strong>updated</strong> ';
# Mark those files modified more recently than $conf::update_hours hours (0 = option off):
$conf::update_hours = 3*24;

# Date format. %Y = year, %m = month, %d = day
# On a Unix system use 'man strftime' to get a list of all
# possible options.
$conf::date_format = "%Y-%m-%d";
# Time format. %H = hour, %M = minute, %S = second.
$conf::time_format = "%H:%M";

# Ignore symbolic links?
$conf::ignore_links = 1;

# maximum length of the link, taken from <title>:
$conf::max_title_length = 200;

# The default template if no $conf::templatefile is specified:
$conf::template =<<__EOF;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Sitemap</title>
<style type="text/css">
<!--
.info { color: #888888; }
-->
</style>
</head><body>

<h1>Sitemap</h1>

##sitemap##

</body>
</html>
__EOF

###############################################################
# Main program
###############################################################

# Comment in the next line if you have problems with tree.pl
# as a CGI script. Any error messages should show up in the
# browser then:
#use CGI::Carp qw(fatalsToBrowser);

use strict;
use POSIX qw(getcwd strftime);
use CGI qw(escape);

# Prototypes:
sub main();
sub init();
sub crawl($);
sub include_file($$);
sub get_file_title($$);
sub cleanup($);
sub has_defaultfile($);
sub add_slash($);
sub get_prefix();
sub get_file_link($);
sub getsize($);
sub make_full_path($$);
sub load_part($);
sub is_it_modified($);
sub get_file_date($);
sub get_file_time($);
sub get_now_date();
sub my_uri_escape($);

main();
exit;

###############################################################
# Subroutines
###############################################################

sub main()
{

# Possibly overwrite the base directory option:
# SECURITY: only if not used as CGI! people could list anything otherwise
if( $ARGV[0] && ! $conf::cgi ) {
$conf::basedir = $ARGV[0];
} elsif( $conf::cgi ) {
$conf::basedir = $conf::basedir_cgi;
} else {
print "Usage: $0 <directory>\n";
exit;
}

# Sanity checks:
if( ! -d $conf::basedir ) {
die "Error: $0: '$conf::basedir' does not exist, is not a directory or is not readable.\n";
}

my $start_dir = POSIX::getcwd();
init();
my $html = crawl($conf::basedir);
# repair a bug in the generated XHTML:
$html =~ s/<ul>\s*<\/ul>//igs;
if( ! $html ) {
# occurs if $conf::basedir is empty
$html = "<li>This site map is empty</li>";
}

if( $conf::cgi ) {
print "Content-Type: text/html\n\n";
}

my $load_error = 0;
my $template = "";
if( $conf::templatefile ) {
chdir($start_dir) || die "Cannot chdir() to '$start_dir': $!";
if ( ! open(INP, $conf::templatefile) ) {
warn "Could not open template file '$conf::templatefile': $!\n";
$load_error = 1;
} else {
undef $/;
$template = (<INP>);
close(INP);
}
}
if( ! $conf::templatefile || $load_error ) {
$template = $conf::template;
}

# Replace the tokens in the template and print it:
$template =~ s/##sitemap##/<ul>\n$html\n<\/ul>/igs;
$template =~ s/##date##/get_now_date();/igse;
print $template;
}

# Prepare the configuration values.
sub init()
{
# Enable '*' as wildcard in @conf::excludefiles and @conf::includefiles
foreach my $pat (@conf::excludefiles, @conf::includefiles) {
$pat =~ s#\*#.*?#g;
}
}

# The main crawl function, calls itself recursively.
$main::level = 0; # count depth level for indentation
sub crawl($)
{
my $dir = shift;
$dir = $dir.add_slash($dir);
my $file;
my $html = "";

$main::level++;
chdir($dir) or (warn "Cannot chdir to '$dir': $!" and return);
opendir(DIR, $dir) or (warn "Cannot open '$dir': $!" and return);
my @contents = readdir(DIR);
closedir(DIR);

# Links may be ignored completely:
if( $conf::ignore_links ) {
@contents = grep { not -l } @contents;
}
# No hidden files and ".." directories:
@contents = grep {!/^\./} @contents;

# Get directories:
my @dirs = grep {-d} @contents;
# Get files:
my @files = grep {-f} @contents;

my $prefix = get_prefix();

$html .= "$prefix<li>".get_file_link($dir)."\n";
$html .= "$prefix<ul>\n";

# Go through all files in this directory except default files. Sorting
# by filename does not make much sense, but at least the order is defined then:
foreach my $f (sort(@files)) {
my ($suffix) = ($f =~ m/.*\.(.*?)$/);
next if ( is_defaultfile($f) );
next if ( ! include_file($f, $dir) );
$file = make_full_path($dir, $f);
$html .= "$prefix<li>".get_file_link($file)."</li>\n";
}

# Go through all directories in this directory:
foreach my $d (sort(@dirs)) {
next if ( ! include_file($d, $dir) );
my $this_dir = make_full_path($dir, $d);
$html .= crawl($this_dir);
}

$html .= "$prefix</ul>\n";
$html .= "$prefix</li>\n";

$main::level--;
return $html;
}

# Return 1 if a file/dir should be included in the generated tree,
# return 0 otherwise.
sub include_file($$)
{
my $f = shift;
my $dir = shift;

# Ignore uninteresting suffixes for files:
if( -f $f ) {
my ($suffix) = ($f =~ m/.*\.(.*?)$/);
#if( !$suffix ) {
# return 0;
#}
if( scalar(@conf::file_suffixes) > 0 ) {
if( !grep(/^$suffix$/, @conf::file_suffixes) ) {
return 0;
}
}
}

my $check_path = $f;
$check_path = $dir.$f;
# Add slash so that '/dirname/*' can match:
if( -d $check_path ) {
$check_path = $check_path."/";
}
$check_path =~ s/$conf::basedir//;
# pretend that $conf::basedir is the root directory:
if( $check_path !~ m/^\// ) {
$check_path = "/".$check_path;
}

my $include_file = 1;
# possibly include only certain files:
if( scalar(@conf::includefiles) >= 1 ) {
$include_file = 0;
foreach my $inc_pat (@conf::includefiles) {
if( $check_path =~ m/^$inc_pat$/ ) {
$include_file = 1;
last;
}
}
}
# possibly exclude certain files:
if( $include_file && scalar(@conf::excludefiles) >= 1 ) {
foreach my $inc_pat (@conf::excludefiles) {
if( $check_path =~ m/^$inc_pat$/ ) {
$include_file = 0;
last;
}
}
}
# debug: warn "$include_file <= $dir, $f\n";
return $include_file;
}

# Build an XHTML link to file.
sub get_file_link($)
{
my $file = shift;
my $link = $conf::link;

# maybe it doesn't make sense to link a directory without a default file:
my $default_file = has_defaultfile($file);
if( !$conf::link_all_directories && -d $file && !$default_file ) {
$link = $conf::nolink;
}

# adding a "/" to the end of the directory if necessary saves the user one redirect:
$file .= add_slash($file);

# Set the correct filename so we can later load the file to get the title:
if( -d $file && $default_file ) {
$file = $file.$default_file;
}

# URL:
my $url = $file; # no need to escape because of my_uri_escape()
$url =~ s/$conf::basedir(\/|\\)?//;
my ($short_url) = ($url =~ m/.*\/(.*)/);
$short_url = $url if( ! $short_url );
$link =~ s/URL/$conf::baseurl.my_uri_escape($url);/igse;

my $title = cleanup(get_file_title($file, $short_url));
$link =~ s/TITLE/$title/gs;

# Recently modified?:
my $update;
if( is_it_modified($file) ) {
$update = $conf::updatedtag;
} else {
$update = "";
}
$link =~ s/UPDATED/$update/gs;

# Date and time:
my $date = get_file_date($file);
$link =~ s/DATE/$date/gs;
my $time = get_file_time($file);
$link =~ s/TIME/$time/gs;

# Size:
$link =~ s/SIZE/getsize($file)/gse;

$link =~ s/\r|\n//igs;
return $link;
}

# Remove HTML and HTML special characters from a string. This way one can secureley
# use tree.pl to make a sitemap of other people's pages that might contain
# javascript in their title's (or even filenames!):
sub cleanup($)
{
my $str = shift;
$str =~ s/&(?!((\w{2,7})|(#\d{2,3}));)/&amp;/igs;
$str =~ s/</&lt;/igs;
$str =~ s/>/&gt;/igs;
return $str;
}

# Get the <title>...</title> of a file or return its filename
# if it has no title.
sub get_file_title($$)
{
my $file = shift;
my $short_url = shift;
# Title or URL, if title is not available:
if( -d $file ) {
return $short_url;
}
my $file_content_part = load_part($file);
my ($title) = ($file_content_part =~ m#<title>(.*?)</title>#is);
if( ! $title ) {
$title = $short_url;
$title = "/" if( ! $title );
}
if( length($title) > $conf::max_title_length ) {
$title = substr($title, 0, $conf::max_title_length) . "...";
}
return $title;
}

# Return the name of the default file if this directory has
# one, return undef otherwise.
sub has_defaultfile($)
{
my $dir = shift;
foreach my $def_file (@conf::defaultfiles) {
if( -e "$dir/$def_file" ) {
return $def_file;
}
}
return;
}

# Return "/" if the file is a directory but does not end
# with a slash, return "" otherwise.
sub add_slash($)
{
my $file = shift;
if( -d $file && $file !~ m/\/$/ ) {
return "/";
} else {
return "";
}
}

# Checks if a file (without path!) is a default file
# as configured by the user. Returns 1 or 0.
sub is_defaultfile($)
{
my $file = shift;
if ( grep(/^\Q$file\E$/, @conf::defaultfiles) ) {
return 1;
} else {
return 0;
}

}

# Get a string for indenting the XHTML source, according
# to the depth of the nested list.
sub get_prefix()
{
my $prefix = "\t" x $main::level;
return $prefix;
}

# Get the filesize in KB. For files < 1 KB return 1, unless the file
# is 0 bytes.
sub getsize($)
{
my $file = shift;
my $size = int((-s $file)/1024);
if( $size == 0 && ! (-s $file == 0) ) {
$size = 1;
}
return $size;
}

# Take a directory and a file and return the file and its path,
sub make_full_path($$)
{
my $dir = shift;
my $file = shift;
my $full_path;
$full_path = $dir."/".$file;
$full_path =~ s/\/\//\//og;
return $full_path;
}

# Load part of a file until </title> is reached (to save time for big files).
sub load_part($)
{
my $file = shift;
my $string = "";
return '' if( -B $file );
open(INPUT, "<$file") ||
(warn "Error: $0: Cannot open '$file': $!" and return "");
while(<INPUT>) {
$string .= $_;
last if( $_ =~ m#</title\s*>#is );
}
close(INPUT);
return $string;
}

# Check if file was modified recently. Return 1 or 0.
sub is_it_modified($)
{
my $filename = shift;
my ($mtime) = (stat($filename))[9];
if( $conf::update_hours && ((time() - $mtime) < ($conf::update_hours*60*60)) ) {
return 1;
} else {
return 0;
}
}

# Get formatted date of a file's last modification.
sub get_file_date($)
{
my $filename = shift;
my $date_time = (stat($filename))[9];
return POSIX::strftime($conf::date_format, localtime($date_time));
}

# Get formatted time of a file's last modification.
sub get_file_time($)
{
my $filename = shift;
my $date_time = (stat($filename))[9];
return POSIX::strftime($conf::time_format, localtime($date_time));
}

# Get formatted current date.
sub get_now_date()
{
return POSIX::strftime($conf::date_format, localtime(time()));
}

# Escape some special characters in URLs. This function escapes each part
# of the path (i.e. parts delimited by "/") on its own.
sub my_uri_escape($)
{
my $str = shift;
my $ends_in_string = ($str =~ m/\/$/);
my @parts = split("/", $str);
foreach my $part (@parts) {
$part = CGI::escape($part);
}
$str = join("/", @parts);
if( $ends_in_string ) {
$str .= "/";
}
return $str;
}


im html-code kann ich dies ja problemlos ändern <font face="verdana" size="1">text</font>

aber ich weiss nicht, wie ich es ändern kann, dass die gesammte sitemap in dieser schrift erscheint...

mfg p@
---
mailto:admin@pat87.ch
http://www.pat87.ch/


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

SabineP
Beiträge gesamt: 7586

1. Mai 2004, 22:27
Beitrag # 8 von 32
Beitrag ID: #83097
Bewertung:
(5879 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hallo Pat,

dafür ist das Template da:
http://www.pat87.ch/acb/tree.html

und Deine Sitemap wird schon in der gewünschten Schriftart und Schriftgröße dargestellt:
http://www.pat87.ch/acb/tree.pl

Gruß Sabine


als Antwort auf: [#81616]
(Dieser Beitrag wurde von SabineP am 1. Mai 2004, 22:29 geändert)

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

1. Mai 2004, 22:29
Beitrag # 9 von 32
Beitrag ID: #83098
Bewertung:
(5879 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
t'schuldigung. ich habe dies ändern können aber wie kann ich es einstellen, dass immer nur die datei-bezeichnungen und nicht immer der titel der datei ausgelsen wird? und ich möchte noch einstellen, dass die links, mit welchen ich zu den einzelnen files gelange nicht unterstrichen sind (der html-code ist: <a href="irgenwas.html" style="text-decoration: none">text</a>
wie kann ich diesen text in das script fassen, dass es bei allen files so angezeigt wird?

mfg p@
---
mailto:admin@pat87.ch
http://www.pat87.ch/


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

SabineP
Beiträge gesamt: 7586

2. Mai 2004, 10:09
Beitrag # 10 von 32
Beitrag ID: #83107
Bewertung:
(5879 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hallo Pat,

>> dass immer nur die datei-bezeichnungen und nicht immer der titel der datei ausgelsen wird


in der Zeile 415 bis 418 diese 3 Zeilen auskommentieren:

# if( ! $title ) {
$title = $short_url;
# $title = "/" if( ! $title );
# }

>> dass die links, mit welchen ich zu den einzelnen files gelange nicht unterstrichen sind

Dazu ergänzt Du die CSS-Angaben im Template innerhalb des style-Tag mit

a {text-decoration:none}

Gruß Sabine


als Antwort auf: [#81616]
(Dieser Beitrag wurde von SabineP am 2. Mai 2004, 10:11 geändert)

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

2. Mai 2004, 17:33
Beitrag # 11 von 32
Beitrag ID: #83159
Bewertung:
(5879 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
das geht jetzt...

und noch was: wie kann ich es einstellen, dass als oberster unterpunkt nicht die index-datei angewählt wird, sondern immer der titel des unterordners angezeigt wird?

mfg p@
---
mailto:admin@pat87.ch
http://www.pat87.ch/


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

SabineP
Beiträge gesamt: 7586

2. Mai 2004, 22:37
Beitrag # 12 von 32
Beitrag ID: #83207
Bewertung:
(5879 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hallo Pat,

Zeile 39 so ändern

@conf::defaultfiles = ();

Gruß Sabine


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

3. Mai 2004, 17:55
Beitrag # 13 von 32
Beitrag ID: #83409
Bewertung:
(5879 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
jetzt zeigt er aber wieder nur die titel-namen an...

http://www.pat87.ch/acb/tree.pl

mfg p@
---
mailto:admin@pat87.ch
http://www.pat87.ch/


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

SabineP
Beiträge gesamt: 7586

3. Mai 2004, 18:14
Beitrag # 14 von 32
Beitrag ID: #83416
Bewertung:
(5878 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Diese Kommentare müssen natürlich im Skript bleiben:

# if( ! $title ) {
$title = $short_url;
# $title = "/" if( ! $title );
# }

Gruß Sabine


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

3. Mai 2004, 18:39
Beitrag # 15 von 32
Beitrag ID: #83422
Bewertung:
(5878 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
mein fehler...

was jetzt natürlich der hammer wäre, dass wenn ich auf den titel des ordner klicke, dass dann von dem ordner nur noch der titel sichtbar wäre, und der rest erst auf klicken des ordner-titels wieder erscheint...

ich weiss nicht, ob sich das bei einer sitemap so einfach lösen lässt...

mfg p@
---
mailto:admin@pat87.ch
http://www.pat87.ch/


als Antwort auf: [#81616]
(Dieser Beitrag wurde von pat87 am 3. Mai 2004, 18:43 geändert)

automatische ftp-ordner aktualisierung

SabineP
Beiträge gesamt: 7586

3. Mai 2004, 19:34
Beitrag # 16 von 32
Beitrag ID: #83431
Bewertung:
(2678 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Pat, mit diesem Script ist das nicht möglich.

Gruß Sabine


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

3. Mai 2004, 20:28
Beitrag # 17 von 32
Beitrag ID: #83440
Bewertung:
(2678 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
würde es denn eine alternative geben, die ich genau so einfach in meine homepage einbauen kann, wie diese variante?

mfg p@
---
mailto:admin@pat87.ch
http://www.pat87.ch/


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

SabineP
Beiträge gesamt: 7586

3. Mai 2004, 20:41
Beitrag # 18 von 32
Beitrag ID: #83441
Bewertung:
(2678 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Wenn Du einfach nur den Inhalt der Verzeichnisse auflisten möchtest,
dann geht das auch mit .htaccess.

Diese Zeile einfügen

Options +Indexes

fertig.

Gruß Sabine


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

3. Mai 2004, 21:37
Beitrag # 19 von 32
Beitrag ID: #83448
Bewertung:
(2678 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
aber so, dass alle ordner angezeigt werden, und dass ich es trotzdem so einstellen kann, dass mit einem klick auf den ordner-namen die datein in diesem ordner angezeigt werden... oder geht das nicht?

mfg p@
---
mailto:admin@pat87.ch
http://www.pat87.ch/


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

3. Mai 2004, 21:46
Beitrag # 20 von 32
Beitrag ID: #83454
Bewertung:
(2678 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
noch was: wie kann ich es einstellen, dass der oberste, leere, punkt nicht erscheint?

http://www.pat87.ch/acb/tree.pl

und noch was anderes: wo und wie kann ich es im titel so aktivieren, dass immer steht: 'sitemap von /ordner'? muss ich das manuell machen, oder lässt sich das im script integrieren?
wenn ich es manuell mache, wo muss ich es ändern? in der template-datei oder im script? wenn im script: wo?

mfg p@
---
mailto:admin@pat87.ch
http://www.pat87.ch/


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

SabineP
Beiträge gesamt: 7586

3. Mai 2004, 22:13
Beitrag # 21 von 32
Beitrag ID: #83462
Bewertung:
(2671 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
>> aber so, dass alle ordner angezeigt werden ...

Probier Options +Indexes aus, dann siehts Du wie es aussieht.

>> wie kann ich es einstellen, dass der oberste, leere, punkt nicht erscheint?

Dafür gibt es keine Einstellung, scheint ein kleiner Fehler im Script zu sein.
Frag am besten auf hier nach http://danielnaber.de/

>> wo und wie kann ich es im titel so aktivieren, dass immer steht: 'sitemap von /ordner

Zeile 81

$conf::nolink =<<EOF;
sitemap von TITLE
EOF

Gruß Sabine


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

4. Mai 2004, 18:07
Beitrag # 22 von 32
Beitrag ID: #83614
Bewertung:
(2671 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
das mit dem titel geht nicht so, wie ich es mir vorgestellt habe... er zeigt den ordner-namen nicht an:

http://www.pat87.ch/acb/tree.pl

und vor allem zeigt er diese bezeichnung bei jedem ordner an...

ich möchte nur, dass n dem titel (verdana, 5) noch zusätzlicher der ordner-name erscheint...

mfg p@
---
mailto:admin@pat87.ch
http://www.pat87.ch/


als Antwort auf: [#81616]
(Dieser Beitrag wurde von pat87 am 4. Mai 2004, 18:08 geändert)

automatische ftp-ordner aktualisierung

SabineP
Beiträge gesamt: 7586

4. Mai 2004, 20:54
Beitrag # 23 von 32
Beitrag ID: #83637
Bewertung:
(2671 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Achso, Du meinst diese Stelle im Template tree.html:
<font face="verdana" size="5">sitemap</font>

Hier kannst Du auch den Ordnername hinschreiben:
<font face="verdana" size="5">sitemap von Ordnername hierhin</font>

Gruß Sabine


als Antwort auf: [#81616]
(Dieser Beitrag wurde von SabineP am 4. Mai 2004, 20:56 geändert)

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

4. Mai 2004, 20:56
Beitrag # 24 von 32
Beitrag ID: #83638
Bewertung:
(2671 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
also ist es nicht einfach zu lösen, dass sich dieser automatisch aktualisiert?

mfg p@
---
mailto:admin@pat87.ch
http://www.pat87.ch/


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

SabineP
Beiträge gesamt: 7586

4. Mai 2004, 21:23
Beitrag # 25 von 32
Beitrag ID: #83647
Bewertung:
(2671 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Nein der Ordnername für den ersten Ordner aktualisiert sich nicht von allein.

Dieser erste Ordner steht ja auch hier im Script:

$conf::basedir_cgi = "/home/httpd/vhosts/pat87.ch/httpdocs/acb"; # CGI mode only: list which directory

Alle Unterordner werden automatisch aktualisiert.

Gruß Sabine


als Antwort auf: [#81616]
(Dieser Beitrag wurde von SabineP am 4. Mai 2004, 21:27 geändert)

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

26. Mai 2004, 16:36
Beitrag # 26 von 32
Beitrag ID: #87429
Bewertung:
(2671 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
weiss jemand, ob ich eine oder ein paar zeilen im script ändern kann, dass ich dieses dann in den index-ordner legen kann und es mir auch jeden weiteren unteroerdner mit titel und datein anzeigt?

mfg p@
---
mailto:admin@pat87.ch
http://www.pat87.ch/


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

27. Mai 2004, 21:48
Beitrag # 27 von 32
Beitrag ID: #87733
Bewertung:
(2671 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
jetzt wäre es noch praktisch, wenn es die datein die sich in dem passwortgeschützten ordner befinden, nicht angezeigt werden würen...

mfg p@
---
mailto:admin@pat87.ch
http://www.pat87.ch/


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

SabineP
Beiträge gesamt: 7586

28. Mai 2004, 11:28
Beitrag # 28 von 32
Beitrag ID: #87801
Bewertung:
(2671 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hi Pat,

das kannst Du hier im Script konfigurieren:

# Do not include these files/directories:
@conf::excludefiles = ();
# To exclude one directory use this:
#@conf::excludefiles = ('/secret/*');
# To exclude more than one directory use this:
#@conf::excludefiles = ('/secret/*', '/anothersecret/*');

Gruß Sabine


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

28. Mai 2004, 12:44
Beitrag # 29 von 32
Beitrag ID: #87818
Bewertung:
(2671 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
sorry, dass ich frage aber wo und wie kann ich das jetzt konfigurieren, wenn men ordnername 'admin' ist?

mfg p@
---
mailto:admin@pat87.ch
http://www.pat87.ch/


als Antwort auf: [#81616]
(Dieser Beitrag wurde von pat87 am 28. Mai 2004, 12:47 geändert)

automatische ftp-ordner aktualisierung

SabineP
Beiträge gesamt: 7586

28. Mai 2004, 13:21
Beitrag # 30 von 32
Beitrag ID: #87831
Bewertung:
(2671 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hi Pat,

@conf::excludefiles = ('/admin/*');

Gruß Sabine


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

Anonym
Beiträge gesamt: 22827

29. Mai 2004, 14:24
Beitrag # 31 von 32
Beitrag ID: #87979
Bewertung:
(1303 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
vielen dank...

mfg p@


als Antwort auf: [#81616]

automatische ftp-ordner aktualisierung

pat87
Beiträge gesamt: 581

29. Mai 2004, 14:25
Beitrag # 32 von 32
Beitrag ID: #87980
Bewertung:
(1303 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
oh, das war ich (für jene, die sich nicht an mein 'p@' gewohnt sind)...

mfg p@
---
mailto:admin@pat87.ch
http://www.pat87.ch/


als Antwort auf: [#81616]
X

Aktuell

Web / SEO / Blockchain / Betriebssystem
300

Veranstaltungskalender

Hier können Sie Ihre Anlässe eintragen, welche einen Zusammenhang mit den Angeboten von HilfDirSelbst.ch wie z.B. Adobe InDesign, Photoshop, Illustrator, PDF, Pitstop, Affinity, Marketing, SEO, Büro- und Rechtsthemen etc. haben. Die Einträge werden moderiert freigeschaltet. Dies wird werktags üblicherweise innert 24 Stunden erfolgen.

pdf-icon Hier eine kleine Anleitung hinsichtlich Bedeutung der auszufüllenden Formularfelder.

Veranstaltungen
17.04.2024

Online
Mittwoch, 17. Apr. 2024, 10.00 - 10.30 Uhr

Webinar

Komplizierte, kleinteilige Aufträge; alles sehr speziell; seit Jahren bewährte Prozesse – da können wir nichts standardisieren und automatisieren! Das sagen viele Großformatdrucker – aber stimmt das wirklich, ist dem tatsächlich so? Günther Business Solutions und Impressed treten in einem Webinar den Gegenbeweis an. Experten beider Unternehmen zeigen, wie Großformatdrucker vom Einsatz zweier bewährter Lösungen profitieren können: • von advanter print+sign von Günther Business Solutions, dem ERP-System für den Großformatdruck, dass alle Phasen der Wertschöpfung im Large Format Printing abdeckt • von Impressed Workflow Server, der smarten PDF-Workflow-Lösung für Druckereien, die Datenmanagement, Preflight und Produktionssteuerung übernimmt Über die Kombination beider Lösungen können Großformatdrucker ihre Prozesse mit modernen Workflows Schritt für Schritt automatisieren – und so zügig deutliche Zeit- und Kosteneinsparungen realisieren. Das Webinar sollten Sie sich nicht entgehen lassen – damit Sie keine Effizienzpotenziale mehr liegen lassen. Melden Sie sich am besten gleich an, wir freuen uns auf Sie! PS: Melden Sie sich in jedem Fall an – sollten Sie zum Termin verhindert sein, erhalten Sie die Aufzeichnung.

kostenlos

Ja

Organisator: Impressed / Günther Business Solutions

https://www.impressed.de/schulung.php?c=sDetail&sid=326

Und es geht doch: Automatisierung im Großformatdruck!