00001 <?php
00003 function uplevel_box($location, $tpl_vars) {
00004 global $CONTENT_DIR;
00005
00006 if (count($location['data']) <= 2) {
00007
00008 return '';
00009 } else {
00010 array_pop($location['data']);
00011 $active = array_pop($location['data']);
00012 }
00013
00014 $page_dir = implode(
00015 DIRECTORY_SEPARATOR,
00016 array_merge(array($CONTENT_DIR), $location['data']));
00017
00018 if (is_dir($page_dir) && is_readable($page_dir)) {
00019 return page_list2html(
00020 page_list($page_dir), $active, $location['data']);
00021 }
00022 }
00023 $BOXES[] = 'uplevel';
00024 ?>