New file |
0,0 → 1,50 |
<?php |
|
// actions/mypages.php |
// written by Carlo Zottmann |
// http://wakkawikki.com/CarloZottmann |
|
if ($user = $this->GetUser()) |
{ |
print("<b>Liste des pages dont vous êtes le propriétaire.</b><br /><br />\n"); |
|
$my_pages_count = 0; |
|
if ($pages = $this->LoadAllPages()) |
{ |
foreach ($pages as $page) |
{ |
if ($this->UserName() == $page["owner"] && !preg_match("/^Comment/", $page["tag"])) { |
$firstChar = strtoupper($page["tag"][0]); |
if (!preg_match("/[A-Z,a-z]/", $firstChar)) { |
$firstChar = "#"; |
} |
|
if ($firstChar != $curChar) { |
if ($curChar) print("<br />\n"); |
print("<b>$firstChar</b><br />\n"); |
$curChar = $firstChar; |
} |
|
print($this->ComposeLinkToPage($page["tag"])."<br />\n"); |
|
$my_pages_count++; |
} |
} |
|
if ($my_pages_count == 0) |
{ |
print("<i>Vous n'êtes le propriétaire d'aucune page.</i>"); |
} |
} |
else |
{ |
print("<i>Aucune page trouvée.</i>"); |
} |
} |
else |
{ |
print("<i>Vous n'êtes pas identifié : impossible d'afficher la liste des pages que vous avez modifiées.</i>"); |
} |
|
?> |