Ignore:
Timestamp:
Jan 30, 2011, 8:56:26 PM (14 years ago)
Author:
george
Message:
  • Přidáno: RSS import pro obec hovězí a kino Vatra.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/aktuality/import_tv_beskyd.php

    r251 r306  
    99$StartLink = 'url="';
    1010$Category = 13;
    11 $Author = 'dviproduction.cz';
     11$Author = 'Automat';
    1212
    1313//$Content = addslashes(ToUTF8(file_get_contents($SourceURL), 'win1250'));
     
    2626//  $Link = substr($Link, 0, strpos($Link, '?')); // Remove URL parameters
    2727//  $Link = substr($Link, 0, strrpos($Link, '/')).substr($Link, strrpos($Link, '/')); // Insert month between folder and filename
    28   $Description .= '<br><a href="'.$Link.'">Video</a>';
    2928
    3029  //echo('Title: '.$Title.'<br>');
     
    3635  if($DbResult->num_rows == 0)
    3736  {
    38     $Database->insert('News', array('Title' => $Title, 'Date' => 'NOW()', 'Author' => $Author, 'Category' => $Category, 'Content' => $Description));
     37    $Database->insert('News', array('Title' => $Title, 'Date' => 'NOW()', 'Author' => $Author, 'Category' => $Category, 'Content' => $Description, 'Link' => $Link));
    3938    echo($Database->insert_id.',');
    4039  }
Note: See TracChangeset for help on using the changeset viewer.