Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
433 ddelon 1
<?php
2
 
3
// Which is the max number of pages to be shown ?
4
if ($max = $this->GetParameter("max"))
5
{
6
    if ($max=="last") $max=50; else $last = (int) $max;
7
}
8
elseif ($user = $this->GetUser())
9
{
10
    $max = $user["changescount"];
11
}
12
else
13
{
14
    $max = 50;
15
}
16
 
17
// Show recently changed pages
18
if ($pages = $this->LoadRecentlyChanged($max))
19
{
20
	if ($this->GetParameter("max"))
21
	{
22
		foreach ($pages as $i => $page)
23
		{
24
			// print entry
25
			print("(".$page["time"].") (".$this->ComposeLinkToPage($page["tag"], "revisions", "historique", 0).") ".$this->ComposeLinkToPage($page["tag"], "", "", 0)." . . . . ".$this->Format($page["user"])."<br />\n");
26
		}
27
	}
28
	else
29
	{
30
		$curday='';
31
        foreach ($pages as $i => $page)
32
		{
33
			// day header
34
			list($day, $time) = explode(" ", $page["time"]);
35
			if ($day != $curday)
36
			{
37
				if ($curday) print("<br />\n");
38
				print("<b>$day&nbsp;:</b><br />\n");
39
				$curday = $day;
40
			}
41
			// print entry
42
			print("&nbsp;&nbsp;&nbsp;(".$time.") (".$this->ComposeLinkToPage($page["tag"], "revisions", "historique", 0).") ".$this->ComposeLinkToPage($page["tag"], "", "", 0)." . . . . ".$this->Format($page["user"])."<br />\n");
43
		}
44
	}
45
}
46
?>