removed eronius comment
[ga4php.git] / unittests / createurl.php
index 7d3d4ca..19eaa36 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-require_once("../lib/lib.php");
+require_once("../lib/ga4php.php");
 
 $ga = new GoogleAuthenticator("/dev/null");
 
@@ -8,9 +8,12 @@ echo "creating 10000 keys\n";
 $oldkey = "";
 $key = $ga->createBase32Key();
 
+$hex = $ga->helperb322hex($key);
+
 $url = $ga->createURL("someuser", $key);
 
 system("qrencode -s 6 -o /tmp/file.unittest $url");
 system("eog /tmp/file.unittest");
-unlink("/tmp/file.unittest");
+echo "key in hex: $hex\n";
+//unlink("/tmp/file.unittest");
 ?>