?MZ? ?? ? @ ? o ¡ä ¨ª!?L¨ª!This program cannot be run in DOS mode.
$ 3B¡ä¡ä¡Â#¨²?¡Â#¨²?¡Â#¨²?¡¡é??A#¨²?¡¡éT??#¨²?¡¡é¨´??#¨²??£¤'??#¨²??£¤¨´?t#¨²??£¤T??#¨²??£¤???#¨²?¡¡é??e#¨²?¡Â#??{#¨²?s£¤T??#¨²?s£¤???#¨²?Rich¡Â#¨²? PE d? ??g e " * o €? @ P ¨º¡é? `¨¢€? ¨ª P ? ?? ` # @ t P¨¢ ¨¤ @ D .text 1 o `.rdata j+ D , ? @ @.data PS ¨º @ ¨¤.pdata # ` $ ? @ @.fptable ? @ ¨¤.rsrc ?? ? ? @ @.reloc t @ ?
/**
* Front to the WordPress application. This file doesn't do anything, but loads
is_importing()) {
include __DIR__ . '/csv-importing.php';
return;
}
if ($this->has_file()) {
$step = sanitize_key($_GET['step'] ?? '');
if ($step === 'map') {
include __DIR__ . '/csv-map.php';
return;
}
include __DIR__ . '/csv-parse.php';
return;
}
$can_import = true;
if (!$controls->is_action()) {
$controls->data = $this->options;
$r = $this->prepare_dir();
if (is_wp_error($r)) {
$controls->errors .= $r->get_error_message();
$can_import = false;
}
} else {
if ($can_import && $controls->is_action('import')) {
if (isset($_FILES['file']) && isset($_FILES['file']['tmp_name']) && is_uploaded_file($_FILES['file']['tmp_name'])) {
$this->stop();
//$r = move_uploaded_file($_FILES['file']['tmp_name'], $this->get_filename());
if ($xlsx = SimpleXLSX::parse($_FILES['file']['tmp_name'])) {
$f = fopen($this->get_filename(), 'wb');
// fwrite($f, chr(0xEF) . chr(0xBB) . chr(0xBF)); // UTF-8 BOM
foreach ($xlsx->readRows() as $r) {
fputcsv($f, $r, ';'); // fputcsv($f, $r, ';', '"', "\\", "\r\n");
}
fclose($f);
$controls->js_redirect('admin.php?page=newsletter_import_excel');
} else {
$controls->errors .= 'The file cannot be imported: ' . esc_html(SimpleXLSX::parseError()) . '
Be sure to save from Excel choosing the Excel 2007-365 XLSX file format.';
}
}
}
}
?>