<?php
/* functions for info plugin
* Copyright (c) 1999-2020 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* 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 third prints the results of the IMAP command
* to options.php.
*
* $Id: functions.php 14840 2020年01月07日 07:42:38Z pdontthink $
*
*/
$query = "$sid CAPABILITY\r\n";
fputs ($imap_stream, $query);
return $responses;
}
$message = '';
$responses = array ();
$results = array();
$query =
"$sid ".
trim ($string).
"\r\n";
fputs ($imap_stream, $query);
return $response;
}
foreach($response as $index=>$value) {
}
else {
}
}
}
/**
* Check if plugin is enabled
* @param string $plugin_name plugin name
* @return boolean
*/
global $plugins;
if (empty($plugins) ||
! is_array ($plugins))
return false;
if ( in_array ($plugin_name,$plugins) ) {
return true;
} else {
return false;
}
}