lynx
![](http://forum.ru-board.com/board/avatars/private/lynx.gif)
Advanced lynx | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Наверное, корявенько, но пофиксила, спасибо Иппу за идею. postings.cgi sub lockthread после: Код: my $file = "$ikondir" . "forum$inforum/$intopic.pl"; open (ENT, $file); flock ENT, 1; $in = <ENT>; close (ENT); ($topicid,$topictitle,$topicdescription,$threadstate,$threadposts, $threadviews,$startedby,$startedpostdate,$lastposter, $lastpostdate,$sticky) = split(/\|/,$in); | Добавляем: my $lastpostermy=$lastposter; my $lastpostdatemy=$lastpostdate; Ниже. Вместо: Код: open(FILE, ">$file"); flock(FILE, 2); print FILE "$intopic|$topictitle|$topicdescription|closed|$threadposts| $threadviews|$startedby|$startedpostdate|$inmembername| $currenttime|$sticky"; close(FILE); | Пишем: Код: open(FILE, ">$file"); flock(FILE, 2); print FILE "$intopic|$topictitle|$topicdescription|closed|$threadposts| $threadviews|$startedby|$startedpostdate|$lastpostermy|$lastpostdatemy|$sticky"; close(FILE); |
| Всего записей: 11712 | Зарегистр. 08-05-2001 | Отправлено: 22:42 21-09-2002 | Исправлено: lynx, 22:44 21-09-2002 |
|