Хранилища Subversion ant

Редакция

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

Редакция 126 Редакция 127
Строка 43... Строка 43...
43
        $query =& $db->query("SELECT * FROM changelog ORDER BY log_id DESC LIMIT 10");
43
        $query =& $db->query("SELECT * FROM changelog ORDER BY log_id DESC LIMIT 10");
44
        if ($query->numRows()>0) {
44
        if ($query->numRows()>0) {
45
            while ($query->fetchInto($log, DB_FETCHMODE_ASSOC)) {
45
            while ($query->fetchInto($log, DB_FETCHMODE_ASSOC)) {
46
                $result .= "<item>\n";
46
                $result .= "<item>\n";
47
                $result .= "<title>".stripslashes($log["log_title"])."</title>\n";
47
                $result .= "<title>".stripslashes($log["log_title"])."</title>\n";
48
                $result .= "<link>http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/changelog.php?id=".$log["log_id"]."<link>\n";
48
                $result .= "<link>http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/changelog.php?id=".$log["log_id"]."</link>\n";
49
                $result .= "<pubDate>".date("r",strtotime($log["log_record"]))."</pubDate>\n";
49
                $result .= "<pubDate>".date("r",strtotime($log["log_record"]))."</pubDate>\n";
50
                $result .= "<description><![CDATA[".stripslashes($log["log_desc"])."]]></description>\n";
50
                $result .= "<description><![CDATA[".stripslashes($log["log_desc"])."]]></description>\n";
51
                $result .= "<guid isPermaLink=\"false\">".md5("http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/changelog.php?id=".$log["log_id"])."</guid>\n";
51
                $result .= "<guid isPermaLink=\"false\">".md5("http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/changelog.php?id=".$log["log_id"])."</guid>\n";
52
                $result .= "</item>\n";
52
                $result .= "</item>\n";
53
            }
53
            }