#!/usr/bin/php connect()) { $myLog->log(LOG_WARNING, "Could not connect to database"); exit(1); } $everything = ""; $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 .= $row['yk_publicname'] . "\t" . $row['yk_counter'] . "\t" . $row['yk_use'] . "\n"; } $hash = sha1 ($everything); if ($verbose) { print $everything; } print substr ($hash, 0, 10) . "\n"; $result=null; $db=null;