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_zdechov_cz_zapisy.php

    r196 r306  
    88$StartLink = '<a href=..';
    99$Category = 11;
     10$Author = 'Automat';
    1011
    1112$Content = addslashes(ToUTF8(file_get_contents($SourceURL), 'win1250'));
     
    2122  $Link = substr($Link, 0, strpos($Link, '?')); // Remove URL parameters
    2223  $Link = substr($Link, 0, strrpos($Link, '/')).$DateParts[1].substr($Link, strrpos($Link, '/')); // Insert month between folder and filename
    23   $Description = '<a href="'.$Link.'">Odkaz</a>';
     24  $Description = '';
    2425
    2526/*
     
    3435  if($DbResult->num_rows == 0)
    3536  {
    36     $Database->insert('News', array('Title' => $Title, 'Date' => $Date, 'Author' => 'zdechov.cz', 'Category' => $Category, 'Content' => $Description));
     37    $Database->insert('News', array('Title' => $Title, 'Date' => $Date, 'Author' => $Automat, 'Category' => $Category, 'Content' => $Description), 'Link' => $Link);
    3738    echo($Database->insert_id.',');
    3839  }
Note: See TracChangeset for help on using the changeset viewer.