===== ""UserChanges"" Action ===== {{lastedit}} >>**See also:** AdminModules >><LoadUser($_GET['user'])): # a valid user is specified as an URL parameter $author = $_GET['user']; break; case (isset($user) && $this->LoadUser($user)): # a valid user parameter is used $author = $user; break; case ($this->GetUser()): $author = $this->GetUserName(); break; } $page = $this->GetPageTag(); if ($author) { $user_edits_count = 0; if ($_GET["alpha"] == 1) { echo $this->Format("== Pages modified by [[".$author."]] == --- --- "); print("This is a list of pages edited by ".$this->Link($author).", along with the time of the last edit (Href("", "", "user=".$author."&date=1&action=changes")."\">order by date).

\n"); if ($pages = $this->LoadAll("SELECT tag, time FROM ".$this->config["table_prefix"]."pages WHERE user = '".mysql_real_escape_string($author)."' ORDER BY tag ASC, time DESC")) { 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("
\n"); print("$firstChar
\n"); $curChar = $firstChar; } // print entry print("   (".$page["time"].") (".$this->Link($page["tag"], "revisions", "history", 0).") ".$this->Link($page["tag"], "", "", 0)."
\n"); $user_edits_count++; } } if ($user_edits_count == 0) { print("User has not edited any pages yet."); } } else { print("No pages found."); } } else { echo $this->Format("== Pages modified by [[".$author."]] == --- --- "); print("This is a list of pages edited by ".$this->Link($author).", ordered by the time of last edit (Href("", "", "user=".$author."&alpha=1&action=changes")."\">order alphabetically).

\n"); if ($pages = $this->LoadAll("SELECT tag, time FROM ".$this->config["table_prefix"]."pages WHERE user = '".mysql_real_escape_string($author)."' ORDER BY time ASC, tag ASC")) { foreach ($pages as $page) { $edited_pages[$page["tag"]] = $page["time"]; } $edited_pages = array_reverse($edited_pages); foreach ($edited_pages as $page["tag"] => $page["time"]) { // day header list($day, $time) = explode(" ", $page["time"]); if ($day != $curday) { if ($curday) print("
\n"); print("$day:
\n"); $curday = $day; } // print entry print("   ($time) (".$this->Link($page["tag"], "revisions", "history", 0).") ".$this->Link($page["tag"], "", "", 0)."
\n"); $user_edits_count++; } if ($user_edits_count == 0) { print("User has not edited any pages yet."); } } else { print("No pages found."); } } } else { print("No user specified"); } ?> %% ---- CategoryDevelopmentActions CategoryDevelopmentAdmin