nextQuestion(); getInfo($to_question); $num = sizeof($choicesID); require $url . '/' . $url . $num . '.php'; break; case 'checkbox': global $choicesID; logResponseArray($promptID, $condition); nextQuestionArray(); getInfo($to_question); $num = sizeof($choicesID); require $url . '/' . $url . $num . '.php'; break; case 'mc': global $choicesID; logResponse($promptID, $condition); nextQuestion(); getInfo($to_question); $num = sizeof($choicesID); require $url . '/' . $url . $num . '.php'; break; //} //getInfo($currentID); //require $url . '.php'; } } //$id = 13; //getInfo($id); //var_dump($promptID); //var_dump($pageType); //var_dump($promptText);
foreach ($imagesTypes as $imageType) { if (!ImageManager::resize($imgFile, $new_path . '-' . stripslashes($imageType['name']) . '.' . $image->image_format, $imageType['width'], $imageType['height'], $image->image_format)) { logResponse('An error occurred while copying image:' . ' ' . stripslashes($imageType['name'])); } } } } } } } logResponse("Product {$id} saved"); } logResponse("Total {$j} products imported"); } } logResponse("IMPORT COMPLETE"); // Send feed header("Content-Type:text/xml; charset=utf-8"); echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n"; ?> <rsp:responsePack xmlns:rsp="http://www.stormware.cz/schema/response.xsd" version="2.0" id="00000001" state="ok" application="Prestashop" note="Prestashop import"> <?php foreach ($log as $message) { ?> <message><?php echo htmlspecialchars($message); ?> </message> <?php } ?>