-sqgetGlobalVar('HTTP_USER_AGENT', $HTTP_USER_AGENT, SQ_SERVER);
-if ( ! sqgetGlobalVar('HTTP_USER_AGENT', $HTTP_USER_AGENT, SQ_SERVER) )
- $HTTP_USER_AGENT="Browser information is not available.";
+/**
+ * Retrieve long text string containing semi-formatted (simple text
+ * with newlines and spaces for indentation) SquirrelMail system
+ * specs
+ *
+ * @return array A three-element array, the first element containing
+ * the string of system specs, the second one containing
+ * a list of any warnings that may have occurred, keyed
+ * by a warning "type" (which is used to key the corrections
+ * array next), and the third element of which is a list
+ * of sub-arrays keyed by warning "type": the sub-arrays
+ * are lists of correction messages associated with the
+ * warnings. The second and third return elements may
+ * be empty arrays if no warnings were found.
+ *
+ * @since 1.5.2
+ *
+ */
+function get_system_specs() {
+//FIXME: configtest and this plugin should be using the same code to generate the basic SM system specifications and setup detection
+
+ global $imapServerAddress, $username, $imapPort, $imap_server_type,
+ $use_imap_tls, $ldap_server;
+
+ // load required libraries
+ //
+ include_once(SM_PATH . 'functions/imap_general.php');