Changeset 2490 for trunk/filemanager/inc/class.uifilemanager.inc.php
- Timestamp:
- 04/12/10 15:07:32 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/filemanager/inc/class.uifilemanager.inc.php
r2483 r2490 591 591 $this->t->set_block('filemanager_list_t','filemanager_footer','filemanager_footer'); 592 592 593 $this->t->set_var( 'url', $GLOBALS[ 'phpgw' ] -> link( '/filemanager' ) ); 594 593 595 if($this->numoffiles || $this->cwd) 594 596 { 595 $vars[ path]='<input type="hidden" id="currentPath" value="'.$this->path.'">';596 $vars[ css]='<link rel="stylesheet" type="text/css" href="filemanager/templates/default/main.css">';597 $vars[ css].='<link rel="stylesheet" type="text/css" href="phpgwapi/js/dftree/dftree.css">';597 $vars['path']='<input type="hidden" id="currentPath" value="'.$this->path.'">'; 598 $vars['css']='<link rel="stylesheet" type="text/css" href="' . $GLOBALS[ 'phpgw' ] -> link( '/filemanager/templates/default/main.css' ) . '">'; 599 $vars['css'].='<link rel="stylesheet" type="text/css" href="' . $GLOBALS[ 'phpgw' ] -> link( '/phpgwapi/js/dftree/dftree.css' ) . '">'; 598 600 $vars[preferences]='<input type="hidden" id="userPreferences" value=\''.serialize($_SESSION['phpgw_info']['user']['preferences']['filemanager']).'\'>'; 599 601 // Used for important operations that needs security 600 602 for ($key = ""; strlen($key) < 150; $key .= chr(rand(48,95))); 601 603 $_SESSION['phpgw_info']['filemanager']['user']['sec_key'] = $key; 602 $vars[ sec_key]='<input type="hidden" id="userKey" value=\''.$key.'\'>';603 $vars[ script]='<script>initDrawApi();</script>';604 $vars['sec_key']='<input type="hidden" id="userKey" value=\''.$key.'\'>'; 605 $vars['script']='<script>initDrawApi();</script>'; 604 606 605 $vars[ new_button]=$this->toolButton('new','createfile',lang('New...'));606 $vars[ new_button].='<input type="hidden" id="newfile_or_dir" name="newfile_or_dir" value="" />';607 $vars['new_button']=$this->toolButton('new','createfile',lang('New...')); 608 $vars['new_button'].='<input type="hidden" id="newfile_or_dir" name="newfile_or_dir" value="" />'; 607 609 608 610 // reload button with this url 609 $vars[ refresh_button]=$this->toolButton('reload','reload',lang('reload'));611 $vars['refresh_button']=$this->toolButton('reload','reload',lang('reload')); 610 612 611 613 // go up icon when we're not at the top, dont allow to go outside /home = fakebase 612 614 if($this->path != '/' && $this->path != $this->bo->fakebase) 613 615 { 614 $vars[ tools_button] = $this->toolButton('tools','tools',lang('tools'));616 $vars['tools_button'] = $this->toolButton('tools','tools',lang('tools')); 615 617 } 616 618 else 617 $vars[ tools_button] = "";618 619 $vars[ toolbar1]=$toolbar;619 $vars['tools_button'] = ""; 620 621 $vars['toolbar1']=$toolbar; 620 622 621 623 if(count($this->messages)>0) … … 628 630 $this->messages = NULL; 629 631 630 $vars[ messages]=$messages;632 $vars['messages']=$messages; 631 633 632 634 $this->t->set_var($vars);
Note: See TracChangeset
for help on using the changeset viewer.