| 1 |
<?php |
<?php |
| 2 |
// vim:filetype=php |
// vim:filetype=php |
| 3 |
// $Id: tribune.module,v 1.76 2008/06/11 09:41:33 seeschloss Exp $ |
// $Id: tribune.module,v 1.77 2008/06/11 09:52:24 seeschloss Exp $ |
| 4 |
|
|
| 5 |
/** |
/** |
| 6 |
* Some variables |
* Some variables |
| 752 |
function get_new_posts($last_modified = 0) { |
function get_new_posts($last_modified = 0) { |
| 753 |
$posts = array(); |
$posts = array(); |
| 754 |
|
|
| 755 |
|
//* |
| 756 |
$r = db_query("SELECT post_id, |
$r = db_query("SELECT post_id, |
| 757 |
login, |
login, |
| 758 |
info, |
info, |
| 770 |
LIMIT 1) |
LIMIT 1) |
| 771 |
ORDER BY post_id DESC" |
ORDER BY post_id DESC" |
| 772 |
, $last_modified); |
, $last_modified); |
| 773 |
|
//*/ |
| 774 |
|
|
| 775 |
|
/* |
| 776 |
|
$r = db_query("SELECT post_id, |
| 777 |
|
login, |
| 778 |
|
info, |
| 779 |
|
message, |
| 780 |
|
post_time, |
| 781 |
|
is_alone, |
| 782 |
|
post_rank, |
| 783 |
|
parsed_message, |
| 784 |
|
referenced_by, |
| 785 |
|
moderated |
| 786 |
|
FROM {tribune} |
| 787 |
|
WHERE last_modified > %d |
| 788 |
|
ORDER BY post_id DESC" |
| 789 |
|
, $last_modified); |
| 790 |
|
*/ |
| 791 |
|
|
| 792 |
while ($row = db_fetch_array($r)) { |
while ($row = db_fetch_array($r)) { |
| 793 |
$id = $row['post_id']; |
$id = $row['post_id']; |