Хранилища Subversion ant

Редакция

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

Редакция 137 Редакция 138
Строка 66... Строка 66...
66
        $result .= "<feed xmlns=\"http://www.w3.org/2005/Atom\">\n";
66
        $result .= "<feed xmlns=\"http://www.w3.org/2005/Atom\">\n";
67
        $result .= "<title>".$core->getSetting('codename',$db)." последние изменения</title>\n";
67
        $result .= "<title>".$core->getSetting('codename',$db)." последние изменения</title>\n";
68
        $result .= "<link href=\"http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/\" />\n";
68
        $result .= "<link href=\"http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/\" />\n";
69
        $result .= "<updated>".$lastbuilddate."</updated>\n";
69
        $result .= "<updated>".$lastbuilddate."</updated>\n";
70
        $result .= "<author>\n<name>\n".$core->getSetting('codename',$db)."</name>\n</author>\n";
70
        $result .= "<author>\n<name>\n".$core->getSetting('codename',$db)."</name>\n</author>\n";
71
        $result .= "<id>urn:uuid:".uniqid("http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/",true)."</id>\n";
71
        $result .= "<id>urn:uuid:".$core->getUUID("http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/")."</id>\n";
72
        $query =& $db->query("SELECT * FROM changelog ORDER BY log_id DESC LIMIT 10");
72
        $query =& $db->query("SELECT * FROM changelog ORDER BY log_id DESC LIMIT 10");
73
        if ($query->numRows()>0) {
73
        if ($query->numRows()>0) {
74
            while ($query->fetchInto($log, DB_FETCHMODE_ASSOC)) {
74
            while ($query->fetchInto($log, DB_FETCHMODE_ASSOC)) {
75
                $result .= "<entry>\n";
75
                $result .= "<entry>\n";
76
                $result .= "<title type=\"html\">".stripslashes($log["log_title"])."</title>\n";
76
                $result .= "<title type=\"html\">".stripslashes($log["log_title"])."</title>\n";
77
                $result .= "<link href=\"http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/changelog.php?id=".$log["log_id"]."\" />\n";
77
                $result .= "<link href=\"http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/changelog.php?id=".$log["log_id"]."\" />\n";
78
                $result .= "<summary type=\"html\"><![CDATA[".stripslashes($log["log_desc"])."]]></summary>\n";
78
                $result .= "<summary type=\"html\"><![CDATA[".stripslashes($log["log_desc"])."]]></summary>\n";
79
                $result .= "<id>urn:uuid:".uniqid("http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"],true)."/changelog.php?id=".$log["log_id"])."</id>\n";
79
                $result .= "<id>urn:uuid:".$core->getUUID("http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/changelog.php?id=".$log["log_id"])."</id>\n";
80
                $updated = str_replace(" ","T",$log["log_record"]);
80
                $updated = str_replace(" ","T",$log["log_record"]);
81
                $updated .= "+06:00";
81
                $updated .= "+06:00";
82
                $result .= "<updated>".$updated."</updated>\n";
82
                $result .= "<updated>".$updated."</updated>\n";
83
                $result .= "</entry>\n";
83
                $result .= "</entry>\n";
84
            }
84
            }