Changeset 873 for trunk/Modules/NetworkShare/playlist.php
- Timestamp:
- Apr 6, 2020, 11:17:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkShare/playlist.php
r790 r873 6 6 $Vyber = ''; 7 7 $Podminka = ''; 8 while ($Row = $DbResult->fetch_array())8 while ($Row = $DbResult->fetch_array()) 9 9 $Vyber .= $Row['id'].','; 10 10 $Podminka .= ' AND (host IN ('.substr($Vyber,0,-1).'))'; … … 25 25 $Cesta = ''; //$Row['name']; 26 26 $i = 0; 27 while (($Otec>1)&&($i<$MaxNesting))27 while (($Otec>1)&&($i<$MaxNesting)) 28 28 { 29 29 $DbResult = $Database->query("SELECT id,name,parent FROM items WHERE id=$Otec"); … … 33 33 $i++; 34 34 } 35 if ($i >= $MaxNesting) $Cesta = '?'.'\\'.$Cesta;36 return ('\\\\'.$Cesta);35 if ($i >= $MaxNesting) $Cesta = '?'.'\\'.$Cesta; 36 return ('\\\\'.$Cesta); 37 37 } 38 38 … … 40 40 { 41 41 //$FileInfo = new finfo(FILEINFO_MIME); 42 //return ($FileInfo->file($FileName));43 return ('');42 //return ($FileInfo->file($FileName)); 43 return (''); 44 44 } 45 45 … … 51 51 $Dir = ''; 52 52 $DbResult = $Database->select('items', '*', 'ext="mp3"'.$Podminka); //.' LIMIT 0,1000'); 53 while ($Row = $DbResult->fetch_array())53 while ($Row = $DbResult->fetch_array()) 54 54 { 55 if ($Parent != $Row['parent']) $Dir = PlnaCesta($Row); //echo('d'.PlnaCesta($Row)."\n");55 if ($Parent != $Row['parent']) $Dir = PlnaCesta($Row); //echo('d'.PlnaCesta($Row)."\n"); 56 56 $Parent = $Row['parent']; 57 57 echo($Dir.$Row['name'].'.'.$Row['ext']."\n");
Note:
See TracChangeset
for help on using the changeset viewer.