Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 432 → Rev 433

/trunk/client/integrateur_wikini/bibliotheque/wikini/actions/mypages.php
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 &ecirc;tes le propri&eacute;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'&ecirc;tes le propri&eacute;taire d'aucune page.</i>");
}
}
else
{
print("<i>Aucune page trouv&eacute;e.</i>");
}
}
else
{
print("<i>Vous n'&ecirc;tes pas identifi&eacute; : impossible d'afficher la liste des pages que vous avez modifi&eacute;es.</i>");
}
 
?>