Changeset 908


Ignore:
Timestamp:
May 1, 2021, 10:01:34 AM (3 years ago)
Author:
chronos
Message:
  • Modified: http links replaced by https.
Location:
trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/UpdateTrace.php

    r907 r908  
    16841684
    16851685  $Manager->Execute("INSERT INTO `OS` (`Id`, `Name`, `Subject`, `Web`) VALUES
    1686   (3, 'Ubuntu', NULL, 'http://www.ubuntu.com/'),
     1686  (3, 'Ubuntu', NULL, 'https://www.ubuntu.com/'),
    16871687  (4, 'Fedora', NULL, 'https://getfedora.org/'),
    16881688  (5, 'OpenSUSE', NULL, 'https://www.opensuse.org/'),
  • trunk/Common/Form/Types/GPS.php

    r887 r908  
    1313      $Longitude = $this->Explode($DbRow['Longitude']);
    1414      $Latitude = $this->Explode($DbRow['Latitude']);
    15       $Output = '<a href="http://www.mapy.cz/?st=search&fr=loc:'.$DbRow['Latitude'].' '.$DbRow['Longitude'].'">'.$Latitude[0].'°'.$Latitude[1]."'".$Latitude[2].'" '.$Longitude[0].'°'.$Longitude[1]."'".$Longitude[2].'"</a>';
     15      $Output = '<a href="https://www.mapy.cz/?st=search&fr=loc:'.$DbRow['Latitude'].' '.$DbRow['Longitude'].'">'.$Latitude[0].'°'.$Latitude[1]."'".$Latitude[2].'" '.$Longitude[0].'°'.$Longitude[1]."'".$Longitude[2].'"</a>';
    1616    }
    1717    return $Output;
  • trunk/Modules/Customer/Customer.php

    r901 r908  
    276276        if ($Contract['File'] > 0) $Output .= 'Smlouva: <a href="'.$this->System->Link('/file?h='.$Contract['FileHash']).'">'.$Contract['BillCodeText'].'</a><br/>';
    277277          else $Output .= 'Smlouva: '.$Contract['BillCodeText'].'<br/>';
    278         $Output .= 'Všeobecné smluvní podmínky: <a href="http://www.zdechov.net/docs/V%C5%A1eobecn%C3%A9%20smluvn%C3%AD%20podm%C3%ADnky.pdf">PDF</a><br/>';
     278        $Output .= 'Všeobecné smluvní podmínky: <a href="https://www.zdechov.net/docs/V%C5%A1eobecn%C3%A9%20smluvn%C3%AD%20podm%C3%ADnky.pdf">PDF</a><br/>';
    279279      }
    280280    }
  • trunk/Modules/Finance/Manage.php

    r902 r908  
    408408      $Content .= '</table><br />'."\n".
    409409      'Pro aktuální informace, prohlížení elektronických dokladů a možnost změny údajů se prosím přihlaste na stránkách '.
    410       '<a href="http://'.$Config['Web']['Host'].$Config['Web']['RootFolder'].'">http://'.
     410      '<a href="https://'.$Config['Web']['Host'].$Config['Web']['RootFolder'].'">https://'.
    411411      $Config['Web']['Host'].$Config['Web']['RootFolder'].'</a>.<br /><br />'."\n";
    412412
  • trunk/Modules/Log/Log.php

    r899 r908  
    7171      (
    7272        'Title' => $Line['Module'].' '.$Line['Operation'].' ('.$Line['UserName'].', '.$Line['IPAddress'].')',
    73         'Link' => 'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/log.php'),
     73        'Link' => 'https://'.$this->System->Config['Web']['Host'].$this->System->Link('/log.php'),
    7474        'Description' => $Line['Module'].' '.$Line['Operation'].': '.$Line['Value'].' ('.$Line['UserName'].
    7575          ', '.$Line['IPAddress'].', '.HumanDate($Line['Time']).')',
     
    8080    $RSS = new RSS();
    8181    $RSS->Title = $this->System->Config['Web']['Title'].' - Záznamy';
    82     $RSS->Link = 'http://'.$this->System->Config['Web']['Host'].'/';
     82    $RSS->Link = 'https://'.$this->System->Config['Web']['Host'].'/';
    8383    $RSS->Description = 'Aktuality '.$this->System->Config['Web']['Description'];
    8484    $RSS->WebmasterEmail = $this->System->Config['Web']['AdminEmail'];
  • trunk/Modules/Network/Network.php

    r907 r908  
    2525    '<a href="?section=obsazeni_wifi_kanalu&amp;range=bc">Pásmo 5 GHz dolní (b, c)</a> '.
    2626    '<a href="?section=obsazeni_wifi_kanalu&amp;range=d">Pásmo 5 GHz horní (d)</a> '.
    27     '<a href="http://www.ctu.cz/1/download/Opatreni%20obecne%20povahy/VO_R_12_08_2005_34.pdf">VO_R_12_08_2005_34</a><br/>'.
     27    '<a href="https://www.ctu.cz/1/download/Opatreni%20obecne%20povahy/VO_R_12_08_2005_34.pdf">VO_R_12_08_2005_34</a><br/>'.
    2828    '<strong>Seznam známých AP a obsazení kmitočtových pásem:</strong></div>'.
    2929    '<table class="WideTable">'.
  • trunk/Modules/News/News.php

    r899 r908  
    240240  }
    241241
    242   function ModifyContent(string $Content): string
     242  function ModifyContentPrefix(string $Content, string $Prefix): string
    243243  {
    244244    $Result = '';
     
    246246    // Make HTML link from URL
    247247    $I = 0;
    248     while (strpos($Content, 'http://') !== false)
    249     {
    250       $I = strpos($Content, 'http://');
     248    while (strpos($Content, $Prefix) !== false)
     249    {
     250      $I = strpos($Content, $Prefix);
    251251      if (($I > 0) and ($Content[$I - 1] != '"'))
    252252      {
     
    266266    $Result .= $Content;
    267267    return $Result;
     268  }
     269
     270  function ModifyContent(string $Content): string
     271  {
     272    return $this->ModifyContentPrefix($this->ModifyContentPrefix($Content, 'http://'), 'https://');
    268273  }
    269274
  • trunk/Modules/News/NewsPage.php

    r887 r908  
    350350    } else
    351351    {
    352       $Output = 'Vytvořte si vlastní RSS kanál, díky kterému budete moci automaticky sledovat novinky pomocí vaší RSS čtečky. Informace o technologii RSS a programech pro čtení kanálů najdete např. <a href="http://www.lupa.cz/clanky/prehled-rss-ctecek/">zde</a><br />'.
     352      $Output = 'Vytvořte si vlastní RSS kanál, díky kterému budete moci automaticky sledovat novinky pomocí vaší RSS čtečky. '.
     353        'Informace o technologii RSS a programech pro čtení kanálů najdete např. <a href="https://www.lupa.cz/clanky/prehled-rss-ctecek/">zde</a><br />'.
    353354      '<br />Kategorie:<br />';
    354355      $Output .= '<form action="?build=1" method="post">';
     
    458459      $Items[] = array(
    459460        'Title' => $Categories[$Row['Category']].' - '.$Row['Title'],
    460         'Link' => 'http://'.$this->System->Config['Web']['Host'].'/aktuality/?category='.$Row['Category'],
     461        'Link' => 'https://'.$this->System->Config['Web']['Host'].'/aktuality/?category='.$Row['Category'],
    461462        'Description' => $Row['Content'].' ('.$Author.')'.$EnclosuresText,
    462463        'Time' => $Row['UnixTime'],
     
    466467    $RSS = new RSS();
    467468    $RSS->Title = $this->System->Config['Web']['Title'].' - Aktuality';
    468     $RSS->Link = 'http://'.$this->System->Config['Web']['Host'].'/';
     469    $RSS->Link = 'https://'.$this->System->Config['Web']['Host'].'/';
    469470    $RSS->Description = 'Aktuality '.$this->System->Config['Web']['Description'];
    470471    $RSS->WebmasterEmail = $this->System->Config['Web']['AdminEmail'];
  • trunk/Modules/Notify/Notify.php

    r899 r908  
    158158      (
    159159        'Title' => $Line['Title'],
    160         'Link' => 'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/Notify.php'),
     160        'Link' => 'https://'.$this->System->Config['Web']['Host'].$this->System->Link('/Notify.php'),
    161161        'Description' => $Line['Content'],
    162162        'Time' => $Line['Time'],
     
    166166    $RSS = new RSS();
    167167    $RSS->Title = $this->System->Config['Web']['Title'].' - Záznamy upozornění';
    168     $RSS->Link = 'http://'.$this->System->Config['Web']['Host'].'/';
     168    $RSS->Link = 'https://'.$this->System->Config['Web']['Host'].'/';
    169169    $RSS->Description = 'Záznam upozornění '.$this->System->Config['Web']['Description'];
    170170    $RSS->WebmasterEmail = $this->System->Config['Web']['AdminEmail'];
  • trunk/Modules/TimeMeasure/Measurement/MeasureClient.php

    r873 r908  
    2222          if ($MeasureClient['Parameter'] != '') $Value = $Measure->$MeasureMethod['Method']($MeasureClient['Parameter']);
    2323            else $Value = $MeasureClass->$MeasureMethod['Method']();
    24           echo(file_get_contents('http://'.$MeasureClient['Host'].$MeasureClient['Path'].'/?M=Add&MeasureId='.$MeasureClient['MeasureId'].'&Value='.addslashes($Value)));
     24          echo(file_get_contents('https://'.$MeasureClient['Host'].$MeasureClient['Path'].'/?M=Add&MeasureId='.$MeasureClient['MeasureId'].'&Value='.addslashes($Value)));
    2525        } else echo('Metoda '.$MeasureMethod['Method'].' neexistuje.');
    2626      } else echo('Třída '.$MeasureMethod['MeasureClass'].' neexistuje.');
  • trunk/Modules/User/UserModel.php

    r900 r908  
    179179
    180180            // Send activation mail to user email
    181             $ServerURL = 'http://'.$this->System->Config['Web']['Host'].$this->System->Config['Web']['RootFolder'];
     181            $ServerURL = 'https://'.$this->System->Config['Web']['Host'].$this->System->Config['Web']['RootFolder'];
    182182            $Mail = new Mail();
    183183            $Mail->Subject = 'Registrace nového účtu';
     
    407407      $NewPassword = substr(sha1(strtoupper($Row['Login'])), 0, 7);
    408408
    409       $ServerURL = 'http://'.$this->System->Config['Web']['Host'].$this->System->Config['Web']['RootFolder'];
     409      $ServerURL = 'https://'.$this->System->Config['Web']['Host'].$this->System->Config['Web']['RootFolder'];
    410410      $Mail = new Mail();
    411411      $Mail->Subject = 'Obnova hesla';
  • trunk/Readme.txt

    r887 r908  
    1515  Do složky Modules/NetworkConfigRouterOS/Generators zkopírovat soubory id_dsa a id_dsa.pub.
    1616  Soubory lze vygenerovat pomocí příkazu ssh-keygen -t dsa.
    17   Další informace: http://wiki.mikrotik.com/wiki/Use_SSH_to_execute_commands_(DSA_key_login)
     17  Další informace: https://wiki.mikrotik.com/wiki/Use_SSH_to_execute_commands_(DSA_key_login)
    1818
    1919
     
    2929  uploads - vlastníka nastavit na apache
    3030
    31  
     31
    32325) Požadované balíky
    3333  htmldoc - Pro generování PDF z HTML
    3434  fping - fast ping for checking status of network devices
    35  
     35
    3636  Ubuntu: apt-get install htmldoc php7-mbstring fping
    3737
Note: See TracChangeset for help on using the changeset viewer.