1
0
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:
Dain Nilsson 2013-01-30 09:45:49 +01:00
parent bdee613e1e
commit 5e9b63d102
2 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,8 @@ if (!$db->connect()) {
while ($res=fgetcsv(STDIN, 0, ",")) {
if($res[0]===null || strpos($res[0], '#')===0) continue;
$params=array("active"=>$res[0],
"created"=>$res[1],
"modified"=>$res[2],

View File

@ -20,6 +20,8 @@ if (!$db->connect()) {
while ($res=fgetcsv(STDIN, 0, ",")) {
if($res[0]===null || strpos($res[0], '#')===0) continue;
$params=array("id"=>$res[0],
"active"=>$res[1],
"created"=>$res[2],