1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-26 21:54:16 +01:00

Optimize. From Klas.

This commit is contained in:
Simon Josefsson 2014-09-23 14:12:42 +02:00
parent ecd49aca59
commit 7a4e2d37e3
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/php
<?php
# Copyright (c) 2010-2013 Yubico AB
# Copyright (c) 2010-2014 Yubico AB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -70,7 +70,7 @@ while($row = $db->fetchArray($result)) {
# For some reason PostgreSQL returns empty strings for false values?!
$active = "0";
}
$everything = $everything .
$everything .=
$row['id'] . "\t" . $active . "\t" .
$row['secret'] . "\n";
}

View File

@ -1,7 +1,7 @@
#!/usr/bin/php
<?php
# Copyright (c) 2012-2013 Yubico AB
# Copyright (c) 2012-2014 Yubico AB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -65,7 +65,7 @@ $result=$db->customQuery("SELECT yk_publicname, yk_counter, yk_use ".
"FROM yubikeys WHERE active = false ".
"ORDER BY yk_publicname");
while($row = $result->fetch(PDO::FETCH_ASSOC)) {
$everything = $everything .
$everything .=
$row['yk_publicname'] . "\t" . $row['yk_counter'] . "\t" . $row['yk_use'] .
"\n";
}