Ignore:
Timestamp:
Apr 6, 2020, 11:17:40 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code format.
File:
1 edited

Legend:

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

    r827 r873  
    1717//$Content = addslashes($Encoding->ToUTF8(file_get_contents($SourceURL), 'win1250'));
    1818$Content = @file_get_contents($SourceURL);
    19 while(strpos($Content, $StartText) !== false)
     19while (strpos($Content, $StartText) !== false)
    2020{
    2121  $Content = substr($Content, strpos($Content, $StartText) + strlen($StartText));
     
    3737  $DbResult = $System->Database->select('News', 'Id', '`Title`="'.$System->Database->real_escape_string($Title).'" AND `Category`='.$Category);
    3838  //echo($System->Database->LastQuery);
    39   if($DbResult->num_rows == 0)
     39  if ($DbResult->num_rows == 0)
    4040  {
    4141    $System->Database->insert('News', array('Title' => $Title, 'Date' => 'NOW()', 'Author' => $Author, 'Category' => $Category, 'Content' => $Description, 'Link' => $Link));
Note: See TracChangeset for help on using the changeset viewer.