===== ""UserPages"" Action ===== >>**See also:** AdminModules >><LoadUser($_GET['user'])): # a valid user is specified as an URL parameter $owner = $_GET['user']; break; case (isset($user) && $this->LoadUser($user)): # a valid user parameter is used $owner = $user; break; case ($this->GetUser()): $owner = $this->GetUserName(); break; } if (strlen($owner) == 0) { print("Sorry, no valid user is specified"); } else { echo $this->Format("== Pages owned by ".$owner." == --- --- "); $user_pages_count = 0; if ($pages = $this->LoadAllPages()) { foreach ($pages as $page) { if ($owner == $page["owner"]) { $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($this->Link($page["tag"])."
\n"); $user_pages_count++; } } if ($user_pages_count == 0) { print("User doesn't own any pages."); } } else { print("No pages found."); } } ?> %% ---- CategoryDevelopmentActions CategoryDevelopmentAdmin