本文整理汇总了PHP中Backend::getXML方法的典型用法代码示例。如果您正苦于以下问题:PHP Backend::getXML方法的具体用法?PHP Backend::getXML怎么用?PHP Backend::getXML使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Backend
的用法示例。
在下文中一共展示了Backend::getXML方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: WriteLastMonth
function WriteLastMonth($filename)
{
global $tmp_month, $tmp_year;
$handle = @fopen($filename, "w");
if ($handle) {
fputs($handle, Backend::getXML(__DIR__ . "/backend/counter.php", $tmp_year, $tmp_month));
}
@fclose($handle);
}
示例2: DOMDocument
</div>
</div>
<div class="middle">
<div class="border">
<h2><?php
echo FLANG_H_DIST_VISIT;
?>
</h2>
<?php
$overview->distribution($count_day_max_p, 100, 'people', FLANG_VISITOR_S, FLANG_VISITTIME_D, $lang);
?>
</div>
<div class="border">
<?php
$xml_sites = new DOMDocument();
$xml_sites->loadXML(Backend::getXML(__DIR__ . "/../backend/sitecounter.php"));
$sites_xpath = new DOMXPath($xml_sites);
$updatetime = $sites_xpath->evaluate('string(//sites/@update)');
//$xml_sites->getElementsByTagName("sites")->item(0)->getAttribute("update");
?>
<h2><?php
echo FLANG_H_SITE;
?>
</h2>
<div class="infobox"><?php
echo FLANG_CACHED . " " . (new DateTime($updatetime))->format($fstat_date_format) . " ";
echo "<a href=\"./" . $urlBuilder->build(null, $displayTime->getStartYear(), $displayTime->getStartMonth()) . "&refresh=1\">" . FLANG_RELOAD . "</a>";
?>
</div>
<table class="Auflistung striped">
<thead>
示例3: DOMDocument
:</th>
<th><?php
echo FLANG_HOST;
?>
:</th>
</tr>
</thead>
<tbody>
<?php
require_once __DIR__ . "/../classes/xpathHelper.php";
$xml_last = new DOMDocument();
if ($urlBuilder->getPage() == 'last') {
$xml_last->loadXML(Backend::getXML(__DIR__ . "/../backend/last.php"));
} else {
if ($urlBuilder->getPage() == 'lastbots') {
$xml_last->loadXML(Backend::getXML(__DIR__ . "/../backend/lastbots.php"));
}
}
$xpath = new DOMXPath($xml_last);
$nodelist = $xpath->query('//visitor');
$tmpcount = 0;
foreach ($nodelist as $row) {
//$tmpcount++;
$v_typ = $xpath->evaluate('string(./typ/text())', $row);
$v_uas = $xpath->evaluate('string(./uas/text())', $row);
$v_uip = $xpath->evaluate('string(./uip/text())', $row);
$v_uhost = $xpath->evaluate('string(./uhost/text())', $row);
if ($v_uhost == "") {
$v_uhost = $v_uip;
}
$v_uti = $xpath->evaluate('string(./uti/text())', $row);