Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
433 ddelon 1
<?php
2
 
3
// actions/mypages.php
4
// written by Carlo Zottmann
5
// http://wakkawikki.com/CarloZottmann
6
 
7
if ($user = $this->GetUser())
8
{
9
	print("<b>Liste des pages dont vous &ecirc;tes le propri&eacute;taire.</b><br /><br />\n");
10
 
11
	$my_pages_count = 0;
12
 
13
	if ($pages = $this->LoadAllPages())
14
	{
15
		foreach ($pages as $page)
16
		{
17
			if ($this->UserName() == $page["owner"] && !preg_match("/^Comment/", $page["tag"])) {
18
				$firstChar = strtoupper($page["tag"][0]);
19
				if (!preg_match("/[A-Z,a-z]/", $firstChar)) {
20
					$firstChar = "#";
21
				}
22
 
23
				if ($firstChar != $curChar) {
24
					if ($curChar) print("<br />\n");
25
					print("<b>$firstChar</b><br />\n");
26
					$curChar = $firstChar;
27
				}
28
 
29
				print($this->ComposeLinkToPage($page["tag"])."<br />\n");
30
 
31
				$my_pages_count++;
32
			}
33
		}
34
 
35
		if ($my_pages_count == 0)
36
		{
37
			print("<i>Vous n'&ecirc;tes le propri&eacute;taire d'aucune page.</i>");
38
		}
39
	}
40
	else
41
	{
42
		print("<i>Aucune page trouv&eacute;e.</i>");
43
	}
44
}
45
else
46
{
47
	print("<i>Vous n'&ecirc;tes pas identifi&eacute; : impossible d'afficher la liste des pages que vous avez modifi&eacute;es.</i>");
48
}
49
 
50
?>