<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">]>
<rss version="0.92" xml:base="http://www.campaignmoney.org">
<channel>
 <title>Public Campaign Action Fund - Clean Up Congress - Comments</title>
 <link>http://www.campaignmoney.org/frontpage</link>
 <description>Comments for &quot;Clean Up Congress&quot;</description>
 <language>en</language>
<item>
 <title>Clean Up Congress</title>
 <link>http://www.campaignmoney.org/frontpage</link>
 <description>&lt;?php
$resultado1 = db_fetch_object(db_query(&quot;SELECT nid from node where type = &#039;flexinode-9&#039; AND sticky = 1 LIMIT 0,1&quot;));
$max1 = 450;
$bing4 = node_load($resultado1-&gt;nid);
$bings4[] = t(&#039;&lt;h2 class=&quot;title-wide&quot;&gt;&#039;);
$bings4[] = l(t($bing4-&gt;title), &quot;node/$bing4-&gt;nid&quot;);
$bings4[] = t(&#039;&lt;/h2&gt;&#039;);
$bings4[] = t(&#039;&lt;div class=&quot;projectexcerpt&quot;&gt;&#039;);
$bings4[] = t($bing4-&gt;teaser);
$bings4[] = t(&#039;&lt;/div&gt;&#039;);
//$bings4[] = t(&#039;&lt;span class=&quot;projectreadmore&quot;&gt;&#039;);
//$bings4[] = l(t(&#039;read more&#039;), &quot;node/$bing4-&gt;nid&quot;);
//$bings4[] = t(&#039;&lt;/span&gt;&#039;);
$bings4[] = t(&#039;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&#039;);

echo (theme_news_list($bings4));
//print the number of people on the site
$time_period = variable_get(&#039;user_block_seconds_online&#039;, 2700);
// Perform database queries to gather online user lists.
$guests = db_fetch_object(db_query(&#039;SELECT COUNT(sid) AS count FROM {sessions} WHERE timestamp &gt;= %d AND uid = 0&#039;, time() - $time_period));
$users = db_query(&#039;SELECT DISTINCT(uid), MAX(timestamp) AS max_timestamp FROM {sessions} WHERE timestamp &gt;= %d AND uid != 0 GROUP BY uid ORDER BY max_timestamp DESC&#039;, time() - $time_period );
$total_users = db_num_rows($users);
// Format the output with proper grammar.
          if ($total_users == 1 &amp;&amp; $guests-&gt;count == 1) {
            $output = t(&#039;&lt;div id=&quot;countusers&quot;&gt;&lt;img src=&quot;themes/pcc4/images/pc_logo_mini.png&quot; alt=&quot;Mini PC logo&quot; /&gt;There is currently %visitors online. &lt;a href=&quot;user/register&quot;&gt;Join now!&lt;/a&gt;&lt;/div&gt;&#039;, array(&#039;%members&#039; =&gt; format_plural($total_users, &#039;1 user&#039;, &#039;%count users&#039;), &#039;%visitors&#039; =&gt; format_plural($guests-&gt;count, &#039;1 person&#039;, &#039;%count people&#039;)));
          }
          else {
            $output = t(&#039;&lt;div id=&quot;countusers&quot;&gt;&lt;img src=&quot;themes/pcc4/images/pc_logo_mini.png&quot; alt=&quot;Mini PC logo&quot; /&gt;There are currently %visitors online.  &lt;a href=&quot;http://ga3.org/pcactionfund/join.tcl&quot;&gt;Join now!&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&#039;, array(&#039;%members&#039; =&gt; format_plural($total_users, &#039;1 user&#039;, &#039;%count users&#039;), &#039;%visitors&#039; =&gt; format_plural($guests-&gt;count, &#039;1 person&#039;, &#039;%count people&#039;)));
          }
echo $output;
// end of code to print # of people on the site.
echo (&#039;&lt;h2 class=&quot;title-wide&quot;&gt;&lt;a href=&quot;campaigns&quot;&gt; Current Campaigns &lt;/a&gt; &lt;/h2&gt;&#039;);
$resultado2 = db_query(&quot;SELECT nid from node where type = &#039;flexinode-8&#039; AND sticky = 1 ORDER BY created LIMIT 0,2&quot;);
//$max = 400;
while ($campaign_node = db_fetch_object($resultado2)) {
$bing3 = node_load($campaign_node-&gt;nid);
$linktitle = str_replace(&#039; &#039;, &#039;-&#039;, $bing3-&gt;title);
$ltitle = strtolower($linktitle);
$bings3[] = t(&#039;&lt;div class=&quot;campaign-small&quot;&gt;&#039;);
$bings3[] = t(&#039;&lt;span class=&quot;campaign-title&quot;&gt;&#039;);
$bings3[] = l(t($bing3-&gt;title), &quot;campaigns/main/$ltitle&quot;);
$bings3[] = t(&#039;&lt;/span&gt;&#039;);
//$bings3[] = t(&#039;&lt;br /&gt;&#039;);
$bings3[] = t(&#039;&lt;div class=&quot;campaign-excerpt&quot;&gt;&#039;);
$bings3[] = t($bing3-&gt;teaser);
//$bings3[] = substr(t($bing3-&gt;teaser),0,strpos($bing3-&gt;teaser,&quot; &quot;,$max));
$bings3[] = t(&#039;&lt;/div&gt;&#039;);
$bings3[] = t(&#039;&lt;span class=&quot;campaign-actnow&quot;&gt;&#039;);
$bings3[] = l(t(&#039;...act now!&#039;), &quot;campaigns/main/$ltitle&quot;);
$bings3[] = t(&#039;&lt;/span&gt;&#039;);
$bings3[] = t(&#039;&lt;/div&gt;&#039;);
}
echo (theme_news_list($bings3));
echo (&#039;&lt;br class=&quot;clear&quot; /&gt;&lt;br /&gt;&#039;);
echo (&#039;&lt;div class=&quot;front-link-left&quot;&gt;&#039;);
echo l(t(&#039;See all our campaigns &#039;), &#039;campaigns&#039;);
echo(&#039;&lt;img src=&quot;themes/pcc4/images/go-bullet.png&quot; alt=&quot;read more image&quot; /&gt;&#039;);
echo (&#039;&lt;/div&gt;&#039;);
echo(&#039;
&lt;h2 class=&quot;title-wide&quot;&gt;Latest News From the Wire&lt;/h2&gt;
&#039;);
$result = db_query(&quot;SELECT n.nid, a.*, af.nid AS feednid FROM {node} n INNER JOIN {aggregator2_item} a ON n.nid = a.nid INNER JOIN {aggregator2_feed} af ON a.fid = af.nid WHERE n.type = &#039;aggregator2_item&#039; AND n.status = 1 ORDER BY n.created DESC LIMIT 0, 5&quot;);

while ($news_node = db_fetch_object($result)) {
$bing2 = node_load($news_node-&gt;nid);
$feed = node_load($news_node-&gt;feednid);
$bings2[] = t(&#039;&lt;div class=&quot;news-item&quot;&gt;&lt;span class=&quot;blog-title&quot;&gt;&#039;);
$bings2[] = l(t($bing2-&gt;title),&#039;node/&#039;.$bing2-&gt;nid);
$bings2[] = t(&#039;&lt;/span&gt;&lt;br /&gt;&#039;);
$bings2[] = t(&#039;&lt;span class=&quot;blog-info&quot;&gt;&#039;);
$bings2[] = t($feed-&gt;title.&#039;&amp;nbsp; - &amp;nbsp;&#039;);
$bings2[] = t(format_date($bing2-&gt;created, &#039;custom&#039;, &#039;M d, g:i A&#039;));
$bings2[] = t(&#039;&lt;/span&gt;&lt;br /&gt;&#039;);
$bings2[] = t(&#039;&lt;p class=&quot;blog-readmore&quot;&gt;&lt;img src=&quot;themes/pcc4/images/grey_bullet.png&quot; alt=&quot;grey bullet&quot; /&gt;&#039;);
$bings2[] = l(t(&#039;read more&#039;), &quot;node/$bing2-&gt;nid&quot;);
$bings2[] = t(&#039;&lt;/p&gt;&lt;img class=&quot;news_line&quot; src=&quot;themes/pcc4/images/news_line.png&quot; alt=&quot;news border&quot; /&gt;&lt;/div&gt;&#039;);
}
echo (&#039;&lt;div class=&quot;agg-news&quot;&gt;&#039;);
echo (theme_news_list($bings2));
echo (&#039;&lt;/div&gt;&#039;);
echo (&#039;&lt;div class=&quot;front-link-left&quot;&gt;&#039;);
echo l(t(&#039;Read more news clips &#039;), &#039;pcnewswire&#039;, array(&#039;title&#039; =&gt; &#039;read more news&#039;));
echo(&#039;&lt;img src=&quot;themes/pcc4/images/go-bullet.png&quot; alt=&quot;read more image&quot; /&gt;&#039;);
echo (&#039;&lt;/div&gt;&#039;);
?&gt;</description>
 <pubDate>Tue, 05 Sep 2006 20:24:53 +0000</pubDate>
</item>
</channel>
</rss>
