Begin Refactor

This commit is contained in:
color.diff=auto
2021-03-21 13:47:29 -06:00
parent 7622dc0d02
commit 018931d7ae
197 changed files with 47799 additions and 6 deletions

View File

@@ -1,11 +1,35 @@
<?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($code)) { array_filter($_POST['code']);}
$post['code'] = $code[0];
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+');
fputcsv($fp, $post, "\t");
//echo "<pre>";
//print_r($post);
//echo "</pre>";
if (!empty($_POST)) {fputcsv($fp, $post, "\t");}