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