Ignore:
Timestamp:
Apr 6, 2020, 11:17:40 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Improved code format.
File:
1 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");
Note: See TracChangeset for help on using the changeset viewer.