set('purge', $_POST['purge']); $prefs->set('manualtimeout', $_POST['manualtimeout']); $prefs->set('autotimeout', $_POST['autotimeout']); $prefs->set('logging', $_POST['logging']); $prefs->save(); $message .= ' Saved admin prefs.'; if($prefs->get('logging') && !@fopen("fof.log", 'a')) { $message .= ' Warning: could not write to log file!'; } } if(isset($_POST['tagfeed'])) { $tags = $_POST['tag']; $feed_id = $_POST['feed_id']; $title = $_POST['title']; foreach(explode(" ", $tags) as $tag) { fof_tag_feed(fof_current_user(), $feed_id, $tag); $message .= " Tagged '$title' as $tag."; } } if(isset($_GET['untagfeed'])) { $feed_id = $_GET['untagfeed']; $tags = $_GET['tag']; $title = $_GET['title']; foreach(explode(" ", $tags) as $tag) { fof_untag_feed(fof_current_user(), $feed_id, $tag); $message .= " Dropped $tag from '$title'."; } } if(isset($_POST['prefs'])) { $prefs->set('favicons', isset($_POST['favicons'])); $prefs->set('keyboard', isset($_POST['keyboard'])); $prefs->set('tzoffset', intval($_POST['tzoffset'])); $prefs->set('howmany', intval($_POST['howmany'])); $prefs->set('order', $_POST['order']); $prefs->set('sharing', $_POST['sharing']); $prefs->set('sharedname', $_POST['sharedname']); $prefs->set('sharedurl', $_POST['sharedurl']); $prefs->save(fof_current_user()); if($_POST['password'] && ($_POST['password'] == $_POST['password2'])) { fof_db_change_password($fof_user_name, $_POST['password']); setcookie ( "user_password_hash", md5($_POST['password'] . $fof_user_name), time()+60*60*24*365*10 ); $message = "Updated password."; } else if($_POST['password'] || $_POST['password2']) { $message = "Passwords do not match!"; } $message .= ' Saved prefs.'; } if(isset($_POST['plugins'])) { foreach(fof_get_plugin_prefs() as $plugin_pref) { $key = $plugin_pref[1]; $prefs->set($key, $_POST[$key]); } $plugins = array(); $dirlist = opendir(FOF_DIR . "/plugins"); while($file=readdir($dirlist)) { if(ereg('\.php$',$file)) { $plugins[] = substr($file, 0, -4); } } closedir(); foreach($plugins as $plugin) { $prefs->set("plugin_" . $plugin, $_POST[$plugin] != "on"); } $prefs->save(fof_current_user()); $message .= ' Saved plugin prefs.'; } if(isset($_POST['changepassword'])) { if($_POST['password'] != $_POST['password2']) { $message = "Passwords do not match!"; } else { $username = $_POST['username']; $password = $_POST['password']; fof_db_change_password($username, $password); $message = "Changed password for $username."; } } if(isset($_POST['adduser']) && $_POST['username'] && $_POST['password']) { $username = $_POST['username']; $password = $_POST['password']; fof_db_add_user($username, $password); $message = "User '$username' added."; } if(isset($_POST['deleteuser']) && $_POST['username']) { $username = $_POST['username']; fof_db_delete_user($username); $message = "User '$username' deleted."; } include("header.php"); ?>


Feed on Feeds - Preferences

Default display order:

Number of items in paged displays:

Display custom feed favicons? get('favicons')) echo "checked=true";?> >

Use keyboard shortcuts? get('keyboard')) echo "checked=true";?> >

Time offset in hours: (UTC time: , local time: get("tzoffset")*60*60) ?>)

New password: (leave blank to not change)
Repeat new password:

Share items. get('sharing') != "no") echo " (your shared page is here)";?>

Name to be shown on shared page:

URL to be linked on shared page:


Feed on Feeds - Plugin Preferences

get("plugin_" . $plugin)) echo "checked"; ?>> Enable plugin ?

: get($key)) echo "checked" ?>>



Feed on Feeds - Feeds and Tags

"; } else { print ""; } if($row['feed_image'] && $prefs->get('favicons')) { print ""; } else { print ""; } print ""; print ""; $title = htmlspecialchars($title); print ""; } ?>
$title"; if($tags) { foreach($tags as $tag) { $utag = urlencode($tag); $utitle = urlencode($title); print "$tag [x] "; } } else { } print "
(separate tags with spaces)

Feed on Feeds - Admin Options

Enable logging? get('logging')) echo "checked" ?>>

Purge read items after days (leave blank to never purge)

Allow automatic feed updates every minutes

Allow manual feed updates every minutes


Add User

Username: Password:
1"); while($row = fof_db_get_row($result)) { $username = $row['user_name']; $delete_options .= ""; } if(isset($delete_options)) { ?>

Delete User



Change User's Password

Select user:
New password:
Repeat new password: