Firefox microsummary

orig_fof
steveminutillo 2007-12-29 03:51:12 +00:00
parent 8c5a6bd12b
commit 8345198de3
2 changed files with 21 additions and 0 deletions

View File

@ -35,6 +35,8 @@ $unread_count = fof_get_unread_count(fof_current_user());
<title>Feed on Feeds<?php if($unread_count) echo " ($unread_count)";?></title>
<link rel="stylesheet" href="fof.css" media="screen" />
<link rel="microsummary" href="microsummary.php" />
<script src="prototype/prototype.js" type="text/javascript"></script>

19
microsummary.php Normal file
View File

@ -0,0 +1,19 @@
<?php
$fof_no_login = 1;
require("fof-main.php");
if(isset($_COOKIE["user_name"]) && isset($_COOKIE["user_password_hash"]))
{
$user_name = $_COOKIE["user_name"];
$user_password_hash = $_COOKIE["user_password_hash"];
if(fof_authenticate($user_name, $user_password_hash))
{
$unread = fof_get_unread_count(fof_current_user());
}
}
echo "Feed on Feeds";
if($unread) echo " ($unread)";
?>