<?php

class FileManagerView extends Slot {

	var $SectionID = 4;
	var $ModuleID = 4;

	function __construct($pquery) {
		parent::__construct($pquery);
	}

	function init() {
		if(!empty($this->LocalTarget[0]) && $this->LocalTarget[0]=='List') $this->Scheme = 'list';
		$this->setSchemeTemplate($this->Scheme);
	}

	function fillElements() {
		$script_name=str_replace("/","\\", getenv('SCRIPT_NAME'));
		$this->TempFillEls['root'] = str_replace ( $script_name, '', getenv('SCRIPT_FILENAME'));
//print $script_name."-----------".getenv('SCRIPT_FILENAME')."==========".$this->TempFillEls['root'];
		$this->TempFillEls['pubBut'] = $this->server_type=='pro'? 'hidden' : 'visible';
	}
}
?>