mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
r5894 refix. / When content widget get Feed, it would send user-agent info as content widget later.(이렇게 해야 하는것 아닌가요?...)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5905 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
1de4043e63
commit
032de69db3
3 changed files with 14 additions and 6 deletions
|
|
@ -415,8 +415,16 @@
|
|||
|
||||
if ($URL_parsed["query"] != '') $path .= "?".$URL_parsed["query"];
|
||||
|
||||
// $buff = FileHandler::readFile('./widgets/content/conf/info.xml');
|
||||
// $buff = str_replace('<?xml version="1.0" encoding="UTF-8"?>','',$buff);
|
||||
|
||||
// $oXmlParser = new XmlParser();
|
||||
// $info_xml = $oXmlParser->parse($buff);
|
||||
|
||||
$oReqeust = new HTTP_Request($rss_url);
|
||||
$oReqeust->addHeader('Content-Type', 'application/xml');
|
||||
// $oReqeust->addHeader('User-agent', 'Content Widget/'.$info_xml->widget->version->body.' (XpressEngine '.__ZBXE_VERSION__.' ( http://www.xpressengine.com ); PEAR HTTP_Request class ( http://pear.php.net/ );)');
|
||||
$oReqeust->addHeader('User-agent', 'Content Widget (XE '.__ZBXE_VERSION__.' ( http://www.xpressengine.com ); PEAR HTTP_Request class ( http://pear.php.net/ );)');
|
||||
$oReqeust->setMethod('GET');
|
||||
|
||||
$user = $URL_parsed["user"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue