mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-08 03:54:20 +01:00
Basic handling of #comments and empty lines in import tools.
This commit is contained in:
parent
bdee613e1e
commit
5e9b63d102
@ -20,6 +20,8 @@ if (!$db->connect()) {
|
|||||||
|
|
||||||
|
|
||||||
while ($res=fgetcsv(STDIN, 0, ",")) {
|
while ($res=fgetcsv(STDIN, 0, ",")) {
|
||||||
|
if($res[0]===null || strpos($res[0], '#')===0) continue;
|
||||||
|
|
||||||
$params=array("active"=>$res[0],
|
$params=array("active"=>$res[0],
|
||||||
"created"=>$res[1],
|
"created"=>$res[1],
|
||||||
"modified"=>$res[2],
|
"modified"=>$res[2],
|
||||||
|
@ -20,6 +20,8 @@ if (!$db->connect()) {
|
|||||||
|
|
||||||
|
|
||||||
while ($res=fgetcsv(STDIN, 0, ",")) {
|
while ($res=fgetcsv(STDIN, 0, ",")) {
|
||||||
|
if($res[0]===null || strpos($res[0], '#')===0) continue;
|
||||||
|
|
||||||
$params=array("id"=>$res[0],
|
$params=array("id"=>$res[0],
|
||||||
"active"=>$res[1],
|
"active"=>$res[1],
|
||||||
"created"=>$res[2],
|
"created"=>$res[2],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user