more bugs with admin prefs. also, I can never remember if it's =& or &=.
parent
ad8833a08a
commit
71718f66b7
|
@ -33,7 +33,7 @@ ob_end_clean();
|
||||||
if(!$fof_no_login)
|
if(!$fof_no_login)
|
||||||
{
|
{
|
||||||
require_user();
|
require_user();
|
||||||
$fof_prefs_obj = FoF_Prefs::instance();
|
$fof_prefs_obj =& FoF_Prefs::instance();
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once('simplepie/simplepie.inc');
|
require_once('simplepie/simplepie.inc');
|
||||||
|
@ -663,7 +663,7 @@ function fof_mark_item_unread($feed_id, $id)
|
||||||
|
|
||||||
function fof_parse($url)
|
function fof_parse($url)
|
||||||
{
|
{
|
||||||
$p &= FoF_Prefs::instance();
|
$p =& FoF_Prefs::instance();
|
||||||
$admin_prefs = $p->admin_prefs;
|
$admin_prefs = $p->admin_prefs;
|
||||||
|
|
||||||
$pie = new SimplePie();
|
$pie = new SimplePie();
|
||||||
|
@ -829,7 +829,7 @@ function fof_update_feed($id)
|
||||||
// unread or starred, not currently in the feed or within sizeof(feed) items
|
// unread or starred, not currently in the feed or within sizeof(feed) items
|
||||||
// of being in the feed, and are over 'purge' many days old
|
// of being in the feed, and are over 'purge' many days old
|
||||||
|
|
||||||
$p &= FoF_Prefs::instance();
|
$p =& FoF_Prefs::instance();
|
||||||
$admin_prefs = $p->admin_prefs;
|
$admin_prefs = $p->admin_prefs;
|
||||||
|
|
||||||
if($admin_prefs['purge'] != "")
|
if($admin_prefs['purge'] != "")
|
||||||
|
|
|
@ -17,16 +17,12 @@ set_time_limit(60*10);
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
$fof_no_login = true;
|
$fof_no_login = true;
|
||||||
|
$fof_user_id = 1;
|
||||||
include_once("fof-main.php");
|
include_once("fof-main.php");
|
||||||
|
|
||||||
$p = new FoF_Prefs(1);
|
$p =& FoF_Prefs::instance();
|
||||||
$fof_admin_prefs = $p->prefs;
|
$fof_admin_prefs = $p->prefs;
|
||||||
|
|
||||||
$result = fof_safe_query("select user_prefs from $FOF_USER_TABLE where user_id = 1");
|
|
||||||
$row = mysql_fetch_array($result);
|
|
||||||
$fof_admin_prefs = unserialize($row['user_prefs']);
|
|
||||||
if(!isset($fof_admin_prefs['autotimeout'])) $fof_admin_prefs['autotimeout'] = 30;
|
|
||||||
|
|
||||||
$result = fof_db_get_feeds();
|
$result = fof_db_get_feeds();
|
||||||
|
|
||||||
$feeds = array();
|
$feeds = array();
|
||||||
|
|
|
@ -19,7 +19,7 @@ print("<br>");
|
||||||
$feed = $_GET['feed'];
|
$feed = $_GET['feed'];
|
||||||
$feeds = array();
|
$feeds = array();
|
||||||
|
|
||||||
$p = FoF_Prefs::instance();
|
$p =& FoF_Prefs::instance();
|
||||||
$admin_prefs = $p->admin_prefs;
|
$admin_prefs = $p->admin_prefs;
|
||||||
|
|
||||||
if($feed)
|
if($feed)
|
||||||
|
|
Loading…
Reference in New Issue