///////////////////////////////////////////////////////////////// // Yuba RTC Browser ///////////////////////////////////////////////////////////////// $icon_size = 64; $pad = 28; ?>
// Functions function breadcrumbs() { } function shortlabel($filename, $max = 40) { $suffix = "(...).".pathinfo($filename)['extension']; if (strlen($filename) > $max) { $return = substr($filename, 0, ($max-strlen($suffix))).$suffix; } else { $return = $filename; } return $return; } function findicon($filename) { $ext = pathinfo($filename)['extension']; if (!$ext) { $good = "icons/directory.png"; } else { $good = "icons/null.png"; } foreach (glob("icons/*.png") as $file) { if (pathinfo($file)['filename'] == $ext) { $good = $file; } } return $good; } ///////////////////////////////////////////////////////////////// $db_file = $_GET['db']; $pid = $_GET['pid']; if ($db_file) { // View if (!is_readable($db_file)) { echo "can't read db file"; die; } echo "db list"; echo ""; print_r($array); echo ""; echo "