function Pluf_HTTP_URL_find($views, $vdef, $regbase)␊ |
{␊ |
foreach ($views as $dview) {␊ |
if (isset($dview['sub'])) {␊ |
$regbase2 = $regbase;␊ |
if (empty($regbase2[0])) {␊ |
$regbase2[0] = $dview['base'];␊ |
}␊ |
$regbase2[1][] = $dview['regex'];␊ |
$res = Pluf_HTTP_URL_find($dview['sub'], $vdef, $regbase2);␊ |
if ($res) {␊ |
return $res;␊ |
}␊ |
}␊ |
if (␊ |
(isset($dview['name']) && $dview['name'] == $vdef[2])␊ |
or␊ |
|
}␊ |
return $regbase;␊ |
}␊ |
if (isset($dview['sub'])) {␊ |
$regbase2 = $regbase;␊ |
$regbase2[1][] = $dview['regex'];␊ |
$res = Pluf_HTTP_URL_find($dview['sub'], $vdef, $regbase2);␊ |
if ($res) {␊ |
return $res;␊ |
}␊ |
}␊ |
}␊ |
return false;␊ |
}␊ |