".htmlspecialchars($query)." | ";
fputs ($imap_stream, $query);
$response = sqimap_read_data_list($imap_stream, $sid, false, $responses, $message);
array_push($response, $message);
return $response;
}
function print_response($response) {
foreach($response as $index=>$value) {
if (is_array($value)) {
print_response($value);
}
else {
print htmlspecialchars($value)."
\n";
}
}
}
/**
* Check if plugin is enabled
* @param string $plugin_name plugin name
* @return boolean
*/
function info_is_plugin_enabled($plugin_name) {
global $plugins;
if (empty($plugins) || ! is_array($plugins))
return false;
if ( in_array($plugin_name,$plugins) ) {
return true;
} else {
return false;
}
}
?>