- Timestamp:
- Sep 14, 2008, 6:16:04 PM (16 years ago)
- Location:
- devel/www/aktuality
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/www/aktuality/import_zdechov_cz_aktuality.php
r107 r108 23 23 $Link = 'http://www.zdechov.cz/pages/main.php?pg=home&cat=1'; 24 24 25 /* 25 26 echo('Title: '.$Title.'<br>'); 26 27 echo('Description: '.$Description.'<br>'); 27 28 echo('Date: '.$Date.'<br>'); 28 29 echo('Link: '.$Link.'<br><hr>'); 30 */ 29 31 30 32 $DbResult = $Database->select('news', 'id', '`title`="'.$Title.'" AND `date`="'.$Date.'" AND `category`='.$Category); -
devel/www/aktuality/import_zdechov_cz_zapisy.php
r107 r108 21 21 $Link = substr($Link, 0, strpos($Link, '?')); // Remove URL parameters 22 22 $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>'; 23 24 25 /* 24 26 echo('Title: '.$Title.'<br>'); 27 echo('Description: '.$Description.'<br>'); 25 28 echo('Date: '.$Date.'<br>'); 26 echo('Link: '.$Link.'<br>'); 29 echo('Link: '.$Link.'<br><hr>'); 30 */ 27 31 28 32 $DbResult = $Database->select('news', 'id', '`title`="'.$Title.'" AND `date`="'.$Date.'" AND `category`='.$Category); … … 30 34 if($DbResult->num_rows == 0) 31 35 { 32 $Database->insert('news', array('title' => $Title, 'date' => $Date, 'author' => 'zdechov.cz', 'category' => $Category, 'content' => addslashes('<a href="'.$Link.'">Odkaz</a>')));33 echo($Database-> $insert_id.',');36 $Database->insert('news', array('title' => $Title, 'date' => $Date, 'author' => 'zdechov.cz', 'category' => $Category, 'content' => $Description)); 37 echo($Database->insert_id.','); 34 38 } 35 39 }
Note:
See TracChangeset
for help on using the changeset viewer.