This commit is contained in:
steven 2025-08-11 22:23:30 +02:00
commit 72a26edcff
22092 changed files with 2101903 additions and 0 deletions

27
scripts/ajax/tanke5.php Normal file
View file

@ -0,0 +1,27 @@
<?php
error_reporting(E_ALL); ini_set('display_errors',0);
//-------------------------------------------------------------------------------------------------------------
$page='https://www.benzinpreis-aktuell.de/tanken-hem-tankstelle-leipzig-04249-3e45.html'; $child=''; $node=''; $innerHTML= '';
$tag='div-2 preisC';
$html3 = file_get_contents($page);
mb_convert_encoding($html,"UTF-8","auto");
$xp3 = new DOMDocument();
$xp3->loadHTML($html3);
$xp3 = new DOMXPath($xp3);
foreach($xp3->query("//div[@class='".$tag."']") as $node) {
$node->nodeValue;
break;
};
$children = $node->childNodes;
foreach ($children as $child) {
$tanke5 .= $child->ownerDocument->saveXML( $child );
}
if (strlen($tanke5)!=0) { $tankex=$tanke5; } else { $tankex='close'; }
$template->assign('open', 1);
$template->assign('tanke', $tankex);
$template->assign('content', 'tpl/ajax/tanke.tpl');
?>