Changeset 862 in ExiteCMS for modules/common/wiki/php-files/modules/wiki/actions/footer.php
- Timestamp:
- 10/02/07 22:27:18 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/common/wiki/php-files/modules/wiki/actions/footer.php
r808 r862 5 5 <?php 6 6 echo $this->HasAccess("write") ? "<a href=\"".$this->href("edit")."\" title=\"Click to edit this page\">Edit page</a> |\n" : ""; 7 echo "<a href=\"".$this->href("upload")."\" title=\"Click to upload new images\">Upload Image</a> |\n"; 7 8 echo "<a href=\"".$this->href("history")."\" title=\"Click to view recent edits to this page\">Page History</a> |\n"; 8 echo $this->GetPageTime() ? "<a href=\"".$this->href("revisions")."\" title=\"Click to view recent revisions list for this page\">".$this->GetPageTime()."</a> |\n" : ""; 9 echo $this->GetPageTime() ? "<a href=\"".$this->href("revisions")."\" title=\"Click to view recent revisions list for this page\">Revisions</a> |\n" : ""; 10 // echo $this->GetPageTime() ? "<a href=\"".$this->href("revisions")."\" title=\"Click to view recent revisions list for this page\">".$this->GetPageTime()."</a> |\n" : ""; 9 11 echo ($this->GetUser() ? "<a href='".$this->href("referrers")."' title='Click to view a list of URLs referring to this page.'>Referrers</a> |\n" : ""); 10 12 // if this page exists 11 13 if ($this->page) 12 14 { 13 if ($owner = $this->GetPageOwner()) 14 { 15 if ($owner == "(Public)") 16 { 17 print("Public page ".($this->IsAdmin() ? "<a href=\"".$this->href("acls")."\">(Edit ACLs)</a>\n" : "\n")); 18 } 19 // if owner is current user 20 elseif ($this->UserIsOwner()) 21 { 22 if ($this->IsAdmin()) 23 { 24 print("Owner: ".$this->Link($owner, "", "", 0)." | <a href=\"".$this->href("acls")."\">Edit ACLs</a>\n"); 25 } 26 else 27 { 28 print("You own this page | <a href=\"".$this->href("acls")."\">Edit ACLs</a>\n"); 29 } 30 } 31 else 32 { 33 print("Owner: ".$this->Link($owner, "", "", 0)."\n"); 34 } 15 switch ($owner = $this->GetPageOwner()) { 16 case "(Public)": 17 print("Public page\n"); 18 break; 19 case $this->UserIsOwner(): 20 print("You own this page\n"); 21 break; 22 case false; 23 print("Nobody".($this->GetUser() ? " (<a href=\"".$this->href("claim")."\">Take Ownership</a>)\n" : "\n")); 24 default: 25 print("Owner: <a href='".BASEDIR."profile.php?lookup=$owner'>".$owner."</a>\n"); 35 26 } 36 else 37 { 38 print("Nobody".($this->GetUser() ? " (<a href=\"".$this->href("claim")."\">Take Ownership</a>)\n" : "\n")); 39 } 27 if ($this->IsAdmin()) { 28 print("| <a href=\"".$this->href("acls")."\">Edit ACLs</a>\n"); 29 } 40 30 } 41 31
Note: See TracChangeset
for help on using the changeset viewer.
