1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-03-03 18:29:18 +01:00

Switched import/export scripts to use comma separation instead of tabs.

This commit is contained in:
Dain Nilsson 2013-01-28 16:24:23 +01:00
parent 94b3f686fd
commit 56b03a58c6
4 changed files with 17 additions and 17 deletions

View File

@ -20,12 +20,12 @@ if (!$db->connect()) {
$result = $db->customQuery("select id, active, created, secret, email, notes, otp from clients order by id");
while($row = $db->fetchArray($result)) {
echo $row['id'] .
"\t" . (int)$row['active'] .
"\t" . $row['created'] .
"\t" . $row['secret'] .
"\t" . $row['email'] .
"\t" . $row['notes'] .
"\t" . $row['otp'] .
"," . (int)$row['active'] .
"," . $row['created'] .
"," . $row['secret'] .
"," . $row['email'] .
"," . $row['notes'] .
"," . $row['otp'] .
"\n";
}

View File

@ -20,15 +20,15 @@ if (!$db->connect()) {
$result=$db->customQuery("SELECT active, created, modified, yk_publicname, yk_counter, yk_use, yk_low, yk_high, nonce, notes FROM yubikeys ORDER BY yk_publicname");
while($row = $db->fetchArray($result)){
echo (int)$row['active'] .
"\t" . $row['created'] .
"\t" . $row['modified'] .
"\t" . $row['yk_publicname'] .
"\t" . $row['yk_counter'] .
"\t" . $row['yk_use'] .
"\t" . $row['yk_low'] .
"\t" . $row['yk_high'] .
"\t" . $row['nonce'] .
"\t" . $row['notes'] .
"," . $row['created'] .
"," . $row['modified'] .
"," . $row['yk_publicname'] .
"," . $row['yk_counter'] .
"," . $row['yk_use'] .
"," . $row['yk_low'] .
"," . $row['yk_high'] .
"," . $row['nonce'] .
"," . $row['notes'] .
"\n";
}

View File

@ -19,7 +19,7 @@ if (!$db->connect()) {
}
while ($res=fgetcsv(STDIN, 0, "\t")) {
while ($res=fgetcsv(STDIN, 0, ",")) {
$params=array("id"=>$res[0],
"active"=>$res[1],
"created"=>$res[2],

View File

@ -19,7 +19,7 @@ if (!$db->connect()) {
}
while ($res=fgetcsv(STDIN, 0, "\t")) {
while ($res=fgetcsv(STDIN, 0, ",")) {
$params=array("active"=>$res[0],
"created"=>$res[1],
"modified"=>$res[2],