plugins/yubikey/corelib.php
changeset 3 d0fe7acaf0e8
parent 0 9d2c4f04a0d0
child 4 73aecd46bb56
--- a/plugins/yubikey/corelib.php	Thu Feb 26 01:19:45 2009 -0500
+++ b/plugins/yubikey/corelib.php	Thu Feb 26 11:30:17 2009 -0500
@@ -172,6 +172,9 @@
 
 function yubikey_attach_headers(&$template)
 {
+  if ( getConfig('yubikey_enable', '1') != '1' )
+    return true;
+  
   $template->add_header('<script type="text/javascript" src="' . scriptPath . '/plugins/yubikey/yubikey.js"></script>');
   $template->add_header('<link rel="stylesheet" type="text/css" href="' . scriptPath . '/plugins/yubikey/yubikey.css" />');
 }