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); }
</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>
:</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);