Changeset 683


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
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/Version.php

    r682 r683  
    11<?php
    22
    3 $Revision = 682; // Subversion revision
     3$Revision = 683; // Subversion revision
    44$DatabaseRevision = 679; // SQL structure revision
    55$ReleaseTime = strtotime('2014-08-05');
  • trunk/Common/Form/Types/MacAddress.php

    r606 r683  
    2929    return('"'.addslashes($Value).'"');
    3030  }
    31  
     31
    3232  function Validate($Item)
    3333  {
    3434        if($Item['Null'] and ($Item['Value'] == '')) return(true);
    35         return(preg_match('/^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$/', $Item['Value']));
     35        return(preg_match('/^([0-9A-F]{2}[:]){5}([0-9A-F]{2})$/', $Item['Value']));
    3636  }
    3737
  • 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.