You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(120) |
Jun
(74) |
Jul
(97) |
Aug
(35) |
Sep
(35) |
Oct
(34) |
Nov
|
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(18) |
Feb
(8) |
Mar
(7) |
Apr
(23) |
May
(28) |
Jun
(31) |
Jul
(27) |
Aug
(34) |
Sep
(48) |
Oct
(511) |
Nov
(197) |
Dec
(333) |
2005 |
Jan
(212) |
Feb
(33) |
Mar
(94) |
Apr
(51) |
May
(16) |
Jun
|
Jul
(200) |
Aug
(43) |
Sep
(88) |
Oct
(60) |
Nov
(62) |
Dec
(41) |
2006 |
Jan
(94) |
Feb
(49) |
Mar
(54) |
Apr
|
May
(39) |
Jun
(39) |
Jul
(61) |
Aug
(36) |
Sep
(23) |
Oct
(76) |
Nov
(73) |
Dec
(32) |
2007 |
Jan
|
Feb
(87) |
Mar
|
Apr
(8) |
May
(36) |
Jun
(49) |
Jul
(54) |
Aug
(8) |
Sep
(50) |
Oct
(36) |
Nov
|
Dec
(3) |
2008 |
Jan
(133) |
Feb
(54) |
Mar
(39) |
Apr
(2) |
May
(6) |
Jun
(74) |
Jul
(97) |
Aug
(70) |
Sep
(12) |
Oct
(20) |
Nov
(64) |
Dec
(24) |
2009 |
Jan
(25) |
Feb
(49) |
Mar
(18) |
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
(10) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(7) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <wen...@us...> - 2003-10-19 22:14:56
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/boost In directory sc8-pr-cvs1:/tmp/cvs-serv29784 Modified Files: install.php Log Message: Updated Language Translation Index: install.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/boost/install.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** install.php 19 Oct 2003 01:15:43 -0000 1.2 --- install.php 19 Oct 2003 22:12:23 -0000 1.3 *************** *** 18,22 **** /* if successful, report the fact */ ! $content = "All RSS Feeds tables successfully written.<br />"; $status = 1; --- 18,22 ---- /* if successful, report the fact */ ! $content = $_SESSION['translate']->it("All RSS Feeds tables successfully written.") . "<br />"; $status = 1; *************** *** 24,28 **** if(isset($_SESSION["OBJ_help"])) { CLS_help::setup_help("rssfeeds"); ! $content .= "RSS Feeds successfully registered with Help system.<br />"; } --- 24,28 ---- if(isset($_SESSION["OBJ_help"])) { CLS_help::setup_help("rssfeeds"); ! $content .= $_SESSION['translate']->it("RSS Feeds successfully registered with Help system.") . "<br />"; } *************** *** 35,49 **** $search['view_string'] = "&RSS_MAN_op=sView&RSS_id="; $search['show_block'] = 1; ! $search['block_title'] = "News Feeds"; if(!$GLOBALS['core']->sqlInsert($search, "mod_search_register")) { ! $content .= "RSS Feeds NOT registered with Search system.<br />"; } else { ! $content .= "RSS Feeds successfully registered with Search system.<br />"; } /* end of search section */ } else { ! $content .= "Unable to write to the database.<br />"; $status = 0; } --- 35,49 ---- $search['view_string'] = "&RSS_MAN_op=sView&RSS_id="; $search['show_block'] = 1; ! $search['block_title'] = $_SESSION['translate']->it("News Feeds"); if(!$GLOBALS['core']->sqlInsert($search, "mod_search_register")) { ! $content .= $_SESSION['translate']->it("RSS Feeds NOT registered with Search system.") . "<br />"; } else { ! $content .= $_SESSION['translate']->it("RSS Feeds successfully registered with Search system.") . "<br />"; } /* end of search section */ } else { ! $content .= $_SESSION['translate']->it("Unable to write to the database.") . "<br />"; $status = 0; } |
From: <wen...@us...> - 2003-10-19 11:01:19
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/class In directory sc8-pr-cvs1:/tmp/cvs-serv26235 Modified Files: RSS.php Log Message: Block display fix Index: RSS.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/class/RSS.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** RSS.php 18 Oct 2003 16:56:05 -0000 1.5 --- RSS.php 19 Oct 2003 02:39:25 -0000 1.6 *************** *** 611,616 **** $tags = array(); ! ! $tags["TITLE"] = $this->getLabel(); if($this->_show_title && $this->_show_url) $tags["TITLE"] = "<a href=\"" . $this->_content[0]['link'] . "\" target=\"" . $this->_target . "\">" . --- 611,618 ---- $tags = array(); ! ! if($this->_show_title && !$this->_show_url) ! $tags["TITLE"] = $this->getLabel(); ! if($this->_show_title && $this->_show_url) $tags["TITLE"] = "<a href=\"" . $this->_content[0]['link'] . "\" target=\"" . $this->_target . "\">" . |
From: <wen...@us...> - 2003-10-19 09:00:17
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/boost In directory sc8-pr-cvs1:/tmp/cvs-serv17417 Modified Files: uninstall.php Log Message: Remove Layout Entries Index: uninstall.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/boost/uninstall.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** uninstall.php 8 Jul 2003 19:34:48 -0000 1.1.1.1 --- uninstall.php 19 Oct 2003 01:27:47 -0000 1.2 *************** *** 30,34 **** $GLOBALS['core']->sqlDelete("mod_search_register", "module", "rssfeeds"); $content .= "RSS Feeds removed from Search system.<br />"; ! } else --- 30,37 ---- $GLOBALS['core']->sqlDelete("mod_search_register", "module", "rssfeeds"); $content .= "RSS Feeds removed from Search system.<br />"; ! ! /* remove layout entries */ ! $GLOBALS['core']->sqlDelete("mod_layout_box", "mod_title", "rssfeeds"); ! $content .= "RSS Feeds removed from Layout system.<br />"; } else |
From: <wen...@us...> - 2003-10-19 06:03:25
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/boost In directory sc8-pr-cvs1:/tmp/cvs-serv15471 Modified Files: install.php Log Message: Added search title Index: install.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/boost/install.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** install.php 8 Jul 2003 19:34:48 -0000 1.1.1.1 --- install.php 19 Oct 2003 01:15:43 -0000 1.2 *************** *** 35,38 **** --- 35,39 ---- $search['view_string'] = "&RSS_MAN_op=sView&RSS_id="; $search['show_block'] = 1; + $search['block_title'] = "News Feeds"; if(!$GLOBALS['core']->sqlInsert($search, "mod_search_register")) { |
From: <wen...@us...> - 2003-10-19 05:43:50
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/conf In directory sc8-pr-cvs1:/tmp/cvs-serv14981 Modified Files: controlpanel.php Log Message: Removed extra icon reference Index: controlpanel.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/conf/controlpanel.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** controlpanel.php 8 Jul 2003 19:34:48 -0000 1.1.1.1 --- controlpanel.php 19 Oct 2003 01:14:55 -0000 1.2 *************** *** 13,19 **** $image['alt'] = "RSS Feeds by Wendall Cada"; - $image2['name'] = "rss.png"; - $image2['alt'] = "RSS Feeds by Wendall Cada"; - $link[] = array("label"=>"RSS Feeds", "module"=>"rssfeeds", --- 13,16 ---- |
From: <wen...@us...> - 2003-10-19 05:32:25
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/class In directory sc8-pr-cvs1:/tmp/cvs-serv13302 Modified Files: RSSManager.php Log Message: Removed user option Index: RSSManager.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/class/RSSManager.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** RSSManager.php 17 Oct 2003 21:17:46 -0000 1.3 --- RSSManager.php 19 Oct 2003 01:06:12 -0000 1.4 *************** *** 82,86 **** } else { /* otherwise, display user format list */ /* process the template templates/menu.tpl to produce the menu */ ! $content = $GLOBALS["core"]->processTemplate($tags, "rssfeeds", "menu.tpl"); $content .= $this->getList("user", $_SESSION['translate']->it("RSS Feeds")); } --- 82,87 ---- } else { /* otherwise, display user format list */ /* process the template templates/menu.tpl to produce the menu */ ! //temporarily removing this function for users as it is not useful ! //$content = $GLOBALS["core"]->processTemplate($tags, "rssfeeds", "menu.tpl"); $content .= $this->getList("user", $_SESSION['translate']->it("RSS Feeds")); } |
From: <wen...@us...> - 2003-10-19 04:32:17
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/conf In directory sc8-pr-cvs1:/tmp/cvs-serv14535 Modified Files: layout.php Log Message: Removed unused Layout items Index: layout.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/conf/layout.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** layout.php 17 Oct 2003 21:17:47 -0000 1.2 --- layout.php 19 Oct 2003 01:14:08 -0000 1.3 *************** *** 11,22 **** */ ! $layout_info[] = array ( ! "content_var"=>"CNT_rssfeeds", ! "transfer_var"=>"body", ! ); ! ! $layout_info[] = array ("content_var"=>"CNT_rssfeeds_block", ! "theme_var"=>"right_col_mid", ! "home_only"=>0); ?> --- 11,15 ---- */ ! //Now creating all layout information on the fly :) ?> |
From: <wen...@us...> - 2003-10-19 04:24:30
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds In directory sc8-pr-cvs1:/tmp/cvs-serv24537 Modified Files: index.php Log Message: Dynamic Layout change Index: index.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 17 Oct 2003 21:17:41 -0000 1.2 --- index.php 19 Oct 2003 02:25:31 -0000 1.3 *************** *** 36,38 **** --- 36,41 ---- } + if(!$GLOBALS["CNT_rssfeeds"]) + $_SESSION['OBJ_layout']->create_temp("rssfeeds", "CNT_rssfeeds", body); + ?> |
From: <wen...@us...> - 2003-10-18 16:56:15
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/class In directory sc8-pr-cvs1:/tmp/cvs-serv7081 Modified Files: RSS.php Log Message: Adjusted home title Index: RSS.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/class/RSS.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** RSS.php 17 Oct 2003 21:17:46 -0000 1.4 --- RSS.php 18 Oct 2003 16:56:05 -0000 1.5 *************** *** 647,651 **** $content = $this->view(); $content_var = "CNT_rssfeeds_home_" . $this->getId(); ! $GLOBALS[$content_var]['title'] = "RSS News Feed"; $GLOBALS[$content_var]['content'] = $content; } --- 647,651 ---- $content = $this->view(); $content_var = "CNT_rssfeeds_home_" . $this->getId(); ! $GLOBALS[$content_var]['title'] = $this->getLabel(); $GLOBALS[$content_var]['content'] = $content; } |
From: <wen...@us...> - 2003-10-17 22:49:12
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/img In directory sc8-pr-cvs1:/tmp/cvs-serv25987/img Log Message: Directory /cvsroot/phpwebsite-comm/modules/rssfeeds/img added to the repository |
From: <wen...@us...> - 2003-10-17 21:26:27
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/templates In directory sc8-pr-cvs1:/tmp/cvs-serv10141/templates Added Files: block_item.tpl item.tpl rss_block.tpl Log Message: 0.1.0 Changes --- NEW FILE: block_item.tpl --- · <span class="smalltext"><a href="{ITEM_LINK}" target="{TARGET}">{ITEM_TITLE}</a><br /></span> --- NEW FILE: item.tpl --- <a href="{ITEM_LINK}" target="{TARGET}">{ITEM_TITLE}</a><br /> {ITEM_DESC}<br /><br /> --- NEW FILE: rss_block.tpl --- {START_FORM} <table border="0" width="100%" cellspacing="0" cellpadding="0"> <!-- BEGIN CHANNEL_IMAGE --> <tr> <td valign="top" class="smalltext">{CHANNEL_IMAGE}</td> </tr> <!-- END CHANNEL_IMAGE --> <!-- BEGIN CHANNEL_DESC--> <tr> <td valign="top" class="smalltext">{CHANNEL_DESC}</td> </tr> <!-- END CHANNEL_DESC --> <!-- BEGIN CONTENT --> <tr> <td valign="top" class="smalltext">{CONTENT}</td> </tr> <!-- END CONTENT --> </table> {END_FORM} |
From: <wen...@us...> - 2003-10-17 21:18:35
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/class In directory sc8-pr-cvs1:/tmp/cvs-serv5117/class Modified Files: RSS.php RSSManager.php Log Message: 0.1.0 Changes Index: RSS.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/class/RSS.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** RSS.php 26 Sep 2003 21:07:47 -0000 1.3 --- RSS.php 17 Oct 2003 21:17:46 -0000 1.4 *************** *** 91,97 **** --- 91,110 ---- /** + * list of modules needing to be active for menu to appear + * @var array + */ + var $allow_view; + + /** + * list of modules needing to be active for menu to appear + * @var array + */ + var $pm_allow; + + /** * channel variables * @var string */ + var $channel_title; var $channel_link; *************** *** 113,117 **** function RSS($rss_id = NULL) { /* These vars are excluded on commit() */ ! $exclude = array("channel_title","channel_link","channel_desc", "channel_copy","channel_item_title","channel_item_desc", "channel_item_author","channel_item_link","channel_image"); --- 126,130 ---- function RSS($rss_id = NULL) { /* These vars are excluded on commit() */ ! $exclude = array("channel_title","channel_link", "channel_copy","channel_item_title","channel_item_desc", "channel_item_author","channel_item_link","channel_image"); *************** *** 199,204 **** $form->setMatch("BLOCK", $this->_block); $form->setTab("BLOCK", 11); ! ! $form->add("SUBMIT_BUTTON", "submit", $this->getId() ? $_SESSION["translate"]->it("Update") : $_SESSION["translate"]->it("Save")); $form->add("module", "hidden", "rssfeeds"); $form->add("CACHED", "hidden", date("Y-m-d G:i:s")); --- 212,233 ---- $form->setMatch("BLOCK", $this->_block); $form->setTab("BLOCK", 11); ! ! $form->add("ALLOW_VIEW","multiple",$this->get_modules_allowed()); ! if(is_array($this->allow_view)) ! $form->setMatch("ALLOW_VIEW",$this->allow_view,FALSE); ! $form->setTab("ALLOW_VIEW",12); ! ! if($GLOBALS['core']->moduleExists("pagemaster")) { ! $pages = $this->getPMOptions(); ! if (is_array($pages)){ ! $form->add("PM_ALLOW","multiple",$pages); ! $form->setTab("PM_ALLOW",13); ! if(is_array($this->pm_allow)) ! $form->setMatch("PM_ALLOW",$this->pm_allow,FALSE); ! } ! } ! ! $form->add("SUBMIT_BUTTON", "submit", $this->getId() ? $_SESSION["translate"]->it("Update") ! : $_SESSION["translate"]->it("Save")); $form->add("module", "hidden", "rssfeeds"); $form->add("CACHED", "hidden", date("Y-m-d G:i:s")); *************** *** 208,215 **** $tags = $form->getTemplate(); ! // include category selection menu, with help ! $tags["CATEGORY"] = $_SESSION['OBJ_fatcat']->showSelect($this->getId(), "multiple", 3, "rssfeeds"); ! $tags["CATEGORY_HELP"] = $_SESSION['OBJ_help']->show_link("rssfeeds", "rssCategory"); ! $tags["CATEGORY_LABEL"] = $_SESSION['translate']->it("Category"); // vary title for new and edited listings --- 237,246 ---- $tags = $form->getTemplate(); ! // include category selection menu, with help if fatcat exists ! if($GLOBALS['core']->moduleExists("fatcat")) { ! $tags["CATEGORY"] = $_SESSION['OBJ_fatcat']->showSelect($this->getId(), "multiple", 3, "rssfeeds"); ! $tags["CATEGORY_HELP"] = $_SESSION['OBJ_help']->show_link("rssfeeds", "rssCategory"); ! $tags["CATEGORY_LABEL"] = $_SESSION['translate']->it("Category"); ! } // vary title for new and edited listings *************** *** 240,243 **** --- 271,278 ---- $tags["BLOCK_LABEL"] = $_SESSION['translate']->it("Show in Block"); $tags["BLOCK_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "showBlock"); + $tags["ALLOW_VIEW_LABEL"] = $_SESSION['translate']->it("Allow Block View"); + $tags["ALLOW_VIEW_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "allowView"); + $tags["PM_ALLOW_LABEL"] = $_SESSION['translate']->it("View with Pagemaster pages"); + $tags["PM_ALLOW_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "pmView"); $tags["TARGET_LABEL"] = $_SESSION['translate']->it("Target Window"); $tags["TARGET_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "rssTarget"); *************** *** 305,309 **** } //END function delete - /** * Displays current position listing --- 340,343 ---- *************** *** 312,324 **** */ function view() { ! //debug info ! //print_r($this->_content); ! // Check to see if cache is expired...if so, update feed ! $dateDiff = date_time(date("Y-m-d G:i:s")) - date_time($this->_cached); ! if ($dateDiff/60 >= $this->_expire){ ! $this->getContent(); ! echo "Content Expired"; } $form = new EZform("RSS_VIEW"); $form->add("CONTINUE_BUTTON", "submit", $_SESSION["translate"]->it("More Feeds")); --- 346,376 ---- */ function view() { ! //Check to see if feed exists and is active ! if(is_null($this->_content) || $this->_hidden && !$_SESSION["OBJ_user"]->isDeity()){ ! $message = "<br /><b>" . $_SESSION['translate']->it("Sorry, that is not a working RSS feed.") . "</b><hr>"; ! $message .= $this->_continueContent($_SESSION['translate']->it("Return to Feeds List"), "list"); ! return $message; ! } ! /** ! *Check to see if cache is expired and update feed ! *If the feed is down, try again in specified interval ! *May add notification if feed is down over a period of x intervals ! */ ! if ($this->expired()){ ! $content = $this->getContent(); ! $this->_cached = date("Y-m-d G:i:s"); ! //if feed has been updated, update var ! if(!is_null($content)) ! $this->_content = $content; ! ! // save the feed ! $this->commit(); } + + //debug info + //print_r($this->_content); + //print_r($this->_content[0]); + $form = new EZform("RSS_VIEW"); $form->add("CONTINUE_BUTTON", "submit", $_SESSION["translate"]->it("More Feeds")); *************** *** 328,337 **** $tags = $form->getTemplate(); ! $tags["TITLE_LABEL"] = $_SESSION['translate']->it("Channel Title"); ! $tags["FOOTER_LABEL"] = $_SESSION['translate']->it("Footer"); - $tags["TITLE"] = $this->getLabel(); - //Get display content - $tags["CHANNEL_IMAGE"] = "<a href=\"" . $this->_content[0]['link'] . "\" alt=\"" . $this->_content[0]['title'] . "\" target=\"_blank\"><img src=\"" . $this->_content[0]['url'] . "\" border=\"0\"></a><br />"; foreach ($this->_content as $item) { if ($item['type'] == 'item'){ --- 380,400 ---- $tags = $form->getTemplate(); ! if($this->_show_title) ! $tags["TITLE"] = $this->getLabel(); ! if($this->_show_title && $this->_show_url) ! $tags["TITLE"] = "<a href=\"" . $this->_content[0]['link'] . "\" target=\"" . $this->_target . "\">" . ! $this->getLabel() . "</a>"; ! ! if($this->_show_image && isset($this->_content[0]['url'])) ! $tags["CHANNEL_IMAGE"] = "<a href=\"" . $this->_content[0]['link'] . "\" alt=\"" ! . $this->_content[0]['title'] . "\" target=\"_blank\"><img src=\"" . $this->_content[0]['url'] ! . "\" border=\"0\"></a><br />"; ! ! if($this->_show_desc) ! $tags["CHANNEL_DESC"] = $this->_content[0]['description']; ! ! if($this->_footer) ! $tags["CHANNEL_FOOTER"] = $this->_footer; foreach ($this->_content as $item) { if ($item['type'] == 'item'){ *************** *** 339,347 **** $elements['ITEM_TITLE'] = $item['title']; $elements['ITEM_DESC'] = $item['description']; $items .= $GLOBALS["core"]->processTemplate($elements, "rssfeeds", "item.tpl"); } } $tags["CONTENT"] = $items; - $tags["FOOTER"] = $this->_footer; // get a list of the categories for this feed from FatCat $tags["CATEGORY"] = $_SESSION['OBJ_fatcat']->fatcatLinks($this->getId(), "rssfeeds"); --- 402,410 ---- $elements['ITEM_TITLE'] = $item['title']; $elements['ITEM_DESC'] = $item['description']; + $elements["TARGET"] = $this->_target; $items .= $GLOBALS["core"]->processTemplate($elements, "rssfeeds", "item.tpl"); } } $tags["CONTENT"] = $items; // get a list of the categories for this feed from FatCat $tags["CATEGORY"] = $_SESSION['OBJ_fatcat']->fatcatLinks($this->getId(), "rssfeeds"); *************** *** 382,391 **** $this->_show_url = PHPWS_Text::parseInput($_REQUEST["SHOW_URL"]); $this->_show_desc = PHPWS_Text::parseInput($_REQUEST["SHOW_DESC"]); $this->_home = PHPWS_Text::parseInput($_REQUEST["HOME"]); $this->_block = PHPWS_Text::parseInput($_REQUEST["BLOCK"]); $this->_target = PHPWS_Text::parseInput($_REQUEST["TARGET"]); $this->_expire = PHPWS_Text::parseInput($_REQUEST["EXPIRE"]); $this->_cached = PHPWS_Text::parseInput($_REQUEST["CACHED"]); ! if(is_null($this->_content)){ $message = "<br /><b>" . $_SESSION['translate']->it("Sorry, that is not a working RSS feed.") . "</b><hr>"; --- 445,459 ---- $this->_show_url = PHPWS_Text::parseInput($_REQUEST["SHOW_URL"]); $this->_show_desc = PHPWS_Text::parseInput($_REQUEST["SHOW_DESC"]); + $current_home = $this->_home; $this->_home = PHPWS_Text::parseInput($_REQUEST["HOME"]); + //saves current status of view block in $current_block + $current_block = $this->_block; $this->_block = PHPWS_Text::parseInput($_REQUEST["BLOCK"]); $this->_target = PHPWS_Text::parseInput($_REQUEST["TARGET"]); $this->_expire = PHPWS_Text::parseInput($_REQUEST["EXPIRE"]); $this->_cached = PHPWS_Text::parseInput($_REQUEST["CACHED"]); ! $this->allow_view = serialize($_REQUEST["ALLOW_VIEW"]); ! $this->pm_allow = serialize($_REQUEST["PM_ALLOW"]); ! $this->channel_desc = $this->_content[0]['description']; if(is_null($this->_content)){ $message = "<br /><b>" . $_SESSION['translate']->it("Sorry, that is not a working RSS feed.") . "</b><hr>"; *************** *** 396,409 **** $this->commit(); // save the category ! $element_link = "index.php?module=rssfeeds&RSS_MAN_op=sView&RSS_id=" . $this->getId(); ! $_SESSION['OBJ_fatcat']->saveSelect($this->getLabel(), $element_link, $this->getId()); } if ($error) { ! $GLOBALS["CNT_rssfeeds"]["title"] = "<span class=\"errortext\">" . $_SESSION['translate']->it("Error") . "</span>"; $content = $message . $this->edit(); } else { /// tell user data is saved or updated ! if ($newjob) { $content = $this->_continueContent($_SESSION['translate']->it("RSS Feed saved."), "list"); } else { --- 464,495 ---- $this->commit(); // save the category ! $_id = $this->getId(); ! $element_link = "index.php?module=rssfeeds&RSS_MAN_op=sView&RSS_id=" . $_id; ! $_SESSION['OBJ_fatcat']->saveSelect($this->getLabel(), $element_link, $_id); ! ! //set the side block in layout ! if($newrss && $this->_block == 1) ! $_SESSION['OBJ_layout']->create_temp("rssfeeds", "CNT_rssfeeds_".$_id, right_col_mid); ! if($current_block == 0 && $this->_block == 1) ! $_SESSION['OBJ_layout']->create_temp("rssfeeds", "CNT_rssfeeds_".$_id, right_col_mid); ! if($current_block == 1 && $this->_block == 0) ! PHPWS_Layout::dropBox("CNT_rssfeeds_".$_id); ! ! //set the main item in layout ! if($newrss && $this->_home == 1) ! $_SESSION['OBJ_layout']->create_temp("rssfeeds", "CNT_rssfeeds_home_".$_id, body); ! if($current_home == 0 && $this->_home == 1) ! $_SESSION['OBJ_layout']->create_temp("rssfeeds", "CNT_rssfeeds_home_".$_id, body); ! if($current_home == 1 && $this->_home == 0) ! PHPWS_Layout::dropBox("CNT_rssfeeds_home_".$_id); } if ($error) { ! $GLOBALS["CNT_rssfeeds"]["title"] = "<span class=\"errortext\">" . $_SESSION['translate']->it("Error") ! . "</span>"; $content = $message . $this->edit(); } else { /// tell user data is saved or updated ! if ($newrss) { $content = $this->_continueContent($_SESSION['translate']->it("RSS Feed saved."), "list"); } else { *************** *** 475,546 **** return; }//end function_getContent ! /** ! * Saves data for rss object to database when cache is expired. * * @author Wendall Cada <wen...@NO...> */ ! function _update() { ! ! // save the edited data in the database in either case ! // note that parseInput called this way allows the global set of HTML tags to be included ! $this->setLabel(PHPWS_Text::parseInput($_REQUEST["TITLE"])); ! $this->_channel = PHPWS_Text::parseInput($_REQUEST["CHANNEL"]); ! $this->_content = $this->getContent(); ! $this->_footer = PHPWS_Text::parseInput($_REQUEST["FOOTER"]); ! $this->_show_title = PHPWS_Text::parseInput($_REQUEST["_SHOW_TITLE"]); ! $this->_show_image = PHPWS_Text::parseInput($_REQUEST["_SHOW_IMAGE"]); ! $this->_show_url = PHPWS_Text::parseInput($_REQUEST["_SHOW_URL"]); ! $this->_show_desc = PHPWS_Text::parseInput($_REQUEST["_SHOW_DESC"]); ! $this->_home = PHPWS_Text::parseInput($_REQUEST["_HOME"]); ! $this->_block = PHPWS_Text::parseInput($_REQUEST["_BLOCK"]); ! $this->_block = PHPWS_Text::parseInput($_REQUEST["_TARGET"]); ! $this->_block = PHPWS_Text::parseInput($_REQUEST["_EXPIRE"]); ! ! if(is_null($this->_content)){ ! $message = "<br /><b>" . $_SESSION['translate']->it("Sorry, that is not a working RSS feed.") . "</b><hr>"; ! $_REQUEST["TITLE"] = $_SESSION['translate']->it("Error"); ! $error = TRUE; ! }else{ // save the feed $this->commit(); - // save the category - $element_link = "index.php?module=rssfeeds&RSS_MAN_op=sView&RSS_id=" . $this->getId(); - $_SESSION['OBJ_fatcat']->saveSelect($this->getLabel(), $element_link, $this->getId()); } ! ! if ($error) { ! $GLOBALS["CNT_rssfeeds"]["title"] = "<span class=\"errortext\">" . $_SESSION['translate']->it("Error") . "</span>"; ! $content = $message . $this->edit(); ! } else { ! /// tell user data is saved or updated ! if ($newjob) { ! $content = $this->_continueContent($_SESSION['translate']->it("RSS Feed saved."), "list"); ! } else { ! $content = $this->_continueContent($_SESSION['translate']->it("RSS Feed updated."), "list"); ! } ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! } ! // set content display ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! ! } //END function _update ! } /** ! * Returns mktime for date/time comparison. * * @author Wendall Cada <wen...@NO...> */ ! function date_time($timestamp) { ! //parse time stamp from format date(Y-m-d G:i:s) 2003-08-26 11:41:33 ! $month = substr($timestamp,5,2); ! $day = substr($timestamp,8,2); ! $year = substr($timestamp,0,4); ! $hour = substr($timestamp,11,2); ! $min = substr($timestamp,14,2); ! $sec = substr($timestamp,17,2); ! $date_time = mktime($hour,$min,$sec,$month,$day,$year); ! return $date_time; ! } ?> --- 561,709 ---- return; }//end function_getContent ! /** ! * Sets up content for view in block * * @author Wendall Cada <wen...@NO...> */ ! function showUserBox() { ! //Check to see if module allowed is current ! if(is_array($this->allow_view)){ ! $modules_allowed = $this->get_modules_allowed(); ! foreach($this->allow_view as $num){ ! if(((isset($_REQUEST['module']) && ($_REQUEST['module'] == $modules_allowed[$num])) ! || (!isset($_REQUEST['module']) && ("home" == $modules_allowed[$num])))) ! $confirm = TRUE; ! } ! } ! ! //Check to see if pagemaster page allowed is current ! if(!$confirm){ ! if(is_array($this->pm_allow)){ ! if(!$_REQUEST['module'] == 'pagemaster') ! return; ! foreach($this->pm_allow as $num){ ! if(isset($_REQUEST['PAGE_id']) && $_REQUEST['PAGE_id'] == $num) ! $confirm = TRUE; ! } ! if(!$confirm) ! return; ! }else{ ! return; ! } ! } ! /** ! *Check to see if cache is expired and update feed ! *If the feed is down, try again in specified interval ! *May add notification if feed is down over a period of x intervals ! */ ! if ($this->expired()){ ! $content = $this->getContent(); ! $this->_cached = date("Y-m-d G:i:s"); ! ! //if feed has been updated, update var ! if(!is_null($content)) ! $this->_content = $content; ! // save the feed $this->commit(); } ! ! $tags = array(); ! ! $tags["TITLE"] = $this->getLabel(); ! if($this->_show_title && $this->_show_url) ! $tags["TITLE"] = "<a href=\"" . $this->_content[0]['link'] . "\" target=\"" . $this->_target . "\">" . ! $this->getLabel() . "</a>"; ! ! if($this->_show_image && isset($this->_content[0]['url'])) ! $tags["CHANNEL_IMAGE"] = "<a href=\"" . $this->_content[0]['link'] . "\" alt=\"" ! . $this->_content[0]['title'] . "\" target=\"_blank\"><img src=\"" . $this->_content[0]['url'] ! . "\" border=\"0\"></a><br />"; ! ! if($this->_show_desc) ! $tags["CHANNEL_DESC"] = $this->_content[0]['description']; ! ! if($this->_footer) ! $tags["CHANNEL_FOOTER"] = $this->_footer; ! ! foreach ($this->_content as $item) { ! if ($item['type'] == 'item'){ ! $elements['ITEM_LINK'] = $item['link']; ! $elements['ITEM_TITLE'] = $item['title']; ! $elements["TARGET"] = $this->_target; ! $items .= $GLOBALS["core"]->processTemplate($elements, "rssfeeds", "block_item.tpl"); ! } ! } ! $tags["CONTENT"] = $items; ! $content = $GLOBALS["core"]->processTemplate($tags, "rssfeeds", "rss_block.tpl"); ! $content_var = "CNT_rssfeeds_" . $this->getId(); ! $GLOBALS[$content_var]['title'] = $tags["TITLE"]; ! $GLOBALS[$content_var]['content'] = $content; ! ! } //END function showUserBox ! ! function showHomeItems(){ ! $content = $this->view(); ! $content_var = "CNT_rssfeeds_home_" . $this->getId(); ! $GLOBALS[$content_var]['title'] = "RSS News Feed"; ! $GLOBALS[$content_var]['content'] = $content; ! } ! /** ! * Returns return boolean TRUE if feed is expired. * * @author Wendall Cada <wen...@NO...> */ ! function expired() { ! $date = $this->_cached; ! $month = substr($date,5,2); ! $day = substr($date,8,2); ! $year = substr($date,0,4); ! $hour = substr($date,11,2); ! $min = substr($date,14,2); ! $sec = substr($date,17,2); ! $epoch = mktime($hour,$min,$sec,$month,$day,$year); ! $exp = mktime() - $epoch; ! $exp = floor($exp / 60); ! if($exp >= $this->_expire) ! return TRUE; ! else ! return FALSE; ! }//END function expired ! ! /** ! * get_modules_allowed ! * ! * listing of allowed modules ! * ! * @return array listing ! */ ! function get_modules_allowed() { ! $modulesAllowed = $GLOBALS['core']->listModules(); ! ! $text = $_SESSION['translate']->it("Select Modules Allowed"); ! $options = array($text, ! "----------------------------------------------"); ! array_push($options, "home"); ! $modulesAllowed = array_merge($options, $modulesAllowed); ! ! return $modulesAllowed; ! }//END function get_modules_allowed ! ! /** ! * Get a list of pagemaster pages ! * ! * refreshes the list of available pagemaster pages ! */ ! function getPMOptions() { ! $sql = "SELECT id, title FROM " . $GLOBALS['core']->tbl_prefix . "mod_pagemaster_pages"; ! $page_result = $GLOBALS['core']->query($sql); ! $pageOptions[0] = ""; ! while($page = $page_result->fetchrow(DB_FETCHMODE_ASSOC)) $pageOptions[$page['id']] = $page['title']; ! return $pageOptions; ! }//END getPMOptions ! ! } ?> Index: RSSManager.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/class/RSSManager.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** RSSManager.php 26 Sep 2003 21:07:47 -0000 1.2 --- RSSManager.php 17 Oct 2003 21:17:46 -0000 1.3 *************** *** 1,197 **** ! <?php ! ! /** ! * RSSManager.php ! * Defines the RSS_ListManager class, which manages the list of individual jobs ! * ! * This class is an extension of the PHPWS_Manager class defined in core/Manager.php. ! * Its function is to display a sortable list of items, and to provide an interface ! * to the editing, viewing and deleting of individual items as specified in an ! * extenison of the PHPWS_Item class defined in core/Item.php. It does so by ! * over-riding the standard functions _list(), _edit(), _view(), and _delete() defined in ! * Manager.php, and adding an action() function to handle additional procedures, in ! * this case the addition of a new RSS Feed to the list, and the creation of a menu ! * item to display the list. ! * ! * @version $Id$ ! * @author Wendall Cada <wen...@us...> ! * ! */ ! ! class RSS_ListManager extends PHPWS_Manager { ! /** ! * Current RSS listing ! * ! * @var rss object ! * @access private ! */ ! var $rss; ! ! /** ! * Constructor for RSS list manager object ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function RSS_ListManager() { ! $this->setModule("rssfeeds"); /* tells PHPWS_Manager where the files are */ ! $this->setRequest("RSS_MAN_op"); /* tells PHPWS_Manager the list manager opcode name */ ! $this->setTable("mod_rssfeeds_feeds"); /* tells PHPWS_Manager the table containing items to list */ ! $this->init(); /* initializes the list manager object */ ! } // END function JOB_ListManager ! ! ! /** ! * Provides standard list function: list all items in form appropriate for user ! * If function is named _list(), is called directly by managerAction() via index.php ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function _list() { ! ! /* if user has admin privileges, display menu with "Add" button and admin format list */ ! if ($_SESSION["OBJ_user"]->isDeity() || $_SESSION["OBJ_user"]->allow_access("rssfeeds")) { ! ! /* set tags for the template */ ! $tags["ADD_RSS_LABEL"] = $_SESSION["translate"]->it("Add RSS Feed"); ! /* add help for this button using mod/help -- see conf/help.php */ ! $tags["ADD_RSS_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "rssAddFeed"); ! $tags["CREATE_MENU_LINK_LABEL"] = $_SESSION["translate"]->it("Create Menu Link"); ! $tags["CREATE_MENU_LINK_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "rssAddMenuLink"); ! /* and process the template templates/menu.tpl to produce the menu */ ! $content = $GLOBALS["core"]->processTemplate($tags, "rssfeeds", "menu.tpl"); ! /* add admin form of list */ ! $content .= $this->getList("admin", $_SESSION['translate']->it("RSS Feeds")); ! ! } else { /* otherwise, display user format list */ ! ! $content = $this->getList("user", $_SESSION['translate']->it("RSS Feeds")); ! } ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! ! } //END function _list ! ! /** ! * Provides standard edit function: edits a list item ! * If called _edit, is called directly by managerAction() via index.php ! * Note that managerAction only calls this function if there is an item to edit ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function _edit() { ! ! $this->rss = new RSS($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the jobid */ ! $content = $this->rss->edit(); ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! ! } //END function edit ! ! /** ! * Provides standard delete function: deletes a list item ! * If called _delete, is called directly by managerAction() via index.php ! * Note that managerAction only calls this function if there is an item to delete ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function _delete() { ! ! $this->rss = new RSS($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the jobid */ ! $content = $this->rss->delete(); ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["content"] = $this->rss->delete(); ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! ! } //END function _delete ! ! /** ! * Provides standard view function: displays a list item ! * If called _view, is called directly by managerAction() via index.php ! * Note that managerAction only calls this function if there is an item to view ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function _view() { ! ! $this->rss = new RSS($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the jobid */ ! $content = $this->rss->view(); ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! ! } //END function _view ! ! ! /** ! * Perform non-standard list manager actions ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function action() { ! switch($_REQUEST["RSS_MAN_op"]) { ! case "Add": ! $this->rss = new RSS(); /* create an 'empty' rss object (ref RSS.php) */ ! $content = $this->rss->edit(); /* and edit it */ ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! break; ! ! case "sView": /* view an item chosen from search results */ ! $this->rss = new RSS($_REQUEST["RSS_id"]); ! $content = $this->rss->view(); ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! break; ! ! case "Menu": ! /* allow admin to add a menu item pointing to RSS Feeds list */ ! if ($_SESSION["OBJ_user"]->isDeity() || $_SESSION["OBJ_user"]->allow_access("rssfeeds")) { ! if($GLOBALS['core']->moduleExists("menuman")) { ! $_SESSION['OBJ_menuman']->add_module_item("rssfeeds", "&RSS_MAN_op=list", "./index.php?module=rssfeeds&RSS_MAN_op=list", 1); ! } ! } ! break; ! } ! ! } //END function action ! ! ! /** ! * Searches the list of positions using the mod/search module ! * Configuration for the search appears in boost/install.php, where ! * this module is registered with the search module. ! * This function is called by the search module itself, from an accessory block. ! * ! * @param $where is a SELECT WHERE clause, passed from search module as ! * specified by user's search terms ! * @author Wendall Cada <wen...@us...> ! */ ! ! function search($where) { ! /* set up database query using input from search module */ ! $sql = "SELECT id, label FROM " . $GLOBALS['core']->tbl_prefix . "mod_rssfeeds_feeds " . $where . " AND hidden='0'"; ! $linkResult = $GLOBALS['core']->query($sql); /* perform the selection from the database */ ! ! /* if select returns any database rows */ ! if($linkResult->numrows()) { ! /* create an array of the results */ ! while($link = $linkResult->fetchrow(DB_FETCHMODE_ASSOC)) { ! $results[$link['id']] = $link['label']; ! } ! return $results; /* return results */ ! } else { ! return FALSE; /* indicate no results */ ! } ! } //END function search ! ! ! } //END class RSS_ListManager ! ?> --- 1,255 ---- ! <?php ! ! /** ! * RSSManager.php ! * Defines the RSS_ListManager class, which manages the list of individual jobs ! * ! * This class is an extension of the PHPWS_Manager class defined in core/Manager.php. ! * Its function is to display a sortable list of items, and to provide an interface ! * to the editing, viewing and deleting of individual items as specified in an ! * extenison of the PHPWS_Item class defined in core/Item.php. It does so by ! * over-riding the standard functions _list(), _edit(), _view(), and _delete() defined in ! * Manager.php, and adding an action() function to handle additional procedures, in ! * this case the addition of a new RSS Feed to the list, and the creation of a menu ! * item to display the list. ! * ! * @version $Id$ ! * @author Wendall Cada <wen...@us...> ! * ! */ ! ! class RSS_ListManager extends PHPWS_Manager { ! /** ! * Current RSS listing ! * ! * @var rss object ! * @access private ! */ ! var $rss; ! ! /** ! * Block RSS listing ! * ! * @var rss object ! * @access private ! */ ! var $rss_block; ! ! /** ! * Home page RSS listing ! * ! * @var rss object ! * @access private ! */ ! var $rss_home; ! ! /** ! * Constructor for RSS list manager object ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function RSS_ListManager() { ! $this->setModule("rssfeeds"); /* tells PHPWS_Manager where the files are */ ! $this->setRequest("RSS_MAN_op"); /* tells PHPWS_Manager the list manager opcode name */ ! $this->setTable("mod_rssfeeds_feeds"); /* tells PHPWS_Manager the table containing items to list */ ! $this->init(); /* initializes the list manager object */ ! } // END function JOB_ListManager ! ! ! /** ! * Provides standard list function: list all items in form appropriate for user ! * If function is named _list(), is called directly by managerAction() via index.php ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function _list() { ! $tags["LIST_FEEDS"] = "<a href=\"index.php?module=rssfeeds&RSS_MAN_op=list\">" ! .$_SESSION["translate"]->it("List RSS Feeds")."</a>"; ! /* if user has admin privileges, display menu with "Add" button and admin format list */ ! if ($_SESSION["OBJ_user"]->isDeity() || $_SESSION["OBJ_user"]->allow_access("rssfeeds")) { ! // set tags for the template ! $tags["ADD_RSS_FEED"] = "<a href=\"index.php?module=rssfeeds&RSS_MAN_op=Add\">" ! .$_SESSION["translate"]->it("Add RSS Feed")."</a>"; ! // add help for this button using mod/help -- see conf/help.php ! $tags["ADD_RSS_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "rssAddFeed"); ! $tags["CREATE_MENU_LINK"] = "<a href=\"index.php?module=rssfeeds&RSS_MAN_op=Menu\">" ! .$_SESSION["translate"]->it("Add Menu Link")."</a>"; ! $tags["CREATE_MENU_LINK_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "rssAddMenuLink"); ! /* add admin form of list */ ! /* process the template templates/menu.tpl to produce the menu */ ! $content = $GLOBALS["core"]->processTemplate($tags, "rssfeeds", "menu.tpl"); ! $content .= $this->getList("admin", $_SESSION['translate']->it("RSS Feeds")); ! } else { /* otherwise, display user format list */ ! /* process the template templates/menu.tpl to produce the menu */ ! $content = $GLOBALS["core"]->processTemplate($tags, "rssfeeds", "menu.tpl"); ! $content .= $this->getList("user", $_SESSION['translate']->it("RSS Feeds")); ! } ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! ! } //END function _list ! ! /** ! * Provides standard edit function: edits a list item ! * If called _edit, is called directly by managerAction() via index.php ! * Note that managerAction only calls this function if there is an item to edit ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function _edit() { ! ! $this->rss = new RSS($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the rssid */ ! $content = $this->rss->edit(); ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! ! } //END function edit ! ! /** ! * Provides standard delete function: deletes a list item ! * If called _delete, is called directly by managerAction() via index.php ! * Note that managerAction only calls this function if there is an item to delete ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function _delete() { ! ! $this->rss = new RSS($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the rssid */ ! $content = $this->rss->delete(); ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["content"] = $this->rss->delete(); ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! ! } //END function _delete ! ! /** ! * Provides standard view function: displays a list item ! * If called _view, is called directly by managerAction() via index.php ! * Note that managerAction only calls this function if there is an item to view ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function _view() { ! ! $this->rss = new RSS($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the rssid */ ! $content = $this->rss->view(); ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! ! } //END function _view ! ! /** ! * Perform non-standard list manager actions ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function action() { ! switch($_REQUEST["RSS_MAN_op"]) { ! case "Add": ! $this->rss = new RSS(); /* create an 'empty' rss object (ref RSS.php) */ ! $content = $this->rss->edit(); /* and edit it */ ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! break; ! ! case "sView": /* view an item chosen from search results */ ! $this->rss = new RSS($_REQUEST["RSS_id"]); ! $content = $this->rss->view(); ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! break; ! ! case "Menu": ! /* allow admin to add a menu item pointing to RSS Feeds list */ ! if ($_SESSION["OBJ_user"]->isDeity() || $_SESSION["OBJ_user"]->allow_access("rssfeeds")) { ! if($GLOBALS['core']->moduleExists("menuman")) { ! $_SESSION['OBJ_menuman']->add_module_item("rssfeeds", "&RSS_MAN_op=list", "./index.php?module=rssfeeds&RSS_MAN_op=list", 1); ! } ! } ! break; ! ! case "link": ! /* allow admin to add a menu item pointing to RSS Feeds list */ ! if ($_SESSION["OBJ_user"]->isDeity() || $_SESSION["OBJ_user"]->allow_access("rssfeeds")) { ! if($GLOBALS['core']->moduleExists("menuman")) { ! $_SESSION['OBJ_menuman']->add_module_item("rssfeeds", ! "&RSS_MAN_op=view&PHPWS_MAN_ITEMS[]=" ! . $_REQUEST["PHPWS_MAN_ITEMS"][0] , ! "./index.php?module=rssfeeds&RSS_MAN_op=view&PHPWS_MAN_ITEMS[]=" ! . $_REQUEST["PHPWS_MAN_ITEMS"][0] , 1); ! } ! } ! break; ! } ! ! } //END function action ! ! /** ! * Display Feeds in block on main page ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function showUserBox() { ! $result = $GLOBALS["core"]->sqlSelect("mod_rssfeeds_feeds", "block", 1); ! if($result){ ! foreach($result as $block) { ! $this->rss_block = new RSS($block['id']); ! $this->rss_block->showUserBox(); ! } ! } ! }//END showUserBox ! ! /** ! * Display Feeds on the home page ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function showHomeItems() { ! $result = $GLOBALS["core"]->sqlSelect("mod_rssfeeds_feeds", "home", 1); ! if($result){ ! foreach($result as $home) { ! $this->rss_home = new RSS($home['id']); ! $this->rss_home->showHomeItems(); ! } ! } ! }//END showHomeItems ! ! /** ! * Searches the list of positions using the mod/search module ! * Configuration for the search appears in boost/install.php, where ! * this module is registered with the search module. ! * This function is called by the search module itself, from an accessory block. ! * ! * @param $where is a SELECT WHERE clause, passed from search module as ! * specified by user's search terms ! * @author Wendall Cada <wen...@us...> ! */ ! ! function search($where) { ! /* set up database query using input from search module */ ! $sql = "SELECT id, label FROM " . $GLOBALS['core']->tbl_prefix . "mod_rssfeeds_feeds " . $where . " AND hidden='0'"; ! $linkResult = $GLOBALS['core']->query($sql); /* perform the selection from the database */ ! ! /* if select returns any database rows */ ! if($linkResult->numrows()) { ! /* create an array of the results */ ! while($link = $linkResult->fetchrow(DB_FETCHMODE_ASSOC)) { ! $results[$link['id']] = $link['label']; ! } ! return $results; /* return results */ ! } else { ! return FALSE; /* indicate no results */ ! } ! } //END function search ! ! ! } //END class RSS_ListManager ! ?> |
From: <wen...@us...> - 2003-10-17 21:18:35
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/conf In directory sc8-pr-cvs1:/tmp/cvs-serv5117/conf Modified Files: help.php layout.php manager.php Log Message: 0.1.0 Changes Index: help.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/conf/help.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** help.php 8 Jul 2003 19:34:48 -0000 1.1.1.1 --- help.php 17 Oct 2003 21:17:47 -0000 1.2 *************** *** 37,42 **** $rssAddMenuLink_content = "Click this button to create a menu item that links to (displays) this listing of available feeds."; $rssExpire = $_SESSION['translate']->it("Expiration"); ! $rssExpire = "Select the number of minutes for the RSS Feed to expire from the cache."; $rssTarget = $_SESSION['translate']->it("Target Window"); ! $rssTarget = "Choose the target window for links to open in when an article or title is clicked."; ?> --- 37,46 ---- $rssAddMenuLink_content = "Click this button to create a menu item that links to (displays) this listing of available feeds."; $rssExpire = $_SESSION['translate']->it("Expiration"); ! $rssExpire_content = "Select the number of minutes for the RSS Feed to expire from the cache."; $rssTarget = $_SESSION['translate']->it("Target Window"); ! $rssTarget_content = "Choose the target window for links to open in when an article or title is clicked."; ! $allowView = $_SESSION['translate']->it("Allow Block View"); ! $allowView_content = "The allow view option allows you to choose when the block will show up on the page. Choose which modules need to be active in order for the block to appear."; ! $pmView = $_SESSION['translate']->it("View with Pagemaster pages"); ! $pmView_content = "The view with Pagemaster pages option allows you to choose which pages the block will show up on. Choose which pages need to be active in order for the block to appear."; ?> Index: layout.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/conf/layout.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** layout.php 8 Jul 2003 19:34:48 -0000 1.1.1.1 --- layout.php 17 Oct 2003 21:17:47 -0000 1.2 *************** *** 18,22 **** $layout_info[] = array ("content_var"=>"CNT_rssfeeds_block", "theme_var"=>"right_col_mid", ! "home_only"=>1); ?> --- 18,22 ---- $layout_info[] = array ("content_var"=>"CNT_rssfeeds_block", "theme_var"=>"right_col_mid", ! "home_only"=>0); ?> Index: manager.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/conf/manager.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** manager.php 8 Jul 2003 19:34:48 -0000 1.1.1.1 --- manager.php 17 Oct 2003 21:17:47 -0000 1.2 *************** *** 19,22 **** --- 19,24 ---- $show = $_SESSION['translate']->it("Show"); $view = $_SESSION['translate']->it("View"); + $link = $_SESSION['translate']->it("Link"); + $desc = $_SESSION['translate']->it("Description"); /* define the lists manager will control and *************** *** 45,49 **** "delete"=>$delete, "hide"=>$hide, ! "show"=>$show); /* for the admin list, indicate what permissions are required for each action; --- 47,52 ---- "delete"=>$delete, "hide"=>$hide, ! "show"=>$show, ! "link"=>$link); /* for the admin list, indicate what permissions are required for each action; *************** *** 54,58 **** "delete"=>NULL, "hide"=>NULL, ! "show"=>NULL); /* for the admin list, provide parameters for paging the list */ --- 57,62 ---- "delete"=>NULL, "hide"=>NULL, ! "show"=>NULL, ! "link"=>NULL); /* for the admin list, provide parameters for paging the list */ *************** *** 67,72 **** $userColumns = array("label"=>$label, ! "footer"=>$footer, ! "id"=>$id); $userActions = array("view"=>$view); --- 71,75 ---- $userColumns = array("label"=>$label, ! "channel_desc"=>$desc); $userActions = array("view"=>$view); |
From: <wen...@us...> - 2003-10-17 21:18:20
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds In directory sc8-pr-cvs1:/tmp/cvs-serv5117 Modified Files: index.php Log Message: 0.1.0 Changes Index: index.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/index.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** index.php 8 Jul 2003 19:34:48 -0000 1.1.1.1 --- index.php 17 Oct 2003 21:17:41 -0000 1.2 *************** *** 30,32 **** --- 30,38 ---- } + $_SESSION["RSS_ListManager"]->showUserBox(); + + if($GLOBALS["module"] == "home") { + $_SESSION["RSS_ListManager"]->showHomeItems(); + } + ?> |
From: <wen...@us...> - 2003-10-17 21:18:20
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/boost In directory sc8-pr-cvs1:/tmp/cvs-serv5117/boost Modified Files: install.sql Log Message: 0.1.0 Changes Index: install.sql =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/boost/install.sql,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** install.sql 8 Jul 2003 19:34:48 -0000 1.1.1.1 --- install.sql 17 Oct 2003 21:17:45 -0000 1.2 *************** *** 3,27 **** CREATE TABLE mod_rssfeeds_feeds ( id int NOT NULL default '0', ! owner varchar(20) default '', ! editor varchar(20) default '', ip text, ! label text NOT NULL, ! groups text, ! created int NOT NULL default '0', ! updated int NOT NULL default '0', ! hidden smallint NOT NULL default '0', ! approved smallint NOT NULL default '1', ! channel text NOT NULL, ! content text NOT NULL, footer varchar(60) NOT NULL default '', ! show_title tinyint(1) NOT NULL default '0', ! show_image tinyint(1) NOT NULL default '0', ! show_url tinyint(1) NOT NULL default '0', ! show_desc tinyint(1) NOT NULL default '0', ! cached datetime NOT NULL default '0000-00-00 00:00:00', ! home tinyint(1) NOT NULL default '0', ! block tinyint(1) NOT NULL default '0', ! target varchar(10) NOT NULL default '_blank', ! expire int NOT NULL default '60', ! PRIMARY KEY (id) ! ); \ No newline at end of file --- 3,30 ---- CREATE TABLE mod_rssfeeds_feeds ( id int NOT NULL default '0', ! owner varchar(20) default '', ! editor varchar(20) default '', ip text, ! label text NOT NULL, ! groups text, ! allow_view text, ! pm_allow text, ! channel_desc text, ! created int NOT NULL default '0', ! updated int NOT NULL default '0', ! hidden smallint NOT NULL default '0', ! approved smallint NOT NULL default '1', ! channel text NOT NULL, ! content text NOT NULL, footer varchar(60) NOT NULL default '', ! show_title tinyint(1) NOT NULL default '0', ! show_image tinyint(1) NOT NULL default '0', ! show_url tinyint(1) NOT NULL default '0', ! show_desc tinyint(1) NOT NULL default '0', ! cached datetime NOT NULL default '0000-00-00 00:00:00', ! home tinyint(1) NOT NULL default '0', ! block tinyint(1) NOT NULL default '0', ! target varchar(10) NOT NULL default '_blank', ! expire int NOT NULL default '60', ! PRIMARY KEY (id) ! ); \ No newline at end of file |
From: <wen...@us...> - 2003-10-17 21:17:53
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/templates/listmanager/user In directory sc8-pr-cvs1:/tmp/cvs-serv5117/templates/listmanager/user Modified Files: list.tpl row.tpl Log Message: 0.1.0 Changes Index: list.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/templates/listmanager/user/list.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** list.tpl 8 Jul 2003 19:34:49 -0000 1.1.1.1 --- list.tpl 17 Oct 2003 21:17:49 -0000 1.2 *************** *** 1,4 **** <table border="0" width="100%" cellspacing="1" cellpadding="4"> ! <tr><td class="smalltext" colspan="6"><b>{TITLE}</b> {NAV_INFO}</td></tr> <tr class="bg_medium"> <!-- BEGIN SELECT --> --- 1,4 ---- <table border="0" width="100%" cellspacing="1" cellpadding="4"> ! <tr><td class="smalltext" colspan="5"><b>{TITLE}</b> {NAV_INFO}</td></tr> <tr class="bg_medium"> <!-- BEGIN SELECT --> *************** *** 6,11 **** <!-- END SELECT --> <td class="smalltext" align="center"><b>{LABEL_LABEL} {LABEL_ORDER_LINK}</b></td> ! <td class="smalltext" align="center"><b>{CATEGORY_LABEL} {LABEL_CATEGORY_LINK}</b></td> ! <td class="smalltext" align="center" width="15"><b>{ID_LABEL} {ID_ORDER_LINK}</b></td> </tr> {LIST_ITEMS} --- 6,10 ---- <!-- END SELECT --> <td class="smalltext" align="center"><b>{LABEL_LABEL} {LABEL_ORDER_LINK}</b></td> ! <td class="smalltext" align="center"><b>{CHANNEL_DESC_LABEL} {CHANNEL_DESC_ORDER_LINK}</b></td> </tr> {LIST_ITEMS} Index: row.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/templates/listmanager/user/row.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** row.tpl 8 Jul 2003 19:34:49 -0000 1.1.1.1 --- row.tpl 17 Oct 2003 21:17:49 -0000 1.2 *************** *** 2,6 **** <td align="center">{SELECT}</td> <td align="left" class="smalltext">{LABEL}</td> ! <td align="left" class="smalltext">{CATEGORY}</td> ! <td align="center" class="smalltext">{ID}</td> </tr> --- 2,5 ---- <td align="center">{SELECT}</td> <td align="left" class="smalltext">{LABEL}</td> ! <td align="left" class="smalltext">{CHANNEL_DESC}</td> </tr> |
From: <wen...@us...> - 2003-10-17 21:17:53
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/templates/listmanager In directory sc8-pr-cvs1:/tmp/cvs-serv5117/templates/listmanager Modified Files: list.tpl row.tpl Log Message: 0.1.0 Changes Index: list.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/templates/listmanager/list.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** list.tpl 8 Jul 2003 19:34:49 -0000 1.1.1.1 --- list.tpl 17 Oct 2003 21:17:48 -0000 1.2 *************** *** 1,11 **** <table border="0" width="100%" cellspacing="1" cellpadding="4"> ! <tr><td class="smalltext" colspan="7"><b>{TITLE}</b> {NAV_INFO}</td></tr> <tr class="bg_medium"> ! <!-- BEGIN SELECT --> ! <td width="20">{SELECT_LABEL}</td> ! <!-- END SELECT --> <td class="smalltext" align="center" width="60%"><b>{LABEL_LABEL} {LABEL_ORDER_LINK}</b></td> <td class="smalltext" align="center"><b>{HIDDEN_LABEL} {HIDDEN_ORDER_LINK}</b></td> ! <td class="smalltext" align="center"><b>{ID_LABEL} {ID_ORDER_LINK}</b></td> </tr> {LIST_ITEMS} --- 1,10 ---- <table border="0" width="100%" cellspacing="1" cellpadding="4"> ! <tr><td class="smalltext" colspan="5"><b>{TITLE}</b> {NAV_INFO}</td></tr> <tr class="bg_medium"> ! <td width="20"> </td> <td class="smalltext" align="center" width="60%"><b>{LABEL_LABEL} {LABEL_ORDER_LINK}</b></td> + <td class="smalltext" align="center" width="60%"><b>{CHANNEL_LABEL} {CHANNEL_ORDER_LINK}</b></td> <td class="smalltext" align="center"><b>{HIDDEN_LABEL} {HIDDEN_ORDER_LINK}</b></td> ! <td class="smalltext" align="center" width="35"><b>{ID_LABEL} {ID_ORDER_LINK}</b></td> </tr> {LIST_ITEMS} *************** *** 14,18 **** <tr class="bg_medium"> <td align="left" colspan="2">{ACTION_SELECT} {ACTION_BUTTON}</td> ! <td colspan="5" align="right">{NAV_LIMITS}    {NAV_BACKWARD} {NAV_SECTIONS} {NAV_FORWARD}</td> </tr> <!-- END ACTION_STUFF --> --- 13,17 ---- <tr class="bg_medium"> <td align="left" colspan="2">{ACTION_SELECT} {ACTION_BUTTON}</td> ! <td colspan="3" align="right">{NAV_LIMITS}    {NAV_BACKWARD} {NAV_SECTIONS} {NAV_FORWARD}</td> </tr> <!-- END ACTION_STUFF --> Index: row.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/templates/listmanager/row.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** row.tpl 8 Jul 2003 19:34:49 -0000 1.1.1.1 --- row.tpl 17 Oct 2003 21:17:48 -0000 1.2 *************** *** 2,5 **** --- 2,6 ---- <td align="center">{SELECT}</td> <td align="left" class="smalltext">{LABEL}</td> + <td align="center" class="smalltext" align="center">{CHANNEL}</td> <td align="center" class="smalltext" align="center">{HIDDEN}</td> <td class="smalltext" align="center">{ID}</td> |
From: <wen...@us...> - 2003-10-17 21:17:53
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/templates In directory sc8-pr-cvs1:/tmp/cvs-serv5117/templates Modified Files: edit.tpl menu.tpl view.tpl Log Message: 0.1.0 Changes Index: edit.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/templates/edit.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** edit.tpl 26 Sep 2003 21:07:52 -0000 1.2 --- edit.tpl 17 Oct 2003 21:17:47 -0000 1.3 *************** *** 29,48 **** <!-- BEGIN _SHOW_TITLE --> <tr> ! <td width="20%" align="right">{SHOW_TITLE_HELP}{SHOW_TITLE_LABEL}:</td><td align="left">{SHOW_TITLE_1}{YES}{SHOW_TITLE_2}{NO}</td> </tr> <!-- END _SHOW_TITLE --> - <!-- BEGIN _SHOW_IMAGE --> - <tr> - <td width="20%" align="right">{SHOW_IMAGE_HELP}{SHOW_IMAGE_LABEL}:</td><td align="left">{SHOW_IMAGE_1}{YES}{SHOW_IMAGE_2}{NO}</td> - </tr> - <!-- END _SHOW_IMAGE --> <!-- BEGIN _SHOW_URL --> <tr> ! <td width="20%" align="right" valign="top">{SHOW_URL_HELP}{SHOW_URL_LABEL}:</td><td align="left" valign="top">{SHOW_URL_1}{YES}{SHOW_URL_2}{NO}</td> </tr> <!-- END _SHOW_URL --> <!-- BEGIN _SHOW_DESC --> <tr> ! <td width="20%" align="right" valign="top">{SHOW_DESC_HELP}{SHOW_DESC_LABEL}:</td><td align="left" valign="top">{SHOW_DESC_1}{YES}{SHOW_DESC_2}{NO}</td> </tr> <!-- END _SHOW_DESC --> --- 29,48 ---- <!-- BEGIN _SHOW_TITLE --> <tr> ! <td width="20%" align="right">{SHOW_TITLE_HELP}{SHOW_TITLE_LABEL}:</td><td align="left">{SHOW_TITLE_1}Yes{SHOW_TITLE_2}No</td> </tr> <!-- END _SHOW_TITLE --> <!-- BEGIN _SHOW_URL --> <tr> ! <td width="20%" align="right" valign="top">{SHOW_URL_HELP}{SHOW_URL_LABEL}:</td><td align="left" valign="top">{SHOW_URL_1}Yes{SHOW_URL_2}No</td> </tr> <!-- END _SHOW_URL --> + <!-- BEGIN _SHOW_IMAGE --> + <tr> + <td width="20%" align="right">{SHOW_IMAGE_HELP}{SHOW_IMAGE_LABEL}:</td><td align="left">{SHOW_IMAGE_1}Yes{SHOW_IMAGE_2}No</td> + </tr> + <!-- END _SHOW_IMAGE --> <!-- BEGIN _SHOW_DESC --> <tr> ! <td width="20%" align="right" valign="top">{SHOW_DESC_HELP}{SHOW_DESC_LABEL}:</td><td align="left" valign="top">{SHOW_DESC_1}Yes{SHOW_DESC_2}No</td> </tr> <!-- END _SHOW_DESC --> *************** *** 57,60 **** --- 57,70 ---- </tr> <!-- END _BLOCK --> + <!-- BEGIN ALLOW_VIEW --> + <tr> + <td width="20%" align="right">{ALLOW_VIEW_HELP}{ALLOW_VIEW_LABEL}:</td><td align="left">{ALLOW_VIEW}</td> + </tr> + <!-- END ALLOW_VIEW --> + <!-- BEGIN PM_ALLOW --> + <tr> + <td width="20%" align="right">{PM_ALLOW_HELP}{PM_ALLOW_LABEL}:</td><td align="left">{PM_ALLOW}</td> + </tr> + <!-- END PM_ALLOW --> <!-- BEGIN CATEGORY --> <tr> Index: menu.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/templates/menu.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** menu.tpl 8 Jul 2003 19:34:49 -0000 1.1.1.1 --- menu.tpl 17 Oct 2003 21:17:47 -0000 1.2 *************** *** 1,10 **** ! <form action="index.php" method="POST" name="Menu"> ! <input type="hidden" name="module" value="rssfeeds"> ! <input type="hidden" name="RSS_MAN_op" value="Menu"> ! <input type="Submit" name="Submit" value="{CREATE_MENU_LINK_LABEL}"> {CREATE_MENU_LINK_HELP} ! </form> ! <form action="index.php" method="POST" name="Add"> ! <input type="hidden" name="module" value="rssfeeds"> ! <input type="hidden" name="RSS_MAN_op" value="Add"> ! <input type="Submit" name="Submit" value="{ADD_RSS_LABEL}"> {ADD_RSS_HELP} ! </form> --- 1,27 ---- ! <table cellpadding="4" cellspacing="1" class="white"> ! <!-- BEGIN ROW --> ! <tr> ! <!-- BEGIN LIST_FEEDS --> ! <td class="bg_light"> ! ! <span class="smalltext">{LIST_FEEDS}</span> ! ! </td> ! <!-- END LIST_FEEDS --> ! <!-- BEGIN ADD_RSS_FEED --> ! <td class="bg_light"> ! ! <span class="smalltext">{ADD_RSS_FEED}</span>{ADD_RSS_HELP} ! ! </td> ! <!-- END ADD_RSS_FEED --> ! <!-- BEGIN CREATE_MENU_LINK --> ! <td class="bg_light"> ! ! <span class="smalltext">{CREATE_MENU_LINK}</span>{CREATE_MENU_LINK_HELP} ! ! </td> ! <!-- END CREATE_MENU_LINK --> ! </tr> ! <!-- END ROW --> ! </table> \ No newline at end of file Index: view.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/templates/view.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** view.tpl 8 Jul 2003 19:34:49 -0000 1.1.1.1 --- view.tpl 17 Oct 2003 21:17:47 -0000 1.2 *************** *** 3,22 **** <!-- BEGIN TITLE --> <tr> ! <td width="20%" align="right" valign="top">{TITLE_LABEL}</td><td align="left" valign="top">{TITLE}</td> </tr> <!-- END TITLE --> <!-- BEGIN CONTENT --> <tr> ! <td align="left" valign="top" colspan="2">{CONTENT}</td> </tr> <!-- END CONTENT --> <!-- BEGIN CATEGORY --> <tr> ! <td width="20%" align="right" valign="top">{CATEGORY_LABEL}:</td><td align="left" valign="top">{CATEGORY}</td> </tr> <!-- END CATEGORY --> <!-- BEGIN SUBMIT --> <tr> ! <td width="20%" align="right">{CONTINUE_BUTTON}</td><td align="left"></td> </tr> <!-- END SUBMIT --> --- 3,37 ---- <!-- BEGIN TITLE --> <tr> ! <td valign="top"><b>{TITLE}</b></td> </tr> <!-- END TITLE --> + <!-- BEGIN CHANNEL_IMAGE --> + <tr> + <td valign="top">{CHANNEL_IMAGE}</td> + </tr> + <!-- END CHANNEL_IMAGE --> + <!-- BEGIN CHANNEL_DESC--> + <tr> + <td valign="top">{CHANNEL_DESC}</td> + </tr> + <!-- END CHANNEL_DESC --> <!-- BEGIN CONTENT --> <tr> ! <td valign="top">{CONTENT}</td> </tr> <!-- END CONTENT --> <!-- BEGIN CATEGORY --> <tr> ! <td valign="top">{CATEGORY}</td> </tr> <!-- END CATEGORY --> + <!-- BEGIN CHANNEL_FOOTER --> + <tr> + <td valign="top">{CHANNEL_FOOTER}</td> + </tr> + <!-- END CHANNEL_FOOTER --> <!-- BEGIN SUBMIT --> <tr> ! <td>{CONTINUE_BUTTON}</td> </tr> <!-- END SUBMIT --> |
From: <gbr...@us...> - 2003-10-07 17:13:24
|
Update of /cvsroot/phpwebsite-comm/modules/jobman/class In directory sc8-pr-cvs1:/tmp/cvs-serv20864/class Modified Files: JobManager.php Log Message: Minor change in list-all code Index: JobManager.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/jobman/class/JobManager.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** JobManager.php 24 Sep 2003 23:38:52 -0000 1.4 --- JobManager.php 7 Oct 2003 17:13:13 -0000 1.5 *************** *** 175,179 **** break; ! case "aView": /* view all items in the list */ $this->listName = "user"; // use sort from current user list $this->setOrder("label"); // order by job title --- 175,179 ---- break; ! case "aView": /* view all visible items in the list */ $this->listName = "user"; // use sort from current user list $this->setOrder("label"); // order by job title |
From: <wen...@us...> - 2003-09-26 22:35:14
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/class In directory sc8-pr-cvs1:/tmp/cvs-serv8030/class Modified Files: RSS.php RSSManager.php Log Message: Initial release update Index: RSS.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/class/RSS.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** RSS.php 25 Aug 2003 23:29:29 -0000 1.2 --- RSS.php 26 Sep 2003 21:07:47 -0000 1.3 *************** *** 166,192 **** $form->setTab("FOOTER", 3); ! $form->add("_EXPIRE", "text", htmlspecialchars($this->_expire)); ! $form->setSize("_EXPIRE", 30); ! $form->setMaxSize("_EXPIRE", 255); ! $form->setTab("_EXPIRE", 4); ! ! $form->add("_show_title", "radio", array(1, 0)); ! ! $form->add("_show_image", "radio", array(1, 0)); ! ! $form->add("_show_url", "radio", array(1, 0)); ! ! $form->add("_show_desc", "radio", array(1, 0)); ! ! $form->add("_home", "checkbox"); ! $form->add("_block", "checkbox"); ! $options = array("_blank"=>"_blank","_self"=>"_self"); ! $form->add("_target", "select", $options); $form->add("SUBMIT_BUTTON", "submit", $this->getId() ? $_SESSION["translate"]->it("Update") : $_SESSION["translate"]->it("Save")); $form->add("module", "hidden", "rssfeeds"); ! $form->add("_cached", "hidden", date("Ymd G:i:s")); $form->add("RSS_op", "hidden", "save"); --- 166,206 ---- $form->setTab("FOOTER", 3); ! $form->add("EXPIRE", "text", htmlspecialchars($this->_expire)); ! $form->setSize("EXPIRE", 30); ! $form->setMaxSize("EXPIRE", 255); ! $form->setTab("EXPIRE", 4); ! ! $options = array("_blank"=>"_blank","_self"=>"_self"); ! $form->add("TARGET", "select", $options); ! $form->setMatch("TARGET", $this->_target); ! $form->setTab("TARGET", 5); ! ! $form->add("SHOW_TITLE", "radio", array(1, 0)); ! $form->setMatch("SHOW_TITLE", $this->_show_title); ! $form->setTab("SHOW_TITLE", 6); ! ! $form->add("SHOW_IMAGE", "radio", array(1, 0)); ! $form->setMatch("SHOW_IMAGE", $this->_show_image); ! $form->setTab("SHOW_IMAGE", 7); ! ! $form->add("SHOW_URL", "radio", array(1, 0)); ! $form->setMatch("SHOW_URL", $this->_show_url); ! $form->setTab("SHOW_URL", 8); ! ! $form->add("SHOW_DESC", "radio", array(1, 0)); ! $form->setMatch("SHOW_DESC", $this->_show_desc); ! $form->setTab("SHOW_DESC", 9); ! $form->add("HOME", "checkbox"); ! $form->setMatch("HOME", $this->_home); ! $form->setTab("HOME", 10); ! $form->add("BLOCK", "checkbox"); ! $form->setMatch("BLOCK", $this->_block); ! $form->setTab("BLOCK", 11); $form->add("SUBMIT_BUTTON", "submit", $this->getId() ? $_SESSION["translate"]->it("Update") : $_SESSION["translate"]->it("Save")); $form->add("module", "hidden", "rssfeeds"); ! $form->add("CACHED", "hidden", date("Y-m-d G:i:s")); $form->add("RSS_op", "hidden", "save"); *************** *** 212,231 **** $tags["FOOTER_LABEL"] = $_SESSION['translate']->it("Footer"); $tags["FOOTER_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "rssFooter"); ! $tags["_EXPIRE_LABEL"] = $_SESSION['translate']->it("Expiration"); ! $tags["_EXPIRE_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "rssExpire"); ! $tags["_SHOW_TITLE_LABEL"] = $_SESSION['translate']->it("Show Channel Title"); ! $tags["_SHOW_TITLE_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "showTitle"); ! $tags["_SHOW_IMAGE_LABEL"] = $_SESSION['translate']->it("Show Channel Image"); ! $tags["_SHOW_IMAGE_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "showImage"); ! $tags["_SHOW_URL_LABEL"] = $_SESSION['translate']->it("Show Channel Title as Link"); ! $tags["_SHOW_URL_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "showURL"); ! $tags["_SHOW_DESC_LABEL"] = $_SESSION['translate']->it("Show Channel Description"); ! $tags["_SHOW_DESC_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "showDesc"); ! $tags["_HOME_LABEL"] = $_SESSION['translate']->it("Show on Home Page"); ! $tags["_HOME_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "showHome"); ! $tags["_BLOCK_LABEL"] = $_SESSION['translate']->it("Show in Block"); ! $tags["_BLOCK_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "showBlock"); ! $tags["_TARGET_LABEL"] = $_SESSION['translate']->it("Target Window"); ! $tags["_TARGET_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "rssTarget"); $tags['YES'] = $_SESSION["translate"]->it("Yes"); $tags['NO'] = $_SESSION["translate"]->it("No"); --- 226,245 ---- $tags["FOOTER_LABEL"] = $_SESSION['translate']->it("Footer"); $tags["FOOTER_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "rssFooter"); ! $tags["EXPIRE_LABEL"] = $_SESSION['translate']->it("Expiration"); ! $tags["EXPIRE_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "rssExpire"); ! $tags["SHOW_TITLE_LABEL"] = $_SESSION['translate']->it("Show Channel Title"); ! $tags["SHOW_TITLE_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "showTitle"); ! $tags["SHOW_IMAGE_LABEL"] = $_SESSION['translate']->it("Show Channel Image"); ! $tags["SHOW_IMAGE_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "showImage"); ! $tags["SHOW_URL_LABEL"] = $_SESSION['translate']->it("Show Channel Title as Link"); ! $tags["SHOW_URL_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "showURL"); ! $tags["SHOW_DESC_LABEL"] = $_SESSION['translate']->it("Show Channel Description"); ! $tags["SHOW_DESC_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "showDesc"); ! $tags["HOME_LABEL"] = $_SESSION['translate']->it("Show on Home Page"); ! $tags["HOME_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "showHome"); ! $tags["BLOCK_LABEL"] = $_SESSION['translate']->it("Show in Block"); ! $tags["BLOCK_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "showBlock"); ! $tags["TARGET_LABEL"] = $_SESSION['translate']->it("Target Window"); ! $tags["TARGET_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "rssTarget"); $tags['YES'] = $_SESSION["translate"]->it("Yes"); $tags['NO'] = $_SESSION["translate"]->it("No"); *************** *** 298,302 **** */ function view() { ! print_r($this->_content); $form = new EZform("RSS_VIEW"); $form->add("CONTINUE_BUTTON", "submit", $_SESSION["translate"]->it("More Feeds")); --- 312,324 ---- */ function view() { ! //debug info ! //print_r($this->_content); ! ! // Check to see if cache is expired...if so, update feed ! $dateDiff = date_time(date("Y-m-d G:i:s")) - date_time($this->_cached); ! if ($dateDiff/60 >= $this->_expire){ ! $this->getContent(); ! echo "Content Expired"; ! } $form = new EZform("RSS_VIEW"); $form->add("CONTINUE_BUTTON", "submit", $_SESSION["translate"]->it("More Feeds")); *************** *** 356,367 **** $this->_content = $this->getContent(); $this->_footer = PHPWS_Text::parseInput($_REQUEST["FOOTER"]); ! $this->_show_title = PHPWS_Text::parseInput($_REQUEST["_SHOW_TITLE"]); ! $this->_show_image = PHPWS_Text::parseInput($_REQUEST["_SHOW_IMAGE"]); ! $this->_show_url = PHPWS_Text::parseInput($_REQUEST["_SHOW_URL"]); ! $this->_show_desc = PHPWS_Text::parseInput($_REQUEST["_SHOW_DESC"]); ! $this->_home = PHPWS_Text::parseInput($_REQUEST["_HOME"]); ! $this->_block = PHPWS_Text::parseInput($_REQUEST["_BLOCK"]); ! $this->_block = PHPWS_Text::parseInput($_REQUEST["_TARGET"]); ! $this->_block = PHPWS_Text::parseInput($_REQUEST["_EXPIRE"]); if(is_null($this->_content)){ --- 378,390 ---- $this->_content = $this->getContent(); $this->_footer = PHPWS_Text::parseInput($_REQUEST["FOOTER"]); ! $this->_show_title = PHPWS_Text::parseInput($_REQUEST["SHOW_TITLE"]); ! $this->_show_image = PHPWS_Text::parseInput($_REQUEST["SHOW_IMAGE"]); ! $this->_show_url = PHPWS_Text::parseInput($_REQUEST["SHOW_URL"]); ! $this->_show_desc = PHPWS_Text::parseInput($_REQUEST["SHOW_DESC"]); ! $this->_home = PHPWS_Text::parseInput($_REQUEST["HOME"]); ! $this->_block = PHPWS_Text::parseInput($_REQUEST["BLOCK"]); ! $this->_target = PHPWS_Text::parseInput($_REQUEST["TARGET"]); ! $this->_expire = PHPWS_Text::parseInput($_REQUEST["EXPIRE"]); ! $this->_cached = PHPWS_Text::parseInput($_REQUEST["CACHED"]); if(is_null($this->_content)){ *************** *** 504,506 **** --- 527,546 ---- } //END function _update } + + /** + * Returns mktime for date/time comparison. + * + * @author Wendall Cada <wen...@NO...> + */ + function date_time($timestamp) { + //parse time stamp from format date(Y-m-d G:i:s) 2003-08-26 11:41:33 + $month = substr($timestamp,5,2); + $day = substr($timestamp,8,2); + $year = substr($timestamp,0,4); + $hour = substr($timestamp,11,2); + $min = substr($timestamp,14,2); + $sec = substr($timestamp,17,2); + $date_time = mktime($hour,$min,$sec,$month,$day,$year); + return $date_time; + } ?> Index: RSSManager.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/class/RSSManager.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** RSSManager.php 8 Jul 2003 19:34:48 -0000 1.1.1.1 --- RSSManager.php 26 Sep 2003 21:07:47 -0000 1.2 *************** *** 1,197 **** ! <?php ! ! /** ! * RSSManager.php ! * Defines the RSS_ListManager class, which manages the list of individual jobs ! * ! * This class is an extension of the PHPWS_Manager class defined in core/Manager.php. ! * Its function is to display a sortable list of items, and to provide an interface ! * to the editing, viewing and deleting of individual items as specified in an ! * extenison of the PHPWS_Item class defined in core/Item.php. It does so by ! * over-riding the standard functions _list(), _edit(), _view(), and _delete() defined in ! * Manager.php, and adding an action() function to handle additional procedures, in ! * this case the addition of a new RSS Feed to the list, and the creation of a menu ! * item to display the list. ! * ! * @version $Id$ ! * @author Wendall Cada <wen...@us...> ! * ! */ ! ! class RSS_ListManager extends PHPWS_Manager { ! /** ! * Current RSS listing ! * ! * @var rss object ! * @access private ! */ ! var $rss; ! ! /** ! * Constructor for RSS list manager object ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function RSS_ListManager() { ! $this->setModule("rssfeeds"); /* tells PHPWS_Manager where the files are */ ! $this->setRequest("RSS_MAN_op"); /* tells PHPWS_Manager the list manager opcode name */ ! $this->setTable("mod_rssfeeds_feeds"); /* tells PHPWS_Manager the table containing items to list */ ! $this->init(); /* initializes the list manager object */ ! } // END function JOB_ListManager ! ! ! /** ! * Provides standard list function: list all items in form appropriate for user ! * If function is named _list(), is called directly by managerAction() via index.php ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function _list() { ! ! /* if user has admin privileges, display menu with "Add" button and admin format list */ ! if ($_SESSION["OBJ_user"]->isDeity() || $_SESSION["OBJ_user"]->allow_access("rssfeeds")) { ! ! /* set tags for the template */ ! $tags["ADD_RSS_LABEL"] = $_SESSION["translate"]->it("Add RSS Feed"); ! /* add help for this button using mod/help -- see conf/help.php */ ! $tags["ADD_RSS_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "rssAddFeed"); ! $tags["CREATE_MENU_LINK_LABEL"] = $_SESSION["translate"]->it("Create Menu Link"); ! $tags["CREATE_MENU_LINK_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "rssAddMenuLink"); ! /* and process the template templates/menu.tpl to produce the menu */ ! $content = $GLOBALS["core"]->processTemplate($tags, "rssfeeds", "menu.tpl"); ! /* add admin form of list */ ! $content .= $this->getList("admin", $_SESSION['translate']->it("RSS Feeds")); ! ! } else { /* otherwise, display user format list */ ! ! $content = $this->getList("user", $_SESSION['translate']->it("RSS Feeds")); ! } ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! ! } //END function _list ! ! /** ! * Provides standard edit function: edits a list item ! * If called _edit, is called directly by managerAction() via index.php ! * Note that managerAction only calls this function if there is an item to edit ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function _edit() { ! ! $this->rss = new RSS($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the jobid */ ! $content = $this->rss->edit(); ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! ! } //END function edit ! ! /** ! * Provides standard delete function: deletes a list item ! * If called _delete, is called directly by managerAction() via index.php ! * Note that managerAction only calls this function if there is an item to delete ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function _delete() { ! ! $this->rss = new RSS($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the jobid */ ! $content = $this->rss->delete(); ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["content"] = $this->rss->delete(); ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! ! } //END function _delete ! ! /** ! * Provides standard view function: displays a list item ! * If called _view, is called directly by managerAction() via index.php ! * Note that managerAction only calls this function if there is an item to view ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function _view() { ! ! $this->rss = new RSS($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the jobid */ ! $content = $this->rss->view(); ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! ! } //END function _view ! ! ! /** ! * Perform non-standard list manager actions ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function action() { ! switch($_REQUEST["RSS_MAN_op"]) { ! case "Add": ! $this->rss = new RSS(); /* create an 'empty' rss object (ref RSS.php) */ ! $content = $this->rss->edit(); /* and edit it */ ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! break; ! ! case "sView": /* view an item chosen from search results */ ! $this->rss = new RSS($_REQUEST["RSS_id"]); ! $content = $this->rss->view(); ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! break; ! ! case "Menu": ! /* allow admin to add a menu item pointing to RSS Feeds list */ ! if ($_SESSION["OBJ_user"]->isDeity() || $_SESSION["OBJ_user"]->allow_access("rssfeeds")) { ! if($GLOBALS['core']->moduleExists("menuman")) { ! $_SESSION['OBJ_menuman']->add_module_item("rssfeeds", "&RSS_MAN_op=list", "./index.php?module=rssfeeds&RSS_MAN_op=list", 1); ! } ! } ! break; ! } ! ! } //END function action ! ! ! /** ! * Searches the list of positions using the mod/search module ! * Configuration for the search appears in boost/install.php, where ! * this module is registered with the search module. ! * This function is called by the search module itself, from an accessory block. ! * ! * @param $where is a SELECT WHERE clause, passed from search module as ! * specified by user's search terms ! * @author Wendall Cada <wen...@us...> ! */ ! ! function search($where) { ! /* set up database query using input from search module */ ! $sql = "SELECT id, label FROM " . $GLOBALS['core']->tbl_prefix . "mod_rssfeeds_feeds " . $where . " AND hidden='0'"; ! $linkResult = $GLOBALS['core']->query($sql); /* perform the selection from the database */ ! ! /* if select returns any database rows */ ! if($linkResult->numrows()) { ! /* create an array of the results */ ! while($link = $linkResult->fetchrow(DB_FETCHMODE_ASSOC)) { ! $results[$link['id']] = $link['label']; ! } ! return $results; /* return results */ ! } else { ! return FALSE; /* indicate no results */ ! } ! } //END function search ! ! ! } //END class RSS_ListManager ! ?> --- 1,197 ---- ! <?php ! ! /** ! * RSSManager.php ! * Defines the RSS_ListManager class, which manages the list of individual jobs ! * ! * This class is an extension of the PHPWS_Manager class defined in core/Manager.php. ! * Its function is to display a sortable list of items, and to provide an interface ! * to the editing, viewing and deleting of individual items as specified in an ! * extenison of the PHPWS_Item class defined in core/Item.php. It does so by ! * over-riding the standard functions _list(), _edit(), _view(), and _delete() defined in ! * Manager.php, and adding an action() function to handle additional procedures, in ! * this case the addition of a new RSS Feed to the list, and the creation of a menu ! * item to display the list. ! * ! * @version $Id$ ! * @author Wendall Cada <wen...@us...> ! * ! */ ! ! class RSS_ListManager extends PHPWS_Manager { ! /** ! * Current RSS listing ! * ! * @var rss object ! * @access private ! */ ! var $rss; ! ! /** ! * Constructor for RSS list manager object ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function RSS_ListManager() { ! $this->setModule("rssfeeds"); /* tells PHPWS_Manager where the files are */ ! $this->setRequest("RSS_MAN_op"); /* tells PHPWS_Manager the list manager opcode name */ ! $this->setTable("mod_rssfeeds_feeds"); /* tells PHPWS_Manager the table containing items to list */ ! $this->init(); /* initializes the list manager object */ ! } // END function JOB_ListManager ! ! ! /** ! * Provides standard list function: list all items in form appropriate for user ! * If function is named _list(), is called directly by managerAction() via index.php ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function _list() { ! ! /* if user has admin privileges, display menu with "Add" button and admin format list */ ! if ($_SESSION["OBJ_user"]->isDeity() || $_SESSION["OBJ_user"]->allow_access("rssfeeds")) { ! ! /* set tags for the template */ ! $tags["ADD_RSS_LABEL"] = $_SESSION["translate"]->it("Add RSS Feed"); ! /* add help for this button using mod/help -- see conf/help.php */ ! $tags["ADD_RSS_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "rssAddFeed"); ! $tags["CREATE_MENU_LINK_LABEL"] = $_SESSION["translate"]->it("Create Menu Link"); ! $tags["CREATE_MENU_LINK_HELP"] = $_SESSION["OBJ_help"]->show_link("rssfeeds", "rssAddMenuLink"); ! /* and process the template templates/menu.tpl to produce the menu */ ! $content = $GLOBALS["core"]->processTemplate($tags, "rssfeeds", "menu.tpl"); ! /* add admin form of list */ ! $content .= $this->getList("admin", $_SESSION['translate']->it("RSS Feeds")); ! ! } else { /* otherwise, display user format list */ ! ! $content = $this->getList("user", $_SESSION['translate']->it("RSS Feeds")); ! } ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! ! } //END function _list ! ! /** ! * Provides standard edit function: edits a list item ! * If called _edit, is called directly by managerAction() via index.php ! * Note that managerAction only calls this function if there is an item to edit ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function _edit() { ! ! $this->rss = new RSS($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the jobid */ ! $content = $this->rss->edit(); ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! ! } //END function edit ! ! /** ! * Provides standard delete function: deletes a list item ! * If called _delete, is called directly by managerAction() via index.php ! * Note that managerAction only calls this function if there is an item to delete ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function _delete() { ! ! $this->rss = new RSS($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the jobid */ ! $content = $this->rss->delete(); ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["content"] = $this->rss->delete(); ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! ! } //END function _delete ! ! /** ! * Provides standard view function: displays a list item ! * If called _view, is called directly by managerAction() via index.php ! * Note that managerAction only calls this function if there is an item to view ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function _view() { ! ! $this->rss = new RSS($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the jobid */ ! $content = $this->rss->view(); ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! ! } //END function _view ! ! ! /** ! * Perform non-standard list manager actions ! * ! * @author Wendall Cada <wen...@us...> ! */ ! function action() { ! switch($_REQUEST["RSS_MAN_op"]) { ! case "Add": ! $this->rss = new RSS(); /* create an 'empty' rss object (ref RSS.php) */ ! $content = $this->rss->edit(); /* and edit it */ ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! break; ! ! case "sView": /* view an item chosen from search results */ ! $this->rss = new RSS($_REQUEST["RSS_id"]); ! $content = $this->rss->view(); ! ! /* set display variables */ ! $GLOBALS["CNT_rssfeeds"]["content"] = $content; ! $GLOBALS["CNT_rssfeeds"]["title"] = $_SESSION['translate']->it("RSS Feeds"); ! break; ! ! case "Menu": ! /* allow admin to add a menu item pointing to RSS Feeds list */ ! if ($_SESSION["OBJ_user"]->isDeity() || $_SESSION["OBJ_user"]->allow_access("rssfeeds")) { ! if($GLOBALS['core']->moduleExists("menuman")) { ! $_SESSION['OBJ_menuman']->add_module_item("rssfeeds", "&RSS_MAN_op=list", "./index.php?module=rssfeeds&RSS_MAN_op=list", 1); ! } ! } ! break; ! } ! ! } //END function action ! ! ! /** ! * Searches the list of positions using the mod/search module ! * Configuration for the search appears in boost/install.php, where ! * this module is registered with the search module. ! * This function is called by the search module itself, from an accessory block. ! * ! * @param $where is a SELECT WHERE clause, passed from search module as ! * specified by user's search terms ! * @author Wendall Cada <wen...@us...> ! */ ! ! function search($where) { ! /* set up database query using input from search module */ ! $sql = "SELECT id, label FROM " . $GLOBALS['core']->tbl_prefix . "mod_rssfeeds_feeds " . $where . " AND hidden='0'"; ! $linkResult = $GLOBALS['core']->query($sql); /* perform the selection from the database */ ! ! /* if select returns any database rows */ ! if($linkResult->numrows()) { ! /* create an array of the results */ ! while($link = $linkResult->fetchrow(DB_FETCHMODE_ASSOC)) { ! $results[$link['id']] = $link['label']; ! } ! return $results; /* return results */ ! } else { ! return FALSE; /* indicate no results */ ! } ! } //END function search ! ! ! } //END class RSS_ListManager ! ?> |
From: <wen...@us...> - 2003-09-26 21:26:14
|
Update of /cvsroot/phpwebsite-comm/modules/rssfeeds/templates In directory sc8-pr-cvs1:/tmp/cvs-serv8030/templates Modified Files: edit.tpl Log Message: Initial release update Index: edit.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/rssfeeds/templates/edit.tpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** edit.tpl 8 Jul 2003 19:34:49 -0000 1.1.1.1 --- edit.tpl 26 Sep 2003 21:07:52 -0000 1.2 *************** *** 19,58 **** <!-- BEGIN _EXPIRE --> <tr> ! <td width="20%" align="right">{_EXPIRE_HELP}{_EXPIRE_LABEL}:</td><td align="left">{_EXPIRE}</td> </tr> <!-- END _EXPIRE --> <!-- BEGIN _TARGET --> <tr> ! <td width="20%" align="right">{_TARGET_HELP}{_TARGET_LABEL}:</td><td align="left">{_TARGET}</td> </tr> <!-- END _TARGET --> <!-- BEGIN _SHOW_TITLE --> <tr> ! <td width="20%" align="right">{_SHOW_TITLE_HELP}{_SHOW_TITLE_LABEL}:</td><td align="left">{_SHOW_TITLE_1}{YES}{_SHOW_TITLE_2}{NO}</td> </tr> <!-- END _SHOW_TITLE --> <!-- BEGIN _SHOW_IMAGE --> <tr> ! <td width="20%" align="right">{_SHOW_IMAGE_HELP}{_SHOW_IMAGE_LABEL}:</td><td align="left">{_SHOW_IMAGE_1}{YES}{_SHOW_IMAGE_2}{NO}</td> </tr> <!-- END _SHOW_IMAGE --> <!-- BEGIN _SHOW_URL --> <tr> ! <td width="20%" align="right" valign="top">{_SHOW_URL_HELP}{_SHOW_URL_LABEL}:</td><td align="left" valign="top">{_SHOW_URL_1}{YES}{_SHOW_URL_2}{NO}</td> </tr> <!-- END _SHOW_URL --> <!-- BEGIN _SHOW_DESC --> <tr> ! <td width="20%" align="right" valign="top">{_SHOW_DESC_HELP}{_SHOW_DESC_LABEL}:</td><td align="left" valign="top">{_SHOW_DESC_1}{YES}{_SHOW_DESC_2}{NO}</td> </tr> <!-- END _SHOW_DESC --> <!-- BEGIN _HOME --> <tr> ! <td width="20%" align="right">{_HOME_HELP}{_HOME_LABEL}:</td><td align="left">{_HOME}</td> </tr> <!-- END _HOME --> <!-- BEGIN _BLOCK --> <tr> ! <td width="20%" align="right">{_BLOCK_HELP}{_BLOCK_LABEL}:</td><td align="left">{_BLOCK}</td> </tr> <!-- END _BLOCK --> --- 19,58 ---- <!-- BEGIN _EXPIRE --> <tr> ! <td width="20%" align="right">{EXPIRE_HELP}{EXPIRE_LABEL}:</td><td align="left">{EXPIRE}</td> </tr> <!-- END _EXPIRE --> <!-- BEGIN _TARGET --> <tr> ! <td width="20%" align="right">{TARGET_HELP}{TARGET_LABEL}:</td><td align="left">{TARGET}</td> </tr> <!-- END _TARGET --> <!-- BEGIN _SHOW_TITLE --> <tr> ! <td width="20%" align="right">{SHOW_TITLE_HELP}{SHOW_TITLE_LABEL}:</td><td align="left">{SHOW_TITLE_1}{YES}{SHOW_TITLE_2}{NO}</td> </tr> <!-- END _SHOW_TITLE --> <!-- BEGIN _SHOW_IMAGE --> <tr> ! <td width="20%" align="right">{SHOW_IMAGE_HELP}{SHOW_IMAGE_LABEL}:</td><td align="left">{SHOW_IMAGE_1}{YES}{SHOW_IMAGE_2}{NO}</td> </tr> <!-- END _SHOW_IMAGE --> <!-- BEGIN _SHOW_URL --> <tr> ! <td width="20%" align="right" valign="top">{SHOW_URL_HELP}{SHOW_URL_LABEL}:</td><td align="left" valign="top">{SHOW_URL_1}{YES}{SHOW_URL_2}{NO}</td> </tr> <!-- END _SHOW_URL --> <!-- BEGIN _SHOW_DESC --> <tr> ! <td width="20%" align="right" valign="top">{SHOW_DESC_HELP}{SHOW_DESC_LABEL}:</td><td align="left" valign="top">{SHOW_DESC_1}{YES}{SHOW_DESC_2}{NO}</td> </tr> <!-- END _SHOW_DESC --> <!-- BEGIN _HOME --> <tr> ! <td width="20%" align="right">{HOME_HELP}{HOME_LABEL}:</td><td align="left">{HOME}</td> </tr> <!-- END _HOME --> <!-- BEGIN _BLOCK --> <tr> ! <td width="20%" align="right">{BLOCK_HELP}{BLOCK_LABEL}:</td><td align="left">{BLOCK}</td> </tr> <!-- END _BLOCK --> |
From: <gbr...@us...> - 2003-09-24 23:40:34
|
Update of /cvsroot/phpwebsite-comm/modules/staffman/conf In directory sc8-pr-cvs1:/tmp/cvs-serv29627/conf Modified Files: boost.php Log Message: minor bugfixes to version 1.21 Index: boost.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/staffman/conf/boost.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** boost.php 10 Sep 2003 20:36:11 -0000 1.6 --- boost.php 24 Sep 2003 23:40:29 -0000 1.7 *************** *** 40,44 **** $active = "on"; /* This package's version number */ ! $version = "1.2"; /* not sure, but likely the location on the web of the current version number */ /* $update_link = "phpwebsite.appstate.edu/fallout/updates/linkman/VERSION"; */ --- 40,44 ---- $active = "on"; /* This package's version number */ ! $version = "1.21"; /* not sure, but likely the location on the web of the current version number */ /* $update_link = "phpwebsite.appstate.edu/fallout/updates/linkman/VERSION"; */ |
From: <gbr...@us...> - 2003-09-24 23:40:34
|
Update of /cvsroot/phpwebsite-comm/modules/staffman/docs In directory sc8-pr-cvs1:/tmp/cvs-serv29627/docs Modified Files: README.txt Log Message: minor bugfixes to version 1.21 Index: README.txt =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/staffman/docs/README.txt,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** README.txt 10 Sep 2003 20:36:12 -0000 1.5 --- README.txt 24 Sep 2003 23:40:30 -0000 1.6 *************** *** 90,93 **** --- 90,98 ---- VERSION HISTORY ------------------------------ + 1.21 + Corrected several minor bugs -- error message on calling aView before a listing + had been displayed, failure to remove fatcat items as promised. + Automatically display the list of all staffmembers sorted alphabetically by + last name. 1.2 Fixed missing help information in earlier upgrade (1.1 and 1.1.1) by adding update |
From: <gbr...@us...> - 2003-09-24 23:40:32
|
Update of /cvsroot/phpwebsite-comm/modules/staffman/boost In directory sc8-pr-cvs1:/tmp/cvs-serv29627/boost Modified Files: uninstall.php Log Message: minor bugfixes to version 1.21 Index: uninstall.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/staffman/boost/uninstall.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** uninstall.php 5 Sep 2003 14:22:56 -0000 1.3 --- uninstall.php 24 Sep 2003 23:40:29 -0000 1.4 *************** *** 29,33 **** /* remove any staffmember fatcat items */ if(isset($_SESSION["OBJ_fatcat"])) { ! if(PHPWS_Fatcat::purge(NULL, "faq")) $content .= "Removed any staffmembers in fatcat categories.<br />"; } --- 29,33 ---- /* remove any staffmember fatcat items */ if(isset($_SESSION["OBJ_fatcat"])) { ! if(PHPWS_Fatcat::purge(NULL, "staffman")) $content .= "Removed any staffmembers in fatcat categories.<br />"; } |
From: <gbr...@us...> - 2003-09-24 23:39:34
|
Update of /cvsroot/phpwebsite-comm/modules/jobman/boost In directory sc8-pr-cvs1:/tmp/cvs-serv27040/boost Modified Files: uninstall.php Log Message: multiple modifications to version 1.3 Index: uninstall.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/jobman/boost/uninstall.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** uninstall.php 25 Jun 2003 22:13:09 -0000 1.2 --- uninstall.php 24 Sep 2003 23:38:47 -0000 1.3 *************** *** 2,6 **** /** ! * Uninstall file for Jobman v1 * * @version $Id$ --- 2,6 ---- /** ! * Uninstall file for jobman * * @version $Id$ *************** *** 27,30 **** --- 27,42 ---- } + /* remove any jobman fatcat items */ + if(isset($_SESSION["OBJ_fatcat"])) { + if(PHPWS_Fatcat::purge(NULL, "jobman")) + $content .= "Removed any jobs in fatcat categories.<br />"; + } + + /* uninstall menu item, if any */ + if (isset($_SESSION["OBJ_menuman"])) { + if($GLOBALS["core"]->sqlDelete("mod_menuman_items", "menu_item_url", "%module=jobman%", "LIKE")) + $content .= "Removed link to Positions Available from menu.<br />"; + } + /* uninstall search */ $GLOBALS['core']->sqlDelete("mod_search_register", "module", "jobman"); |