Хранилища Subversion www_nix-files

Редакция

Редакция 25 | Редакция 54 | К новейшей редакции | Только различия | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

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