1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| <div class="boxcenter five">
<?php
if (isset($_GET['pics']) && is_string($_GET['pics'])) {
$values = explode(' ', $_GET['pics']);
$pics_lot_1 = $values[1] ?? '';
$pics_lot_3 = $values[3] ?? '';
} else {
$pics_lot_1 = 1;
$pics_lot_3 = 50;
}
$xw = xmlwriter_open_memory();
xmlwriter_set_indent($xw, 1);
$res = xmlwriter_set_indent_string($xw, ' ');
xmlwriter_start_document($xw, '1.0', 'UTF-8');
xmlwriter_start_element($xw, 'item');
xmlwriter_start_element($xw, 'itemshow');
$p=1;
foreach ( $done_tri as $done_url) {
$url_tof = $done_url['name_tof'];
if($pics_lot_1<=$p && $pics_lot_3>=$p) {
xmlwriter_text($xw, $url_tof." ");
}
$p++;
}
xmlwriter_end_element($xw);
xmlwriter_end_element($xw);
echo xmlwriter_output_memory($xw);
explode( " " ?></div>
</body>
</html> |
Partager