X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=installer%2Futils.php;fp=installer%2Futils.php;h=1c101058fcc0608503dcbf21b98353820c05424c;hb=b68022ca3782d5eb5a1a7ef6f8cf7abe1dc15bd6;hp=c1775f2bba6f6a856d54db16bd0e4829c4b4c308;hpb=162c8d010934c01433e8125382fb493712575198;p=roundcube.git diff --git a/installer/utils.php b/installer/utils.php index c1775f2..1c10105 100644 --- a/installer/utils.php +++ b/installer/utils.php @@ -1,15 +1,41 @@ | + +-------------------------------------------------------------------------+ + + $Id: index.php 2696 2009-07-02 06:38:26Z thomasb $ + +*/ /** * Use PHP5 autoload for dynamic class loading - * (copy from program/incllude/iniset.php) + * (copy from program/include/iniset.php) */ function __autoload($classname) { $filename = preg_replace( - array('/MDB2_(.+)/', '/Mail_(.+)/', '/^html_.+/', '/^utf8$/'), - array('MDB2/\\1', 'Mail/\\1', 'html', 'utf8.class'), + array('/MDB2_(.+)/', '/Mail_(.+)/', '/Net_(.+)/', '/^html_.+/', '/^utf8$/'), + array('MDB2/\\1', 'Mail/\\1', 'Net/\\1', 'html', 'utf8.class'), $classname ); include_once $filename. '.php'; @@ -17,19 +43,7 @@ function __autoload($classname) /** - * Shortcut function for htmlentities() - * - * @param string String to quote - * @return string The html-encoded string - */ -function Q($string) -{ - return htmlentities($string, ENT_COMPAT, 'UTF-8'); -} - - -/** - * Fake rinternal error handler to catch errors + * Fake internal error handler to catch errors */ function raise_error($p) { @@ -37,4 +51,3 @@ function raise_error($p) $rci->raise_error($p); } -