Initial import: Carteasy Shop (Dev-Stand)
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: index.php 10381 2008-06-01 03:35:53Z $
|
||||
* @package Easyshop
|
||||
* @copyright Copyright (C) 2005 - 2011 TA-EDV
|
||||
* @license proprietary
|
||||
* @author Richard Kammermayer <rk@ta-edv.de>
|
||||
* Easyshop is a web shop system
|
||||
*/
|
||||
|
||||
if(isset($_GET['debug']) && $_GET['debug'] == true) {
|
||||
ini_set('display_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
}
|
||||
else {
|
||||
error_reporting(E_ERROR);
|
||||
}
|
||||
|
||||
ini_set("memory_limit","1024M");
|
||||
set_time_limit(60000);
|
||||
|
||||
// including libs
|
||||
include_once './core/base.class.php';
|
||||
include_once './core/registry.class.php';
|
||||
include_once './core/uri.class.php';
|
||||
|
||||
//echo microtime_float() - $start_time;
|
||||
|
||||
// base object
|
||||
$base_object = new base();
|
||||
|
||||
// show errors if modus is development or debug
|
||||
if ($base_object->config->debug || $base_object->config->development) {
|
||||
ini_set("display_errors",1);
|
||||
}
|
||||
|
||||
Registry::set('base', $base_object);
|
||||
|
||||
if (isset($_GET['admin_modul'])) {
|
||||
// go to admin website
|
||||
include './modules/admin_init.php';
|
||||
} elseif (isset($_GET['soap_modul'])) {
|
||||
// soap
|
||||
include './modules/soap_init.php';
|
||||
} elseif (isset($_GET['website_modul'])) {
|
||||
include './modules/website_init.php';
|
||||
} elseif (isset($_GET['lightningrod'])) {
|
||||
include './service/lightningrod_init.php';
|
||||
} elseif (isset($_GET['exportpdf'])) {
|
||||
include './scripts/exportpdf.php';
|
||||
} else {
|
||||
// go to shop website
|
||||
// get structure
|
||||
if (isset($_GET['structure_suri'])) {
|
||||
$structure = URI::fetch_structure($_GET['structure_suri']);
|
||||
/*if (!$structure) {
|
||||
header('Location: /error_404/');
|
||||
}
|
||||
else {
|
||||
$_GET['menu_id'] = $structure;
|
||||
}*/
|
||||
$_GET['menu_id'] = $structure;
|
||||
}
|
||||
|
||||
// get parent structures 2-8
|
||||
$_GET['parent_ids'] = isset($_GET['menu_id']) ? array($_GET['menu_id']) : array();
|
||||
for($i=1;$i<9;$i++) {
|
||||
if (isset($_GET['structure_suri'.$i])) {
|
||||
$_GET['parent_ids'][] = URI::fetch_structure($_GET['structure_suri'.$i]);
|
||||
}
|
||||
}
|
||||
|
||||
// get item
|
||||
if (isset($_GET['item_suri'])) {
|
||||
$item = URI::fetch_item($_GET['item_suri']);
|
||||
if (!$item) {
|
||||
header('Location: /error_404/');
|
||||
}
|
||||
else {
|
||||
$_GET['item_id'] = $item;
|
||||
}
|
||||
}
|
||||
|
||||
include './modules/website_init.php';
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
ini_set('display_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
|
||||
//include_once '../../config.inc.php';
|
||||
include_once '/srv/www/vhosts/vgr-vertrieb.de/httpdocs/config.inc.php';
|
||||
|
||||
$db = new mysqli(
|
||||
$config_shop_system['db_host'],
|
||||
$config_shop_system['db_user'],
|
||||
$config_shop_system['db_password'],
|
||||
$config_shop_system['db_name']
|
||||
);
|
||||
|
||||
$db->query("SET NAMES 'utf8'");
|
||||
|
||||
// get exported orders
|
||||
$sql = "SELECT shipping_list_number, order_number FROM orders WHERE export_to_shipping=1";
|
||||
$result = $db->query($sql);
|
||||
$exported_orders = array();
|
||||
while ($obj = $result->fetch_object()) {
|
||||
if (!$obj->shipping_list_number) {
|
||||
$obj->shipping_list_number = $obj->order_number;
|
||||
}
|
||||
$exported_orders[] = $obj->shipping_list_number;
|
||||
}
|
||||
|
||||
// get sendet orders from external database
|
||||
/*
|
||||
$db_extern = new mysqli(
|
||||
$config_shop_system['db_host'],
|
||||
$config_shop_system['db_user'],
|
||||
$config_shop_system['db_password'],
|
||||
$config_shop_system['db_name']
|
||||
);
|
||||
*/
|
||||
$db_extern = new mysqli(
|
||||
'rottlerlogistik.dyndns.org',
|
||||
'U10VGR',
|
||||
'vgRwa10',
|
||||
'U10VGR',
|
||||
32751
|
||||
);
|
||||
|
||||
if (!$db_extern->connect_errno) {
|
||||
$db_extern->query("SET NAMES 'utf8'");
|
||||
|
||||
$sql = "SELECT * FROM versandliste WHERE lieferscheinNr IN ('" . implode("','", $exported_orders) . "')";
|
||||
$result = $db_extern->query($sql);
|
||||
$sended_objects = array();
|
||||
while ($obj = $result->fetch_object()) {
|
||||
if (isset($sended_objects[$obj->lieferscheinNr])) {
|
||||
$sended_objects[$obj->lieferscheinNr]->paketnummer .= '; '.$obj->paketnummer;
|
||||
}
|
||||
else {
|
||||
$sended_objects[$obj->lieferscheinNr] = $obj;
|
||||
}
|
||||
}
|
||||
|
||||
// update orders
|
||||
foreach ($sended_objects as $sendobject) {
|
||||
$trackingcode = $sendobject->paketnummer;
|
||||
$order_number = $sendobject->lieferscheinNr;
|
||||
$sql = "UPDATE orders SET export_to_shipping=2, trackingcode='$trackingcode' WHERE order_number='$order_number' OR shipping_list_number='$order_number'";
|
||||
$db->query($sql);
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "connection error";
|
||||
}
|
||||
|
||||
exit();
|
||||
|
||||
@@ -0,0 +1,255 @@
|
||||
<?php
|
||||
ini_set('display_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
|
||||
include_once '../../config.inc.php';
|
||||
|
||||
global $db;
|
||||
global $date;
|
||||
global $item_array;
|
||||
global $manufacturer_array;
|
||||
global $manufacturer_to_item_categories_array;
|
||||
global $url;
|
||||
global $file;
|
||||
global $fh;
|
||||
|
||||
global $item_category;
|
||||
global $footer_pages;
|
||||
global $header_pages;
|
||||
global $helper_pages;
|
||||
|
||||
$db = new mysqli(
|
||||
$config_shop_system['db_host'],
|
||||
$config_shop_system['db_user'],
|
||||
$config_shop_system['db_password'],
|
||||
$config_shop_system['db_name']
|
||||
);
|
||||
|
||||
$db->query("SET NAMES 'utf8'");
|
||||
|
||||
$date = date('Y-m-d');
|
||||
|
||||
$item_array = array();
|
||||
$manufacturer_array = array();
|
||||
$manufacturer_to_item_categories_array = array();
|
||||
|
||||
$url = $config_shop_system['MAIN_URL'];
|
||||
$file = $config_shop_system['ROOT_DIR'] . 'web/' . $config_shop_system['SHOP_SYSTEM'] . '/documents/files/sitemap.html';
|
||||
|
||||
$item_category = 3;
|
||||
$footer_pages = 7;
|
||||
$header_pages = 5;
|
||||
$helper_pages = 61;
|
||||
|
||||
function char_replace($text) {
|
||||
return str_replace($search, $replace, $text);
|
||||
}
|
||||
|
||||
function get_structure_by_root($id, $parent_short_uri = '/', $is_item_category = false, &$return_array) {
|
||||
global $db;
|
||||
global $url;
|
||||
|
||||
global $helper_pages;
|
||||
|
||||
$sql = "SELECT * FROM structure WHERE parent_id=" . $db->real_escape_string($id);
|
||||
|
||||
$result = $db->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while ($tmp = $result->fetch_assoc()) {
|
||||
if ($id != 0) {
|
||||
$tmp['full_short_uri'] = $parent_short_uri . $tmp['short_uri'] . '/';
|
||||
$tmp['is_root'] = 0;
|
||||
} else {
|
||||
$tmp['full_short_uri'] = $parent_short_uri;
|
||||
$tmp['is_root'] = 1;
|
||||
}
|
||||
|
||||
if ($is_item_category) {
|
||||
$tmp['is_item_category'] = $is_item_category;
|
||||
get_structure_by_root($tmp['id'], $tmp['full_short_uri'], true, &$return_array);
|
||||
} else {
|
||||
get_structure_by_root($tmp['id'], $tmp['full_short_uri'], false, &$return_array);
|
||||
}
|
||||
|
||||
$tmp['url'] = $url . $tmp['full_short_uri'];
|
||||
|
||||
if (!($tmp['is_root'])) {
|
||||
$return_array[$tmp['id']] = $tmp;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function get_manufacturer_to_item_categories($structure_array) {
|
||||
global $db;
|
||||
global $manufacturer_to_item_categories_array;
|
||||
|
||||
$sql = "SELECT
|
||||
i.manufacturer_id,
|
||||
i.structure_id,
|
||||
s.short_uri AS structure_short_uri
|
||||
FROM
|
||||
items i
|
||||
LEFT JOIN
|
||||
structure s
|
||||
ON
|
||||
i.structure_id = s.id
|
||||
GROUP BY
|
||||
i.manufacturer_id, i.structure_id";
|
||||
|
||||
$result = $db->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while ($tmp = $result->fetch_assoc()) {
|
||||
if (isset($structure_array[$tmp['structure_id']])) {
|
||||
$tmp['partial_short_url'] = $structure_array[$tmp['structure_id']]['full_short_uri'];
|
||||
} else {
|
||||
$tmp['partial_short_url'] = '';
|
||||
}
|
||||
|
||||
$manufacturer_to_item_categories_array[$tmp['manufacturer_id']][$tmp['structure_id']] = $tmp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function get_manufacturers() {
|
||||
global $db;
|
||||
global $url;
|
||||
global $manufacturer_array;
|
||||
|
||||
$sql = "SELECT * FROM manufacturers";
|
||||
|
||||
$result = $db->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while ($tmp = $result->fetch_assoc()) {
|
||||
$tmp['url'] = $url . '/Kaufen/' . $tmp['short_uri'] . '/';
|
||||
|
||||
$manufacturer_array[] = $tmp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function print_items_by_category($category_array) {
|
||||
global $db;
|
||||
global $item_array;
|
||||
global $date;
|
||||
global $fh;
|
||||
|
||||
foreach ($category_array as $category) {
|
||||
$sql = "SELECT
|
||||
i.*,
|
||||
m.name AS manufacturer_name
|
||||
FROM
|
||||
items i
|
||||
JOIN
|
||||
manufacturers m
|
||||
ON
|
||||
m.id = i.manufacturer_id
|
||||
WHERE
|
||||
i.structure_id=" . $db->real_escape_string($category['id']);
|
||||
|
||||
$result = $db->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
$name = substr($category['full_short_uri'], 1, -1);
|
||||
$name = str_replace('/', ' > ', $name);
|
||||
fwrite($fh, '<h3 class="sitemap_sub_header"><a href="' . $category['url'] . '">' . $name . '</a></h3><ul>');
|
||||
|
||||
while ($tmp = $result->fetch_assoc()) {
|
||||
fwrite($fh, '<li><a href="' . $category['url'] . $tmp['short_uri'] . '.html">' . $tmp['name'] . '</a></li>');
|
||||
}
|
||||
|
||||
fwrite($fh, "</ul>");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function print_items_by_manufacturer($manufacturer_id, $structure_id) {
|
||||
global $db;
|
||||
global $item_array;
|
||||
global $manufacturer_array;
|
||||
global $manufacturer_to_item_categories_array;
|
||||
global $date;
|
||||
global $fh;
|
||||
|
||||
$sql = "SELECT *
|
||||
FROM items
|
||||
WHERE manufacturer_id=" . $db->real_escape_string($manufacturer_id);
|
||||
" AND structure_id=" . $db->real_escape_string($structure_id);
|
||||
|
||||
$result = $db->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
$name = $manufacturer_array[$manufacturer_id]['name'];
|
||||
$url = $manufacturer_array[$manufacturer_id]['url'] . substr($manufacturer_to_item_categories_array[$manufacturer_id][$structure_id]['partial_short_url'], 1);
|
||||
fwrite($fh, '<h3 class="sitemap_sub_header"><a href="' . $url . '">' . $name . '</a></h3><ul>');
|
||||
while ($tmp = $result->fetch_assoc()) {
|
||||
if (isset($manufacturer_array[$tmp['manufacturer_id']])) {
|
||||
if (isset($manufacturer_to_item_categories_array[$tmp['manufacturer_id']][$tmp['structure_id']])) {
|
||||
fwrite($fh, '<li><a href="' . $manufacturer_array[$tmp['manufacturer_id']]['url'] . substr($manufacturer_to_item_categories_array[$manufacturer_id][$structure_id]['partial_short_url'], 1) . $tmp['short_uri'] . '.html' . $tmp['name'] . '</a></li>');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$fh = fopen($file, 'w');
|
||||
|
||||
//fwrite($fh, '<div id="sitemap">');
|
||||
|
||||
$header_array = array();
|
||||
get_structure_by_root($header_pages, '/', false, $header_array);
|
||||
if ($header_array != array()) {
|
||||
fwrite($fh, '<h2 class="sitemap_sub_header">Header Menü</h2><ul class="site_list">');
|
||||
|
||||
foreach ($header_array as $header) {
|
||||
fwrite($fh, '<li><a href="' . $header['url'] . '">' . $header['name'] . '</a></li>');
|
||||
}
|
||||
|
||||
fwrite($fh, "</ul>");
|
||||
}
|
||||
|
||||
$footer_array = array();
|
||||
get_structure_by_root($footer_pages, '/', false, $footer_array);
|
||||
if ($footer_array != array()) {
|
||||
fwrite($fh, '<h2 class="sitemap_sub_header">Footer Menü</h2><ul class="site_list">');
|
||||
|
||||
foreach ($footer_array as $footer) {
|
||||
fwrite($fh, '<li><a href="' . $footer['url'] . '">' . $footer['name'] . '</a></li>');
|
||||
}
|
||||
|
||||
fwrite($fh, "</ul>");
|
||||
}
|
||||
|
||||
$category_array = array();
|
||||
get_structure_by_root($item_category, '/', true, $category_array);
|
||||
if ($category_array != array()) {
|
||||
fwrite($fh, '<h2 class="sitemap_sub_header">Warengruppenmenü</h2><ul>');
|
||||
|
||||
print_items_by_category($category_array);
|
||||
|
||||
fwrite($fh, "</ul>");
|
||||
}
|
||||
|
||||
$category_array = array();
|
||||
get_structure_by_root($item_category, '/', true, $category_array);
|
||||
|
||||
get_manufacturer_to_item_categories($category_array);
|
||||
get_manufacturers();
|
||||
|
||||
//$manufactuerer_category_name = "Fishe";
|
||||
//fwrite($fh, '<h2 class="sitemap_sub_header">'. $manufactuerer_category_name . '</h2><ul>');
|
||||
//foreach ($manufacturer_array as $manufacturer) {
|
||||
// if (isset($manufacturer_to_item_categories_array[$manufacturer['id']])) {
|
||||
// foreach ($manufacturer_to_item_categories_array[$manufacturer['id']] as $data) {
|
||||
// print_items_by_manufacturer($manufacturer['id'], $data['structure_id']);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//fwrite($fh, '</ul>');
|
||||
|
||||
//fwrite($fh, "</div>");
|
||||
|
||||
fclose($fh);
|
||||
@@ -0,0 +1,193 @@
|
||||
<?php
|
||||
include_once '../../config.inc.php';
|
||||
|
||||
global $db;
|
||||
global $date;
|
||||
global $structure_array;
|
||||
global $manufacturer_array;
|
||||
global $manufacturer_to_item_categories_array;
|
||||
global $url;
|
||||
global $file;
|
||||
global $fh;
|
||||
|
||||
global $item_category;
|
||||
global $helper_pages;
|
||||
|
||||
$db = new mysqli(
|
||||
$config_shop_system['db_host'],
|
||||
$config_shop_system['db_user'],
|
||||
$config_shop_system['db_password'],
|
||||
$config_shop_system['db_name']
|
||||
);
|
||||
|
||||
$date = date('Y-m-d');
|
||||
|
||||
$structure_array = array();
|
||||
$manufacturer_array = array();
|
||||
$manufacturer_to_item_categories_array = array();
|
||||
|
||||
$url = $config_shop_system['MAIN_URL'];
|
||||
$file = $config_shop_system['ROOT_DIR'] . 'web/' . $config_shop_system['SHOP_SYSTEM'] . '/documents/files/sitemap.xml';
|
||||
|
||||
$item_category = 3;
|
||||
$helper_pages = 61;
|
||||
|
||||
function get_structure($id, $parent_short_uri = '/', $is_item_category = false) {
|
||||
global $db;
|
||||
global $structure_array;
|
||||
global $url;
|
||||
global $date;
|
||||
global $fh;
|
||||
|
||||
global $item_category;
|
||||
global $helper_pages;
|
||||
|
||||
$sql = "SELECT * FROM structure WHERE parent_id=" . $db->real_escape_string($id);
|
||||
|
||||
$result = $db->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while ($tmp = $result->fetch_assoc()) {
|
||||
if ($id != 0) {
|
||||
$tmp['full_short_uri'] = $parent_short_uri . $tmp['short_uri'] . '/';
|
||||
$tmp['is_root'] = 0;
|
||||
} else {
|
||||
$tmp['full_short_uri'] = $parent_short_uri;
|
||||
$tmp['is_root'] = 1;
|
||||
}
|
||||
|
||||
if ($tmp['parent_id'] == $item_category || $is_item_category) {
|
||||
$tmp['is_item_category'] = $is_item_category;
|
||||
$tmp['sub_categories'] = get_structure($tmp['id'], $tmp['full_short_uri'], true);
|
||||
} else {
|
||||
$tmp['sub_categories'] = get_structure($tmp['id'], $tmp['full_short_uri']);
|
||||
}
|
||||
|
||||
$tmp['url'] = $url . $tmp['full_short_uri'];
|
||||
|
||||
if (($tmp['id'] != $helper_pages) || ($tmp['parent_id'] != $helper_pages)) {
|
||||
if (!($tmp['is_root'])) {
|
||||
$structure_array[$tmp['id']] = $tmp;
|
||||
|
||||
fwrite($fh, "<url>\n");
|
||||
fwrite($fh, "<loc>" . $tmp['url'] . "</loc>\n");
|
||||
fwrite($fh, "<lastmod>" . $date . "</lastmod>\n");
|
||||
fwrite($fh, "<changefreq>daily</changefreq>\n");
|
||||
fwrite($fh, "<priority>1.0</priority>\n");
|
||||
fwrite($fh, "</url>\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function get_manufacturer_to_item_categories() {
|
||||
global $db;
|
||||
global $structure_array;
|
||||
global $manufacturer_to_item_categories_array;
|
||||
|
||||
$sql = "SELECT
|
||||
i.manufacturer_id,
|
||||
i.structure_id,
|
||||
s.short_uri AS structure_short_uri
|
||||
FROM
|
||||
items i
|
||||
LEFT JOIN
|
||||
structure s
|
||||
ON
|
||||
i.structure_id = s.id
|
||||
GROUP BY
|
||||
i.manufacturer_id, i.structure_id";
|
||||
|
||||
$result = $db->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while ($tmp = $result->fetch_assoc()) {
|
||||
if (isset($structure_array[$tmp['structure_id']])) {
|
||||
$tmp['partial_short_url'] = $structure_array[$tmp['structure_id']]['full_short_uri'];
|
||||
} else {
|
||||
$tmp['partial_short_url'] = '';
|
||||
}
|
||||
|
||||
$manufacturer_to_item_categories_array[$tmp['manufacturer_id']][$tmp['structure_id']] = $tmp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function get_manufacturers() {
|
||||
global $db;
|
||||
global $url;
|
||||
global $manufacturer_array;
|
||||
|
||||
$sql = "SELECT * FROM manufacturers";
|
||||
|
||||
$result = $db->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while ($tmp = $result->fetch_assoc()) {
|
||||
$tmp['url'] = $url . '/Kaufen/' . $tmp['short_uri'] . '/';
|
||||
|
||||
$manufacturer_array[] = $tmp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function get_items() {
|
||||
global $db;
|
||||
global $structure_array;
|
||||
global $manufacturer_array;
|
||||
global $manufacturer_to_item_categories_array;
|
||||
|
||||
global $date;
|
||||
global $fh;
|
||||
|
||||
$sql = "SELECT
|
||||
i.*,
|
||||
m.name AS manufacturer_name
|
||||
FROM
|
||||
items i
|
||||
JOIN
|
||||
manufacturers m
|
||||
ON
|
||||
m.id = i.manufacturer_id";
|
||||
|
||||
$result = $db->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while ($tmp = $result->fetch_assoc()) {
|
||||
if (isset($structure_array[$tmp['structure_id']])) {
|
||||
fwrite($fh, "<url>\n");
|
||||
fwrite($fh, "<loc>" . $structure_array[$tmp['structure_id']]['url'] . $tmp['short_uri'] . '.html' . "</loc>\n");
|
||||
fwrite($fh, "<lastmod>" . $date . "</lastmod>\n");
|
||||
fwrite($fh, "<changefreq>daily</changefreq>\n");
|
||||
fwrite($fh, "<priority>1.0</priority>\n");
|
||||
fwrite($fh, "</url>\n");
|
||||
}
|
||||
|
||||
if (isset($manufacturer_array[$tmp['manufacturer_id']])) {
|
||||
if (isset($manufacturer_to_item_categories_array[$tmp['manufacturer_id']][$tmp['structure_id']])) {
|
||||
fwrite($fh, "<url>\n");
|
||||
fwrite($fh, "<loc>" . $manufacturer_array[$tmp['manufacturer_id']]['url'] . substr($manufacturer_to_item_categories_array[$tmp['manufacturer_id']][$tmp['structure_id']]['partial_short_url'], 1) . $tmp['short_uri'] . '.html' . "</loc>\n");
|
||||
fwrite($fh, "<lastmod>" . $date . "</lastmod>\n");
|
||||
fwrite($fh, "<changefreq>daily</changefreq>\n");
|
||||
fwrite($fh, "<priority>1.0</priority>\n");
|
||||
fwrite($fh, "</url>\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$fh = fopen($file, 'w');
|
||||
|
||||
fwrite($fh, '<?xml version="1.0" encoding="UTF-8"?>' . "\n");
|
||||
fwrite($fh, '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . "\n");
|
||||
|
||||
get_structure(0);
|
||||
get_manufacturer_to_item_categories();
|
||||
get_manufacturers();
|
||||
get_items();
|
||||
|
||||
fwrite($fh, "</urlset>\n");
|
||||
|
||||
fclose($fh);
|
||||
Reference in New Issue
Block a user