Revision [16768]
This is an old revision of MyChangesAction made by XglP2s on 2007-05-31 10:45:46.
My Changes Action
See also:
Documentation: MyChangesActionInfo.The php code:
%%(php)
<?php
actions/mychanges.php
written by Carlo Zottmann
http://wakkawikki.com/CarloZottmann
if ($user = $this->GetUser())
{
$my_edits_count = 0;
if ($_REQUEST["alphabetically"] 1)
1)
{
print("<strong>This is a list of pages you've edited, along with the time of your last change (<a href=\.$this->href(, $tag)."\">order by date</a>).</strong><br /><br />\n");
{
foreach ($pages as $page)
{
if ($last_tag != $page["tag"]) {
$last_tag = $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("<strong>$firstChar</strong><br />\n");
$curChar = $firstChar;
}
print entry
print("