#1485741: fix installer after some last changes

release-0.6
alecpl 16 years ago
parent 8a78a16155
commit 0ff63513c2

@ -13,6 +13,7 @@ $include_path .= ini_get('include_path');
set_include_path($include_path);
require_once 'rcube_shared.inc';
require_once 'utils.php';
session_start();
@ -105,7 +106,7 @@ if ($RCI->configured && empty($_REQUEST['_step'])) {
</ol>
<?php
$include_steps = array('welcome.html', 'check.php', 'config.php', 'test.php');
$include_steps = array('./welcome.html', './check.php', './config.php', './test.php');
if ($include_steps[$RCI->step]) {
include $include_steps[$RCI->step];

@ -1233,29 +1233,4 @@ class rcube_base_replacer
}
}
/**
* Explode quoted string
*
* @param string Delimiter expression string for preg_match()
* @param string Input string
*/
function rcube_explode_quoted_string($delimiter, $string)
{
$result = array();
$strlen = strlen($string);
for ($q=$p=$i=0; $i < $strlen; $i++) {
if ($string[$i] == "\"" && $string[$i-1] != "\\") {
$q = $q ? false : true;
}
else if (!$q && preg_match("/$delimiter/", $string[$i])) {
$result[] = substr($string, $p, $i - $p);
$p = $i + 1;
}
}
$result[] = substr($string, $p);
return $result;
}
?>

@ -599,4 +599,30 @@ function rc_detect_encoding($string, $failover='')
return $result ? $result : $failover;
}
/**
* Explode quoted string
*
* @param string Delimiter expression string for preg_match()
* @param string Input string
*/
function rcube_explode_quoted_string($delimiter, $string)
{
$result = array();
$strlen = strlen($string);
for ($q=$p=$i=0; $i < $strlen; $i++) {
if ($string[$i] == "\"" && $string[$i-1] != "\\") {
$q = $q ? false : true;
}
else if (!$q && preg_match("/$delimiter/", $string[$i])) {
$result[] = substr($string, $p, $i - $p);
$p = $i + 1;
}
}
$result[] = substr($string, $p);
return $result;
}
?>

Loading…
Cancel
Save