Changeset 1175 in ExiteCMS for modules/common/wiki/php-files/modules/wiki/actions/footer.php
- Timestamp:
- 12/16/07 22:55:37 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/common/wiki/php-files/modules/wiki/actions/footer.php
r1161 r1175 13 13 if ($this->page) 14 14 { 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 if (iMEMBER) { 26 print("Owner: <a href='".BASEDIR."profile.php?lookup=$owner'>".$owner."</a>\n"); 27 } else { 28 print("Owner: $owner\n"); 29 } 15 $owner = $this->GetPageOwner(); 16 if ($owner == "(Public)") { 17 print("Public page\n"); 18 } elseif ($owner == false) { 19 print("Nobody".($this->GetUser() ? " (<a href=\"".$this->href("claim")."\">Take Ownership</a>)\n" : "\n")); 20 } elseif (iMEMBER && $GLOBALS['userdata']['user_name'] == $owner) { 21 print("You own this page\n"); 22 } else { 23 if (iMEMBER) { 24 print("Owner: <a href='".BASEDIR."profile.php?lookup=$owner'>".$owner."</a>\n"); 25 } else { 26 print("Owner: $owner\n"); 27 } 30 28 } 31 if ($this->IsAdmin()) {32 print("| <a href=\"".$this->href("acls")."\">Edit ACLs</a>\n");33 }34 29 } 35 30
Note: See TracChangeset
for help on using the changeset viewer.
