-$imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
+
+/**
+ * testing installation
+ *
+ * prevent use of plugin if it is not enabled
+ */
+if (! is_plugin_enabled('info')) {
+ error_box(_("Plugin is disabled."));
+ // display footer (closes html) and stop script execution
+ $oTemplate->display('footer.tpl');
+ exit;
+}
+
+/* GLOBALS */
+sqgetGlobalVar('submit', $submit, SQ_POST);
+
+for($i = 0; $i <= 9; $i++){
+ $varc = 'CHECK_TEST_'.$i;
+ sqgetGlobalVar($varc, $$varc, SQ_POST);
+ $vart = 'TEST_'.$i;
+ sqgetGlobalVar($vart, $$vart, SQ_POST);
+}
+
+/* END GLOBALS */
+
+$imap_stream = sqimap_login($username, false, $imapServerAddress, $imapPort, 0);