Changeset 603 for team

Show
Ignore:
Timestamp:
09/09/07 14:00:22 (15 months ago)
Author:
www-data
Message:

automerge commit

Location:
team/michiel/import_blogs
Files:
5 modified

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  
    455455                        if ($row["dossier_id"]) { 
    456456                                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 "&nbsp;&nbsp;<a href=\"".$dossierrssuri."\" class=\"dossier_rss_link\">rss</a>"; 
    457459                                echo "<br />"; 
    458460                                //get dossier articles 
  • team/michiel/import_blogs/common/mvblog_admin.php

    r576 r603  
    211211                session_destroy(); 
    212212                header("Location: index.php"); 
    213         } 
    214         /* }}} */ 
    215         /* db_quote {{{ */ 
    216         /** 
    217          * Quote a fieldname with the database specific quote style 
    218          * 
    219          * @param string fieldname to quote 
    220          * @return string the quoted version 
    221          */ 
    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; 
    237213        } 
    238214        /* }}} */ 
  • team/michiel/import_blogs/common/mvblog_common.php

    r594 r603  
    362362                } 
    363363                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; 
    364388        } 
    365389        /* }}} */ 
  • team/michiel/import_blogs/common/rss.php

    r598 r603  
    6363        $comments = false; 
    6464        break; 
     65case "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; 
    6575default : 
    6676        $sql = sprintf("SELECT * FROM articles WHERE date <= %d AND active=1 AND public=1 ORDER BY date DESC", $max_time); 
     
    99109                echo "\t\t\t<author>".htmlspecialchars($mvblog->authors[$row["authors_id"]]["email"])." (".htmlspecialchars($mvblog->authors[$row["authors_id"]]["fullname"]).")</author>\n"; 
    100110        } else { 
    101                 echo "\t\t\t<link>".$url."index.php?action=view&amp;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&amp;id=".$row["id"]."$link</link>\n"; 
     113                else 
     114                        echo "\t\t\t<link>".$url."index.php?action=view&amp;id=".$row["id"]."$link</link>\n"; 
    102115                if (array_key_exists("categories_ids", $row)) 
    103116                        $categories = explode(",", $row["categories_ids"]); 
     
    112125                echo implode(", ", $category_names); 
    113126                echo "</category>\n"; 
    114                 echo "\t\t\t<guid isPermaLink=\"true\">".$url."index.php?action=view&amp;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&amp;id=".$row["id"]."$link</guid>\n"; 
     129                else 
     130                        echo "\t\t\t<guid isPermaLink=\"true\">".$url."index.php?action=view&amp;id=".$row["id"]."$link</guid>\n"; 
    115131                if (!$comments) { 
    116132                        echo "\t\t\t<comments>".$url."index.php?action=view&amp;id=".$row["id"]."#comments</comments>\n";