Ignore:
Timestamp:
Apr 6, 2020, 11:17:40 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code format.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkShare/playlist.php

    r790 r873  
    66$Vyber = '';
    77$Podminka = '';
    8 while($Row = $DbResult->fetch_array())
     8while ($Row = $DbResult->fetch_array())
    99  $Vyber .= $Row['id'].',';
    1010$Podminka .= ' AND (host IN ('.substr($Vyber,0,-1).'))';
     
    2525  $Cesta = ''; //$Row['name'];
    2626  $i = 0;
    27   while(($Otec>1)&&($i<$MaxNesting))
     27  while (($Otec>1)&&($i<$MaxNesting))
    2828  {
    2929    $DbResult = $Database->query("SELECT id,name,parent FROM items WHERE id=$Otec");
     
    3333    $i++;
    3434  }
    35   if($i >= $MaxNesting) $Cesta = '?'.'\\'.$Cesta;
    36   return('\\\\'.$Cesta);
     35  if ($i >= $MaxNesting) $Cesta = '?'.'\\'.$Cesta;
     36  return ('\\\\'.$Cesta);
    3737}
    3838
     
    4040{
    4141  //$FileInfo = new finfo(FILEINFO_MIME);
    42   //return($FileInfo->file($FileName));
    43   return('');
     42  //return ($FileInfo->file($FileName));
     43  return ('');
    4444}
    4545
     
    5151$Dir = '';
    5252$DbResult = $Database->select('items', '*', 'ext="mp3"'.$Podminka); //.' LIMIT 0,1000');
    53 while($Row = $DbResult->fetch_array())
     53while ($Row = $DbResult->fetch_array())
    5454{
    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");
    5656  $Parent = $Row['parent'];
    5757  echo($Dir.$Row['name'].'.'.$Row['ext']."\n");
Note: See TracChangeset for help on using the changeset viewer.