house keeping

pull/1/head
root 18 years ago
parent afe502a0aa
commit 01a7241f69

@ -23,8 +23,6 @@
<li><?=_("Inclusion into mainstream browsers!")?></li>
<li><?=_("To provide a trust mechanism to go with the security aspects of encryption.")?></li>
</ul>
<br>
<p><a href="http://blog.CAcert.org"><?=_("Latest News")?></a> - [ <a href='http://blog.CAcert.org'><?=_("More News Items")?></a> ]</p>
<?
/*
$query = "select *, UNIX_TIMESTAMP(`when`) as `TS` from news order by `when` desc limit 5";
@ -40,7 +38,12 @@
*/
$rss = "";
$open = $items = 0;
$fp = fopen("http://blog.CAcert.org/feed/rss/", "r");
$fp = @fopen("http://blog.CAcert.org/feed/rss/", "r");
if($fp)
{
echo '<br><p><a href="http://blog.CAcert.org">'._('Latest News').'</a> - [ <a href="http://blog.CAcert.org">'._('More News Items').'</a> ]</p>';
while(!feof($fp))
$rss .= trim(fgets($fp, 4096));
fclose($fp);
@ -74,4 +77,5 @@
if(substr($line, 0, 6) == "<link>")
echo "<p>[ <a href='".trim(substr($line, 6, -7))."'>"._("Full Story")."</a> ]</p>\n";
}
}
?>

@ -2,6 +2,8 @@
<?
include_once("../includes/mysql.php");
mysql_query("update `locations` set `acount`=0");
$query = "SELECT `users`.`locid` AS `locid`, count(*) AS `total` FROM `users`, `notary`
WHERE `users`.`id` = `notary`.`to` AND `users`.`locid` != 0
GROUP BY `users`.`id`, `users`.`locid`
@ -10,6 +12,7 @@
while($row = mysql_fetch_assoc($res))
{
$query = "update `locations` set `acount`='${row['total']}' where `id`='${row['locid']}'";
// echo $query."\n";
mysql_query($query);
}
?>

Loading…
Cancel
Save