Changeset 306 for trunk/aktuality/import_zdechov_cz_zapisy.php
- Timestamp:
- Jan 30, 2011, 8:56:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aktuality/import_zdechov_cz_zapisy.php
r196 r306 8 8 $StartLink = '<a href=..'; 9 9 $Category = 11; 10 $Author = 'Automat'; 10 11 11 12 $Content = addslashes(ToUTF8(file_get_contents($SourceURL), 'win1250')); … … 21 22 $Link = substr($Link, 0, strpos($Link, '?')); // Remove URL parameters 22 23 $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 = ''; 24 25 25 26 /* … … 34 35 if($DbResult->num_rows == 0) 35 36 { 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); 37 38 echo($Database->insert_id.','); 38 39 }
Note:
See TracChangeset
for help on using the changeset viewer.