コード例 #1
0
ファイル: xhtml10.php プロジェクト: BackupTheBerlios/idb
    $ccstart = "//<!--";
    $ccend = "//-->";
    header("Content-Type: text/html; charset=" . $Settings['charset']);
}
if ($Settings['output_type'] == "xhtml") {
    if (stristr($_SERVER["HTTP_ACCEPT"], "application/xhtml+xml")) {
        $ccstart = "//<![CDATA[";
        $ccend = "//]]>";
        header("Content-Type: application/xhtml+xml; charset=" . $Settings['charset']);
        xml_doc_start("1.0", $Settings['charset']);
    } else {
        if (stristr($_SERVER["HTTP_USER_AGENT"], "W3C_Validator")) {
            $ccstart = "//<![CDATA[";
            $ccend = "//]]>";
            header("Content-Type: application/xhtml+xml; charset=" . $Settings['charset']);
            xml_doc_start("1.0", $Settings['charset']);
        } else {
            $ccstart = "//<!--";
            $ccend = "//-->";
            header("Content-Type: text/html; charset=" . $Settings['charset']);
        }
    }
}
if ($Settings['output_type'] != "xhtml") {
    if ($Settings['output_type'] != "html") {
        $ccstart = "//<!--";
        $ccend = "//-->";
        header("Content-Type: text/html; charset=" . $Settings['charset']);
    }
}
if ($checklowview === true && $_GET['act'] == "lowview") {
コード例 #2
0
ファイル: index.php プロジェクト: BackupTheBerlios/idb-svn
 $prepreg2 = preg_quote("</subtype>", "/");
 preg_match_all("/" . $prepreg1 . "(.*)" . $prepreg2 . "{1}/isU", $VersionPart, $SubTypePart);
 $vercheck['subtype'] = $SubTypePart[1][0];
 $prepreg1 = preg_quote("<relsvnum>", "/");
 $prepreg2 = preg_quote("</relsvnum>", "/");
 preg_match_all("/" . $prepreg1 . "(.*)" . $prepreg2 . "{1}/isU", $VersionPart, $RelSVNumPart);
 $vercheck['subver'] = $RelSVNumPart[1][0];
 $MyFullRelNum = $MyVerSplit[0] . $MyVerSplit[1] . $MyVerSplit[2] . "." . $vercheck['reltypenum'] . $vercheck['subver'];
 $DownloadLink = "<a href=\"" . $download_url . "\">" . $download_url . "</a>";
 if ($_GET['redirect'] != "on" && $_GET['redirect'] != "xml" && $_GET['redirect'] != "js") {
     echo "<div>";
 }
 $actchange = preg_quote("act=versioninfo", '/');
 $_GET['bid'] = preg_replace("/" . $actchange . "/i", "act=view", $_GET['bid']);
 if ($_GET['redirect'] == "xml") {
     $VersionXML = xml_doc_start("1.0", "UTF-8", true);
     $VersionXML .= "<!DOCTYPE versioninfo [\n";
     $VersionXML .= "<!ELEMENT versioninfo (version*)>\n";
     $VersionXML .= "<!ELEMENT version (reltype,relnum,subtype,relsvnum,results)>\n";
     $VersionXML .= "<!ELEMENT reltype (#PCDATA)>\n";
     $VersionXML .= "<!ELEMENT relnum (#PCDATA)>\n";
     $VersionXML .= "<!ELEMENT subtype (#PCDATA)>\n";
     $VersionXML .= "<!ELEMENT relsvnum (#PCDATA)>\n";
     $VersionXML .= "<!ELEMENT results (#PCDATA)>\n";
     $VersionXML .= "<!ENTITY nbsp \" \">\n";
     $VersionXML .= "]>\n\n";
     $VersionXML .= "<versioninfo>\n\n";
     $VersionXML .= "<version>\n";
     $VersionXML .= "<reltype>" . $vercheck['reltype'] . "</reltype>\n";
     $VersionXML .= "<relnum>" . $vercheck['ver'] . "</relnum>\n";
     $VersionXML .= "<subtype>" . $vercheck['subtype'] . "</subtype>\n";