From: "Бурдин Андрей Николаевич" <BurdinAN@sakhrw.snc.ru>
To: "Denis G. Samsonenko" <community@altlinux.ru>
Subject: Re[2]: [Comm] Re: web, cgi, shell, login & password
Date: Thu, 31 Mar 2005 15:10:36 +0400
Message-ID: <1605766537.20050331151036@sakhrw.snc.ru> (raw)
In-Reply-To: <424BE05D.4060906@ngs.ru>
Здравствуйте, Denis G. Samsonenko.
Вы писали 31 марта 2005 г., 15:34:53:
> Поскольку новости буду добавлять только я, а не кто угодно, то у меня и
> встал ранее озвученный вопрос по авторизации. Просто мне хотелось
> сделать всё это как можно проще, без привлечения большого количества
> скриптов и всяких баз данных.
напиши на Perl быстро и понятно:
news.pl
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<html>\n<title>news.pl</title>\n<body>\n";
open (TXTFILE, "</usr/www/txt/news.txt") or die "error";
@lines = <TXTFILE>;
close(TXTFILE);
@lines =reverse @lines;
foreach my $line (@lines) {
my ($time,$text) = split(/\|\|/, $line);
print "<DIV align=\"center\"> ".$time."</DIV>\n<DIV align=\"center\"> ".$text."</DIV>\n<br>";
}
print "</body>\n</html>";
вот и все
содержание файла news.txt
22 Мая 2004|| - Информационное наполнение сайта||
22 Мая 2004|| - Информационное наполнение сайта||
22 Мая 2004|| - Информационное наполнение сайта||
дальше продолжать? и про админскую часть могу написать
--
С уважением,
Бурдин А.Н.
next prev parent reply other threads:[~2005-03-31 11:10 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-30 9:06 [Comm] " Denis G. Samsonenko
2005-03-30 8:31 ` Alexey Morsov
2005-03-30 9:37 ` Denis G. Samsonenko
2005-03-30 8:54 ` Alexey Morsov
2005-03-30 8:49 ` Sergey A. Kolesnitchenko
2005-03-30 9:59 ` [Comm] " Michael Shigorin
2005-03-31 8:11 ` Denis G. Samsonenko
2005-03-31 8:34 ` Denis G. Samsonenko
2005-03-31 8:05 ` Michael Shigorin
2005-03-31 11:34 ` Denis G. Samsonenko
2005-03-31 11:03 ` Nick S. Grechukh
2005-03-31 11:10 ` Бурдин Андрей Николаевич [this message]
2005-03-31 18:33 ` Michael Shigorin
2005-03-31 18:24 ` Michael Shigorin
2005-03-30 13:23 ` [Comm] " Alexey Borovskoy
2005-03-31 8:15 ` Denis G. Samsonenko
2005-03-31 8:18 ` Alexey Morsov
2005-03-31 10:55 ` Дмитриев Михаил Николаевич
2005-03-31 10:56 ` Nick S. Grechukh
2005-03-31 18:17 ` [Comm] phpnuke must die! (was: web, cgi, shell, login & password) Michael Shigorin
2005-03-31 18:39 ` [Comm] Re: [JT] " Дмитриев Михаил Николаевич
2005-03-31 19:01 ` Michael Shigorin
2005-03-31 4:14 ` Дмитриев Михаил Николаевич
2005-04-01 5:21 ` Mike Lykov
2005-04-04 19:39 ` Michael Shigorin
2005-04-04 20:15 ` Дмитриев Михаил Николаевич
2005-04-05 1:36 ` Alexey Borovskoy
2005-04-05 15:16 ` Michael Shigorin
2005-03-31 18:13 ` [Comm] Re: web, cgi, shell, login & password Michael Shigorin
2005-03-31 8:47 ` [Comm] mod_ssl: ben i need help (was: web, cgi, shell, login & password) Michael Shigorin
2005-03-31 13:22 ` Alexey Borovskoy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1605766537.20050331151036@sakhrw.snc.ru \
--to=burdinan@sakhrw.snc.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git