16
Perl / Проблема со скриптом
« : 25 Ноября 2002, 00:56:14 »Цитировать
И в логах по-прежнему все написано - читай!
Дело в том, что с правами всё в порядке...
В этом разделе можно просмотреть все сообщения, сделанные этим пользователем.
И в логах по-прежнему все написано - читай!
[Sun Nov 24 23:52:01 2002] [info] [client 62.152.66.46] (32)Broken pipe: client stopped connection before rwrite completed
[Sun Nov 24 23:52:12 2002] [info] [client 62.152.66.46] (32)Broken pipe: client stopped connection before send body completed
[Sun Nov 24 23:52:19 2002] [info] [client 62.152.66.46] (32)Broken pipe: client stopped connection before send body completed
failed to open log file
fopen: Permission denied
[Sun Nov 24 23:54:03 2002] [error] [client 62.152.66.230] Premature end of script headers: /pub/home/mfkgroup/info/cgi-bin/adv/admin.pl if ($index eq \'index\'){$cat_url=$index_url;}
else {$cat_url=$public_url."/$in{\'cat_id\'}";}
if ($index eq \'forum\'){$cat_url=\'/forum/\';}
if ($index eq \'main\'){$cat_url=\'/index.php\';}
if ($index eq \'links\'){$cat_url=\'/links/\';}
if ($index eq \'chat\'){$cat_url=\'/chat/\';}
if ($index eq \'files\'){$cat_url=\'/files/\';}
if ($index eq \'about\'){$cat_url=\'/about/\';}
if ($index eq \'adv\'){$cat_url=\'/adv/\';}
if ($index eq \'subscribe\'){$cat_url=\'/subscribe/\';}
if ($index eq \'contact\'){$cat_url=\'/contact/\';}
if ($index eq \'gallery\'){$cat_url=\'/gallery/\';}
if ($index eq \'hosting\'){$cat_url=\'/hosting/\';}
if ($index eq \'index\'){$cat_url=$index_url;}
else {$cat_url=$public_url."/$in{\'cat_id\'}";}
else if ($index eq \'forum\'){$cat_url=/forum/;}
else if ($index eq \'main\'){$cat_url=/index.php;}
else if ($index eq \'links\'){$cat_url=/links/;}
else if ($index eq \'chat\'){$cat_url=/chat/;}
else if ($index eq \'files\'){$cat_url=/files/;}
else if ($index eq \'about\'){$cat_url=/about/;}
else if ($index eq \'adv\'){$cat_url=/adv/;}
else if ($index eq \'subscribe\'){$cat_url=/subscribe/;}
else if ($index eq \'contact\'){$cat_url=/contact/;}
else if ($index eq \'gallery\'){$cat_url=/gallery/;}
else if ($index eq \'hosting\'){$cat_url=/hosting/;}
Слушай, а как сделать так, чтобы количество новостей в лентах было разное: на одну категорию - одно, на другую - другое? Или это нефозможно?
elsif ($in{\'save_new_author\'}) {&save_author;}
#....AUTHORS
elsif ($in{\'add_author\'}) {&add_author;}
elsif ($in{\'modify_author\'}) {&add_author;}
elsif ($in{\'save_mod_author\'}) {&save_author;}
[COLOR=red]elsif ($in{\'save_new_author\'}) {&save_author;}[/COLOR]
elsif ($in{\'view_author\'}) {&author_info;}
[COLOR=red]elsif ($in{\'save_new_author\'}) {&save_author;}[/COLOR]
elsif ($in{\'delete_author\'}) {&delete_author;}