Редакция 20 | Редакция 25 | К новейшей редакции | Только различия | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 20 | Редакция 24 | ||
---|---|---|---|
1 | <?php
|
1 | <?php
|
2 | require_once dirname(__FILE__)."/lib/init.php"; |
2 | require_once dirname(__FILE__)."/lib/init.php"; |
3 | include "./inc/header.htm"; |
3 | include "./inc/header.htm"; |
4 | ?>
|
4 | ?>
|
5 | <h2>niX-FILES</h2> |
5 | <h2>niX-FILES</h2> |
6 | <h1>любые файлы *nix тематики в локальных сетях Барнаула</h1> |
6 | <h1>любые файлы *nix тематики в локальных сетях Барнаула</h1> |
7 | <h3><i>изучай/пользуй/обновляй линукс вместе с nix-files.org.ru</i></h3> |
7 | <h3><i>изучай/пользуй/обновляй линукс вместе с nix-files.org.ru</i></h3> |
8 | <?php
|
8 | <?php
|
9 | 9 | ||
10 | $res = abs(intval($_GET["res"])); |
10 | $res = abs(intval($_GET["res"])); |
11 | 11 | ||
12 | 12 | ||
13 | $ress =& $db->query("SELECT * FROM resources WHERE id=".$res); |
13 | $ress =& $db->query("SELECT * FROM resources JOIN members ON resources.member_id=members.id WHERE resources.id=".$res); |
14 | while ($ress->fetchInto($info_ress, DB_FETCHMODE_ASSOC)) { |
14 | while ($ress->fetchInto($info_ress, DB_FETCHMODE_ASSOC)) { |
15 | echo "<h1>".$info_ress['resource'].".niX-FILES</h1>"; |
15 | echo "<h1>".$info_ress['resource'].".niX-FILES</h1>"; |
16 | echo $info_ress['description']."<br>"; |
16 | echo $info_ress['description']."<br>"; |
- | 17 | echo "<br>Куратор: ".$info_ress['nick']."<br>"; |
|
17 | echo "Ссылка: <a href='".$info_ress['link_res']."'>".$info_ress['link_res']."</a><br>"; |
18 | echo "Ссылка: <a href='".$info_ress['link_res']."'>".$info_ress['link_res']."</a><br>"; |
18 | echo "Обсуждение: <a href='".$info_ress['link_talk']."'>".$info_ress['link_talk']."</a>"; |
19 | echo "Обсуждение: <a href='".$info_ress['link_talk']."'>".$info_ress['link_talk']."</a>"; |
19 | if ($info_ress['custom']!=null) { |
20 | if ($info_ress['custom']!=null) { |
20 | echo "<br><br>"; |
21 | echo "<br><br>"; |
21 | include "./custom/".$info_ress['custom']; |
22 | include "./custom/".$info_ress['custom']; |
22 | }
|
23 | }
|
23 | }
|
24 | }
|
24 | 25 | ||
25 | include "./inc/footer.htm"; |
26 | include "./inc/footer.htm"; |
26 | ?>
|
27 | ?>
|
27 | 28 |