- Timestamp:
- 12/28/09 07:59:33 (14 years ago)
- Location:
- sandbox/filemanager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/filemanager/inc/class.vfs_functions.inc.php
r1893 r1896 221 221 function summary() 222 222 { 223 header('Content-Type: text/html');223 header('Content-Type: image/gif'); 224 224 $expires = 60*60*24*15; 225 225 header("Cache-Control: maxage=".$expires); 226 226 header("Pragma: public"); 227 227 header("Expires: ".gmdate('D, d M Y H:i:s', time()+$expires)); 228 echo '<img src="data:image/gif;base64,';229 228 if($this->file) 230 229 { … … 239 238 fclose($handle); 240 239 } 241 echo base64_encode($content); 242 } 243 echo '">'; 240 echo $content; 241 } 244 242 $GLOBALS['phpgw']->common->phpgw_exit(); 245 243 } -
sandbox/filemanager/js/draw_api.js
r1894 r1896 599 599 case 'preview': 600 600 var url = './index.php?menuaction=filemanager.vfs_functions.summary&file='+base64_encode(name)+"&path="+base64_encode(currentPath); 601 var htmlData = '<img src=\"'+url+'\">'; 602 menuTimeout = setTimeout("draw_window_card(\'"+htmlData+"\')",500); 601 603 break; 602 604 case 'user': 603 605 var url = './index.php?menuaction=filemanager.user.card&lid='+base64_encode(name); 606 menuTimeout = setTimeout("cExecute('"+url+"',draw_window_card)",500); 604 607 break; 605 608 default: 606 609 break; 607 610 } 608 menuTimeout = setTimeout("cExecute('"+url+"',draw_window_card)",500); 611 609 612 } 610 613 function editFolders(operation){
Note: See TracChangeset
for help on using the changeset viewer.