Skip to content
Permalink
Browse files

Moved rsslib.php from the rss directory to the lib directory with the

other libraries
  • Loading branch information...
moodler
moodler committed Jan 25, 2005
1 parent 371a2ed commit 48b29ba423dc3e4312a2141ef28aa158e39ff1d2
@@ -22,7 +22,7 @@ function specialization() {
function get_content() { function get_content() {
global $CFG, $editing; global $CFG, $editing;
require_once($CFG->dirroot .'/rss/rsslib.php'); require_once($CFG->libdir .'/rsslib.php');
if($this->content !== NULL) { if($this->content !== NULL) {
return $this->content; return $this->content;
@@ -191,4 +191,4 @@ function get_rss_by_id($rssid, $display_description, $shownumentries, $showtitle
return $returnstring; return $returnstring;
} }
} }
?> ?>
@@ -1,10 +1,9 @@
<?php //$Id$ <?php //$Id$
require_once('../../config.php'); require_once('../../config.php');
require_once($CFG->dirroot .'/rss/rsslib.php'); require_once($CFG->libdir .'/rsslib.php');
require_once(MAGPIE_DIR .'rss_fetch.inc'); require_once(MAGPIE_DIR .'rss_fetch.inc');
global $USER, $CFG;
require_login(); require_login();
//ensure that the logged in user is not using the guest account //ensure that the logged in user is not using the guest account
@@ -1,15 +1,14 @@
<?php //$Id$ <?php //$Id$
require_once('../../config.php'); require_once('../../config.php');
global $USER, $CFG;
require_variable($error); require_variable($error);
print_header(get_string('error'), print_header(get_string('error'),
get_string('error'), get_string('error'),
get_string('error') ); get_string('error') );
print urldecode($error); echo clean_text(urldecode($error));
print_footer(); print_footer();
?> ?>
@@ -1,5 +1,5 @@
<?php <?php
require_once($CFG->dirroot .'/rss/rsslib.php'); require_once($CFG->libdir .'/rsslib.php');
?> ?>
<table cellpadding="9" cellspacing="0"> <table cellpadding="9" cellspacing="0">
<tr valign="top"> <tr valign="top">
@@ -45,4 +45,4 @@


<td colspan="3" align="center"><a href=" <?php echo $CFG->wwwroot; ?>/blocks/rss_client/block_rss_client_action.php?courseid=<?php echo $courseid; ?>"><?php print_string('block_rss_feeds_add_edit', 'block_rss_client')?></a></center><br /><br /> <td colspan="3" align="center"><a href=" <?php echo $CFG->wwwroot; ?>/blocks/rss_client/block_rss_client_action.php?courseid=<?php echo $courseid; ?>"><?php print_string('block_rss_feeds_add_edit', 'block_rss_client')?></a></center><br /><br />
</td> </td>
</table> </table>
File renamed without changes.
@@ -2,7 +2,7 @@
require_once("../../config.php"); require_once("../../config.php");
require_once("lib.php"); require_once("lib.php");
require_once("$CFG->dirroot/rss/rsslib.php"); require_once("$CFG->libdir/rsslib.php");
optional_variable($id); // course optional_variable($id); // course
@@ -2,7 +2,7 @@
require_once("../../config.php"); require_once("../../config.php");
require_once("lib.php"); require_once("lib.php");
require_once("$CFG->dirroot/rss/rsslib.php"); require_once("$CFG->libdir/rsslib.php");
$id = optional_param('id', 0, PARAM_INT); // Course Module ID $id = optional_param('id', 0, PARAM_INT); // Course Module ID
$f = optional_param('f', 0, PARAM_INT); // Forum ID $f = optional_param('f', 0, PARAM_INT); // Forum ID
@@ -5,7 +5,7 @@
require_once("../../config.php"); require_once("../../config.php");
require_once("lib.php"); require_once("lib.php");
require_once("$CFG->dirroot/rss/rsslib.php"); require_once("$CFG->libdir/rsslib.php");
require_variable($id); // course require_variable($id); // course
@@ -2,7 +2,7 @@
/// This page prints a particular instance of glossary /// This page prints a particular instance of glossary
require_once("../../config.php"); require_once("../../config.php");
require_once("lib.php"); require_once("lib.php");
require_once("$CFG->dirroot/rss/rsslib.php"); require_once("$CFG->libdir/rsslib.php");
global $CFG, $THEME, $USER; global $CFG, $THEME, $USER;
$debug = 0; $debug = 0;
@@ -16,8 +16,8 @@
$nomoodlecookie = true; // Because it interferes with caching $nomoodlecookie = true; // Because it interferes with caching
require_once('../config.php'); require_once('../config.php');
require_once('../files/mimetypes.php'); require_once($CFG->dirroot.'/files/mimetypes.php');
require_once('rsslib.php'); require_once($CFG->libdir.'/rsslib.php');
$lifetime = 3600; // Seconds for files to remain in caches - 1 hour $lifetime = 3600; // Seconds for files to remain in caches - 1 hour

0 comments on commit 48b29ba

Please sign in to comment.
You can’t perform that action at this time.