Aleksander Machniak
2015-08-29 a63f14ec4045e82f47b237663bcf09939a0eadc5
program/include/bc.php
@@ -1,6 +1,6 @@
<?php
/*
/**
 +-----------------------------------------------------------------------+
 | program/include/bc.php                                                |
 |                                                                       |
@@ -22,7 +22,8 @@
/**
 * Roundcube Webmail deprecated functions
 *
 * @package Core
 * @package Webmail
 * @subpackage Legacy
 * @author Thomas Bruederli <roundcube@gmail.com>
 */
@@ -31,7 +32,7 @@
define('RCUBE_INPUT_POST', rcube_utils::INPUT_POST);
define('RCUBE_INPUT_GPC',  rcube_utils::INPUT_GPC);
define('JS_OBJECT_NAME',   rcmail::JS_OBJECT_NAME);
define('JS_OBJECT_NAME',   rcmail_output::JS_OBJECT_NAME);
define('RCMAIL_CHARSET',   RCUBE_CHARSET);
function get_table_name($table)
@@ -61,7 +62,7 @@
function rcmail_temp_gc()
{
  $rcmail = rcmail::get_instance()->temp_gc();
  rcmail::get_instance()->gc_temp();
}
function rcube_charset_convert($str, $from, $to=NULL)
@@ -126,7 +127,7 @@
function rcmail_get_edit_field($col, $value, $attrib, $type='text')
{
  return rcube_utils::get_edit_field($col, $value, $attrib, $type);
  return rcube_output::get_edit_field($col, $value, $attrib, $type);
}
function rcmail_mod_css_styles($source, $container_id, $allow_remote=false)
@@ -204,9 +205,9 @@
    return rcmail::get_instance()->quota_content($attrib);
}
function rcmail_display_server_error($fallback=null, $fallback_args=null)
function rcmail_display_server_error($fallback=null, $fallback_args=null, $suffix='')
{
    rcmail::get_instance()->display_server_error($fallback, $fallback_args);
    rcmail::get_instance()->display_server_error($fallback, $fallback_args, $suffix);
}
function rcmail_filetype2classname($mimetype, $filename)
@@ -217,11 +218,6 @@
function rcube_html_editor($mode='')
{
    rcmail::get_instance()->html_editor($mode);
}
function rcmail_replace_emoticons($html)
{
    return rcmail::get_instance()->replace_emoticons($html);
}
function rcmail_deliver_message(&$message, $from, $mailto, &$smtp_error, &$body_file=null, $smtp_opts=null)
@@ -286,7 +282,7 @@
function rcube_check_referer()
{
    return rcmail::check_referer();
    return rcube_utils::check_referer();
}
function rcube_timer()
@@ -398,3 +394,30 @@
{
    return rcube_utils::get_boolean($str);
}
function enriched_to_html($data)
{
    return rcube_enriched::to_html($data);
}
function strip_quotes($str)
{
    return str_replace(array("'", '"'), '', $str);
}
function strip_newlines($str)
{
    return preg_replace('/[\r\n]/', '', $str);
}
class rcube_html_page extends rcmail_html_page
{
}
class washtml extends rcube_washtml
{
}
class html2text extends rcube_html2text
{
}