[2023-01-23] 4images 1.10 released
0 Members and 2 Guests are viewing this topic.
<? @include("your_php_script.php"); ?>
define('EXEC_PHP_CODE', 1);
This Code don't work :/
{cp_link}<br>></body></html><? @include("cos.php"); ?>
<? @include("cos.php"); ?>
{cp_link}<br><? @include("cos.php"); ?></body></html>
but this don't worrk
<?php//pobranie pliku$source = @file_get_contents('http://www.skateshop.pl/affiliate/getxml.php?language=pol&curr=PLN&affiliate=Knnopers');$parser = xml_parser_create();xml_parse_into_struct($parser, $source, $vals, $index);xml_parser_free($parser);print('<html><head><style type="text/css">img {border:none} table,body {font-family:sans-serif;font-size:12px} table{border-left:1px solid black;border-right:1px solid black;border-bottom:1px solid black;} td {border-top:1px solid black; padding:5px;}</style></head><body><table cellpadding="0" cellspacing="0" width="500px">');$counter = 0;$counterName = 0;for ($i=0; $i < $vals[$index['PRODUCTS'][0]]['attributes']['TOTAL']; $i++) {print('<tr><td><a href="' . $vals[$index['PRODUCT'][$counter]]['attributes']['LINK'] . '" target="_blank"><img title="' . iconv("UTF-8","ISO-8859-2",$vals[$index['NAME'][$counterName]]['value']) . '" alt="' . iconv("UTF-8","ISO-8859-2",$vals[$index['NAME'][$counterName]]['value']) . '" src="' . $vals[$index['ICON'][$counter]]['value'] . '"/></a></td><td><strong>Nazwa:</strong> ' . iconv("UTF-8","ISO-8859-2",$vals[$index['NAME'][$counterName]]['value']) . '<br/><strong>Opis:</strong> ' . iconv("UTF-8","ISO-8859-2",$vals[$index['DESCRIPTION'][$counter]]['value']));if ($vals[$index['TRAITS'][$counter]]['attributes']) {print('<ul>');$k=0;for ($j=0; $j < count($vals[$index['TRAITS'][$counter]]['attributes']); ($j+=2)) {print('<li>' . iconv("UTF-8","ISO-8859-2",$vals[$index['TRAITS'][$counter]]['attributes']['GROUP'.$k]) . ': ' . iconv("UTF-8","ISO-8859-2",$vals[$index['TRAITS'][$counter]]['attributes']['TRAIT'.$k++]) . '</li>');}print('</ul>');}if ($vals[$index['SIZES'][$counter]]['attributes']) { //jeżeli istniej± wyszczególnione rozmiary danego produktuprint('<strong>Rozmiary: </strong>');$k=0;foreach ($vals[$index['SIZES'][$counter]]['attributes'] as $key=>$size) {if ($size == 'onesize') {print(' rozmiar uniwersalny');} elseif ($key == ('DESCRIPTION' . $k)) {print(iconv("UTF-8","ISO-8859-2",$size) . ' ');$k++;}}}print('</td><td><a href="' . $vals[$index['PRODUCT'][$counter]]['attributes']['LINK'] . '" target="_blank"><img src="http://skateshop.pl/affiliate/gfx/skb.gif" title="kup" alt="kup"/></a><br/><span style="white-space:nowrap;"><strong style="color:red">Cena: </strong>' . $vals[$index['PRICE'][$counter]]['attributes']['WORTH'] . ' ' . iconv("UTF-8","ISO-8859-2",$vals[$index['PRODUCTS'][0]]['attributes']['CURRENCYSIGN']) . '</span></td></tr>');$counter++;$counterName += 2;}print('</table><body></html>');?>