%%folder-view-anonymous-rdf%%
2002-06-24 14:07

%%preprocess%%
// if anonymous, make sure on non-secure site to get static pages unless creating sitemember
if ($session->request->connection!="http" AND $sitemember->role=="anonymous" AND $session->request->method!="login" AND $session->request->method!="createmember") {
	$newlocation= "http://".$session->request->sitename."/berylium".$session->request->path."?".$session->request->cgistring;
	header("Location: $newlocation");
	exit;
	}

// format the object for display
$this->beryliumToHtml(); 
$this->timeFormat("r");
$this->getBackPath();

if ($sitemember->role!="anonymous") {
	$this->memberheader= "<a href='$folder->baseURL/document-.html?method=listall$session->cgi'>view documents</a> | <a href='$folder->baseURL/image-.html?method=listall$session->cgi'>view images</a> ";
	$this->loginfooter= "Prepared for <a href='https://$site->name/berylium$folder->name/sitemember-$sitemember->id.html'>$sitemember->name</a>. ";
	if ($this->sitemember->role!="none") {
		$this->memberheader.= "| <a href='$folder->baseURL/folder-.html?method=listall$session->cgi'>view folders</a> ";
		$this->loginfooter.=" Your role here is $sitemember->role. ";
		}
	$this->loginfooter.= "<a href='$refreshURL?method=logout$session->cgi'>Log Out</a>.&nbsp;";
	}
else {
	$this->loginfooter= "You are being anonymous. <a href='$refreshURL?method=login$session->cgi'>Log-in</a>.&nbsp;";
	}

if ($sitemember->role!="anonymous" AND $sitemember->role!="none") {
	  $this->memberaddchild= "<a href='$session->scriptname$folder->name/comment.html?method=create$session->cgi'>add a comment</a>";
	  }

// show sitemember if no author defined
if ($this->author== "") $this->author="Anonymous";

// show default icon or alt icon from imageid
if ($this->imageid!="0") $this->iconTag= bparsebml("[image:$this->imageid;100,100;right]");
else $this->iconTag= "<img src='/bicons/folder.png' border=0 alt='folder:$this->id' title='folder:$this->id' align=right hspace=10 vspace=10>";

%%header%%

%%css%%

%%template%%
{index:document;scriptingNewsRDF}

%%listrow%%

%%nullobject%%

%%footer%%

%%postprocess%%

%%end of context%%
