GIT.Harvie.CZ
/
mirrors
/
JukeBox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a9beee0
)
fixed passing forgotten parameter to render_dir_line()
author
Harvie
<tomas@mudrunka.cz>
Sat, 10 Jul 2010 06:30:32 +0000
(08:30 +0200)
committer
Harvie
<tomas@mudrunka.cz>
Sat, 10 Jul 2010 06:30:32 +0000
(08:30 +0200)
index.php
patch
|
blob
|
blame
|
history
diff --git
a/index.php
b/index.php
index 233513ed74bc2c985a623d6e96fdd596e85dae1a..a815230649c532846e17b844f77633d45ecf2b4a 100755
(executable)
--- a/
index.php
+++ b/
index.php
@@
-205,8
+205,8
@@
function render_file_line($dir, $item, $dir_url, $index, $filesize, $parent = fa
echo(' </td><td><a href="'.$temp.'">'.unxss(str_replace('_', ' ', $item)).'</a></td><td>'.$filesize." MiB </td></tr>\n");
}
echo(' </td><td><a href="'.$temp.'">'.unxss(str_replace('_', ' ', $item)).'</a></td><td>'.$filesize." MiB </td></tr>\n");
}
-function render_dir_line($item, $i) {
- $parclass=($i%2?'even':'odd'); $parcolor=($i
ndex
%2?'lightblue':'white');
+function render_dir_line($
current_dir, $
item, $i) {
+ $parclass=($i%2?'even':'odd'); $parcolor=($i%2?'lightblue':'white');
$temp=str_replace('%2F', '/', rawurlencode($current_dir)).rawurlencode($item);
echo("<tr class=\"$parclass directory\" bgcolor=\"$parcolor\">".
'<td><a href="#up">'.$i.'</a></td><td class="btntd"><a href="?download&playlist&dir='.$temp.'" class="icon iplay">P</a>/'.
$temp=str_replace('%2F', '/', rawurlencode($current_dir)).rawurlencode($item);
echo("<tr class=\"$parclass directory\" bgcolor=\"$parcolor\">".
'<td><a href="#up">'.$i.'</a></td><td class="btntd"><a href="?download&playlist&dir='.$temp.'" class="icon iplay">P</a>/'.
@@
-477,7
+477,7
@@
for($s=2;$s;$s--) { while(($item = readdir($dd)) != false) {
render_file_line($dir, $item, $music_dir_url, $i, filesize($dir.$item));
}
if(is_dir($dir.$item)) {
render_file_line($dir, $item, $music_dir_url, $i, filesize($dir.$item));
}
if(is_dir($dir.$item)) {
- render_dir_line($item, $i);
+ render_dir_line($
current_dir, $
item, $i);
}
}
} rewinddir($dd); }
}
}
} rewinddir($dd); }
@@
-487,7
+487,7
@@
if($sort > 1) {
@sort($itemsd);
foreach($itemsd as $item) {
$i++;
@sort($itemsd);
foreach($itemsd as $item) {
$i++;
- render_dir_line($item, $i);
+ render_dir_line($
current_dir, $
item, $i);
}
foreach($itemsf as $item) {
$i++;
}
foreach($itemsf as $item) {
$i++;
This page took
0.14 seconds
and
4
git commands to generate.