<body> <?php if (ae_detect_ie()) { ?> <iframe id="yui-history-iframe" src="files/empty.html"></iframe> <?php } ?> <fieldset style="display:none"><input id="yui-history-field" type="hidden" /></fieldset> <?php jflush(); ?> <div id="nav"> <ul> <?php if (ae_detect_ie() || detect_safari()) { printNavig("<li><a href='#%s'>%s</a></li>"); } else { printNavig("<li><a href='{$PATH}%s/'>%s</a></li>"); } ?> </ul> </div> <?php jflush(); ?> <div id="content"> <?php printContent(); ?> </div>
$foaf = 'http'; } $foaf = $foaf . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; if ($q = @file_get_contents('php://input')) { $ret = $wiki->go($webid, $foaf); if (file_exists($ret)) { $rdf = file_get_contents($ret); if (strcmp($rdf, '') != 0) { //rdfLog('sparul', $username, $webid, $q, $rdf); $sql = " update foaf set rdf = '{$rdf}' , rdf2 = '{$rdf}' where username like '{$username}' "; $res = dbinsertquery($sql); } } } } else { if (detect_ie() or detect_safari()) { header('Content-Type: application/xml'); } else { header('Content-Type: application/rdf+xml'); } header('MS-Author-Via: SPARQL'); $xsl = 'foaf.xsl'; if ($_SERVER['HTTPS'] == 'on') { $xsl = 'foaf_secure.xsl'; } if ($auth['isAuthenticated'] == 1) { $xsl = 'foaf_self.xsl'; } //if ($authentication_level == 'client_certificate_rsakey_matches_foaf_friend_rsakey') $xsl = 'foaf_friend.xsl'; // overrides /*