projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename CoreLogger to PlLogger
[platal.git]
/
include
/
rss.inc.php
diff --git
a/include/rss.inc.php
b/include/rss.inc.php
index
22a8a2b
..
0117fc0
100644
(file)
--- a/
include/rss.inc.php
+++ b/
include/rss.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
7
Polytechnique.org *
+ * Copyright (C) 2003-200
8
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-37,7
+37,8
@@
function init_rss($template, $alias, $hash, $require_uid = true)
$res = XDB::query(
'SELECT a.id
FROM aliases AS a
$res = XDB::query(
'SELECT a.id
FROM aliases AS a
- INNER JOIN auth_user_quick AS q ON ( a.id = q.user_id AND q.core_rss_hash = {?} )
+ INNER JOIN auth_user_md5 AS u ON (a.id = u.user_id AND u.perms IN ("admin", "user"))
+ INNER JOIN auth_user_quick AS q ON (a.id = q.user_id AND q.core_rss_hash = {?})
WHERE a.alias = {?} AND a.type != "homonyme"', $hash, $alias);
$uid = $res->fetchOneCell();
WHERE a.alias = {?} AND a.type != "homonyme"', $hash, $alias);
$uid = $res->fetchOneCell();
@@
-50,6
+51,7
@@
function init_rss($template, $alias, $hash, $require_uid = true)
}
if ($template) {
}
if ($template) {
+ $page->assign('rss_hash', $hash);
header('Content-Type: application/rss+xml; charset=utf8');
}
return $uid;
header('Content-Type: application/rss+xml; charset=utf8');
}
return $uid;