Changeset 683 for trunk/Modules/News


Ignore:
Timestamp:
Aug 5, 2014, 11:02:46 PM (10 years ago)
Author:
chronos
Message:
  • Upraveno: Potlačit záznam chyb pokud zdrojová stránka RSS aktualit není dosažitelná.
  • Upraveno: Nepřijímat MAC adresu s pomlčkami jako platnou.
Location:
trunk/Modules/News
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/News/ImportTvBeskyd.php

    r635 r683  
    1616//$Encoding = new Encoding();
    1717//$Content = addslashes($Encoding->ToUTF8(file_get_contents($SourceURL), 'win1250'));
    18 $Content = file_get_contents($SourceURL);
     18$Content = @file_get_contents($SourceURL);
    1919while(strpos($Content, $StartText) !== false)
    2020{
     
    3434  //echo('Description: '.$Description.'<br>');
    3535  //echo('Link: '.$Link.'<br><hr>');
    36  
     36
    3737  $DbResult = $System->Database->select('News', 'Id', '`Title`="'.$System->Database->real_escape_string($Title).'" AND `Category`='.$Category);
    3838  //echo($System->Database->LastQuery);
  • trunk/Modules/News/ImportZdechovCzNews.php

    r622 r683  
    1515$Category = 12;
    1616$Author = 'Automat';
    17 $Content = file_get_contents($SourceURL);
     17$Content = @file_get_contents($SourceURL);
    1818while(strpos($Content, $StartText) !== false)
    1919{
     
    2929  $Title = substr($Content, 0, strpos($Content, '<'));
    3030  $Description = '';
    31  
     31
    3232
    3333  /*
  • trunk/Modules/News/ImportZdechovCzRecords.php

    r622 r683  
    1515$Category = 11;
    1616$Author = 'Automat';
    17 $Content = file_get_contents($SourceURL);
     17$Content = @file_get_contents($SourceURL);
    1818while(strpos($Content, $StartText) !== false)
    1919{
     
    2929  $Title = substr($Content, 0, strpos($Content, '<'));
    3030  $Description = '';
    31  
     31
    3232
    3333  /*
Note: See TracChangeset for help on using the changeset viewer.