mobileXE 시험버전 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4318 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-06-23 08:38:32 +00:00
parent 009d74143f
commit 819f5e7709
8 changed files with 683 additions and 0 deletions

View file

@ -0,0 +1,17 @@
<?php
function getListedItems($menu, &$listed_items, &$mid_list) {
if(!count($menu)) return;
foreach($menu as $node_srl => $item) {
if(preg_match('/^([a-zA-Z0-9\_\-]+)$/', $item['url'])) {
$mid = $item['mid'] = $item['url'];
$mid_list[$node_srl] = $mid;
} else {
$mid = $item['mid'] = null;
}
$listed_items[$mid] = $item;
getListedItems($item['list'], $listed_items, $mid_list);
}
}
?>