alecpl
2009-02-21 0ff63513c2c172ba9986b5d3f077951b1c47a328
#1485741: fix installer after some last changes


3 files modified
54 ■■■■ changed files
installer/index.php 3 ●●●● patch | view | raw | blame | history
program/include/main.inc 25 ●●●●● patch | view | raw | blame | history
program/include/rcube_shared.inc 26 ●●●●● patch | view | raw | blame | history
installer/index.php
@@ -13,6 +13,7 @@
set_include_path($include_path);
require_once 'rcube_shared.inc';
require_once 'utils.php';
session_start();
@@ -105,7 +106,7 @@
</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];
program/include/main.inc
@@ -1233,29 +1233,4 @@
  }
}
/**
 * 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;
}
?>
program/include/rcube_shared.inc
@@ -599,4 +599,30 @@
    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;
}
?>