mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 04:26:03 +00:00
36 lines
589 B
PHP
36 lines
589 B
PHP
<?php
|
|
|
|
ini_set('display_errors', 0);
|
|
ini_set('log_errors', 1);
|
|
|
|
require_once 'vendor/autolaod.php';
|
|
require_once "config.php";
|
|
|
|
|
|
|
|
|
|
//$path = $d2_dir."data\\global\\excel\\";
|
|
$path = $d2_dir."data/global/excel/";
|
|
|
|
$post = $_POST;
|
|
if (!empty($post['code'])) {
|
|
array_filter($post['code']);
|
|
|
|
if(!empty($post['code'][0])) {
|
|
$post['code'] = $post['code'][0];
|
|
} else {
|
|
$post['code'] = $post['code'][1];
|
|
}
|
|
}
|
|
require_once 'uniqueitems.php';
|
|
$fp = fopen($u, 'a+');
|
|
|
|
//echo "<pre>";
|
|
//print_r($post);
|
|
//echo "</pre>";
|
|
|
|
if (!empty($_POST)) {fputcsv($fp, $post, "\t");}
|
|
|
|
|
|
|