Centralized init
[squirrelmail.git] / plugins / info / functions.php
index 3a20afb8220bc5b31696dcf7f1b172e9fe9df2ef..36bff635d67d386368d1e2987b4f2404dedef69f 100644 (file)
@@ -1,16 +1,17 @@
 <?php
+
 /**
  * functions for info plugin
  *
  * Here are two functions for the info plugin
  * The first gets the CAPABILITY response from your IMAP server.
- * The second runs the passed IMAP test and returns the results 
+ * The second runs the passed IMAP test and returns the results
  * The third prints the results of the IMAP command
  * to options.php.
  *
- * @copyright (c) 1999-2004 The SquirrelMail Project Team
+ * @author Jason Munro <jason at stdbev.com>
+ * @copyright &copy; 1999-2006 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
- * @author Jason Munro jason@stdbev.com
  * @version $Id$
  * @package plugins
  * @subpackage info
@@ -36,7 +37,6 @@ function get_caps($imap_stream) {
  * @access private
  */
 function imap_test($imap_stream, $string) {
-    global $default_charset;
     print "<tr><td>".htmlspecialchars($string)."</td></tr>";
     $response = sqimap_run_command_list($imap_stream, trim($string),false, $responses, $message,false);
     array_push($response, $responses . ' ' .$message);
@@ -60,17 +60,4 @@ function print_response($response) {
     }
 }
 
-/**
- * Check if plugin is enabled
- * @param string $plugin_name plugin name
- * @return boolean
- */
-function is_plugin_enabled($plugin_name) {
-  global $plugins;
-  if ( in_array($plugin_name,$plugins) ) {
-    return true;
-  } else {
-    return false;
-  }
-}
 ?>
\ No newline at end of file