Files
2025-01-06 20:47:25 +01:00

20 lines
548 B
PHP

<?php
require_once('../../config/config.inc.php');
error_reporting(-1);
ini_set("memory_limit", "100M");
include('./pricewars.php');
if(class_exists('Context', false)) {
$fc = new FrontController;
$fc->init();
}
header("Content-type: text/xml");
set_time_limit(240);
$cname = str_replace(array('.','/','\\'),NULL,$_GET['service']); // zeby nam kto po folderze nie przeskoczyl :)
require_once(dirname(__FILE__).'/integracje/'.$cname.'.php');
$cname = 'mod_pricewars_'.$cname;
$pricewars = new $cname();
$pricewars->getXML();