- Timestamp:
- 09/09/07 14:00:22 (15 months ago)
- Location:
- team/michiel/import_blogs
- Files:
-
- 5 modified
-
. (modified) (1 prop)
-
common/mvblog.php (modified) (1 diff)
-
common/mvblog_admin.php (modified) (1 diff)
-
common/mvblog_common.php (modified) (1 diff)
-
common/rss.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
team/michiel/import_blogs
- Property svnmerge-integrated changed from /trunk:1-599 to /trunk:1-602
-
team/michiel/import_blogs/common/mvblog.php
r594 r603 455 455 if ($row["dossier_id"]) { 456 456 echo $this->dossiers[$row["dossier_id"]]["name"]; 457 $dossierrssuri = $this->webroot.sprintf("common/rss.php?mode=dossier&dossier_id=%d", $row["dossier_id"]); 458 echo " <a href=\"".$dossierrssuri."\" class=\"dossier_rss_link\">rss</a>"; 457 459 echo "<br />"; 458 460 //get dossier articles -
team/michiel/import_blogs/common/mvblog_admin.php
r576 r603 211 211 session_destroy(); 212 212 header("Location: index.php"); 213 }214 /* }}} */215 /* db_quote {{{ */216 /**217 * Quote a fieldname with the database specific quote style218 *219 * @param string fieldname to quote220 * @return string the quoted version221 */222 public function db_quote($field) {223 /* get the db type */224 $dbtype = $this->db->dbsyntax;225 switch ($dbtype) {226 case "mysql" :227 $return = "`".$field."`";228 break;229 case "pgsql" :230 $return = "\"".$field."\"";231 break;232 default :233 $return = $field;234 break;235 }236 return $return;237 213 } 238 214 /* }}} */ -
team/michiel/import_blogs/common/mvblog_common.php
r594 r603 362 362 } 363 363 return $_data; 364 } 365 /* }}} */ 366 /* db_quote {{{ */ 367 /** 368 * Quote a fieldname with the database specific quote style 369 * 370 * @param string fieldname to quote 371 * @return string the quoted version 372 */ 373 public function db_quote($field) { 374 /* get the db type */ 375 $dbtype = $this->db->dbsyntax; 376 switch ($dbtype) { 377 case "mysql" : 378 $return = "`".$field."`"; 379 break; 380 case "pgsql" : 381 $return = "\"".$field."\""; 382 break; 383 default : 384 $return = $field; 385 break; 386 } 387 return $return; 364 388 } 365 389 /* }}} */ -
team/michiel/import_blogs/common/rss.php
r598 r603 63 63 $comments = false; 64 64 break; 65 case "dossier" : 66 if (!array_key_exists("dossier_id", $_REQUEST)) { 67 /* list of dossiers */ 68 $sql = "SELECT id, name AS title, 0 AS authors_id, ".$mvblog->db_quote("desc")." AS body, '".mktime()."' AS date FROM dossiers WHERE public = 1 AND active = 1 ORDER BY name"; 69 } else { 70 /* list articles in given dossier */ 71 $sql = sprintf("SELECT * FROM articles WHERE active = 1 AND public = 1 AND dossier_id = %d", $_REQUEST["dossier_id"]); 72 } 73 $comments = false; 74 break; 65 75 default : 66 76 $sql = sprintf("SELECT * FROM articles WHERE date <= %d AND active=1 AND public=1 ORDER BY date DESC", $max_time); … … 99 109 echo "\t\t\t<author>".htmlspecialchars($mvblog->authors[$row["authors_id"]]["email"])." (".htmlspecialchars($mvblog->authors[$row["authors_id"]]["fullname"]).")</author>\n"; 100 110 } else { 101 echo "\t\t\t<link>".$url."index.php?action=view&id=".$row["id"]."$link</link>\n"; 111 if (array_key_exists("mode", $_REQUEST) && $_REQUEST["mode"] == "dossier" && !array_key_exists("dossier_id", $_REQUEST)) 112 echo "\t\t\t<link>".$url."index.php?action=viewdossier&id=".$row["id"]."$link</link>\n"; 113 else 114 echo "\t\t\t<link>".$url."index.php?action=view&id=".$row["id"]."$link</link>\n"; 102 115 if (array_key_exists("categories_ids", $row)) 103 116 $categories = explode(",", $row["categories_ids"]); … … 112 125 echo implode(", ", $category_names); 113 126 echo "</category>\n"; 114 echo "\t\t\t<guid isPermaLink=\"true\">".$url."index.php?action=view&id=".$row["id"]."$link</guid>\n"; 127 if (array_key_exists("mode", $_REQUEST) && $_REQUEST["mode"] == "dossier" && !array_key_exists("dossier_id", $_REQUEST)) 128 echo "\t\t\t<guid isPermaLink=\"true\">".$url."index.php?action=viewdossier&id=".$row["id"]."$link</guid>\n"; 129 else 130 echo "\t\t\t<guid isPermaLink=\"true\">".$url."index.php?action=view&id=".$row["id"]."$link</guid>\n"; 115 131 if (!$comments) { 116 132 echo "\t\t\t<comments>".$url."index.php?action=view&id=".$row["id"]."#comments</comments>\n";
