if (substr($img, 0, 9) == 'thumb.php') { $ret .= '<img style="alt="' . $alt . '" title="' . $title . '" thumb="true" src="images/working.gif" realsrc="' . $img . '" />' . "\n"; } else { $ret .= '<img style="alt="' . $alt . '" title="' . $title . '" src="' . $img . '" />' . "\n"; } $ret .= '</a></div>' . $ahref . mb_strimwidth($text, 0, 15, '..', 'UTF-8') . '</a>' . "\n"; $ret .= $pack . "\n"; $ret .= '</div>' . "\n"; $ret .= "\n\n"; return $ret; } $rootdir = getbase($_GET['base']); if ($rootdir) { $t = renderdir($rootdir, $_GET['dir']); echo '<div style="font-size:10pt;">'; echo mklink(getbasename($_GET['base']), $t['dir']); echo '</div>'; if (!empty($t['index'])) { echo '<div style="border:solid 1px #f00; background:#dff; padding:2px; font-size:10pt; text-align:center;">這個資料夾內有幾個網頁,<a href="' . urlenc($t['index']) . '" style="color:#00f;">這裡</a>可能是首頁</div>'; } if (strlen(rtrim($t['dir'], '/\\')) > 0) { # echo mkitem('[上一層]','Parent','Parent','<a href="javascript:history.back();">','images/pdir.gif',null,null); # echo mkitem('[上一層]','Parent','Parent','<a href="index.php?base='.$_GET['base'].'&dir='.urlencode($dir.'..').'">','images/pdir.gif',null,null); } echo $t['html']; } else { foreach ($base as $k => $v) { getbase($k); echo mkitem($v[0], $v[0], $v[0], '<a href="index.php?base=' . $k . '">', 'images/dir.gif', istoday($v[1]), ($dz = udirsize($v[1])) > 0 ? '<br /><a style="float:right;" href="pack.php?base=' . $k . '"><img alt="Pack n Download" title="下載這個資料夾 - ' . fsize($dz) . '" src="images/pack.gif" /></a>' : ''); } }
$ext = 'mp3'; } if (ufile_exists($CFG['cachedir'] . $hash . '.' . $ext)) { ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="common.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="flowplayer/example/flowplayer-3.2.6.min.js"></script> </head> <body><!-- <?php echo $hash; ?> --> <div style="font-size:10pt;"><?php echo mklink(getbasename($_GET['base']), $file); ?> </div> <center> <span id="player" style="display:block;width:640px;height:480px"></span> <!-- <img src="<?php echo $CFG['browserurl'] . $CFG['cacheurl'] . $hash . '_L.jpg'; ?> " style="width:640px; height:480px;" /> --> <script type="text/javascript"> flowplayer("player", "flowplayer/flowplayer-3.2.7.swf", { canvas: { backgroundColor: '#000000' },