Changeset 873 for trunk/Modules/TV


Ignore:
Timestamp:
Apr 6, 2020, 11:17:40 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code format.
Location:
trunk/Modules/TV
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/TV/TV.php

    r825 r873  
    1111  function Show()
    1212  {
    13     if(count($this->System->PathItems) > 1)
     13    if (count($this->System->PathItems) > 1)
    1414    {
    15       if($this->System->PathItems[1] == 'playlist.m3u') return($this->ShowPlayList());
    16         else return(PAGE_NOT_FOUND);
    17     } else return($this->ShowChannelList());
     15      if ($this->System->PathItems[1] == 'playlist.m3u') return ($this->ShowPlayList());
     16        else return (PAGE_NOT_FOUND);
     17    } else return ($this->ShowChannelList());
    1818  }
    1919
     
    5151
    5252    $DbResult = $this->Database->query($Query);
    53     while($Line = $DbResult->fetch_assoc())
     53    while ($Line = $DbResult->fetch_assoc())
    5454    {
    55       if($Line['Stream'] <> '') $Line['Show'] = '<a href="playlist.m3u?id='.$Line['ShortName'].'">Naladit</a>';
     55      if ($Line['Stream'] <> '') $Line['Show'] = '<a href="playlist.m3u?id='.$Line['ShortName'].'">Naladit</a>';
    5656      else
    57       if($Line['StreamWeb'] <> '') $Line['Show'] = '<a href="'.$Line['StreamWeb'].'">Naladit</a>';
     57      if ($Line['StreamWeb'] <> '') $Line['Show'] = '<a href="'.$Line['StreamWeb'].'">Naladit</a>';
    5858        else $Line['Show'] = '&nbsp;';
    5959
     
    7272    $Output .= 'Další online TV na webu: <a href="http://www.tvinfo.cz/live/televize/evropa/cz">TV info</a><br/>';
    7373
    74     return($Output);
     74    return ($Output);
    7575  }
    7676
     
    8383
    8484    echo('#EXTM3U'."\n");
    85     if(array_key_exists('id', $_GET))
     85    if (array_key_exists('id', $_GET))
    8686    {
    8787      $DbResult = $this->Database->select('TV', '*', ' (`Stream` <> "") AND (`ShortName`="'.addslashes($_GET['id']).'") ');
    88       if($DbResult->num_rows > 0)
     88      if ($DbResult->num_rows > 0)
    8989      {
    9090        $Channel = $DbResult->fetch_array();
     
    9595    {
    9696      $DbResult = $this->Database->select('TV', '*', ' (`Stream` <> "") ORDER BY `Name` ');
    97       while($Channel = $DbResult->fetch_array())
     97      while ($Channel = $DbResult->fetch_array())
    9898      {
    9999        echo('#EXTINF:0,'.$Channel['Name']."\n");
  • trunk/Modules/TV/tkr.php

    r738 r873  
    1212'<tr><th>Číslo</th<th>Jméno stanice</th><th>Frekvence [MHz]</th><th>Jazyk</th></tr>';
    1313    $DbResult = $this->Database->select('TV', '*', ' 1 ORDER BY Id');
    14     while($Row = $DbResult->fetch_array())
     14    while ($Row = $DbResult->fetch_array())
    1515    {
    1616      $Output .= '<tr><td>'.$Row['Id'].'</td><td><a href="'.$Row['Homepage'].'">'.$Row['Name'].'</a></td><td align="right">'.($Row['Frequency'] / 1000).'</td><td>'.$Row['Language'].'</td></tr>';
    1717    }
    1818    $Output .= '</table>Aktualizováno dne 17.12.2007<br></div>';
    19     return($Output);
     19    return ($Output);
    2020  }
    2121}
Note: See TracChangeset for help on using the changeset viewer.