tag;
else
{ //ADW
$showpagename = $vars[0]; //ADW
$vars[0] = $this->UnwrapLink($vars[0]); //ADW
$page_href = $this->Href("", $vars[0]); //ADW
$showpageandpath = ''.$showpagename.''; //ADW
} //ADW
$can_view = $this->HasAccess("read",$vars[0]) || $this->IsAdmin() || $this->UserIsOwner($vars[0]);
$can_delete = $this->IsAdmin() || $this->UserIsOwner($vars[0]);
} else
{
$can_view = 1;
$vars[0] = $this->tag;
}
if ($can_view)
{
if ($global || ($tag == $vars[0])) $filepage = $this->page;
else $filepage = $this->LoadPage($vars[0]);
if (!$global && !$filepage["id"]) return;
// load files list
$files = $this->LoadAll( "select id, page_id, filesize, picture_w, picture_h, filename, description, uploaded_dt, user from ".
$this->config["table_prefix"]."upload where ".
" page_id = '". ($global?0:$filepage["id"])."' ".$user_add.
" order by ".$orderby );
if (!is_array($files)) $files = array();
//
if (!$nomark){
$title = $this->GetResourceValue("UploadTitle".($global?"Global":""));
print("