function store_dau() { $rows = array(); $tmp_file = fopen($_FILES['DAU']['tmp_name'], "r"); while ($row = fgetcsv($tmp_file, 0, "\t")) { $rows[] = $row; } $daustore = new DAUAdapter(); $daustore->store_dau($rows); shadow_upload($_FILES['DAU']['tmp_name']); }
function store_eu($server_cfg) { $rows = array(); $tmp_file = fopen($_FILES['EU']['tmp_name'], "r"); while ($row = fgetcsv($tmp_file, 0, ",")) { $rows[] = $row; } $eustore = new EUAdapter($server_cfg); $eustore->store_eu($rows); shadow_upload($_FILES['EU']['tmp_name']); }