# HG changeset patch
# User devi
# Date 1132692345 -7200
# Node ID aa788e638a9d269819ad85a5b552e8e46972c27c
# Parent 466bea239d25e7a4dd6c6117f65824fbc2884aaf
l3: Добавил небольшое оформление и строчку "Инструтор" в индекс
lm-install: Убрал ошибочно закомментированный login_from для FreeBSD
diff -r 466bea239d25 -r aa788e638a9d l3-cgi
--- a/l3-cgi Tue Nov 22 20:46:46 2005 +0200
+++ b/l3-cgi Tue Nov 22 22:45:45 2005 +0200
@@ -48,6 +48,11 @@
my $training = load_training($training_file);
$Trainings{$training->{"date"}}=$training;
}
+ print "\n";
+ print "
\n";
+ print "Журналы лабораторных работ\n";
+ print "\n";
+ print "\n";
print "\n";
for my $tdate (reverse sort keys %Trainings) {
my $t = $Trainings{$tdate};
@@ -70,6 +75,8 @@
print "\n";
}
print "
\n";
+ print "\n";
+ print "\n";
}
else {
print "No training-files found
\n";
@@ -78,14 +85,41 @@
}
elsif ($ENV{PATH_INFO} eq "/current/index" || $ENV{PATH_INFO} eq "") {
my $t = load_training();
+
+ print "\n";
+ print "\n";
+ print "Журналы лабораторных работ\n";
+ print "\n";
+ print "\n";
+ print "\n";
+ print "Журналы лабораторных работ
\n";
+ print "\n";
+ print "\n";
for my $host (sort keys %{$t->{host}}) {
+ print "\n";
my $h = $t->{host}->{$host};
- print "$host";
- print " ".$h->{firstname}." ".$h->{surname}." ";
- print "root ";
- print "".$h->{user}." ";
- print "
\n";
+ print "".$h->{firstname}." ".$h->{surname}." | ";
+ print "$host | ";
+ print "root | ";
+ print "".$h->{user}." | ";
+ print "все | ";
+ print "\n";
+ print "
\n";
}
+ print "\n";
+ print ""."Инструктор"." | ";
+ print "from linux.nt | ";
+ print " | ";
+ print " | ";
+ print "все | ";
+ print "
\n";
+ print "
\n";
+ print "\n";
+ print "\n";
}
elsif ($ENV{PATH_INFO} eq "/current") {
open (FRONTEND, "./l3-frontend --output - --show_comments no |");
diff -r 466bea239d25 -r aa788e638a9d lm-install
--- a/lm-install Tue Nov 22 20:46:46 2005 +0200
+++ b/lm-install Tue Nov 22 22:45:45 2005 +0200
@@ -90,7 +90,7 @@
parent=`cat /proc/$PPID/cmdline 2> /dev/null`
system=`uname -rs`
login_from=`who | grep "${tty##/dev/}" | awk '{print $6;}' | tr -d '()'`
- [ -n "$bsd" ] && login_from="" #FIXME!
+ #[ -n "$bsd" ] && login_from="" #FIXME!
start_time=`date +%s`
hostname=`hostname -f 2> /dev/null`
[ -n "$bsd" ] && hostname=`hostname`