Files
cdnPRO/infomech-pl/index.php
2024-10-25 16:01:25 +02:00

5627 lines
161 KiB
PHP
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?
error_reporting(E_ALL ^ E_NOTICE ^ E_STRICT ^ E_WARNING ^ E_DEPRECATED);
header('Content-Type: text/html; charset=utf-8');
?>
<html>
<head>
<title>Infomech</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap" rel="stylesheet">
<style type="text/css">
* {
font-family: 'Open Sans', sans-serif;
font-size: 12px;
}
ul li {
width: 100%;
}
</style>
</head>
<body>
<?
include '../_plugins/medoo.php';
$mdb = new medoo([
'database_type' => 'mysql',
'database_name' => 'host117523_cdn',
'server' => 'localhost',
'username' => 'host117523_cdn',
'password' => 'Qv7q2gdr9zJhPFCtVQLF',
'charset' => 'utf8'
]);
class SimpleXMLElementExtended extends SimpleXMLElement
{
private function addCDataToNode(SimpleXMLElement $node, $value = '')
{
if ($domElement = dom_import_simplexml($node))
{
$domOwner = $domElement->ownerDocument;
$domElement->appendChild($domOwner->createCDATASection("{$value}"));
}
}
public function addChildWithCData($name = '', $value = '')
{
$newChild = parent::addChild($name);
if ($value) $this->addCDataToNode($newChild, "{$value}");
return $newChild;
}
public function addCData($value = '')
{
$this->addCDataToNode($this, "{$value}");
}
}
function removeStyles($html)
{
// Usuń atrybuty style i class
$html = preg_replace('/<img[^>]*>/', '', $html);
$html = preg_replace('/<(\w+)(?:[^>]*)(\s*\/?>)/', '<$1$2', $html);
$html = preg_replace('/\r|\n/', '', $html);
$html = preg_replace('/\s{2,}/', ' ', $html);
$html = str_replace( '=', '', $html );
do
{
$originalHtml = $html;
$html = preg_replace('/<(\w+)\b[^>]*>\s*<\/\1>/', '', $html);
} while ($originalHtml !== $html);
do
{
$originalHtml = $html;
$html = preg_replace('/<div>\s*<div>(.*?)<\/div>\s*<\/div>/', '<div>$1</div>', $html);
} while ($originalHtml !== $html);
return $html;
}
if ( $_GET['category'] == 'dipol-rejestratory-ip-4' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://www.dipol.com.pl/oferta-monitoring-rejestratory-ip,7043.htm?attr-4486[0]=11397&p=';
$max = 4;
$file = 'dipol-products-url-rejestratory-ip-4.txt';
unlink( 'dipol-products-url-rejestratory-ip-4.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'dipol-products-url-rejestratory-ip-4.txt';
$category = 'Rejestratory IP 4 kanałowe';
$xml_file = 'dipol-products-url-rejestratory-ip-4.xml';
}
}
if ( $_GET['category'] == 'dipol-rejestratory-ip-8' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://www.dipol.com.pl/oferta-monitoring-rejestratory-ip,7043.htm?attr-4486[1]=11345&p=';
$max = 5;
$file = 'dipol-products-url-rejestratory-ip-8.txt';
unlink( 'dipol-products-url-rejestratory-ip-8.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'dipol-products-url-rejestratory-ip-8.txt';
$category = 'Rejestratory IP 8 kanałowe';
$xml_file = 'dipol-products-url-rejestratory-ip-8.xml';
}
}
if ( $_GET['category'] == 'dipol-rejestratory-ip-16' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://www.dipol.com.pl/oferta-monitoring-rejestratory-ip,7043.htm?attr-4486[2]=11484&p=';
$max = 4;
$file = 'dipol-products-url-rejestratory-ip-16.txt';
unlink( 'dipol-products-url-rejestratory-ip-16.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'dipol-products-url-rejestratory-ip-16.txt';
$category = 'Rejestratory IP 16 kanałowe';
$xml_file = 'dipol-products-url-rejestratory-ip-16.xml';
}
}
if ( $_GET['category'] == 'dipol-rejestratory-ip-32' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://www.dipol.com.pl/oferta-monitoring-rejestratory-ip,7043.htm?attr-4486[3]=11500&p=';
$max = 3;
$file = 'dipol-products-url-rejestratory-ip-32.txt';
unlink( 'dipol-products-url-rejestratory-ip-32.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'dipol-products-url-rejestratory-ip-32.txt';
$category = 'Rejestratory IP 32 kanałowe';
$xml_file = 'dipol-products-url-rejestratory-ip-32.xml';
}
}
if ( $_GET['category'] == 'dipol-rejestratory-ip-64' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://www.dipol.com.pl/oferta-monitoring-rejestratory-ip,7043.htm?attr-4486[4]=11617&p=';
$max = 2;
$file = 'dipol-products-url-rejestratory-ip-64.txt';
unlink( 'dipol-products-url-rejestratory-ip-64.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'dipol-products-url-rejestratory-ip-64.txt';
$category = 'Rejestratory IP 64 kanałowe';
$xml_file = 'dipol-products-url-rejestratory-ip-64.xml';
}
}
if ( $_GET['category'] == 'dipol-kamery-ip-cube')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.dipol.com.pl/oferta-monitoring-kamery-ip,7040.htm?attr-3488[1]=8252&attr-3492[0]=26132&p=';
$max = 2;
$file = 'dipol-products-url-kamery-ip-cube.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'dipol-products-url-kamery-ip-cube.txt';
$category = 'Kamery IP specjalne';
$xml_file = 'dipol-products-url-kamery-ip-cube.xml';
}
}
if ($_GET['category'] == 'dipol-kamery-ip-kopulkowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.dipol.com.pl/oferta-monitoring-kamery-ip,7040.htm?attr-3492[0]=8264&p=';
$max = 11;
$file = 'dipol-products-url-kamery-ip-kopulkowe.txt';
unlink( 'dipol-products-url-kamery-ip-kopulkowe.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'dipol-products-url-kamery-ip-kopulkowe.txt';
$category = 'Kamery IP kopułkowe';
$xml_file = 'dipol-products-url-kamery-ip-kopulkowe.xml';
}
}
if ($_GET['category'] == 'dipol-kamery-ip-pt')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.dipol.com.pl/oferta-monitoring-kamery-ip,7040.htm?attr-3492[3]=26122&p=';
$max = 2;
$file = 'dipol-products-url-kamery-ip-pt.txt';
unlink( 'dipol-products-url-kamery-ip-pt.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'dipol-products-url-kamery-ip-pt.txt';
$category = 'Kamery IP dom-biuro';
$xml_file = 'dipol-products-url-kamery-ip-pt.xml';
}
}
if ($_GET['category'] == 'dipol-kamery-ip-tubowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.dipol.com.pl/oferta-monitoring-kamery-ip,7040.htm?attr-3492[2]=8265&p=';
$max = 12;
$file = 'dipol-products-url-kamery-ip-tubowe.txt';
unlink( 'dipol-products-url-kamery-ip-tubowe.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'dipol-products-url-kamery-ip-tubowe.txt';
$category = 'Kamery IP tubowe';
$xml_file = 'dipol-products-url-kamery-ip-tubowe.xml';
}
}
if ($_GET['category'] == 'dipol-kamery-ip-ptz')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.dipol.com.pl/oferta-monitoring-kamery-ip,7040.htm?attr-3492[4]=16997&p=';
$max = 2;
$file = 'dipol-products-url-kamery-ip-ptz.txt';
unlink( 'dipol-products-url-kamery-ip-ptz.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'dipol-products-url-kamery-ip-ptz.txt';
$category = 'Kamery IP obrotowe';
$xml_file = 'dipol-products-url-kamery-ip-ptz.xml';
}
}
if ($_GET['category'] == 'dipol-kamery-ip-turret')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.dipol.com.pl/oferta-monitoring-kamery-ip,7040.htm?attr-3492[1]=8888&p=';
$max = 8;
$file = 'dipol-products-url-kamery-ip-turret.txt';
unlink( 'dipol-products-url-kamery-ip-turret.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'dipol-products-url-kamery-ip-turret.txt';
$category = 'Kamery IP kopułkowe';
$xml_file = 'dipol-products-url-kamery-ip-turret.xml';
}
}
if ($_GET['category'] == 'dipol-kamery-ip-wandaloodporne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.dipol.com.pl/oferta-monitoring-kamery-ip,7040.htm?attr-3492[6]=20459&p=';
$max = 5;
$file = 'dipol-products-url-kamery-ip-wandaloodporne.txt';
unlink( 'dipol-products-url-kamery-ip-wandaloodporne.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'dipol-products-url-kamery-ip-wandaloodporne.txt';
$category = 'Kamery IP kopułkowe';
$xml_file = 'dipol-products-url-kamery-ip-wandaloodporne.xml';
}
}
if ($_GET['category'] == 'dipol-kamery-ip-inne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.dipol.com.pl/oferta-monitoring-kamery-ip,7040.htm?attr-3488[0]=20431&attr-3488[1]=8252&attr-3488[1]=8252&attr-3488[1]=8252&attr-3488[1]=8252&attr-3488[1]=8252&attr-3488[1]=8252&attr-3488[1]=8252&attr-3488[1]=8252&attr-3488[1]=8252&attr-3488[1]=8252&attr-3488[1]=8252&attr-3488[1]=8252&attr-3488[1]=8252&attr-3492[7]=8783&p=';
$max = 3;
$file = 'dipol-products-url-kamery-ip-inne.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'dipol-products-url-kamery-ip-inne.txt';
$category = 'Kamery IP specjalne';
$xml_file = 'dipol-products-url-kamery-ip-inne.xml';
}
}
// vipos-kamery-ip-hdcviahdhdtvi
if ( $_GET['category'] == 'vipos-kamery-ip-hdcviahdhdtvi' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://vipos.pl/75-hdcviahdhdtvi?page=';
$max = 9;
$file = 'vipos-products-url-kamery-ip-hdcviahdhdtvi.txt';
unlink( 'vipos-products-url-kamery-ip-hdcviahdhdtvi.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vipos-products-url-kamery-ip-hdcviahdhdtvi.txt';
$category = 'Kamery IP HDCVI/AHD/HDTVI';
$xml_file = 'vipos-products-url-kamery-ip-hdcviahdhdtvi.xml';
}
}
if ( $_GET['category'] == 'vipos-kamery-ip-bullet' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://vipos.pl/7-kamery-ip-bullet?page=';
$max = 30;
$file = 'vipos-products-url-kamery-ip-bullet.txt';
unlink( 'vipos-products-url-kamery-ip-bullet.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vipos-products-url-kamery-ip-bullet.txt';
$category = 'Kamery IP tubowe';
$xml_file = 'vipos-products-url-kamery-ip-bullet.xml';
}
}
if ( $_GET['category'] == 'vipos-kamery-ip-box' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://vipos.pl/8-kamery-ip-box?page=';
$max = 2;
$file = 'vipos-products-url-kamery-ip-box.txt';
unlink( 'vipos-products-url-kamery-ip-box.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vipos-products-url-kamery-ip-box.txt';
$category = 'Kamery IP kompaktowe';
$xml_file = 'vipos-products-url-kamery-ip-box.xml';
}
}
if ($_GET['category'] == 'vipos-kamery-ip-kopulkowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://vipos.pl/9-kamery-ip-kopula?page=';
$max = 20;
$file = 'vipos-products-url-kamery-ip-kopulkowe.txt';
unlink( 'vipos-products-url-kamery-ip-kopulkowe.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vipos-products-url-kamery-ip-kopulkowe.txt';
$category = 'Kamery IP kopułkowe';
$xml_file = 'vipos-products-url-kamery-ip-kopulkowe.xml';
}
}
if ( $_GET['category'] == 'vipos-kamery-ip-turret' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://vipos.pl/10-kamery-ip-turret?page=';
$max = 16;
$file = 'vipos-products-url-kamery-ip-turret.txt';
unlink( 'vipos-products-url-kamery-ip-turret.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vipos-products-url-kamery-ip-turret.txt';
$category = 'Kamery IP Turret-Kopuła';
$xml_file = 'vipos-products-url-kamery-ip-turret.xml';
}
}
if ( $_GET['category'] == 'vipos-kamery-ip-ptz' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://vipos.pl/11-kamery-ip-ptz?page=';
$max = 10;
$file = 'vipos-products-url-kamery-ip-ptz.txt';
unlink( 'vipos-products-url-kamery-ip-ptz.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vipos-products-url-kamery-ip-ptz.txt';
$category = 'Kamery IP obrotowe';
$xml_file = 'vipos-products-url-kamery-ip-ptz.xml';
}
}
if ( $_GET['category'] == 'vipos-kamery-ip-180' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://vipos.pl/12-kamery-ip-180?page=';
$max = 5;
$file = 'vipos-products-url-kamery-ip-180.txt';
unlink( 'vipos-products-url-kamery-ip-180.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vipos-products-url-kamery-ip-180.txt';
$category = 'Kamery IP 180';
$xml_file = 'vipos-products-url-kamery-ip-180.xml';
}
}
if ( $_GET['category'] == 'vipos-kamery-ip-fisheye' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://vipos.pl/13-kamery-ip-fisheye?page=';
$max = 3;
$file = 'vipos-products-url-kamery-ip-fisheye.txt';
unlink( 'vipos-products-url-kamery-ip-fisheye.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vipos-products-url-kamery-ip-fisheye.txt';
$category = 'Kamery IP fisheye';
$xml_file = 'vipos-products-url-kamery-ip-fisheye.xml';
}
}
if ( $_GET['category'] == 'vipos-kamery-ip-transport' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://vipos.pl/17-kamery-ip-transport?page=';
$max = 3;
$file = 'vipos-products-url-kamery-ip-transport.txt';
unlink( 'vipos-products-url-kamery-ip-transport.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vipos-products-url-kamery-ip-transport.txt';
$category = 'Kamery IP transport';
$xml_file = 'vipos-products-url-kamery-ip-transport.xml';
}
}
if ( $_GET['category'] == 'vipos-kamery-ip-liczace' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://vipos.pl/18-kamery-liczace?page=';
$max = 2;
$file = 'vipos-products-url-kamery-ip-liczace.txt';
unlink( 'vipos-products-url-kamery-ip-liczace.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vipos-products-url-kamery-ip-liczace.txt';
$category = 'Kamery IP liczące';
$xml_file = 'vipos-products-url-kamery-ip-liczace.xml';
}
}
if ( $_GET['category'] == 'vipos-kamery-ip-multisensor' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://vipos.pl/15-kamery-ip-multisensor?page=';
$max = 2;
$file = 'vipos-products-url-kamery-ip-multisensor.txt';
unlink( 'vipos-products-url-kamery-ip-multisensor.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vipos-products-url-kamery-ip-multisensor.txt';
$category = 'Kamery IP multisensor';
$xml_file = 'vipos-products-url-kamery-ip-multisensor.xml';
}
}
if ( $_GET['category'] == 'vipos-kamery-ip-lpr' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://vipos.pl/16-kamery-ip-lpr-i-lpc?page=';
$max = 2;
$file = 'vipos-products-url-kamery-ip-lpr.txt';
unlink( 'vipos-products-url-kamery-ip-lpr.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vipos-products-url-kamery-ip-lpr.txt';
$category = 'Kamery IP LPR i LPC';
$xml_file = 'vipos-products-url-kamery-ip-lpr.xml';
}
}
// vipos kamery ip wifi
if ( $_GET['category'] == 'vipos-kamery-ip-wifi' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://vipos.pl/55-kamery-ip-wi-fi?page=';
$max = 3;
$file = 'vipos-products-url-kamery-ip-wifi.txt';
unlink( 'vipos-products-url-kamery-ip-wifi.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vipos-products-url-kamery-ip-wifi.txt';
$category = 'Kamery IP WiFi';
$xml_file = 'vipos-products-url-kamery-ip-wifi.xml';
}
}
if ($_GET['category'] == 'vipos-kamery-ip-termowizja')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://vipos.pl/58-kamery-ip-termowizja?page=';
$max = 3;
$file = 'vipos-products-url-kamery-ip-termowizja.txt';
unlink( 'vipos-products-url-kamery-ip-termowizja.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vipos-products-url-kamery-ip-termowizja.txt';
$category = 'Kamery IP termowizja';
$xml_file = 'vipos-products-url-kamery-ip-termowizja.xml';
}
}
// vipos kamery ip dom-biuro
if ( $_GET['category'] == 'vipos-kamery-ip-dom-biuro' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://vipos.pl/64-kamery-ip-dom-biuro?page=';
$max = 20;
$file = 'vipos-products-url-kamery-ip-dom-biuro.txt';
unlink( 'vipos-products-url-kamery-ip-dom-biuro.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vipos-products-url-kamery-ip-dom-biuro.txt';
$category = 'Kamery IP do domu i biura';
$xml_file = 'vipos-products-url-kamery-ip-dom-biuro.xml';
}
}
if ( $_GET['category'] == 'vipos-fotopulapki' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://vipos.pl/83-fotopulapki-?page=';
$max = 2;
$file = 'vipos-products-url-fotopulapki.txt';
unlink( 'vipos-products-url-fotopulapki.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vipos-products-url-fotopulapki.txt';
$category = 'Fotopułapki';
$xml_file = 'vipos-products-url-fotopulapki.xml';
}
}
// vipos rejestratory 4 kanałowe
if ( $_GET['category'] == 'vipos-rejestratory-4-kanalowe' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://vipos.pl/91-4-kanalowe?page=';
$max = 8;
$file = 'vipos-products-url-rejestratory-4-kanalowe.txt';
unlink( 'vipos-products-url-rejestratory-4-kanalowe.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vipos-products-url-rejestratory-4-kanalowe.txt';
$category = 'Rejestratory 4 kanałowe';
$xml_file = 'vipos-products-url-rejestratory-4-kanalowe.xml';
}
}
// vipos rejestratory 8 kanałowe
if ( $_GET['category'] == 'vipos-rejestratory-8-kanalowe' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://vipos.pl/92-8-kanalowe?page=';
$max = 9;
$file = 'vipos-products-url-rejestratory-8-kanalowe.txt';
unlink( 'vipos-products-url-rejestratory-8-kanalowe.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vipos-products-url-rejestratory-8-kanalowe.txt';
$category = 'Rejestratory 8 kanałowe';
$xml_file = 'vipos-products-url-rejestratory-8-kanalowe.xml';
}
}
// vipos rejestratory 16 kanałowe
if ( $_GET['category'] == 'vipos-rejestratory-16-kanalowe' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://vipos.pl/93-16-kanalowe?page=';
$max = 6;
$file = 'vipos-products-url-rejestratory-16-kanalowe.txt';
unlink( 'vipos-products-url-rejestratory-16-kanalowe.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vipos-products-url-rejestratory-16-kanalowe.txt';
$category = 'Rejestratory 16 kanałowe';
$xml_file = 'vipos-products-url-rejestratory-16-kanalowe.xml';
}
}
// vipos rejestratory 32 kanałowe
if ( $_GET['category'] == 'vipos-rejestratory-32-kanalowe' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://vipos.pl/94-32-kanalowe-i-wiecej?page=';
$max = 4;
$file = 'vipos-products-url-rejestratory-32-kanalowe.txt';
unlink( 'vipos-products-url-rejestratory-32-kanalowe.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vipos-products-url-rejestratory-32-kanalowe.txt';
$category = 'Rejestratory 32 kanałowe';
$xml_file = 'vipos-products-url-rejestratory-32-kanalowe.xml';
}
}
if ( $_GET['category'] == 'supertech-laptopy' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/laptopy_151.html?s=';
$max = 88;
$file = 'supertech-laptopy.txt';
unlink( 'supertech-laptopy.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-laptopy.txt';
$category = 'Laptopy';
$xml_file = 'supertech-laptopy.xml';
}
}
if ( $_GET['category'] == 'supertech-laptopy-lenovo' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/laptopy_lenovo_151_728.html?s=';
$max = 30;
$file = 'supertech-laptopy-lenovo.txt';
unlink( 'supertech-laptopy-lenovo.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-laptopy-lenovo.txt';
$category = 'Laptopy Lenovo';
$brand = 'Lenovo';
$xml_file = 'supertech-laptopy-lenovo.xml';
}
}
if ( $_GET['category'] == 'supertech-laptopy-dell' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/laptopy_dell_151_292.html?s=';
$max = 30;
$file = 'supertech-laptopy-dell.txt';
unlink( 'supertech-laptopy-dell.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-laptopy-dell.txt';
$category = 'Laptopy Dell';
$brand = 'Dell';
$xml_file = 'supertech-laptopy-dell.xml';
}
}
if ( $_GET['category'] == 'supertech-laptopy-hp' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/laptopy_hp_151_1.html?s=';
$max = 30;
$file = 'supertech-laptopy-hp.txt';
unlink( 'supertech-laptopy-hp.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-laptopy-hp.txt';
$category = 'Laptopy HP';
$brand = 'HP';
$xml_file = 'supertech-laptopy-hp.xml';
}
}
if ( $_GET['category'] == 'supertech-laptopy-apple' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/laptopy_apple_151_9.html?s=';
$max = 15;
$file = 'supertech-laptopy-apple.txt';
unlink( 'supertech-laptopy-apple.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-laptopy-apple.txt';
$category = 'Laptopy Apple';
$brand = 'Apple';
$xml_file = 'supertech-laptopy-apple.xml';
}
}
if ( $_GET['category'] == 'supertech-laptopy-asus' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/laptopy_asus_151_161.html?s=';
$max = 10;
$file = 'supertech-laptopy-asus.txt';
unlink( 'supertech-laptopy-asus.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-laptopy-asus.txt';
$category = 'Laptopy Asus';
$brand = 'Asus';
$xml_file = 'supertech-laptopy-asus.xml';
}
}
if ( $_GET['category'] == 'supertech-laptopy-acer' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/laptopy_acer_151_7.html?s=';
$max = 8;
$file = 'supertech-laptopy-acer.txt';
unlink( 'supertech-laptopy-acer.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-laptopy-acer.txt';
$category = 'Laptopy Acer';
$brand = 'Acer';
$xml_file = 'supertech-laptopy-acer.xml';
}
}
// supertech laptopy microsoft
if ( $_GET['category'] == 'supertech-laptopy-microsoft' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/laptopy_microsoft_151_100.html?s=';
$max = 8;
$file = 'supertech-laptopy-microsoft.txt';
unlink( 'supertech-laptopy-microsoft.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-laptopy-microsoft.txt';
$category = 'Laptopy Microsoft';
$brand = 'Microsoft';
$xml_file = 'supertech-laptopy-microsoft.xml';
}
}
// supertech laptopy msi
if ( $_GET['category'] == 'supertech-laptopy-msi' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/laptopy_msi_151_278.html?s=';
$max = 3;
$file = 'supertech-laptopy-msi.txt';
unlink( 'supertech-laptopy-msi.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-laptopy-msi.txt';
$category = 'Laptopy MSI';
$brand = 'MSI';
$xml_file = 'supertech-laptopy-msi.xml';
}
}
// supertech laptopy lg
if ( $_GET['category'] == 'supertech-laptopy-lg' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/laptopy_lg_151_293.html?s=';
$max = 2;
$file = 'supertech-laptopy-lg.txt';
unlink( 'supertech-laptopy-lg.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-laptopy-lg.txt';
$category = 'Laptopy LG';
$brand = 'LG';
$xml_file = 'supertech-laptopy-lg.xml';
}
}
// supertech komputery dell
if ( $_GET['category'] == 'supertech-komputery-dell' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/komputery_dell_153_292.html?s=';
$max = 15;
$file = 'supertech-komputery-dell.txt';
unlink( 'supertech-komputery-dell.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-komputery-dell.txt';
$category = 'Komputery Dell';
$brand = 'Dell';
$xml_file = 'supertech-komputery-dell.xml';
}
}
// supertech komputery HP
if ( $_GET['category'] == 'supertech-komputery-hp' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/komputery_hp_153_1.html?s=';
$max = 8;
$file = 'supertech-komputery-hp.txt';
unlink( 'supertech-komputery-hp.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-komputery-hp.txt';
$category = 'Komputery HP';
$brand = 'HP';
$xml_file = 'supertech-komputery-hp.xml';
}
}
// supertech komputery Lenovo
if ( $_GET['category'] == 'supertech-komputery-lenovo' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/komputery_lenovo_153_728.html?s=';
$max = 10;
$file = 'supertech-komputery-lenovo.txt';
unlink( 'supertech-komputery-lenovo.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-komputery-lenovo.txt';
$category = 'Komputery Lenovo';
$brand = 'Lenovo';
$xml_file = 'supertech-komputery-lenovo.xml';
}
}
// supertech komputery Actina
if ( $_GET['category'] == 'supertech-komputery-actina' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/komputery_actina_153_18181.html?s=';
$max = 1;
$file = 'supertech-komputery-actina.txt';
unlink( 'supertech-komputery-actina.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-komputery-actina.txt';
$category = 'Komputery Actina';
$brand = 'Actina';
$xml_file = 'supertech-komputery-actina.xml';
}
}
// supertech komputery MSI
if ( $_GET['category'] == 'supertech-komputery-msi' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/komputery_msi_153_278.html?s=';
$max = 1;
$file = 'supertech-komputery-msi.txt';
unlink( 'supertech-komputery-msi.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-komputery-msi.txt';
$category = 'Komputery MSI';
$brand = 'MSI';
$xml_file = 'supertech-komputery-msi.xml';
}
}
// supertech komputery Acer
if ( $_GET['category'] == 'supertech-komputery-acer' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/komputery_acer_153_7.html?s=';
$max = 1;
$file = 'supertech-komputery-acer.txt';
unlink( 'supertech-komputery-acer.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-komputery-acer.txt';
$category = 'Komputery Acer';
$brand = 'Acer';
$xml_file = 'supertech-komputery-acer.xml';
}
}
// supertech komputery asus
if ( $_GET['category'] == 'supertech-komputery-asus' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/komputery_asus_153_161.html?s=';
$max = 3;
$file = 'supertech-komputery-asus.txt';
unlink( 'supertech-komputery-asus.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-komputery-asus.txt';
$category = 'Komputery Asus';
$brand = 'Asus';
$xml_file = 'supertech-komputery-asus.xml';
}
}
// supertech komputery fujitsu
if ( $_GET['category'] == 'supertech-komputery-fujitsu' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/komputery_fujitsu_153_15.html?s=';
$max = 1;
$file = 'supertech-komputery-fujitsu.txt';
unlink( 'supertech-komputery-fujitsu.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-komputery-fujitsu.txt';
$category = 'Komputery Fujitsu';
$brand = 'Fujitsu';
$xml_file = 'supertech-komputery-fujitsu.xml';
}
}
// supertech komputery apple
if ( $_GET['category'] == 'supertech-komputery-apple' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/komputery_apple_153_9.html?s=';
$max = 1;
$file = 'supertech-komputery-apple.txt';
unlink( 'supertech-komputery-apple.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-komputery-apple.txt';
$category = 'Komputery Apple';
$brand = 'Apple';
$xml_file = 'supertech-komputery-apple.xml';
}
}
// supertech komputery intel
if ( $_GET['category'] == 'supertech-komputery-intel' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/komputery_intel_153_85.html?s=';
$max = 1;
$file = 'supertech-komputery-intel.txt';
unlink( 'supertech-komputery-intel.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-komputery-intel.txt';
$category = 'Komputery Intel';
$brand = 'Intel';
$xml_file = 'supertech-komputery-intel.xml';
}
}
// supertech monitory samsung
if ( $_GET['category'] == 'supertech-monitory-samsung' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/monitory_samsung_222_26.html?s=';
$max = 13;
$file = 'supertech-monitory-samsung.txt';
unlink( 'supertech-monitory-samsung.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-monitory-samsung.txt';
$category = 'Monitory Samsung';
$brand = 'Samsung';
$xml_file = 'supertech-monitory-samsung.xml';
}
}
// supertech monitory asus
if ( $_GET['category'] == 'supertech-monitory-asus' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/monitory_asus_222_161.html?s=';
$max = 20;
$file = 'supertech-monitory-asus.txt';
unlink( 'supertech-monitory-asus.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-monitory-asus.txt';
$category = 'Monitory Asus';
$brand = 'Asus';
$xml_file = 'supertech-monitory-asus.xml';
}
}
// supertech monitory iiyama
if ( $_GET['category'] == 'supertech-monitory-iiyama' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/monitory_iiyama_222_80.html?s=';
$max = 16;
$file = 'supertech-monitory-iiyama.txt';
unlink( 'supertech-monitory-iiyama.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-monitory-iiyama.txt';
$category = 'Monitory Iiyama';
$brand = 'Iiyama';
$xml_file = 'supertech-monitory-iiyama.xml';
}
}
// supertech monitory aoc
if ( $_GET['category'] == 'supertech-monitory-aoc' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/monitory_aoc_222_1718.html?s=';
$max = 13;
$file = 'supertech-monitory-aoc.txt';
unlink( 'supertech-monitory-aoc.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-monitory-aoc.txt';
$category = 'Monitory AOC';
$brand = 'AOC';
$xml_file = 'supertech-monitory-aoc.xml';
}
}
// supertech monitory dell
if ( $_GET['category'] == 'supertech-monitory-dell' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/monitory_dell_222_292.html?s=';
$max = 13;
$file = 'supertech-monitory-dell.txt';
unlink( 'supertech-monitory-dell.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-monitory-dell.txt';
$category = 'Monitory Dell';
$brand = 'Dell';
$xml_file = 'supertech-monitory-dell.xml';
}
}
// supertech monitory philips
if ( $_GET['category'] == 'supertech-monitory-philips' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/monitory_philips_222_25.html?s=';
$max = 15;
$file = 'supertech-monitory-philips.txt';
unlink( 'supertech-monitory-philips.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-monitory-philips.txt';
$category = 'Monitory Philips';
$brand = 'Philips';
$xml_file = 'supertech-monitory-philips.xml';
}
}
// supertech monitory lg
if ( $_GET['category'] == 'supertech-monitory-lg' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/monitory_lg_222_293.html?s=';
$max = 15;
$file = 'supertech-monitory-lg.txt';
unlink( 'supertech-monitory-lg.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-monitory-lg.txt';
$category = 'Monitory LG';
$brand = 'LG';
$xml_file = 'supertech-monitory-lg.xml';
}
}
// supertech monitory hp
if ( $_GET['category'] == 'supertech-monitory-hp' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/monitory_hp_222_1.html?s=';
$max = 25;
$file = 'supertech-monitory-hp.txt';
unlink( 'supertech-monitory-hp.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-monitory-hp.txt';
$category = 'Monitory HP';
$brand = 'HP';
$xml_file = 'supertech-monitory-hp.xml';
}
}
// supertech monitory lenovo
if ( $_GET['category'] == 'supertech-monitory-lenovo' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/monitory_lenovo_222_728.html?s=';
$max = 10;
$file = 'supertech-monitory-lenovo.txt';
unlink( 'supertech-monitory-lenovo.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-monitory-lenovo.txt';
$category = 'Monitory Lenovo';
$brand = 'Lenovo';
$xml_file = 'supertech-monitory-lenovo.xml';
}
}
// supertech monitory msi
if ( $_GET['category'] == 'supertech-monitory-msi' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/monitory_msi_222_278.html?s=';
$max = 7;
$file = 'supertech-monitory-msi.txt';
unlink( 'supertech-monitory-msi.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-monitory-msi.txt';
$category = 'Monitory MSI';
$brand = 'MSI';
$xml_file = 'supertech-monitory-msi.xml';
}
}
// supertech smartfony apple
if ( $_GET['category'] == 'supertech-smartfony-apple' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/smartfony_apple_1893_9.html?s=';
$max = 25;
$file = 'supertech-smartfony-apple.txt';
unlink( 'supertech-smartfony-apple.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-smartfony-apple.txt';
$category = 'Smartfony Apple';
$brand = 'Apple';
$xml_file = 'supertech-smartfony-apple.xml';
}
}
// supertech smarfony samsung
if ( $_GET['category'] == 'supertech-smartfony-samsung' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/smartfony_samsung_1893_26.html?s=';
$max = 18;
$file = 'supertech-smartfony-samsung.txt';
unlink( 'supertech-smartfony-samsung.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-smartfony-samsung.txt';
$category = 'Smartfony Samsung';
$brand = 'Samsung';
$xml_file = 'supertech-smartfony-samsung.xml';
}
}
// supertech smartfony xiaomi
if ( $_GET['category'] == 'supertech-smartfony-xiaomi' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/smartfony_xiaomi_1893_11434.html?s=';
$max = 11;
$file = 'supertech-smartfony-xiaomi.txt';
unlink( 'supertech-smartfony-xiaomi.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-smartfony-xiaomi.txt';
$category = 'Smartfony Xiaomi';
$brand = 'Xiaomi';
$xml_file = 'supertech-smartfony-xiaomi.xml';
}
}
// supertech smartfony google
if ( $_GET['category'] == 'supertech-smartfony-google' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/smartfony_google_1893_2280.html?s=';
$max = 3;
$file = 'supertech-smartfony-google.txt';
unlink( 'supertech-smartfony-google.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-smartfony-google.txt';
$category = 'Smartfony Google';
$brand = 'Google';
$xml_file = 'supertech-smartfony-google.xml';
}
}
// supertech smartfony motorola
if ( $_GET['category'] == 'supertech-smartfony-motorola' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/smartfony_motorola_1893_370.html?s=';
$max = 5;
$file = 'supertech-smartfony-motorola.txt';
unlink( 'supertech-smartfony-motorola.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-smartfony-motorola.txt';
$category = 'Smartfony Motorola';
$brand = 'Motorola';
$xml_file = 'supertech-smartfony-motorola.xml';
}
}
// supertech smartfony oppo
if ( $_GET['category'] == 'supertech-smartfony-oppo' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/smartfony_oppo_1893_2009.html?s=';
$max = 3;
$file = 'supertech-smartfony-oppo.txt';
unlink( 'supertech-smartfony-oppo.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-smartfony-oppo.txt';
$category = 'Smartfony Oppo';
$brand = 'Oppo';
$xml_file = 'supertech-smartfony-oppo.xml';
}
}
// supertech smartfony realme
if ( $_GET['category'] == 'supertech-smartfony-realme' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/smartfony_realme_1893_2008.html?s=';
$max = 3;
$file = 'supertech-smartfony-realme.txt';
unlink( 'supertech-smartfony-realme.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-smartfony-realme.txt';
$category = 'Smartfony Realme';
$brand = 'Realme';
$xml_file = 'supertech-smartfony-realme.xml';
}
}
// supertech smartfony oneplus
if ( $_GET['category'] == 'supertech-smartfony-oneplus' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/smartfony_oneplus_1893_11630.html?s=';
$max = 3;
$file = 'supertech-smartfony-oneplus.txt';
unlink( 'supertech-smartfony-oneplus.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-smartfony-oneplus.txt';
$category = 'Smartfony OnePlus';
$brand = 'OnePlus';
$xml_file = 'supertech-smartfony-oneplus.xml';
}
}
// superetech telewizory lg
if ( $_GET['category'] == 'supertech-telewizory-lg' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/telewizory_lg_1584_293.html?s=';
$max = 8;
$file = 'supertech-telewizory-lg.txt';
unlink( 'supertech-telewizory-lg.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-telewizory-lg.txt';
$category = 'Telewizory LG';
$brand = 'LG';
$xml_file = 'supertech-telewizory-lg.xml';
}
}
// supertech telewizory samsung
if ( $_GET['category'] == 'supertech-telewizory-samsung' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/telewizory_samsung_1584_26.html?s=';
$max = 6;
$file = 'supertech-telewizory-samsung.txt';
unlink( 'supertech-telewizory-samsung.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-telewizory-samsung.txt';
$category = 'Telewizory Samsung';
$brand = 'Samsung';
$xml_file = 'supertech-telewizory-samsung.xml';
}
}
// supertech telewizory philips
if ( $_GET['category'] == 'supertech-telewizory-philips' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/telewizory_philips_1584_25.html?s=';
$max = 7;
$file = 'supertech-telewizory-philips.txt';
unlink( 'supertech-telewizory-philips.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-telewizory-philips.txt';
$category = 'Telewizory Philips';
$brand = 'Philips';
$xml_file = 'supertech-telewizory-philips.xml';
}
}
// supertech telewizory tcl
if ( $_GET['category'] == 'supertech-telewizory-tcl' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/telewizory_tcl_1584_13380.html?s=';
$max = 4;
$file = 'supertech-telewizory-tcl.txt';
unlink( 'supertech-telewizory-tcl.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-telewizory-tcl.txt';
$category = 'Telewizory TCL';
$brand = 'TCL';
$xml_file = 'supertech-telewizory-tcl.xml';
}
}
// supertech telewizory sony
if ( $_GET['category'] == 'supertech-telewizory-sony' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/telewizory_sony_1584_5.html?s=';
$max = 2;
$file = 'supertech-telewizory-sony.txt';
unlink( 'supertech-telewizory-sony.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-telewizory-sony.txt';
$category = 'Telewizory Sony';
$brand = 'Sony';
$xml_file = 'supertech-telewizory-sony.xml';
}
}
// supertech telewizory xiaomi
if ( $_GET['category'] == 'supertech-telewizory-xiaomi' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/telewizory_xiaomi_1584_11434.html?s=';
$max = 2;
$file = 'supertech-telewizory-xiaomi.txt';
unlink( 'supertech-telewizory-xiaomi.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-telewizory-xiaomi.txt';
$category = 'Telewizory Xiaomi';
$brand = 'Xiaomi';
$xml_file = 'supertech-telewizory-xiaomi.xml';
}
}
// supertech telewizory toshiba
if ( $_GET['category'] == 'supertech-telewizory-toshiba' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/telewizory_toshiba_1584_2.html?s=';
$max = 2;
$file = 'supertech-telewizory-toshiba.txt';
unlink( 'supertech-telewizory-toshiba.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-telewizory-toshiba.txt';
$category = 'Telewizory Toshiba';
$brand = 'Toshiba';
$xml_file = 'supertech-telewizory-toshiba.xml';
}
}
// supertech telewizory hisense
if ( $_GET['category'] == 'supertech-telewizory-hisense' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/telewizory_hisense_1584_1407.html?s=';
$max = 4;
$file = 'supertech-telewizory-hisense.txt';
unlink( 'supertech-telewizory-hisense.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-telewizory-hisense.txt';
$category = 'Telewizory Hisense';
$brand = 'Hisense';
$xml_file = 'supertech-telewizory-hisense.xml';
}
}
// supertech telewizory sharp
if ( $_GET['category'] == 'supertech-telewizory-sharp' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/telewizory_sharp_1584_192.html?s=';
$max = 2;
$file = 'supertech-telewizory-sharp.txt';
unlink( 'supertech-telewizory-sharp.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-telewizory-sharp.txt';
$category = 'Telewizory Sharp';
$brand = 'Sharp';
$xml_file = 'supertech-telewizory-sharp.xml';
}
}
// supertech telewizory panasonic
if ( $_GET['category'] == 'supertech-telewizory-panasonic' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/telewizory_panasonic_1584_263.html?s=';
$max = 1;
$file = 'supertech-telewizory-panasonic.txt';
unlink( 'supertech-telewizory-panasonic.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-telewizory-panasonic.txt';
$category = 'Telewizory Panasonic';
$brand = 'Panasonic';
$xml_file = 'supertech-telewizory-panasonic.xml';
}
}
if ($_GET['category'] == 'supertech-stacje-dokujace')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/stacje_dokujace_152.html?s=';
$max = 47;
$file = 'supertech-stacje-dokujace.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-stacje-dokujace.txt';
$category = 'Stacje dokujące i replikatory portów';
$xml_file = 'supertech-stacje-dokujace.xml';
}
}
if ($_GET['category'] == 'supertech-torby-plecaki')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/torby_na_notebooki_1285.html?s=';
$max = 66;
$file = 'supertech-torby-plecaki.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-torby-plecaki.txt';
$category = 'Torby i plecaki';
$xml_file = 'supertech-torby-plecaki.xml';
}
}
if ($_GET['category'] == 'supertech-dyski-zewnetrzne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/zewnetrzne_dyski_twarde_1823.html?s=';
$max = 26;
$file = 'supertech-dyski-zewnetrzne.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-dyski-zewnetrzne.txt';
$category = 'Dyski zewnętrzne';
$xml_file = 'supertech-dyski-zewnetrzne.xml';
}
}
if ($_GET['category'] == 'supertech-podstawki-chlodzace')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/podkladki_chlodzace_do_notebookow_1689.html?s=';
$max = 7;
$file = 'supertech-podstawki-chlodzace.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-podstawki-chlodzace.txt';
$category = 'Podstawki chłodzące';
$xml_file = 'supertech-podstawki-chlodzace.xml';
}
}
if ($_GET['category'] == 'supertech-stoliki-pod-laptop')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/stojaki_na_notebooka_1514.html?s=';
$max = 12;
$file = 'supertech-stoliki-pod-laptop.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-stoliki-pod-laptop.txt';
$category = 'Stoliki pod laptop';
$xml_file = 'supertech-stoliki-pod-laptop.xml';
}
}
if ($_GET['category'] == 'supertech-pendrive')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/pamiec_usb_1554.html?s=';
$max = 62;
$file = 'supertech-pendrive.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-pendrive.txt';
$category = 'Pendrive';
$xml_file = 'supertech-pendrive.xml';
}
}
if ($_GET['category'] == 'supertech-komputery-stacjonarne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/komputery_osobiste_workstations_153.html?s=';
$max = 26;
$file = 'supertech-komputery-stacjonarne.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-komputery-stacjonarne.txt';
$category = 'Komputery stacjonarne';
$xml_file = 'supertech-komputery-stacjonarne.xml';
}
}
if ($_GET['category'] == 'supertech-komputery-allinone')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/komputery_wielofunkcyjne_all_in_one_2282.html?s=';
$max = 9;
$file = 'supertech-komputery-allinone.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-komputery-allinone.txt';
$category = 'Komputery typu all-in-one';
$xml_file = 'supertech-komputery-allinone.xml';
}
}
if ($_GET['category'] == 'supertech-komputery-barebone')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/komputery_typu_barebone_1062.html?s=';
$max = 10;
$file = 'supertech-komputery-barebone.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-komputery-barebone.txt';
$category = 'Komputery typu barebone';
$xml_file = 'supertech-komputery-barebone.xml';
}
}
if ($_GET['category'] == 'supertech-plyty-glowne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/plyty_glowne_164.html?s=';
$max = 46;
$file = 'supertech-plyty-glowne.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-plyty-glowne.txt';
$category = 'Płyty główne';
$xml_file = 'supertech-plyty-glowne.xml';
}
}
if ($_GET['category'] == 'supertech-procesory')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/procesory_989.html?s=';
$max = 36;
$file = 'supertech-procesory.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-procesory.txt';
$category = 'Procesory';
$xml_file = 'supertech-procesory.xml';
}
}
if ($_GET['category'] == 'supertech-karty-graficzne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/karty_graficzne_170.html?s=';
$max = 40;
$file = 'supertech-karty-graficzne.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-karty-graficzne.txt';
$category = 'Karty graficzne';
$xml_file = 'supertech-karty-graficzne.xml';
}
}
if ($_GET['category'] == 'supertech-pamieci-ram')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/moduly_pamieci_911.html?s=';
$max = 178;
$file = 'supertech-pamieci-ram.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-pamieci-ram.txt';
$category = 'Pamięci RAM';
$xml_file = 'supertech-pamieci-ram.xml';
}
}
if ($_GET['category'] == 'supertech-dyski-ssd')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/urzadzenia_ssd_1563.html?s=';
$max = 77;
$file = 'supertech-dyski-ssd.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-dyski-ssd.txt';
$category = 'Dyski SSD';
$xml_file = 'supertech-dyski-ssd.xml';
}
}
if ($_GET['category'] == 'supertech-dyski-hdd')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/twarde_dyski_219.html?s=';
$max = 32;
$file = 'supertech-dyski-hdd.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-dyski-hdd.txt';
$category = 'Dyski HDD';
$xml_file = 'supertech-dyski-hdd.xml';
}
}
if ($_GET['category'] == 'supertech-obudowy')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/zabezpieczenia_uchwyty_komputerow_237.html?s=';
$max = 67;
$file = 'supertech-obudowy.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-obudowy.txt';
$category = 'Obudowy komputerowe';
$xml_file = 'supertech-obudowy.xml';
}
}
if ($_GET['category'] == 'supertech-zasilacze')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/moduly_zasilaczy_963.html?s=';
$max = 51;
$file = 'supertech-zasilacze.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-zasilacze.txt';
$category = 'Zasilacze komputerowe';
$xml_file = 'supertech-zasilacze.xml';
}
}
if ($_GET['category'] == 'supertech-napedy-optyczne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/dyski_optyczne_214.html?s=';
$max = 7;
$file = 'supertech-napedy-optyczne.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-napedy-optyczne.txt';
$category = 'Napędy optyczne';
$xml_file = 'supertech-napedy-optyczne.xml';
}
}
if ($_GET['category'] == 'supertech-karty-dzwiekowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/karty_dzwiekowe_173.html?s=';
$max = 4;
$file = 'supertech-karty-dzwiekowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-karty-dzwiekowe.txt';
$category = 'Karty dzwiękowe';
$xml_file = 'supertech-karty-dzwiekowe.xml';
}
}
if ($_GET['category'] == 'supertech-systemy-chlodzenia-komputerow')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/systemy_chlodzenia_komputerow_921.html?s=';
$max = 90;
$file = 'supertech-systemy-chlodzenia-komputerow.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-systemy-chlodzenia-komputerow.txt';
$category = 'Systemy chłodzenia komputerów';
$xml_file = 'supertech-systemy-chlodzenia-komputerow.xml';
}
}
if ($_GET['category'] == 'supertech-systemy-chlodzenia-czesci-i-akcesoria')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/czesci_i_akcesoria_do_systemow_chlodzenia_komputerow_1571.html?s=';
$max = 12;
$file = 'supertech-systemy-chlodzenia-czesci-i-akcesoria.txt';
unlink( 'supertech-systemy-chlodzenia-czesci-i-akcesoria.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-systemy-chlodzenia-czesci-i-akcesoria.txt';
$category = 'Systemy chłodzenia części i akcesoria';
$xml_file = 'supertech-systemy-chlodzenia-czesci-i-akcesoria.xml';
}
}
if ($_GET['category'] == 'supertech-pasty-termoprzewodzace')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/pasty_termoprzewodzace_1529.html?s=';
$max = 9;
$file = 'supertech-pasty-termoprzewodzace.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-pasty-termoprzewodzace.txt';
$category = 'Pasty termoprzewodzące';
$xml_file = 'supertech-pasty-termoprzewodzace.xml';
}
}
if ($_GET['category'] == 'supertech-monitory')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/monitory_222.html?s=';
$max = 123;
$file = 'supertech-monitory.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-monitory.txt';
$category = 'Monitory komputerowe';
$xml_file = 'supertech-monitory.xml';
}
}
if ($_GET['category'] == 'supertech-uchwyty-i-stojaki')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/uchwyty_i_stojaki_do_monitorow_942.html?s=';
$max = 52;
$file = 'supertech-uchwyty-i-stojaki.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-uchwyty-i-stojaki.txt';
$category = 'Uchwyty i stojaki';
$xml_file = 'supertech-uchwyty-i-stojaki.xml';
}
}
if ($_GET['category'] == 'supertech-kable-hdmi')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/kable_hdmi_2918.html?s=';
$max = 71;
$file = 'supertech-kable-hdmi.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-kable-hdmi.txt';
$category = 'Kable HDMI do monitorów';
$xml_file = 'supertech-kable-hdmi.xml';
}
}
if ($_GET['category'] == 'supertech-kable-dvi')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/kable_dvi_2919.html?s=';
$max = 7;
$file = 'supertech-kable-dvi.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-kable-dvi.txt';
$category = 'Kable DVI do monitorów';
$xml_file = 'supertech-kable-dvi.xml';
}
}
if ($_GET['category'] == 'supertech-kable-displayport')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/kable_displayport_2925.html?s=';
$max = 26;
$file = 'supertech-kable-displayport.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-kable-displayport.txt';
$category = 'Kable DisplayPort do monitorów';
$xml_file = 'supertech-kable-displayport.xml';
}
}
if ($_GET['category'] == 'supertech-kable-vga')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/kable_vga_2921.html?s=';
$max = 10;
$file = 'supertech-kable-vga.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-kable-vga.txt';
$category = 'Kable VGA do monitorów';
$xml_file = 'supertech-kable-vga.xml';
}
}
if ($_GET['category'] == 'supertech-adaptery-kablowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/adaptery_kablowe_2926.html?s=';
$max = 76;
$file = 'supertech-adaptery-kablowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-adaptery-kablowe.txt';
$category = 'Adaptery kablowe do monitorów';
$xml_file = 'supertech-adaptery-kablowe.xml';
}
}
if ($_GET['category'] == 'supertech-filtry-do-ekranow')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/filtry_do_ekranow_943.html?s=';
$max = 21;
$file = 'supertech-filtry-do-ekranow.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-filtry-do-ekranow.txt';
$category = 'Filtry do ekranów';
$xml_file = 'supertech-filtry-do-ekranow.xml';
}
}
if ($_GET['category'] == 'supertech-drukarki-atramentowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/drukarki_atramentowe_234.html?s=';
$max = 3;
$file = 'supertech-drukarki-atramentowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-drukarki-atramentowe.txt';
$category = 'Drukarki atramentowe';
$xml_file = 'supertech-drukarki-atramentowe.xml';
}
}
if ($_GET['category'] == 'supertech-drukarki-laserowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/drukarki_laserowe_235.html?s=';
$max = 12;
$file = 'supertech-drukarki-laserowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-drukarki-laserowe.txt';
$category = 'Drukarki laserowe';
$xml_file = 'supertech-drukarki-laserowe.xml';
}
}
if ($_GET['category'] == 'supertech-urzadzenia-wielofunkcyjne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/wielofunkcyjne_304.html?s=';
$max = 31;
$file = 'supertech-urzadzenia-wielofunkcyjne.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-urzadzenia-wielofunkcyjne.txt';
$category = 'Urzadzenia wielofunkcyjne';
$xml_file = 'supertech-urzadzenia-wielofunkcyjne.xml';
}
}
// drukarki-do-etykiet
if ($_GET['category'] == 'supertech-drukarki-do-etykiet')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/drukarki_etykiet_229.html?s=';
$max = 28;
$file = 'supertech-drukarki-do-etykiet.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-drukarki-do-etykiet.txt';
$category = 'Drukarki do etykiet';
$xml_file = 'supertech-drukarki-do-etykiet.xml';
}
}
// drukarki termiczne
if ($_GET['category'] == 'supertech-drukarki-termiczne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/drukarki_pos_1675.html?s=';
$max = 9;
$file = 'supertech-drukarki-termiczne.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-drukarki-termiczne.txt';
$category = 'Drukarki termiczne';
$xml_file = 'supertech-drukarki-termiczne.xml';
}
}
// myszki-komputerowe
if ($_GET['category'] == 'supertech-myszki-komputerowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/myszki_195.html?s=';
$max = 102;
$file = 'supertech-myszki-komputerowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-myszki-komputerowe.txt';
$category = 'Myszki komputerowe';
$xml_file = 'supertech-myszki-komputerowe.xml';
}
}
// klawiatury-komputerowe
if ($_GET['category'] == 'supertech-klawiatury-komputerowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/klawiatury_194.html?s=';
$max = 97;
$file = 'supertech-klawiatury-komputerowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-klawiatury-komputerowe.txt';
$category = 'Klawiatury komputerowe';
$xml_file = 'supertech-klawiatury-komputerowe.xml';
}
}
// podkladki-pod-mysz
if ($_GET['category'] == 'supertech-podkladki-pod-mysz')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/podkladki_pod_mysz_204.html?s=';
$max = 33;
$file = 'supertech-podkladki-pod-mysz.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-podkladki-pod-mysz.txt';
$category = 'Podkładki pod mysz';
$xml_file = 'supertech-podkladki-pod-mysz.xml';
}
}
// tablety-graficzne
if ($_GET['category'] == 'supertech-tablety-graficzne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/tablety_graficzne_192.html?s=';
$max = 4;
$file = 'supertech-tablety-graficzne.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-tablety-graficzne.txt';
$category = 'Tablety graficzne';
$xml_file = 'supertech-tablety-graficzne.xml';
}
}
// Czytniki kodów kreskowych
if ($_GET['category'] == 'supertech-czytniki-kodow-kreskowych')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/czytniki_kodow_kreskowych_274.html?s=';
$max = 38;
$file = 'supertech-czytniki-kodow-kreskowych.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-czytniki-kodow-kreskowych.txt';
$category = 'Czytniki kodów kreskowych';
$xml_file = 'supertech-czytniki-kodow-kreskowych.xml';
}
}
// Papier biurowy
if ($_GET['category'] == 'supertech-papier-biurowy')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/papier_do_drukarek_atramentowych_714.html?s=';
$max = 2;
$file = 'supertech-papier-biurowy.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-papier-biurowy.txt';
$category = 'Papier biurowy';
$xml_file = 'supertech-papier-biurowy.xml';
}
}
// Tonery do drukarek
if ($_GET['category'] == 'supertech-tonery-do-drukarek')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/kasety_z_tonerem_375.html?s=';
$max = 290;
$file = 'supertech-tonery-do-drukarek.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-tonery-do-drukarek.txt';
$category = 'Tonery do drukarek';
$xml_file = 'supertech-tonery-do-drukarek.xml';
}
}
// Bębny do tonera
if ($_GET['category'] == 'supertech-bebny-do-tonera')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/bebny_do_tonera_381.html?s=';
$max = 16;
$file = 'supertech-bebny-do-tonera.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-bebny-do-tonera.txt';
$category = 'Bębny do tonera';
$xml_file = 'supertech-bebny-do-tonera.xml';
}
}
// Tusze do drukarek
if ($_GET['category'] == 'supertech-tusze-do-drukarek')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/naboje_z_tuszem_377.html?s=';
$max = 171;
$file = 'supertech-tusze-do-drukarek.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-tusze-do-drukarek.txt';
$category = 'Tusze do drukarek';
$xml_file = 'supertech-tusze-do-drukarek.xml';
}
}
// Słuchawki
if ($_GET['category'] == 'supertech-sluchawki')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/sluchawki_i_zestawy_sluchawkowe_1637.html?s=';
$max = 146;
$file = 'supertech-sluchawki.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-sluchawki.txt';
$category = 'Słuchawki';
$xml_file = 'supertech-sluchawki.xml';
}
}
// Mikrofony
if ($_GET['category'] == 'supertech-mikrofony')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/mikrofony_935.html?s=';
$max = 14;
$file = 'supertech-mikrofony.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-mikrofony.txt';
$category = 'Mikrofony';
$xml_file = 'supertech-mikrofony.xml';
}
}
// Głośniki komputerowe
if ($_GET['category'] == 'supertech-glosniki-komputerowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/glosniki_1081.html?s=';
$max = 11;
$file = 'supertech-glosniki-komputerowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-glosniki-komputerowe.txt';
$category = 'Głośniki komputerowe';
$xml_file = 'supertech-glosniki-komputerowe.xml';
}
}
// Zestawy głośników
if ($_GET['category'] == 'supertech-zestawy-glosnikow')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/zestawy_glosnikow_1868.html?s=';
$max = 3;
$file = 'supertech-zestawy-glosnikow.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-zestawy-glosnikow.txt';
$category = 'Zestawy głośników';
$xml_file = 'supertech-zestawy-glosnikow.xml';
}
}
// Kamery internetowe
if ($_GET['category'] == 'supertech-kamery-internetowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/kamery_internetowe_577.html?s=';
$max = 14;
$file = 'supertech-kamery-internetowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-kamery-internetowe.txt';
$category = 'Kamery internetowe';
$xml_file = 'supertech-kamery-internetowe.xml';
}
}
// Serwery Fujitsu
if ($_GET['category'] == 'supertech-serwery-fujitsu')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/serwery_fujitsu_156_15.html?s=';
$max = 5;
$file = 'supertech-serwery-fujitsu.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-serwery-fujitsu.txt';
$category = 'Serwery Fujitsu';
$xml_file = 'supertech-serwery-fujitsu.xml';
}
}
// Serwery Dell
if ($_GET['category'] == 'supertech-serwery-dell')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/serwery_dell_156_292.html?s=';
$max = 3;
$file = 'supertech-serwery-dell.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-serwery-dell.txt';
$category = 'Serwery Dell';
$xml_file = 'supertech-serwery-dell.xml';
}
}
// Serwery HPE
if ($_GET['category'] == 'supertech-serwery-hpe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/serwery_hpe_156_13357.html?s=';
$max = 2;
$file = 'supertech-serwery-hpe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-serwery-hpe.txt';
$category = 'Serwery HPE';
$xml_file = 'supertech-serwery-hpe.xml';
}
}
// Serwery Lenovo
if ($_GET['category'] == 'supertech-serwery-lenovo')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/serwery_lenovo_156_728.html?s=';
$max = 2;
$file = 'supertech-serwery-lenovo.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-serwery-lenovo.txt';
$category = 'Serwery Lenovo';
$xml_file = 'supertech-serwery-lenovo.xml';
}
}
// Serwery Synology
if ($_GET['category'] == 'supertech-serwery-synology')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/serwery_synology_156_1241.html?s=';
$max = 1;
$file = 'supertech-serwery-synology.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-serwery-synology.txt';
$category = 'Serwery Synology';
$xml_file = 'supertech-serwery-synology.xml';
}
}
// Zasilacze UPS
if ($_GET['category'] == 'supertech-zasilacze-ups')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/zasilacze_ups_817.html?s=';
$max = 62;
$file = 'supertech-zasilacze-ups.txt';
unlink( 'supertech-zasilacze-ups.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-zasilacze-ups.txt';
$category = 'Zasilacze UPS serwerowe';
$xml_file = 'supertech-zasilacze-ups.xml';
}
}
// Akumulatory
if ($_GET['category'] == 'supertech-akumulatory')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/akumulatory_2045.html?s=';
$max = 12;
$file = 'supertech-akumulatory.txt';
unlink( 'supertech-akumulatory.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-akumulatory.txt';
$category = 'Akumulatory serwerowe';
$xml_file = 'supertech-akumulatory.xml';
}
}
// Listwy zasilające
if ($_GET['category'] == 'supertech-listwy-zasilajace')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/ochrona_przeciwprzepieciowa_1388.html?s=';
$max = 16;
$file = 'supertech-listwy-zasilajace.txt';
unlink( 'supertech-listwy-zasilajace.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-listwy-zasilajace.txt';
$category = 'Listwy zasilające komputerowe';
$xml_file = 'supertech-listwy-zasilajace.xml';
}
}
// Listwy PDU
if ($_GET['category'] == 'supertech-listwy-pdu')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/rozdzielacze_zasilania_pdu_984.html?s=';
$max = 13;
$file = 'supertech-listwy-pdu.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-listwy-pdu.txt';
$category = 'Listwy PDU';
$xml_file = 'supertech-listwy-pdu.xml';
}
}
// Szafy Rack
if ($_GET['category'] == 'supertech-szafy-rack')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/stojaki_240.html?s=';
$max = 29;
$file = 'supertech-szafy-rack.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-szafy-rack.txt';
$category = 'Szafy Rack';
$xml_file = 'supertech-szafy-rack.xml';
}
}
// Dyski do serwerów
if ($_GET['category'] == 'supertech-dyski-do-serwerow')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/twarde_dyski_219.html?filter[9163]=Server%2FWorkstation&s=';
$max = 12;
$file = 'supertech-dyski-do-serwerow.txt';
unlink( 'supertech-dyski-do-serwerow.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-dyski-do-serwerow.txt';
$category = 'Dyski do serwerów';
$xml_file = 'supertech-dyski-do-serwerow.xml';
}
}
// Napędy taśmowe
if ($_GET['category'] == 'supertech-napedy-tasmowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/napedy_tasmowe_215.html?s=';
$max = 3;
$file = 'supertech-napedy-tasmowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-napedy-tasmowe.txt';
$category = 'Napędy taśmowe';
$xml_file = 'supertech-napedy-tasmowe.xml';
}
}
// Moduły przekaźników sieciowych
if ($_GET['category'] == 'supertech-moduly-przekaznikow-sieciowych')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/moduly_przekaznikow_sieciowych_1869.html?s=';
$max = 28;
$file = 'supertech-moduly-przekaznikow-sieciowych.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-moduly-przekaznikow-sieciowych.txt';
$category = 'Moduły przekaźników sieciowych';
$xml_file = 'supertech-moduly-przekaznikow-sieciowych.xml';
}
}
// Routery Wifi
if ($_GET['category'] == 'supertech-routery-wifi')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/routery_bezprzewodowe_3982.html?s=';
$max = 25;
$file = 'supertech-routery-wifi.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-routery-wifi.txt';
$category = 'Routery Wifi';
$xml_file = 'supertech-routery-wifi.xml';
}
}
// Routery przewodowe
if ($_GET['category'] == 'supertech-routery-przewodowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/routery_przewodowe_244.html?s=';
$max = 8;
$file = 'supertech-routery-przewodowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-routery-przewodowe.txt';
$category = 'Routery przewodowe';
$xml_file = 'supertech-routery-przewodowe.xml';
}
}
// Access Pointy
if ($_GET['category'] == 'supertech-access-pointy')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/punkty_dostepowe_wlan_909.html?s=';
$max = 30;
$file = 'supertech-access-pointy.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-access-pointy.txt';
$category = 'Access Pointy';
$xml_file = 'supertech-access-pointy.xml';
}
}
// WiFi Mesh
if ($_GET['category'] == 'supertech-wifi-mesh')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/siatkowe_systemy_wi_fi_8775.html?s=';
$max = 9;
$file = 'supertech-wifi-mesh.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-wifi-mesh.txt';
$category = 'WiFi Mesh';
$xml_file = 'supertech-wifi-mesh.xml';
}
}
// Switche
if ($_GET['category'] == 'supertech-switche')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/lacza_sieciowe_258.html?s=';
$max = 110;
$file = 'supertech-switche.txt';
unlink('supertech-switche.xml');
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-switche.txt';
$category = 'Switche komputerowe';
$category_id = 1402;
$xml_file = 'supertech-switche.xml';
}
}
// Kable sieciowe
if ($_GET['category'] == 'supertech-kable-sieciowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/kable_sieciowe_883.html?s=';
$max = 361;
$file = 'supertech-kable-sieciowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-kable-sieciowe.txt';
$category = 'Kable sieciowe';
$xml_file = 'supertech-kable-sieciowe.xml';
}
}
// Repeatery WiFi
if ($_GET['category'] == 'supertech-repeatery-wifi')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/przedluzacze_sieciowe_2049.html?s=';
$max = 8;
$file = 'supertech-repeatery-wifi.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-repeatery-wifi.txt';
$category = 'Repeatery WiFi';
$xml_file = 'supertech-repeatery-wifi.xml';
}
}
// Telefony voip
if ($_GET['category'] == 'supertech-telefony-voip')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/telefony_voip_1653.html?s=';
$max = 11;
$file = 'supertech-telefony-voip.txt';
unlink( 'supertech-telefony-voip.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-telefony-voip.txt';
$category = 'Telefony voip';
$category_id = 1511;
$xml_file = 'supertech-telefony-voip.xml';
}
}
// Smartfony Apple
if ($_GET['category'] == 'supertech-smartfony-apple')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/smartfony_apple_1893_9.html?s=';
$max = 24;
$file = 'supertech-smartfony-apple.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-smartfony-apple.txt';
$category = 'Smartfony Apple';
$xml_file = 'supertech-smartfony-apple.xml';
}
}
// Smartfony Samsung
if ($_GET['category'] == 'supertech-smartfony-samsung')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/smartfony_samsung_1893_26.html?s=';
$max = 15;
$file = 'supertech-smartfony-samsung.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-smartfony-samsung.txt';
$category = 'Smartfony Samsung';
$xml_file = 'supertech-smartfony-samsung.xml';
}
}
// Smartfony Xiaomi
if ($_GET['category'] == 'supertech-smartfony-xiaomi')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/smartfony_xiaomi_1893_11434.html?s=';
$max = 8;
$file = 'supertech-smartfony-xiaomi.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-smartfony-xiaomi.txt';
$category = 'Smartfony Xiaomi';
$xml_file = 'supertech-smartfony-xiaomi.xml';
}
}
// Telefony Google
if ($_GET['category'] == 'supertech-telefony-google')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/smartfony_google_1893_2280.html?s=';
$max = 3;
$file = 'supertech-telefony-google.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-telefony-google.txt';
$category = 'Smartfony Google';
$xml_file = 'supertech-telefony-google.xml';
}
}
// Smartfony Motorola
if ($_GET['category'] == 'supertech-smartfony-motorola')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/smartfony_motorola_1893_370.html?s=';
$max = 4;
$file = 'supertech-smartfony-motorola.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-smartfony-motorola.txt';
$category = 'Smartfony Motorola';
$xml_file = 'supertech-smartfony-motorola.xml';
}
}
// Smartfony OnePlus
if ($_GET['category'] == 'supertech-smartfony-oneplus')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/smartfony_oneplus_1893_11630.html?s=';
$max = 2;
$file = 'supertech-smartfony-oneplus.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-smartfony-oneplus.txt';
$category = 'Smartfony OnePlus';
$xml_file = 'supertech-smartfony-oneplus.xml';
}
}
// Smartfony Ulefone
if ($_GET['category'] == 'supertech-smartfony-ulefone')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/smartfony_ulefone_1893_17739.html?s=';
$max = 2;
$file = 'supertech-smartfony-ulefone.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-smartfony-ulefone.txt';
$category = 'Smartfony Ulefone';
$xml_file = 'supertech-smartfony-ulefone.xml';
}
}
// Smartfony Realme
if ($_GET['category'] == 'supertech-smartfony-realme')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/smartfony_realme_1893_27859.html?s=';
$max = 2;
$file = 'supertech-smartfony-realme.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-smartfony-realme.txt';
$category = 'Smartfony Realme';
$xml_file = 'supertech-smartfony-realme.xml';
}
}
// Smartwatche
if ($_GET['category'] == 'supertech-smartwatche')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/smartwatche_i_zegarki_sportowe_2647.html?s=';
$max = 25;
$file = 'supertech-smartwatche.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-smartwatche.txt';
$category = 'Smartwatche';
$xml_file = 'supertech-smartwatche.xml';
}
}
// Smartbandy
if ($_GET['category'] == 'supertech-smartbandy')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/opaski_do_monitorowania_aktywnosci_2871.html?s=';
$max = 3;
$file = 'supertech-smartbandy.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-smartbandy.txt';
$category = 'Smartbandy';
$xml_file = 'supertech-smartbandy.xml';
}
}
// Akcesoria do smartwatchy
if ($_GET['category'] == 'supertech-akcesoria-do-smartwatchy')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/inteligentne_akcesoria_osobiste_3437.html?s=';
$max = 7;
$file = 'supertech-akcesoria-do-smartwatchy.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-akcesoria-do-smartwatchy.txt';
$category = 'Akcesoria do smartwatchy';
$xml_file = 'supertech-akcesoria-do-smartwatchy.xml';
}
}
// Tablety Apple
if ($_GET['category'] == 'supertech-tablety-apple')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/tablety_apple_897_9.html?s=';
$max = 9;
$file = 'supertech-tablety-apple.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-tablety-apple.txt';
$category = 'Tablety Apple';
$xml_file = 'supertech-tablety-apple.xml';
}
}
// Tablety Samsung
if ($_GET['category'] == 'supertech-tablety-samsung')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/tablety_samsung_897_26.html?s=';
$max = 11;
$file = 'supertech-tablety-samsung.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-tablety-samsung.txt';
$category = 'Tablety Samsung';
$xml_file = 'supertech-tablety-samsung.xml';
}
}
// Tablety Microsoft
if ($_GET['category'] == 'supertech-tablety-microsoft')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/tablety_microsoft_897_100.html?s=';
$max = 4;
$file = 'supertech-tablety-microsoft.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-tablety-microsoft.txt';
$category = 'Tablety Microsoft';
$xml_file = 'supertech-tablety-microsoft.xml';
}
}
// Tablety Lenovo
if ($_GET['category'] == 'supertech-tablety-lenovo')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/tablety_lenovo_897_728.html?s=';
$max = 4;
$file = 'supertech-tablety-lenovo.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-tablety-lenovo.txt';
$category = 'Tablety Lenovo';
$xml_file = 'supertech-tablety-lenovo.xml';
}
}
// Tablety Zebra
if ($_GET['category'] == 'supertech-tablety-zebra')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/tablety_zebra_897_1535.html?s=';
$max = 2;
$file = 'supertech-tablety-zebra.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-tablety-zebra.txt';
$category = 'Tablety Zebra';
$xml_file = 'supertech-tablety-zebra.xml';
}
}
// Tablety Xiaomi
if ($_GET['category'] == 'supertech-tablety-xiaomi')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/tablety_xiaomi_897_11434.html?s=';
$max = 1;
$file = 'supertech-tablety-xiaomi.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-tablety-xiaomi.txt';
$category = 'Tablety Xiaomi';
$xml_file = 'supertech-tablety-xiaomi.xml';
}
}
// Tablety Honywell
if ($_GET['category'] == 'supertech-tablety-honywell')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/tablety_honeywell_897_1143.html?s=';
$max = 1;
$file = 'supertech-tablety-honywell.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-tablety-honywell.txt';
$category = 'Tablety Honywell';
$xml_file = 'supertech-tablety-honywell.xml';
}
}
// Tablety Getac
if ($_GET['category'] == 'supertech-tablety-getac')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/tablety_getac_897_4042.html?s=';
$max = 1;
$file = 'supertech-tablety-getac.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-tablety-getac.txt';
$category = 'Tablety Getac';
$xml_file = 'supertech-tablety-getac.xml';
}
}
// Etui na telefony
if ($_GET['category'] == 'supertech-etui-na-telefony')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/pokrowce_na_telefony_komorkowe_2779.html?s=';
$max = 23;
$file = 'supertech-etui-na-telefony.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-etui-na-telefony.txt';
$category = 'Etui na telefony';
$xml_file = 'supertech-etui-na-telefony.xml';
}
}
// Etui na tablety
if ($_GET['category'] == 'supertech-etui-na-tablety')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/etui_na_tablety_2774.html?s=';
$max = 13;
$file = 'supertech-etui-na-tablety.txt';
unlink( 'supertech-etui-na-tablety.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-etui-na-tablety.txt';
$category = 'Etui na tablety';
$category_id = 1531;
$xml_file = 'supertech-etui-na-tablety.xml';
}
}
// Folie i szkła
if ($_GET['category'] == 'supertech-folie-i-szkla')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/ochraniacze_ekranu_do_telefonow_komorkowych_1568.html?s=';
$max = 17;
$file = 'supertech-folie-i-szkla.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-folie-i-szkla.txt';
$category = 'Folie i szkła';
$xml_file = 'supertech-folie-i-szkla.xml';
}
}
// Głośniki przenośne
if ($_GET['category'] == 'supertech-glosniki-przenosne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/glosniki_przenosne_2315.html?s=';
$max = 20;
$file = 'supertech-glosniki-przenosne.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-glosniki-przenosne.txt';
$category = 'Głośniki przenośne';
$xml_file = 'supertech-glosniki-przenosne.xml';
}
}
// Karty pamięci do telefonów/tabletów
if ($_GET['category'] == 'supertech-karty-pamieci-do-telefonow-tabletow')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/pamieci_flash_902.html?s=';
$max = 40;
$file = 'supertech-karty-pamieci-do-telefonow-tabletow.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-karty-pamieci-do-telefonow-tabletow.txt';
$category = 'Karty pamięci do telefonów/tabletów';
$xml_file = 'supertech-karty-pamieci-do-telefonow-tabletow.xml';
}
}
// Ładowarki sieciowe
if ($_GET['category'] == 'supertech-ladowarki-sieciowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/ladowarki_do_urzadzen_przenosnych_1399.html?s=';
$max = 69;
$file = 'supertech-ladowarki-sieciowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-ladowarki-sieciowe.txt';
$category = 'Ładowarki sieciowe';
$xml_file = 'supertech-ladowarki-sieciowe.xml';
}
}
// Powerbanki
if ($_GET['category'] == 'supertech-powerbanki')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/banki_mocy_2778.html?s=';
$max = 24;
$file = 'supertech-powerbanki.txt';
unlink( 'supertech-powerbanki.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-powerbanki.txt';
$category = 'Powerbanki';
$category_id = 1535;
$xml_file = 'supertech-powerbanki.xml';
}
}
// Pendrive
if ($_GET['category'] == 'supertech-pendrive')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/pamiec_usb_1554.html?s=';
$max = 61;
$file = 'supertech-pendrive.txt';
unlink( 'supertech-pendrive.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-pendrive.txt';
$category = 'Pendrive';
$category_id = 1536;
$xml_file = 'supertech-pendrive.xml';
}
}
// Uchwyty do telefonów
if ($_GET['category'] == 'supertech-uchwyty-do-telefonow')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/uchwyty_998.html?filter[8747]=Mobile+phone%2FSmartphone?s=';
$max = 4;
$file = 'supertech-uchwyty-do-telefonow.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-uchwyty-do-telefonow.txt';
$category = 'Uchwyty do telefonów';
$xml_file = 'supertech-uchwyty-do-telefonow.xml';
}
}
// Telewizory LG
if ($_GET['category'] == 'supertech-telewizory-lg')
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://supertech.pl/zobacz/telewizory_lg_1584_293.html?s=';
$max = 1;
$file = 'supertech-telewizory-lg.txt';
unlink( 'supertech-telewizory-lg.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'supertech-telewizory-lg.txt';
$category = 'Telewizory LG';
$xml_file = 'supertech-telewizory-lg.xml';
}
}
// Telewizory Samsung
if ($_GET['category'] == 'supertech-telewizory-samsung')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/telewizory_samsung_1584_26.html?s=';
$max = 3;
$file = 'supertech-telewizory-samsung.txt';
unlink('supertech-telewizory-samsung.xml');
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-telewizory-samsung.txt';
$category = 'Telewizory Samsung';
$xml_file = 'supertech-telewizory-samsung.xml';
}
}
// Telewizory Philips
if ($_GET['category'] == 'supertech-telewizory-philips')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/telewizory_philips_1584_25.html?s=';
$max = 4;
$file = 'supertech-telewizory-philips.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-telewizory-philips.txt';
$category = 'Telewizory Philips';
$xml_file = 'supertech-telewizory-philips.xml';
}
}
// Telewizory TCL
if ($_GET['category'] == 'supertech-telewizory-tcl')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/telewizory_tcl_1584_13380.html?s=';
$max = 1;
$file = 'supertech-telewizory-tcl.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-telewizory-tcl.txt';
$category = 'Telewizory TCL';
$xml_file = 'supertech-telewizory-tcl.xml';
}
}
// Telewizory Sony
if ($_GET['category'] == 'supertech-telewizory-sony')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/telewizory_sony_1584_5.html?s=';
$max = 2;
$file = 'supertech-telewizory-sony.txt';
unlink( 'supertech-telewizory-sony.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-telewizory-sony.txt';
$category = 'Telewizory Sony';
$xml_file = 'supertech-telewizory-sony.xml';
}
}
// Telewizory Toshiba
if ($_GET['category'] == 'supertech-telewizory-toshiba')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/telewizory_toshiba_1584_2.html?s=';
$max = 1;
$file = 'supertech-telewizory-toshiba.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-telewizory-toshiba.txt';
$category = 'Telewizory Toshiba';
$xml_file = 'supertech-telewizory-toshiba.xml';
}
}
// Telewizory Xiaomi
if ($_GET['category'] == 'supertech-telewizory-xiaomi')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/telewizory_xiaomi_1584_11434.html?s=';
$max = 1;
$file = 'supertech-telewizory-xiaomi.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-telewizory-xiaomi.txt';
$category = 'Telewizory Xiaomi';
$xml_file = 'supertech-telewizory-xiaomi.xml';
}
}
// Telewizory Hisense
if ($_GET['category'] == 'supertech-telewizory-hiseense')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/telewizory_hisense_1584_1407.html?s=';
$max = 1;
$file = 'supertech-telewizory-hisense.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-telewizory-hisense.txt';
$category = 'Telewizory Hisense';
$xml_file = 'supertech-telewizory-hisense.xml';
}
}
// Telewizory Sharp
if ($_GET['category'] == 'supertech-telewizory-sharp')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/telewizory_sharp_1584_192.html?s=';
$max = 1;
$file = 'supertech-telewizory-sharp.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-telewizory-sharp.txt';
$category = 'Telewizory Sharp';
$xml_file = 'supertech-telewizory-sharp.xml';
}
}
// Telewizory Panasonic
if ( $_GET['category'] == 'supertech-telewizory-panasonic' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/zobacz/telewizory_panasonic_1584_263.html?s=';
$max = 1;
$file = 'supertech-telewizory-panasonic.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-telewizory-panasonic.txt';
$category = 'Telewizory Panasonic';
$xml_file = 'supertech-telewizory-panasonic.xml';
}
}
// Projektory
if ($_GET['category'] == 'supertech-projektory')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/projektory_danych_567.html?s=';
$max = 19;
$file = 'supertech-projektory.txt';
unlink( 'supertech-projektory.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-projektory.txt';
$category = 'Projektory';
$category_id = 1548;
$xml_file = 'supertech-projektory.xml';
}
}
// Ekrany do projektorów
if ($_GET['category'] == 'supertech-ekrany-do-projektorow')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/ekrany_do_rzutnikow_561.html?s=';
$max = 4;
$file = 'supertech-ekrany-do-projektorow.txt';
unlink('supertech-ekrany-do-projektorow.xml');
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-ekrany-do-projektorow.txt';
$category = 'Ekrany do projektorów';
$xml_file = 'supertech-ekrany-do-projektorow.xml';
}
}
// Uchwyty do projektorów
if ($_GET['category'] == 'supertech-uchwyty-do-projektorow')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/uchwyty_do_montazu_projektorow_1761.html?s=';
$max = 6;
$file = 'supertech-uchwyty-do-projektorow.txt';
unlink('supertech-uchwyty-do-projektorow.xml');
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-uchwyty-do-projektorow.txt';
$category = 'Uchwyty do projektorów';
$xml_file = 'supertech-uchwyty-do-projektorow.xml';
}
}
// Wskaźniki
if ($_GET['category'] == 'supertech-wskazniki')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/wskazniki_559.html?s=';
$max = 1;
$file = 'supertech-wskazniki.txt';
unlink('supertech-wskazniki.xml');
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-wskazniki.txt';
$category = 'Wskaźniki';
$xml_file = 'supertech-wskazniki.xml';
}
}
// Soundbary
if ($_GET['category'] == 'supertech-soundbary')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/moduly_glosnikow_1870.html?s=';
$max = 4;
$file = 'supertech-soundbary.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-soundbary.txt';
$category = 'Soundbary';
$xml_file = 'supertech-soundbary.xml';
}
}
// Zestawy głośników
if ($_GET['category'] == 'supertech-zestawy-glosnikow')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/zestawy_glosnikow_1868.html?s=';
$max = 3;
$file = 'supertech-zestawy-glosnikow.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-zestawy-glosnikow.txt';
$category = 'Zestawy głośników';
$xml_file = 'supertech-zestawy-glosnikow.xml';
}
}
// Miniwieże
if ($_GET['category'] == 'supertech-miniwieze')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/domowe_urzadzenia_audio_miniwieze_1339.html?s=';
$max = 3;
$file = 'supertech-miniwieze.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-miniwieze.txt';
$category = 'Miniwieże';
$xml_file = 'supertech-miniwieze.xml';
}
}
// Kable audio
if ($_GET['category'] == 'supertech-kable-audio')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/kable_audio_2917.html?s=';
$max = 29;
$file = 'supertech-kable-audio.txt';
unlink( 'supertech-kable-audio.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-kable-audio.txt';
$category = 'Kable audio';
$category_id = 1554;
$xml_file = 'supertech-kable-audio.xml';
}
}
// Uchwyty do TV
if ($_GET['category'] == 'supertech-uchwyty-do-tv')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/uchwyty_do_telewizorow_1056.html?s=';
$max = 40;
$file = 'supertech-uchwyty-do-tv.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-uchwyty-do-tv.txt';
$category = 'Uchwyty do TV';
$xml_file = 'supertech-uchwyty-do-tv.xml';
}
}
// Systemy operacyjne
if ($_GET['category'] == 'supertech-systemy-operacyjne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/systemy_operacyjne_7.html?s=';
$max = 7;
$file = 'supertech-systemy-operacyjne.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-systemy-operacyjne.txt';
$category = 'Systemy operacyjne';
$xml_file = 'supertech-systemy-operacyjne.xml';
}
}
// Pakiety biurowe
if ($_GET['category'] == 'supertech-pakiety-biurowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/pakiety_biurowe_12.html?s=';
$max = 4;
$file = 'supertech-pakiety-biurowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-pakiety-biurowe.txt';
$category = 'Pakiety biurowe';
$xml_file = 'supertech-pakiety-biurowe.xml';
}
}
// Antywirusowe
if ($_GET['category'] == 'supertech-antywirusowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://supertech.pl/kategoria/programy_antywirusowe_i_zabezpieczajace_62.html?s=';
$max = 31;
$file = 'supertech-antywirusowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'supertech-antywirusowe.txt';
$category = 'Antywirusowe';
$xml_file = 'supertech-antywirusowe.xml';
}
}
if ( $_GET['category'] == 'promitel-kamery-ip-cube' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://promitel.pl/kamery-ip-cube-kostka-,s1001,c750,100,[page],pl.html';
$max = 2;
$file = 'promitel-kamery-ip-cube.txt';
unlink( 'promitel-kamery-ip-cube.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'promitel-kamery-ip-cube.txt';
$category = 'Kamery IP specjalne';
$xml_file = 'promitel-kamery-ip-cube.xml';
}
}
if ( $_GET['category'] == 'promitel-kamery-ip-box' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://promitel.pl/kamery-ip-box-kompaktowe-,s1001,c751,100,[page],pl.html';
$max = 3;
$file = 'promitel-kamery-ip-box.txt';
unlink( 'promitel-kamery-ip-box.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'promitel-kamery-ip-box.txt';
$category = 'Kamery IP kompaktowe';
$xml_file = 'promitel-kamery-ip-box.xml';
}
}
if ( $_GET['category'] == 'promitel-kamery-ip-kopulkowe' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://promitel.pl/kamery-ip-kopulkowe,s1001,c752,100,[page],pl.html';
$max = 10;
$file = 'promitel-kamery-ip-kopulkowe.txt';
unlink( 'promitel-kamery-ip-kopulkowe.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'promitel-kamery-ip-kopulkowe.txt';
$category = 'Kamery IP kopułkowe';
$xml_file = 'promitel-kamery-ip-kopulkowe.xml';
}
}
if ( $_GET['category'] == 'promitel-kamery-ip-turret' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://promitel.pl/kamery-ip-turret,s1001,c753,100,[page],pl.html';
$max = 5;
$file = 'promitel-kamery-ip-turret.txt';
unlink( 'promitel-kamery-ip-turret.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'promitel-kamery-ip-turret.txt';
$category = 'Kamery IP kopułkowe';
$xml_file = 'promitel-kamery-ip-turret.xml';
}
}
if ( $_GET['category'] == 'promitel-kamery-ip-tubowe' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://promitel.pl/kamery-ip-tubowe,s1001,c754,100,[page],pl.html';
$max = 10;
$file = 'promitel-kamery-ip-tubowe.txt';
unlink( 'promitel-kamery-ip-tubowe.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'promitel-kamery-ip-tubowe.txt';
$category = 'Kamery IP tubowe';
$xml_file = 'promitel-kamery-ip-tubowe.xml';
}
}
if ( $_GET['category'] == 'promitel-kamery-ip-fisheye' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://promitel.pl/kamery-ip-fisheye-rybie-oko-,s1001,c755,100,[page],pl.html';
$max = 2;
$file = 'promitel-kamery-ip-fisheye.txt';
unlink( 'promitel-kamery-ip-fisheye.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'promitel-kamery-ip-fisheye.txt';
$category = 'Kamery IP fisheye';
$xml_file = 'promitel-kamery-ip-fisheye.xml';
}
}
if ( $_GET['category'] == 'promitel-kamery-ip-pinhole' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://promitel.pl/kamery-ip-pinhole-miniaturowe-,s1001,c756,100,[page],pl.html';
$max = 2;
$file = 'promitel-kamery-ip-pinhole.txt';
unlink( 'promitel-kamery-ip-pinhole.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'promitel-kamery-ip-pinhole.txt';
$category = 'Kamery IP specjalne';
$xml_file = 'promitel-kamery-ip-pinhole.xml';
}
}
if ( $_GET['category'] == 'promitel-kamery-ip-obrotowe' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://promitel.pl/kamery-ip-obrotowe-ptz,s1001,c757,100,[page],pl.html';
$max = 6;
$file = 'promitel-kamery-ip-obrotowe.txt';
unlink( 'promitel-kamery-ip-obrotowe.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'promitel-kamery-ip-obrotowe.txt';
$category = 'Kamery IP obrotowe';
$xml_file = 'promitel-kamery-ip-obrotowe.xml';
}
}
if ($_GET['category'] == 'promitel-kamery-ip-panoramiczne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://promitel.pl/kamery-ip-panoramiczne,s1001,c758,100,[page],pl.html';
$max = 2;
$file = 'promitel-kamery-ip-panoramiczne.txt';
unlink( 'promitel-kamery-ip-panoramiczne.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'promitel-kamery-ip-panoramiczne.txt';
$category = 'Kamery IP 180';
$xml_file = 'promitel-kamery-ip-panoramiczne.xml';
}
}
if ($_GET['category'] == 'promitel-kamery-ip-lpr')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://promitel.pl/kamery-ip-lpr-%2F-anpr,s1001,c921,100,[page],pl.html';
$max = 2;
$file = 'promitel-kamery-ip-lpr.txt';
unlink( 'promitel-kamery-ip-lpr.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'promitel-kamery-ip-lpr.txt';
$category = 'Systemy identyfikacji tablic LPR';
$xml_file = 'promitel-kamery-ip-lpr.xml';
}
}
if ( $_GET['category'] == 'promitel-kamery-ip-wifi' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://promitel.pl/kamery-ip-wifi,s1001,c759,100,[page],pl.html';
$max = 2;
$file = 'promitel-kamery-ip-wifi.txt';
unlink( 'promitel-kamery-ip-wifi.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'promitel-kamery-ip-wifi.txt';
$category = 'Kamery IP WiFi';
$xml_file = 'promitel-kamery-ip-wifi.xml';
}
}
if ( $_GET['category'] == 'promitel-kamery-ip-liczace' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://promitel.pl/kamery-ip-do-zliczania-osob,s1001,c760,100,[page],pl.html';
$max = 2;
$file = 'promitel-kamery-ip-liczace.txt';
unlink( 'promitel-kamery-ip-liczace.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'promitel-kamery-ip-liczace.txt';
$category = 'Kamery IP liczace';
$xml_file = 'promitel-kamery-ip-liczace.xml';
}
}
// termowizyjne
if ( $_GET['category'] == 'promitel-kamery-ip-termowizyjne' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://promitel.pl/kamery-ip-termowizyjne-i-bi-spektralne,s1001,c761,100,[page],pl.html';
$max = 2;
$file = 'promitel-kamery-ip-termowizyjne.txt';
unlink( 'promitel-kamery-ip-termowizyjne.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'promitel-kamery-ip-termowizyjne.txt';
$category = 'Kamery IP termowizyjne';
$xml_file = 'promitel-kamery-ip-termowizyjne.xml';
}
}
if ($_GET['category'] == 'promitel-kamery-ip-specjalne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://promitel.pl/kamery-ip-specjalne,s1001,cp762,100,[page],pl.html';
$max = 4;
$file = 'promitel-kamery-ip-specjalne.txt';
unlink( 'promitel-kamery-ip-specjalne.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'promitel-kamery-ip-specjalne.txt';
$category = 'Kamery IP specjalne';
$xml_file = 'promitel-kamery-ip-specjalne.xml';
}
}
if ($_GET['category'] == 'promitel-kamery-ip-termowizyjne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://promitel.pl/kamery-ip-termowizyjne-i-bi-spektralne,s1001,c761/,[page],avail-qty-desc/1215-325182/pl.html';
$max = 2;
$file = 'promitel-kamery-ip-termowizyjne.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'promitel-kamery-ip-termowizyjne.txt';
$category = 'Kamery IP termowizja';
$xml_file = 'promitel-kamery-ip-termowizyjne.xml';
}
}
if ($_GET['category'] == 'promitel-rejestratory-sieciowe-4')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://promitel.pl/rejestratory-nvr-ip-4-kanalowe,s1001,c764,100,[page],pl.html';
$max = 2;
$file = 'promitel-rejestratory-sieciowe-4.txt';
unlink( 'promitel-rejestratory-sieciowe-4.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'promitel-rejestratory-sieciowe-4.txt';
$category = 'Rejestratory IP 4 kanałowe';
$xml_file = 'promitel-rejestratory-sieciowe-4.xml';
}
}
if ($_GET['category'] == 'promitel-rejestratory-sieciowe-8')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://promitel.pl/rejestratory-nvr-ip-8-kanalowe,s1001,c765,100,[page],pl.html';
$max = 2;
$file = 'promitel-rejestratory-sieciowe-8.txt';
unlink( 'promitel-rejestratory-sieciowe-8.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'promitel-rejestratory-sieciowe-8.txt';
$category = 'Rejestratory IP 8 kanałowe';
$xml_file = 'promitel-rejestratory-sieciowe-8.xml';
}
}
if ($_GET['category'] == 'promitel-rejestratory-sieciowe-16')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://promitel.pl/rejestratory-nvr-ip-16-kanalowe,s1001,c766,100,[page],pl.html';
$max = 2;
$file = 'promitel-rejestratory-sieciowe-16.txt';
unlink( 'promitel-rejestratory-sieciowe-16.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'promitel-rejestratory-sieciowe-16.txt';
$category = 'Rejestratory IP 16 kanałowe';
$xml_file = 'promitel-rejestratory-sieciowe-16.xml';
}
}
if ( $_GET['category'] == 'promitel-rejestratory-sieciowe-32' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://promitel.pl/rejestratory-nvr-ip-32-kanalowe,s1001,c767,100,[page],pl.html';
$max = 2;
$file = 'promitel-rejestratory-sieciowe-32.txt';
unlink( 'promitel-rejestratory-sieciowe-32.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'promitel-rejestratory-sieciowe-32.txt';
$category = 'Rejestratory IP 32 kanałowe';
$xml_file = 'promitel-rejestratory-sieciowe-32.xml';
}
}
if ( $_GET['category'] == 'promitel-rejestratory-sieciowe-64' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://promitel.pl/rejestratory-nvr-ip-64-kanalowe,s1001,c768,100,[page],pl.html';
$max = 2;
$file = 'promitel-rejestratory-sieciowe-64.txt';
unlink( 'promitel-rejestratory-sieciowe-64.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'promitel-rejestratory-sieciowe-64.txt';
$category = 'Rejestratory IP 64 kanałowe';
$xml_file = 'promitel-rejestratory-sieciowe-64.xml';
}
}
if ( $_GET['category'] == 'promitel-rejestratory-sieciowe-128' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://promitel.pl/rejestratory-nvr-ip-128-kanalowe,s1001,c769,100,[page],pl.html';
$max = 2;
$file = 'promitel-rejestratory-sieciowe-128.txt';
unlink( 'promitel-rejestratory-sieciowe-128.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'promitel-rejestratory-sieciowe-128.txt';
$category = 'Rejestratory IP 128 kanałowe';
$xml_file = 'promitel-rejestratory-sieciowe-128.xml';
}
}
if ( $_GET['category'] == 'promitel-rejestratory-sieciowe-256' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://promitel.pl/rejestratory-nvr-ip-256-kanalowe-i-wieksze,s1001,c770,100,[page],pl.html';
$max = 2;
$file = 'promitel-rejestratory-sieciowe-256.txt';
unlink( 'promitel-rejestratory-sieciowe-256.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'promitel-rejestratory-sieciowe-256.txt';
$category = 'Rejestratory IP 256 kanałowe';
$xml_file = 'promitel-rejestratory-sieciowe-256.xml';
}
}
if ( $_GET['category'] == 'rettpol-kamery-ip-kopulkowe' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://www.rettpol.pl/kamery-ip-kopulkowe/s-3/producent_2-bcs+dahua+hikvision?page=';
$max = 14;
$file = 'rettpol-kamery-ip-kopulkowe.txt';
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'rettpol-kamery-ip-kopulkowe.txt';
$category = 'Kamery IP kopułkowe';
$xml_file = 'rettpol-kamery-ip-kopulkowe.xml';
}
}
if ( $_GET['category'] == 'rettpol-kamery-ip-tubowe' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.rettpol.pl/kamery-ip-tubowe/s-3/producent_2-bcs+dahua+hikvision?page=';
$max = 12;
$file = 'rettpol-kamery-ip-tubowe.txt';
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'rettpol-kamery-ip-tubowe.txt';
$category = 'Kamery IP tubowe';
$xml_file = 'rettpol-kamery-ip-tubowe.xml';
}
}
if ( $_GET['category'] == 'rettpol-kamery-ip-kompaktowe' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.rettpol.pl/kamery-ip-kompaktowe/s-3/producent_2-bcs?page=';
$max = 2;
$file = 'rettpol-kamery-ip-kompaktowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'rettpol-kamery-ip-kompaktowe.txt';
$category = 'Kamery IP kompaktowe';
$xml_file = 'rettpol-kamery-ip-kompaktowe.xml';
}
}
if ( $_GET['category'] == 'rettpol-kamery-ip-obrotowe' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.rettpol.pl/kamery-ip-obrotowe/s-3/producent_2-bcs+dahua+hikvision?page=';
$max = 5;
$file = 'rettpol-kamery-ip-obrotowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'rettpol-kamery-ip-obrotowe.txt';
$category = 'Kamery IP obrotowe';
$xml_file = 'rettpol-kamery-ip-obrotowe.xml';
}
}
if ( $_GET['category'] == 'rettpol-kamery-ip-specjalne' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.rettpol.pl/kamery-ip-specjalne/s-3/producent_2-bcs+dahua+hikvision?page=';
$max = 2;
$file = 'rettpol-kamery-ip-specjalne.txt';
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'rettpol-kamery-ip-specjalne.txt';
$category = 'Kamery IP specjalne';
$xml_file = 'rettpol-kamery-ip-specjalne.xml';
}
}
if ( $_GET['category'] == 'rettpol-kamery-ip-lpr' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.rettpol.pl/systemy-identyfikacji-tablic-lpr/s-3/producent_2-bcs+dahua+hikvision?page=';
$max = 1;
$file = 'rettpol-kamery-ip-lpr.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'rettpol-kamery-ip-lpr.txt';
$category = 'Systemy identyfikacji tablic LPR';
$xml_file = 'rettpol-kamery-ip-lpr.xml';
}
}
if ($_GET['category'] == 'rettpol-kamery-analogowe-kopulkowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.rettpol.pl/kamery-kopulkowe?page=';
$max = 6;
$file = 'rettpol-kamery-analogowe-kopulkowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = file_get_contents('rettpol-kamery-analogowe-kopulkowe.txt');
$category = 'Kamery analogowe kopulkowe';
$xml_file = 'rettpol-kamery-analogowe-kopulkowe.xml';
}
}
if ($_GET['category'] == 'rettpol-kamery-analogowe-tubowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.rettpol.pl/kamery-tubowe?page=';
$max = 6;
$file = 'rettpol-kamery-analogowe-tubowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = file_get_contents('rettpol-kamery-analogowe-tubowe.txt');
$category = 'Kamery analogowe tubowe';
$xml_file = 'rettpol-kamery-analogowe-tubowe.xml';
}
}
if ($_GET['category'] == 'rettpol-kamery-analogowe-kompaktowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.rettpol.pl/kamery-kompaktowe?page=';
$max = 1;
$file = 'rettpol-kamery-analogowe-kompaktowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = file_get_contents('rettpol-kamery-analogowe-kompaktowe.txt');
$category = 'Kamery analogowe kompaktowe';
$xml_file = 'rettpol-kamery-analogowe-kompaktowe.xml';
}
}
if ($_GET['category'] == 'rettpol-kamery-analogowe-obrotowe')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.rettpol.pl/kamery-obrotowe?page=';
$max = 1;
$file = 'rettpol-kamery-analogowe-obrotowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'rettpol-kamery-analogowe-obrotowe.txt';
$category = 'Kamery analogowe obrotowe';
$xml_file = 'rettpol-kamery-analogowe-obrotowe.xml';
}
}
if ($_GET['category'] == 'rettpol-kamery-analogowe-fotopulapki')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.rettpol.pl/kamery-gsm?page=';
$max = 1;
$file = 'rettpol-kamery-analogowe-fotopulapki.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'rettpol-kamery-analogowe-fotopulapki.txt';
$category = 'Fotopułapki';
$xml_file = 'rettpol-kamery-analogowe-fotopulapki.xml';
}
}
if ( $_GET['category'] == 'rettpol-rejestratory-ip-4-kanalowe' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://www.rettpol.pl/rejestratory-ip-4-kanalowe?page=';
$max = 4;
$file = 'rettpol-rejestratory-ip-4-kanalowe.txt';
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'rettpol-rejestratory-ip-4-kanalowe.txt';
$category = 'Rejestratory IP 4 kanałowe';
$xml_file = 'rettpol-rejestratory-ip-4-kanalowe.xml';
}
}
if ( $_GET['category'] == 'rettpol-rejestratory-ip-8-kanalowe' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.rettpol.pl/rejestratory-ip-8-kanalowe?page=';
$max = 6;
$file = 'rettpol-rejestratory-ip-8-kanalowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'rettpol-rejestratory-ip-8-kanalowe.txt';
$category = 'Rejestratory IP 8 kanałowe';
$xml_file = 'rettpol-rejestratory-ip-8-kanalowe.xml';
}
}
if ( $_GET['category'] == 'rettpol-rejestratory-ip-16-kanalowe' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.rettpol.pl/rejestratory-ip-16-kanalowe?page=';
$max = 6;
$file = 'rettpol-rejestratory-ip-16-kanalowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'rettpol-rejestratory-ip-16-kanalowe.txt';
$category = 'Rejestratory IP 16 kanałowe';
$xml_file = 'rettpol-rejestratory-ip-16-kanalowe.xml';
}
}
if ( $_GET['category'] == 'rettpol-rejestratory-ip-32-kanalowe' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.rettpol.pl/rejestratory-ip-32-kanalowe?page=';
$max = 4;
$file = 'rettpol-rejestratory-ip-32-kanalowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'rettpol-rejestratory-ip-32-kanalowe.txt';
$category = 'Rejestratory IP 32 kanałowe';
$xml_file = 'rettpol-rejestratory-ip-32-kanalowe.xml';
}
}
if ( $_GET['category'] == 'rettpol-rejestratory-ip-64-kanalowe' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.rettpol.pl/rejestratory-ip-64-kanalowe?page=';
$max = 2;
$file = 'rettpol-rejestratory-ip-64-kanalowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'rettpol-rejestratory-ip-64-kanalowe.txt';
$category = 'Rejestratory IP 64 kanałowe';
$xml_file = 'rettpol-rejestratory-ip-64-kanalowe.xml';
}
}
if ( $_GET['category'] == 'rettpol-rejestratory-ip-128-kanalowe' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.rettpol.pl/rejestratory-ip-128-kanalowe?page=';
$max = 2;
$file = 'rettpol-rejestratory-ip-128-kanalowe.txt';
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'rettpol-rejestratory-ip-128-kanalowe.txt';
$category = 'Rejestratory IP 128 kanałowe';
$xml_file = 'rettpol-rejestratory-ip-128-kanalowe.xml';
}
}
if ($_GET['category'] == 'vidis-rozwiazania-audio')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/367/rozwiazania-audio.html?p=';
$max = 20;
$file = 'vidis-rozwiazania-audio.txt';
unlink( 'vidis-rozwiazania-audio.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-rozwiazania-audio.txt';
$category = 'Rozwiązania audio';
$xml_file = 'vidis-rozwiazania-audio.xml';
}
}
if ($_GET['category'] == 'vidis-monitory-interaktywne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/355/monitory-interaktywne.html?p=';
$max = 3;
$file = 'vidis-monitory-interaktywne.txt';
unlink( 'vidis-monitory-interaktywne.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-monitory-interaktywne.txt';
$category = 'Monitory interaktywne';
$xml_file = 'vidis-monitory-interaktywne.xml';
}
}
if ($_GET['category'] == 'vidis-tablice-interaktywne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/242/tablice-interaktywne.html?p=';
$max = 1;
$file = 'vidis-tablice-interaktywne.txt';
unlink( 'vidis-tablice-interaktywne.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-tablice-interaktywne.txt';
$category = 'Tablice interaktywne';
$xml_file = 'vidis-tablice-interaktywne.xml';
}
}
if ($_GET['category'] == 'vidis-projektory')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/187/projektory.html?p=';
$max = 9;
$file = 'vidis-projektory.txt';
unlink( 'vidis-projektory.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-projektory.txt';
$category = 'Projektory';
$xml_file = 'vidis-projektory.xml';
}
}
if ($_GET['category'] == 'vidis-ekrany')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/195/ekrany.html?p=';
$max = 4;
$file = 'vidis-ekrany.txt';
unlink( 'vidis-ekrany.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-ekrany.txt';
$category = 'Ekrany';
$xml_file = 'vidis-ekrany.xml';
}
}
if ($_GET['category'] == 'vidis-wideokonferencje')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/277/wideokonferencje-i-nagrywanie.html?p=';
$max = 4;
$file = 'vidis-wideokonferencje.txt';
unlink( 'vidis-wideokonferencje.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-wideokonferencje.txt';
$category = 'Wideokonferencje i nagrywanie';
$xml_file = 'vidis-wideokonferencje.xml';
}
}
if ($_GET['category'] == 'vidis-monitory-informacyjne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/259/monitory-informacyjne.html?p=';
$max = 5;
$file = 'vidis-monitory-informacyjne.txt';
unlink( 'vidis-monitory-informacyjne.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-monitory-informacyjne.txt';
$category = 'Monitory informacyjne';
$xml_file = 'vidis-monitory-informacyjne.xml';
}
}
if ($_GET['category'] == 'vidis-wizualizery')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/249/wizualizery.html?p=';
$max = 3;
$file = 'vidis-wizualizery.txt';
unlink( 'vidis-wizualizery.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-wizualizery.txt';
$category = 'Wizualizery';
$xml_file = 'vidis-wizualizery.xml';
}
}
// szafki do ładowania laptopów
if ( $_GET['category'] == 'vidis-szafki-do-ladowania-laptopow' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://www.vidis.pl/category/464/szafki-do-ladowania-laptopow.html?p=';
$max = 2;
$file = 'vidis-szafki-do-ladowania-laptopow.txt';
unlink( 'vidis-szafki-do-ladowania-laptopow.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vidis-szafki-do-ladowania-laptopow.txt';
$category = 'Szafki do ładowania laptopów';
$xml_file = 'vidis-szafki-do-ladowania-laptopow.xml';
}
}
// systemy-do-testow-i-glosowan
if ( $_GET['category'] == 'vidis-systemy-do-testow-i-glosowan' )
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/248/systemy-do-testow-i-glosowan.html?p=';
$max = 2;
$file = 'vidis-systemy-do-testow-i-glosowan.txt';
unlink( 'vidis-systemy-do-testow-i-glosowan.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-systemy-do-testow-i-glosowan.txt';
$category = 'Systemy do testow i glosowan';
$xml_file = 'vidis-systemy-do-testow-i-glosowan.xml';
}
}
if ($_GET['category'] == 'vidis-stem-i-steam')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/358/stem-i-steam.html?p=';
$max = 5;
$file = 'vidis-stem-i-steam.txt';
unlink( 'vidis-stem-i-steam.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-stem-i-steam.txt';
$category = 'Stem i Steam';
$xml_file = 'vidis-stem-i-steam.xml';
}
}
if ($_GET['category'] == 'vidis-systemy-rezerwacji-sal')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/608/systemy-rezerwacji-sal.html?p=';
$max = 5;
$file = 'vidis-systemy-rezerwacji-sal.txt';
unlink( 'vidis-systemy-rezerwacji-sal.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-systemy-rezerwacji-sal.txt';
$category = 'Systemy rezerwacji sal';
$xml_file = 'vidis-systemy-rezerwacji-sal.xml';
}
}
if ($_GET['category'] == 'vidis-wyposazenie-biura')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/282/wyposazenie-biura.html?p=';
$max = 4;
$file = 'vidis-wyposazenie-biura.txt';
unlink( 'vidis-wyposazenie-biura.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-wyposazenie-biura.txt';
$category = 'Wyposażenie biura';
$xml_file = 'vidis-wyposazenie-biura.xml';
}
}
if ($_GET['category'] == 'vidis-produkty-konferencyjne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/328/produkty-konferencyjne.html?p=';
$max = 2;
$file = 'vidis-produkty-konferencyjne.txt';
unlink( 'vidis-produkty-konferencyjne.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-produkty-konferencyjne.txt';
$category = 'Produkty konferencyjne';
$xml_file = 'vidis-produkty-konferencyjne.xml';
}
}
if ($_GET['category'] == 'vidis-kable-i-adaptery')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/465/kable-i-adaptery.html?p=';
$max = 40;
$file = 'vidis-kable-i-adaptery.txt';
unlink( 'vidis-kable-i-adaptery.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-kable-i-adaptery.txt';
$category = 'Kable i adaptery';
$xml_file = 'vidis-kable-i-adaptery.xml';
}
}
if ($_GET['category'] == 'vidis-rozwiazania-instalacyjne')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/568/rozwiazania-instalacyjne.html?p=';
$max = 12;
$file = 'vidis-rozwiazania-instalacyjne.txt';
unlink( 'vidis-rozwiazania-instalacyjne.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-rozwiazania-instalacyjne.txt';
$category = 'Rozwiązania instalacyjne';
$xml_file = 'vidis-rozwiazania-instalacyjne.xml';
}
}
if ($_GET['category'] == 'vidis-zarzadzanie-sygnalem-av')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/618/zarzadzanie-sygnalem-av.html?p=';
$max = 14;
$file = 'vidis-zarzadzanie-sygnalem-av.txt';
unlink( 'vidis-zarzadzanie-sygnalem-av.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-zarzadzanie-sygnalem-av.txt';
$category = 'Zarządzanie sygnałem AV';
$xml_file = 'vidis-zarzadzanie-sygnalem-av.xml';
}
}
// akcesoria
if ( $_GET['category'] == 'vidis-akcesoria' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://www.vidis.pl/category/220/akcesoria.html?p=';
$max = 13;
$file = 'vidis-akcesoria.txt';
unlink( 'vidis-akcesoria.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vidis-akcesoria.txt';
$category = 'Akcesoria';
$xml_file = 'vidis-akcesoria.xml';
}
}
if ($_GET['category'] == 'vidis-zabezpieczenia')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/411/zabezpieczenia.html?p=';
$max = 3;
$file = 'vidis-zabezpieczenia.txt';
unlink( 'vidis-zabezpieczenia.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-zabezpieczenia.txt';
$category = 'Zabezpieczenia';
$xml_file = 'vidis-zabezpieczenia.xml';
}
}
if ($_GET['category'] == 'vidis-zestawy')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/354/zestawy.html?p=';
$max = 2;
$file = 'vidis-zestawy.txt';
unlink( 'vidis-zestawy.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-zestawy.txt';
$category = 'Zestawy';
$xml_file = 'vidis-zestawy.xml';
}
}
if ($_GET['category'] == 'vidis-oprogramowanie')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/269/oprogramowanie.html?p=';
$max = 2;
$file = 'vidis-oprogramowanie.txt';
unlink( 'vidis-oprogramowanie.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-oprogramowanie.txt';
$category = 'Oprogramowanie';
$xml_file = 'vidis-oprogramowanie.xml';
}
}
if ($_GET['category'] == 'vidis-uchwyty')
{
if ($_GET['action'] == 'get_urls')
{
$get_url = 'https://www.vidis.pl/category/634/uchwyty.html?p=';
$max = 10;
$file = 'vidis-uchwyty.txt';
unlink( 'vidis-uchwyty.xml' );
}
if ($_GET['action'] == 'get_xml')
{
$urls = 'vidis-uchwyty.txt';
$category = 'Uchwyty';
$xml_file = 'vidis-uchwyty.xml';
}
}
// vidis sport
if ( $_GET['category'] == 'vidis-sport' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://www.vidis.pl/category/657/sport.html?p=';
$max = 2;
$file = 'vidis-sport.txt';
unlink( 'vidis-sport.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vidis-sport.txt';
$category = 'Sport';
$xml_file = 'vidis-sport.xml';
}
}
// vidis ladowanie-aut-elektrycznych
if ( $_GET['category'] == 'vidis-ladowanie-aut-elektrycznych' )
{
if ( $_GET['action'] == 'get_urls' )
{
$get_url = 'https://www.vidis.pl/category/658/ladowanie-aut-elektrycznych.html?p=';
$max = 2;
$file = 'vidis-ladowanie-aut-elektrycznych.txt';
unlink( 'vidis-ladowanie-aut-elektrycznych.xml' );
}
if ( $_GET['action'] == 'get_xml' )
{
$urls = 'vidis-ladowanie-aut-elektrycznych.txt';
$category = 'Ładowanie aut elektrycznych';
$xml_file = 'vidis-ladowanie-aut-elektrycznych.xml';
}
}
if ( $xml_file )
{
if ( strpos( $xml_file, 'supertech' ) !== false )
{
$html = file_get_contents( '_supertech-tmp.txt' );
$doc = new \DOMDocument();
libxml_use_internal_errors(true);
$doc -> loadHTML( $html );
$xpath = new DOMXpath($doc);
$product['url'] = $_GET['product_url'];
$reference = $xpath -> query( "/html/body/div[@class='ps-page--product']/div[@class='container']/div[starts-with(@class,'ps-product--detail')]/div[@class='ps-product__top']/div[@class='ps-product__header']/div[2]/div[3]/p[1]/a" ) -> item(0);
$product['reference'] = removeStyles( $reference -> textContent );
if ( !$reference )
{
$reference = $xpath -> query( "/html/body/div[@class='ps-page--product']/div[@class='container']/div[starts-with(@class,'ps-product--detail')]/div[@class='ps-product__top']/div[@class='ps-product__header']/div[2]/div[4]/p[1]/a" ) -> item(0);
$product['reference'] = removeStyles( $reference -> textContent );
}
$ean = $xpath -> query( "/html/body/div[@class='ps-page--product']/div[@class='container']/div[starts-with(@class,'ps-product--detail')]/div[@class='ps-product__top']/div[@class='ps-product__header']/div[2]/div[3]/p[2]/a" ) -> item(0);
$product['ean'] = removeStyles( $ean -> textContent );
$title = $xpath -> query( "/html/body/div[@class='ps-page--product']/div[@class='container']/div[starts-with(@class,'ps-product--detail')]/div[@class='ps-product__top']/div[@class='ps-product__header']/div[2]/h1" ) -> item(0);
$product['title'] = removeStyles( $title -> textContent );
$price = $xpath -> query( "/html/body/div[@class='ps-page--product']/div[@class='container']/div[starts-with(@class,'ps-product--detail')]/div[@class='ps-product__top']/div[@class='ps-product__price-right']/h4" ) -> item(0);
$product['price'] = trim( str_replace( [ ' ', 'zł'], [ '', '' ], strip_tags( $price -> textContent ) ) );
$stock = $xpath -> query( "/html/body/div[@class='ps-page--product']/div[@class='container']/div[starts-with(@class,'ps-product--detail')]/div[@class='ps-product__top']/div[@class='ps-product__price-right']/div[@class='ps-product__variations']/p[1]/strong[1]" ) -> item(0);
$stock = strip_tags( $stock -> textContent );
preg_match( '/M\d{2} :: (\d+) szt\./', $stock, $matches );
$stock = $matches[1];
if ( !$stock )
$stock = 0;
$product['stock'] = $stock;
$manufacturer = $xpath -> query( "/html/body/div[@class='ps-page--product']/div[@class='container']/div[starts-with(@class,'ps-product--detail')]/div[@class='ps-product__top']/div[@class='ps-product__header']/div[2]/div[1]/p[1]/a" ) -> item(0);
$product['manufacturer'] = removeStyles( $manufacturer -> textContent );
if ( $brand )
$product['manufacturer'] = $brand;
$desc = $xpath -> query( "/html/body/div[@class='ps-page--product']/div[@class='container']/div[starts-with(@class,'ps-product--detail')]/div[starts-with(@class,'ps-product__content')]/div[1]/div[2]" ) -> item(0);
$product['desc'] = removeStyles( $doc -> saveHTML( $desc ) );
$shortdesc = $xpath -> query( "/html/body/div[@class='ps-page--product']/div[@class='container']/div[starts-with(@class,'ps-product--detail')]/div[@class='ps-product__top']/div[@class='ps-product__header']/div[2]/div[2]" ) -> item(0);
$product['shortdesc'] = removeStyles( $shortdesc -> textContent );
$product['category'] = $category;
$product['category_id'] = $category_id;
if ( $product['stock'] <= 5 )
$product['stock'] = 0;
$product['active'] = 1;
$images_tmp = $xpath -> query("/html/body/div[@class='ps-page--product']/div[@class='container']/div[starts-with(@class,'ps-product--detail')]/div[@class='ps-product__top']/div[@class='ps-product__header']/div[1]/figure/div[1]/div[1]/div[1]/div[1]/div");
for ($z = 1; $z <= count($images_tmp); $z++)
{
$images = $xpath -> query( "/html/body/div[@class='ps-page--product']/div[@class='container']/div[starts-with(@class,'ps-product--detail')]/div[@class='ps-product__top']/div[@class='ps-product__header']/div[1]/figure/div[1]/div[1]/div[1]/div[1]/div[" . $z . "]/a/@href" ) -> item(0);
$product['images'][] = trim( strip_tags( $images -> textContent ) );
}
if ( !is_array( $product['images'] ) )
{
$images_tmp = $xpath -> query("/html/body/div[@class='ps-page--product']/div[@class='container']/div[starts-with(@class,'ps-product--detail')]/div[@class='ps-product__top']/div[@class='ps-product__header']/div[@class='ps-product__thumbnail']/figure/div[@class='ps-wrapper']/div[@class='ps-product__gallery']/div[@class='item']");
for ($z = 1; $z <= count($images_tmp); $z++)
{
$images = $xpath -> query( "/html/body/div[@class='ps-page--product']/div[@class='container']/div[starts-with(@class,'ps-product--detail')]/div[@class='ps-product__top']/div[@class='ps-product__header']/div[@class='ps-product__thumbnail']/figure/div[@class='ps-wrapper']/div[@class='ps-product__gallery']/div[@class='item'][" . $z . "]/a/@href" ) -> item(0);
$product['images'][] = trim( strip_tags( $images -> textContent ) );
}
}
$products[] = $product;
if ( is_array( $products ) && count( $products ) and count( $product['images'] ) )
{
$mdb -> insert( 'infomech_import_products', [
'product_url' => $product['url'],
'reference' => $product['reference'],
'name' => $product['title'],
'source' => 'supertech',
] );
// Jeśli plik XML już istnieje, wczytujemy go, inaczej tworzymy nowy
if ( file_exists( $xml_file ) )
{
$xml_content = file_get_contents($xml_file);
$xml = new SimpleXMLElementExtended($xml_content);
}
else
{
$xml = new SimpleXMLElementExtended('<?xml version="1.0"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0"/>');
$xml -> addChild('title', 'rettpol');
$xml -> addChild('updated', date('Y-m-d'));
}
foreach ($products as $product)
{
$productXml = $xml->addChild('item');
$productXml->addChild('reference', $product['reference']);
$productXml->addChild('title', $product['title']);
if ($product['price'])
$productXml->addChild('price', $product['price']);
$productXml->addChildWithCData('shortdesc', $product['shortdesc']);
$productXml->addChildWithCData('desc', $product['desc']);
$productXml->addChild('stock', $product['stock']);
$productXml->addChild('manufacturer', $product['manufacturer']);
$productXml->addChild('category', $product['category']);
if ( is_array( $product['images'] ) )
$productXml->addChild('images', @implode(',', $product['images']));
else
$productXml -> addChild( 'images', $product['images'] );
$productXml->addChild('url', $product['url']);
$productXml->addChild('active', $product['active']);
$productXml->addChild('ean', $product['ean']);
$productXml -> addChild( 'category_id', $product['category_id'] );
}
$xml -> asXML( $xml_file );
echo '<p>Wygenerowałem xml: https://cdn.projectpro.pl/infomech-pl/' . $xml_file . '</p>';
}
}
elseif ( strpos( $xml_file, 'vipos' ) !== false )
{
$html = file_get_contents( '_vipos-tmp.txt' );
$doc = new \DOMDocument();
libxml_use_internal_errors(true);
$doc -> loadHTML( $html );
$xpath = new DOMXpath($doc);
$product['url'] = $_GET['product_url'];
$reference = $xpath->query("//*[@id=\"product-details\"]/div[@class='product-ean13']/span")->item(0);
if ( $reference )
$product['reference'] = removeStyles($reference->textContent);
else
$product['reference'] = md5($url);
$title = $xpath->query("//*[@id=\"main\"]/div[@class='row product_container']/div[@class='col-md-6 product_right']/h1[@class='product_name']")->item(0);
$product['title'] = removeStyles($title->textContent);
$shortdesc = $xpath->query("//div[@class='product_desc']")->item(0);
$product['shortdesc'] = removeStyles($doc->saveHTML($shortdesc));
$desc = $xpath -> query("//div[@id='description']")->item(0);
$product['desc'] = removeStyles($doc->saveHTML($desc));
$price = $xpath -> query( "//*[@id=\"add-to-cart-or-refresh\"]/div[@class='product-prices']/span[starts-with(@class,'dualDisplayPro')]/span[@class='priceDisplay']/span[@class='priceWithTax']/span[@class='priceWrapper']" ) -> item(0);
$product['price'] = removeStyles( $price -> textContent );
$manufacturer = $xpath->query("//*[@id=\"product_manufacturer\"]/a[@class='editable']/span")->item(0);
$product['manufacturer'] = removeStyles($manufacturer->textContent);
$product['category'] = $category;
$aviability = $xpath -> query( "//*[@id=\"product-availability\"]" ) -> item( 0 );
if ( strpos( $aviability -> textContent, "Dostępny" ) !== false )
{
$product['active'] = 1;
$product['stock'] = 5;
}
else
{
$product['active'] = 0;
$product['stock'] = 0;
}
$images = $xpath->query("//*[@id=\"thumb_box\"]/ul[starts-with(@class,'product-images')]/li[@class='thumb-container']/img[starts-with(@class,'thumb')]");
for ($i = 1; $i <= count($images); $i++)
{
$image = $xpath->query("//*[@id=\"thumb_box\"]/ul[starts-with(@class,'product-images')]/li[@class='thumb-container'][" . $i . "]/img[starts-with(@class,'thumb')]/@data-image-large-src")->item(0);
$product['images'][] = trim( strip_tags( $image -> textContent ) );
}
$products[] = $product;
if ( is_array( $products ) && count( $products ) and count( $product['images'] ) )
{
$mdb -> insert( 'vipos_import_products', [
'product_url' => $product['url'],
'reference' => $product['reference'],
'name' => $product['title'],
'source' => 'vipos',
] );
// Jeśli plik XML już istnieje, wczytujemy go, inaczej tworzymy nowy
if ( file_exists( $xml_file ) )
{
$xml_content = file_get_contents($xml_file);
$xml = new SimpleXMLElementExtended($xml_content);
}
else
{
$xml = new SimpleXMLElementExtended('<?xml version="1.0"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0"/>');
$xml -> addChild('title', 'rettpol');
$xml -> addChild('updated', date('Y-m-d'));
}
foreach ($products as $product)
{
$productXml = $xml->addChild('item');
$productXml->addChild('reference', $product['reference']);
$productXml->addChild('title', $product['title']);
if ($product['price'])
$productXml->addChild('price', $product['price']);
$productXml->addChildWithCData('shortdesc', $product['shortdesc']);
$productXml->addChildWithCData('desc', $product['desc']);
$productXml->addChild('stock', $product['stock']);
$productXml->addChild('manufacturer', $product['manufacturer']);
$productXml->addChild('category', $product['category']);
if ( is_array( $product['images'] ) )
$productXml->addChild('images', @implode(',', $product['images']));
else
$productXml -> addChild( 'images', $product['images'] );
$productXml->addChild('url', $product['url']);
$productXml->addChild('active', $product['active']);
$productXml->addChild('ean', $product['ean']);
$productXml -> addChild( 'category_id', $product['category_id'] );
}
$xml -> asXML( $xml_file );
echo '<p>Wygenerowałem xml: https://cdn.projectpro.pl/infomech-pl/' . $xml_file . '</p>';
}
}
else
{
if ( file_exists( $urls ) )
{
$lines = file( $urls, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES );
if ( $lines && count( $lines ) > 0 )
{
$url = array_shift( $lines );
echo '<p>Zostało ' . count( $lines ) . ' produktów.';
// fix for vipos.pl
$temp_url_data = null;
$temp_vipos_product_price = null;
if ( strpos( $url, 'vipos.pl' ) !== false )
{
$temp_url_data = explode( '|', $url );
$url = $temp_url_data[0];
$temp_vipos_product_price = str_replace( ' zł brutto', '', $temp_url_data[1] );
}
$ch = curl_init();
curl_setopt( $ch, CURLOPT_URL, $url );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1 );
$html = curl_exec( $ch );
curl_close( $ch );
if ( $html === false )
{
echo "Błąd cURL: " . curl_error( $ch ) . " (kod błędu: " . curl_errno( $ch ) . ")";
}
else
{
$doc = new \DOMDocument();
libxml_use_internal_errors(true);
$doc->loadHTML($html);
$xpath = new DOMXpath($doc);
}
unset( $product );
if ( strpos( $xml_file, 'vidis' ) !== false )
{
$product['url'] = $url;
$reference = $xpath->query("//*[@id=\"product\"]/div[@class='row']/div[starts-with(@class,'col-xs-12')]/header/h2/span")->item(0);
$product['reference'] = removeStyles($reference->textContent);
$title = $xpath->query("//*[@id=\"product\"]/div[@class='row']/div[starts-with(@class,'col-xs-12')]/header/h1")->item(0);
$product['title'] = removeStyles($title->textContent);
$price = $xpath->query("//*[@id=\"product\"]/div[@class='row']/div[starts-with(@class,'col-xs-12')]/section[starts-with(@class,'product-prices')]/div[@class='wrapper-prices']/span[@class='price-big']")->item(0);
$product['price'] = removeStyles($price->textContent);
$product['shortdesc'] = "";
$desc = $xpath->query("//*[@id=\"collapseDesc\"]/div[@class='panel-body']")->item(0);
$product['desc'] = removeStyles($doc->saveHTML($desc));
$manufacturer = $xpath->query("//*[@id=\"collapseSpec\"]/div[@class='panel-body']/table[starts-with(@class,'table')]/tbody/tr/td[2]")->item(0);
$product['manufacturer'] = removeStyles($manufacturer->textContent);
$aviability = $xpath -> query("//*[@id=\"product\"]/div[@class='row']/div[starts-with(@class,'col-xs-12')]/section[starts-with(@class,'social')]/a[starts-with(@class,'product-action')]/article[@class='marked']")->item(0);
if ( !$aviability )
{
// $aviability = $xpath -> query("//*[@id=\"content\"]/div[@class='content-wrap']/div[starts-with(@class,'container')]/div[@class='single-product']/div[@class='product']/div[starts-with(@class,'col_two_fifth')]/div[starts-with(@class,'row')]/div[@class='col-md-12']/div[@class='available']/div[@class='unavailable']/span[@class='text-available']")->item(0);
// if ( $aviability -> textContent == 'Chwilowo niedostępny' )
// {
// $product['stock'] = 0;
// $product['active'] = 0;
// }
echo $url; exit;
}
elseif ( trim( $aviability -> textContent ) == 'Zapytaj o produkt' )
{
$product['stock'] = 1;
$product['active'] = 1;
}
else {
echo $url; exit;
}
$product['category'] = $category;
$images = $xpath->query("//*[@id=\"product-gallery\"]/li");
for ( $i = 1; $i <= count($images); $i++ )
{
$image = $xpath->query("//*[@id=\"product-gallery\"]/li[" . $i . "]/a/img/@src")->item(0);
$product['images'][] = 'https:' . removeStyles($image->textContent);
}
$products[] = $product;
}
if ( strpos( $xml_file, 'dipol' ) !== false )
{
$product['url'] = $url;
$reference = $xpath->query("//*[@id=\"content\"]/div[@class='content-wrap']/div[starts-with(@class,'container')]/div[@class='single-product']/div[@class='product']/div[starts-with(@class,'col_two_fifth')]/div[starts-with(@class,'product-fav-code')]/div[starts-with(@class,'sku_wrapper')]/span[@class='sku']")->item(0);
$product['reference'] = removeStyles($reference->textContent);
$title = $xpath->query("//*[@id=\"page-title\"]/div[@class='container clearfix']/h1")->item(0);
$product['title'] = removeStyles($title->textContent);
$price = $xpath->query("//*[@id=\"content\"]/div[@class='content-wrap']/div[@class='container clearfix']/div[@class='single-product']/div[@class='product']/div[@class='col_two_fifth product-desc']/div[@class='product-price']/ins")->item(0);
$product['price'] = removeStyles($price->textContent);
$shortdesc = $xpath->query("//*[@id=\"short-desc\"]")->item(0);
$product['shortdesc'] = removeStyles($doc->saveHTML($shortdesc));
$desc = $xpath->query("//*[@id=\"content\"]/div[@class='content-wrap']/div[starts-with(@class,'container')]/div[@class='single-product']/div[@class='product']/div[starts-with(@class,'container')]/div[@class='scrollspy']")->item(0);
$product['desc'] = removeStyles($doc->saveHTML($desc));
$aviability = $xpath -> query("//*[@id=\"content\"]/div[@class='content-wrap']/div[starts-with(@class,'container')]/div[@class='single-product']/div[@class='product']/div[starts-with(@class,'col_two_fifth')]/div[starts-with(@class,'row')]/div[@class='col-md-12']/div[@class='available']/div[@class='available']/span[@class='text-available']")->item(0);
if ( !$aviability )
{
$aviability = $xpath -> query("//*[@id=\"content\"]/div[@class='content-wrap']/div[starts-with(@class,'container')]/div[@class='single-product']/div[@class='product']/div[starts-with(@class,'col_two_fifth')]/div[starts-with(@class,'row')]/div[@class='col-md-12']/div[@class='available']/div[@class='unavailable']/span[@class='text-available']")->item(0);
if ( $aviability -> textContent == 'Chwilowo niedostępny' )
{
$product['stock'] = 0;
$product['active'] = 0;
}
}
elseif ( $aviability -> textContent == 'Dostępny' )
{
$product['stock'] = 2;
$product['active'] = 1;
}
if (stripos($product['title'], 'DAHUA') !== false)
$product['manufacturer'] = 'Dahua';
elseif (stripos($product['title'], 'BCS') !== false)
$product['manufacturer'] = 'BCS';
elseif (stripos($product['title'], 'APTI') !== false)
$product['manufacturer'] = 'APTI';
elseif (stripos($product['title'], 'HIKVISION') !== false)
$product['manufacturer'] = 'HIKVISION';
elseif (stripos($product['title'], 'HQVISION') !== false)
$product['manufacturer'] = 'HQVISION';
elseif (stripos($product['title'], 'INTERNEC IP') !== false)
$product['manufacturer'] = 'INTERNEC IP';
elseif (stripos($product['title'], 'JABLOTRON') !== false)
$product['manufacturer'] = 'JABLOTRON';
elseif (stripos($product['title'], 'TP-LINK') !== false)
$product['manufacturer'] = 'TP-LINK';
elseif (stripos($product['title'], 'VIDOS') !== false)
$product['manufacturer'] = 'VIDOS';
$product['category'] = $category;
$images = $xpath->query("//*[@id=\"prod-slider\"]/div[@class='slider-wrap']/div[starts-with(@class,'slide')]");
for ( $i = 1; $i <= count($images); $i++ )
{
$image = $xpath->query("//*[@id=\"prod-slider\"]/div[@class='slider-wrap']/div[starts-with(@class,'slide')][" . $i . "]/a/@href")->item(0);
$product['images'][] = removeStyles($image->textContent);
}
$products[] = $product;
}
if ( strpos( $xml_file, 'promitel' ) !== false )
{
$product['url'] = $url;
$reference = $xpath -> query( "//*[@id=\"product-details-div\"]/div[starts-with(@class,'abs-product-page-header')]/div[starts-with(@class,'abs-header-main')]/div[@class='abs-header-right']/div[@class='abs-product-header-title']/div[@class='product-header']/p[@class='abs-catalog-index']/span" ) -> item(1);
$product['reference'] = removeStyles( $reference -> textContent );
$title = $xpath -> query( "//*[@id=\"product-details-div\"]/div[starts-with(@class,'abs-product-page-header')]/div[starts-with(@class,'abs-header-main')]/div[@class='abs-header-right']/div[@class='abs-product-header-title']/div[@class='product-header']/h1" ) -> item(0);
$product['title'] = removeStyles( $title -> textContent );
$price = $xpath -> query( "//*[@id=\"product-details-div\"]/div[starts-with(@class,'abs-product-page-header')]/div[starts-with(@class,'abs-header-main')]/div[@class='abs-header-right']/div[@class='abs-product-header-price']/div[starts-with(@class,'abs-item-price-box')]/span/span" ) -> item(0);
$product['price'] = trim( str_replace( 'zł brutto / szt.', '', strip_tags( $price -> textContent ) ) );
$manufacturer = $xpath -> query( "//*[@id=\"product-details-div\"]/div[starts-with(@class,'abs-product-page-header')]/div[starts-with(@class,'abs-header-main')]/div[@class='abs-header-right']/div[@class='abs-product-header-title']/div[@class='product-header']/div[@class='abs-producer']/span[@class='abs-list-value']/span[starts-with(@class,'htmlAttributeValue')]/a/img/@alt" ) -> item(0);
$product['manufacturer'] = ucfirst( strtolower( removeStyles( $manufacturer -> textContent ) ) );
$stock = $xpath -> query( "//*[@id=\"product-details-div\"]/div[starts-with(@class,'abs-product-page-header')]/div[starts-with(@class,'abs-header-main')]/div[@class='abs-header-right']/ul[starts-with(@class,'abs-short-details')]/li[starts-with(@class,'list-group-item')]/div[starts-with(@class,'avail-approx')]/span[@class='stock-info']/span[@class='abs-avail-txt']/span[@class='stock-presentation']/span[@class='stock-qty']" ) -> item(0);
$product['stock'] = (int)ucfirst( strtolower( removeStyles( $stock -> textContent ) ) );
$product['shortdesc'] = '';
$product['desc'] = '';
$product['category'] = $category;
if ( $product['stock'] > 4 )
$product['active'] = 1;
else
$product['active'] = 0;
$images = $xpath -> query( "//*[@id=\"controllerContent\"]/div[starts-with(@class,'panel')]/div[@class='panel-body']/div[@id='product-details-div']/div[starts-with(@class,'abs-product-page-header')]/div[starts-with(@class,'abs-header-main')]/div[starts-with(@class,'abs-header-left')]/div[@class='abs-product-header-img']/ul/li/a/img/@ci-src" ) -> item(0);
$product['images'][] = 'https:' . trim( strip_tags( $images -> textContent ) );
if ( $product['manufacturer'] == 'Hikvision' or $product['manufacturer'] == 'Dahua' )
$products[] = $product;
}
if ( $xml_file == 'rettpol-kamery-ip-kopulkowe.xml' or $xml_file == 'rettpol-kamery-ip-tubowe.xml' or $xml_file == 'rettpol-kamery-ip-kompaktowe.xml' or $xml_file == 'rettpol-kamery-ip-obrotowe.xml' or $xml_file == 'rettpol-kamery-ip-specjalne.xml' or $xml_file == 'rettpol-kamery-ip-lpr.xml' or $xml_file == 'rettpol-rejestratory-ip-4-kanalowe.xml' or $xml_file == 'rettpol-rejestratory-ip-8-kanalowe.xml' or $xml_file == 'rettpol-rejestratory-ip-16-kanalowe.xml' or $xml_file == 'rettpol-rejestratory-ip-32-kanalowe.xml' or $xml_file == 'rettpol-rejestratory-ip-64-kanalowe.xml' or $xml_file == 'rettpol-rejestratory-ip-128-kanalowe.xml' )
{
$product['url'] = $url;
$reference = $xpath -> query( "//*[@id=\"main\"]/div[starts-with(@class,'row')]/div[@class='col-md-12']/div[@class='header-info']/div[1]/span/strong" ) -> item(0);
$product['reference'] = 'RETT' . trim( strip_tags( $reference -> textContent ) );
$title = $xpath -> query( "//*[@id=\"main\"]/div[starts-with(@class,'row')]/div[@class='col-md-12']/h1[@class='h1']" ) -> item(0);
$product['title'] = removeStyles( $title -> textContent );
$price = $xpath -> query( "//*[@id=\"main\"]/div[starts-with(@class,'row')]/div[@class='product-info']/div[starts-with(@class,'col-lg-4')]/div[@class='b2c-rp']/div[starts-with(@class,'product-prices')]/div[starts-with(@class,'product-price')]/div[starts-with(@class,'current-price')]/span" ) -> item(0);
$product['price'] = trim( strip_tags( $price -> textContent ) );
$shortdesc = $xpath -> query( "//*[@id=\"description\"]/div[@class='product-description']/p[1]" ) -> item(0);
$product['shortdesc'] = removeStyles( $doc -> saveHTML( $shortdesc ) );
$desc = $xpath -> query( "//*[@id=\"description\"]/div[@class='product-description']" ) -> item(0);
$product['desc'] = removeStyles( $doc -> saveHTML( $desc ) );
$aviability = $xpath -> query( "//*[@id=\"product-availability\"]/span[@class='mag-av']" ) -> item(0);
if ( !$aviability )
{
$aviability = $xpath -> query( "//*[@id=\"product-availability\"]/span[@class='mag-unav']" ) -> item(0);
if ( $aviability -> textContent == ' Brak w magazynie' )
{
$product['stock'] = 0;
$product['active'] = 0;
}
else
{
$aviability = $xpath -> query( "//*[@id=\"product-availability\"]/span[@class='mag-zam']" ) -> item(0);
if ( $aviability -> textContent == ' Magazyn zewnętrzny' )
{
$product['stock'] = 0;
$product['active'] = 0;
}
}
}
else
{
if ( $aviability -> textContent == ' W magazynie' )
{
$product['stock'] = 2;
$product['active'] = 1;
}
else
{
echo $url;
exit;
}
}
if ( stripos( $product['title'], 'DAHUA' ) !== false )
$product['manufacturer'] = 'Dahua';
elseif ( stripos( $product['title'], 'BCS' ) !== false )
$product['manufacturer'] = 'BCS';
elseif ( stripos( $product['title'], 'APTI' ) !== false )
$product['manufacturer'] = 'APTI';
elseif ( stripos( $product['title'], 'HIKVISION' ) !== false )
$product['manufacturer'] = 'HIKVISION';
elseif ( stripos( $product['title'], 'HQVISION' ) !== false )
$product['manufacturer'] = 'HQVISION';
elseif ( stripos( $product['title'], 'INTERNEC IP' ) !== false )
$product['manufacturer'] = 'INTERNEC IP';
elseif ( stripos( $product['title'], 'JABLOTRON' ) !== false )
$product['manufacturer'] = 'JABLOTRON';
elseif ( stripos( $product['title'], 'TP-LINK' ) !== false )
$product['manufacturer'] = 'TP-LINK';
elseif ( stripos( $product['title'], 'VIDOS' ) !== false )
$product['manufacturer'] = 'VIDOS';
$product['category'] = $category;
$images = $xpath -> query( "//*[@id=\"content\"]/div[starts-with(@class,'images-container')]/div[starts-with(@class,'js-qv-mask')]/ul[starts-with(@class,'product-images')]/li[@class='thumb-container']" );
for ( $i = 1; $i <= count( $images ); $i++ )
{
$image = $xpath -> query( "//*[@id=\"content\"]/div[starts-with(@class,'images-container')]/div[starts-with(@class,'js-qv-mask')]/ul[starts-with(@class,'product-images')]/li[@class='thumb-container'][' . $i . ']/a/@href" ) -> item(0);
$product['images'][] = trim( strip_tags( $image -> textContent ) );
}
if ( !count( $images ) )
{
$images = $xpath -> query( "//*[@id=\"content\"]/div[starts-with(@class,'images-container')]/div[@class='product-cover']/a[@class='js-qv-product-big']/@href" ) -> item(0);
$product['images'][] = trim( strip_tags( $images -> textContent ) );
}
$products[] = $product;
}
if ( is_array( $products ) && count( $products ) )
{
// Jeśli plik XML już istnieje, wczytujemy go, inaczej tworzymy nowy
if ( file_exists( $xml_file ) )
{
$xml_content = file_get_contents($xml_file);
$xml = new SimpleXMLElementExtended($xml_content);
}
else
{
$xml = new SimpleXMLElementExtended('<?xml version="1.0"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0"/>');
$xml -> addChild('title', 'rettpol');
$xml -> addChild('updated', date('Y-m-d'));
}
foreach ($products as $product)
{
$productXml = $xml->addChild('item');
$productXml->addChild('reference', $product['reference']);
$productXml->addChild('title', $product['title']);
if ($product['price'])
$productXml->addChild('price', $product['price']);
$productXml->addChildWithCData('shortdesc', $product['shortdesc']);
$productXml->addChildWithCData('desc', $product['desc']);
$productXml->addChild('stock', $product['stock']);
$productXml->addChild('manufacturer', $product['manufacturer']);
$productXml->addChild('category', $product['category']);
if ( is_array( $product['images'] ) )
$productXml->addChild('images', @implode(',', $product['images']));
else
$productXml -> addChild( 'images', $product['images'] );
$productXml->addChild('url', $product['url']);
$productXml->addChild('active', $product['active']);
$productXml->addChild('ean', $product['ean']);
$productXml -> addChild( 'category_id', $product['category_id'] );
}
$xml -> asXML( $xml_file );
echo '<p>Wygenerowałem xml: https://cdn.projectpro.pl/infomech-pl/' . $xml_file . '</p>';
}
if ( $html )
file_put_contents( $urls, implode( PHP_EOL, $lines ) );
}
else {
echo '<p>Zostało 0 produktów.</p>';
echo '<p>Wygenerowałem xml: https://cdn.projectpro.pl/infomech-pl/' . $xml_file . '</p>';
exit;
}
}
else {
echo '<p>Zostało 0 produktów.</p>';
echo '<p>Wygenerowałem xml: https://cdn.projectpro.pl/infomech-pl/' . $xml_file . '</p>';
exit;
}
}
}
if ( $get_url )
{
if ( strpos( $get_url, 'supertech' ) !== false )
{
$html = file_get_contents( '_supertech-tmp.txt' );
$doc = new \DOMDocument();
libxml_use_internal_errors(true);
$doc->loadHTML($html);
$xpath = new DOMXpath($doc);
$urls_tmp = $xpath->query("//*[@id=\"tab-2\"]/div[@class='ps-shopping-product']/div[starts-with(@class,'ps-product')]");
for ($z = 1; $z <= count($urls_tmp); $z++)
{
$link = $xpath->query("//*[@id=\"tab-2\"]/div[@class='ps-shopping-product']/div[starts-with(@class,'ps-product')][" . $z . "]/div[@class='ps-product__container']/div[starts-with(@class,'ps-product__content')]/a/@href")->item(0);
$url = 'https://supertech.pl/' . trim( strip_tags( $link -> textContent ) );
if ( !$mdb -> count( 'infomech_import_products', [ 'product_url' => $url ] ) )
$urls[] = $url;
}
if ( is_array( $urls ) )
{
foreach ( $urls as $url )
{
file_put_contents( $file, $url . PHP_EOL, FILE_APPEND );
}
}
}
elseif ( strpos( $get_url, 'vipos' ) !== false )
{
$html = file_get_contents( '_vipos-tmp.txt' );
$doc = new \DOMDocument();
libxml_use_internal_errors(true);
$doc -> loadHTML( $html );
$xpath = new DOMXpath($doc);
$urls_tmp = $xpath -> query( "//*[@id=\"js-product-list\"]/div[starts-with(@class,'products')]/article[starts-with(@class,'product-miniature')]" );
for ( $z = 1; $z <= count( $urls_tmp ); $z++ )
{
$link = $xpath -> query( "//*[@id=\"js-product-list\"]/div[starts-with(@class,'products')]/article[starts-with(@class,'product-miniature')][" . $z . "]/div[@class='thumbnail-container']/div[@class='product-right']/div[@class='product-description']/h3[starts-with(@class,'h3')]/a/@href" ) -> item(0);
$url = trim( strip_tags( $link -> textContent ) );
if ( !$mdb -> count( 'vipos_import_products', [ 'product_url' => $url ] ) )
$urls[] = $url;
}
if ( is_array( $urls ) )
{
foreach ( $urls as $url )
{
file_put_contents( $file, $url . PHP_EOL, FILE_APPEND );
}
}
}
else
{
for ( $i = 1; $i <= $max; $i++ )
{
$ch = curl_init();
if ( strpos( $get_url, 'promitel' ) !== false )
{
$get_url = str_replace( '[page]', $i, $get_url );
curl_setopt( $ch, CURLOPT_URL, $get_url );
}
else
{
curl_setopt( $ch, CURLOPT_URL, $get_url . $i );
}
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_AUTOREFERER, false);
curl_setopt($ch, CURLOPT_REFERER, "http://www.google.com");
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
$html = curl_exec($ch);
curl_close($ch);
$doc = new \DOMDocument();
libxml_use_internal_errors(true);
$doc->loadHTML($html);
$xpath = new DOMXpath($doc);
if ( strpos( $file, 'dipol' ) !== false )
{
$urls_tmp = $xpath->query("//*[@id=\"shop\"]/div[starts-with(@class,'product')]");
for ($z = 1; $z <= count($urls_tmp); $z++)
{
$link = $xpath->query("//*[@id=\"shop\"]/div[starts-with(@class,'product')][" . $z . "]/div[starts-with(@class,'product-desc')]/div[@class='row']/div[@class='col-sm-8']/div[@class='product-title']/h3/a/@href")->item(0);
$urls[] = trim(strip_tags($link->textContent));
}
}
if ( strpos( $file, 'promitel' ) !== false )
{
$urls_tmp = $xpath->query("//*[@id=\"controllerContent\"]/section[starts-with(@class,'panel')]/div[starts-with(@class,'panel-body')]/div[starts-with(@class,'abs-layout-category-products')]/div[@class='abs-col-result-list']/div[starts-with(@class,'abs-offer-full')]/div[@class='abs-layout-product-list-wrapper']/div[@class='abs-layout-product-full']");
for ($z = 1; $z <= count( $urls_tmp ); $z++)
{
$link = $xpath -> query( "//*[@id=\"controllerContent\"]/section[starts-with(@class,'panel')]/div[starts-with(@class,'panel-body')]/div[starts-with(@class,'abs-layout-category-products')]/div[@class='abs-col-result-list']/div[starts-with(@class,'abs-offer-full')]/div[@class='abs-layout-product-list-wrapper'][".$z."]/div[@class='abs-layout-product-full']/div[@class='abs-layout-img-and-details']/div[@class='abs-col-details']/div[@class='abs-col-details-description']/div[@class='product-header']/h3[@class='abs-product-name']/a/@href" )->item(0);
$urls[] = 'https://promitel.pl' . trim(strip_tags($link->textContent));
}
}
if ( $file == 'rettpol-kamery-ip-kopulkowe.txt' or $file == 'rettpol-kamery-ip-tubowe.txt' or $file == 'rettpol-kamery-ip-kompaktowe.txt' or $file == 'rettpol-kamery-ip-obrotowe.txt' or $file == 'rettpol-kamery-ip-specjalne.txt' or $file == 'rettpol-kamery-ip-lpr.txt' or $file == 'rettpol-kamery-analogowe-kopulkowe.txt' or $file == 'rettpol-kamery-analogowe-tubowe.txt' or $file == 'rettpol-kamery-analogowe-kompaktowe.txt' or $file == 'rettpol-kamery-analogowe-obrotowe.txt' or $file == 'rettpol-kamery-analogowe-fotopulapki.txt' or $file == 'rettpol-rejestratory-ip-4-kanalowe.txt' or $file == 'rettpol-rejestratory-ip-8-kanalowe.txt' or $file == 'rettpol-rejestratory-ip-16-kanalowe.txt' or $file == 'rettpol-rejestratory-ip-32-kanalowe.txt' or $file == 'rettpol-rejestratory-ip-64-kanalowe.txt' or $file == 'rettpol-rejestratory-ip-128-kanalowe.txt' )
{
$h2_array = $doc->getElementsByTagName('h2');
foreach ($h2_array as $h2)
{
if ($h2->getAttribute('class') == 'laber-product-title')
{
$a_array = $h2->getElementsByTagName('a');
foreach ($a_array as $a)
$urls[] = $a->getAttribute('href');
}
}
}
if ( strpos( $file, 'vidis' ) !== false )
{
$urls_tmp = $xpath->query("//*[@id=\"ajax_products_list\"]/li");
for ($z = 1; $z <= count($urls_tmp); $z++)
{
$link = $xpath->query("//*[@id=\"ajax_products_list\"]/li[" . $z . "]/article[@class='product']/div[@class='row']/div[starts-with(@class,'col-xs-12')]/header[@class='hidden-xs']/a/@href")->item(0);
$urls[] = trim(strip_tags($link->textContent));
}
}
}
if (is_array($urls))
{
foreach ($urls as $url)
{
$text .= $url . PHP_EOL;
file_put_contents($file, $text);
}
}
}
echo '<p>Pobrałem url produktów: ' . $get_url . '</p>';
}
?>
<?
echo '<!DOCTYPE html>';
echo '<html lang="pl">';
echo '<head>';
echo '<meta charset="UTF-8">';
if ( $lines and count( $lines ) > 0 ) {
echo '<meta http-equiv="refresh" content="0">';
}
echo '</head>';