Changeset 873 for trunk/Modules/News/ImportTvBeskyd.php
- Timestamp:
- Apr 6, 2020, 11:17:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/News/ImportTvBeskyd.php
r827 r873 17 17 //$Content = addslashes($Encoding->ToUTF8(file_get_contents($SourceURL), 'win1250')); 18 18 $Content = @file_get_contents($SourceURL); 19 while (strpos($Content, $StartText) !== false)19 while (strpos($Content, $StartText) !== false) 20 20 { 21 21 $Content = substr($Content, strpos($Content, $StartText) + strlen($StartText)); … … 37 37 $DbResult = $System->Database->select('News', 'Id', '`Title`="'.$System->Database->real_escape_string($Title).'" AND `Category`='.$Category); 38 38 //echo($System->Database->LastQuery); 39 if ($DbResult->num_rows == 0)39 if ($DbResult->num_rows == 0) 40 40 { 41 41 $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.