Ignore:
Timestamp:
10/02/07 22:27:18 (5 years ago)
Author:
hverton
Message:

Added an image upload function to the Wiki module
Optimized the speed of the download panels
Fixed a crash due to "attachment to big" in M2F

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/wiki/php-files/modules/wiki/actions/footer.php

    r808 r862  
    55<?php  
    66    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"; 
    78    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" : ""; 
    911    echo ($this->GetUser() ? "<a href='".$this->href("referrers")."' title='Click to view a list of URLs referring to this page.'>Referrers</a> |\n" : ""); 
    1012    // if this page exists 
    1113    if ($this->page) 
    1214    { 
    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"); 
    3526        } 
    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        }    
    4030    } 
    4131 
Note: See TracChangeset for help on using the changeset viewer.