[Tutos-commits] CVS: tutos/php/file file.pinc,1.40,1.41
Projects / CRM / PLM / Calendar / Tasks / SCRUM / Test / Inventory
Brought to you by:
gokohnert
From: Gero K. <gok...@us...> - 2004-04-29 16:09:15
|
Update of /cvsroot/tutos/tutos/php/file In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25541 Modified Files: file.pinc Log Message: make applet call xhtml-able Index: file.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/file/file.pinc,v retrieving revision 1.40 retrieving revision 1.41 diff -u -r1.40 -r1.41 --- file.pinc 29 Apr 2004 12:54:02 -0000 1.40 +++ file.pinc 29 Apr 2004 16:09:06 -0000 1.41 @@ -510,18 +510,18 @@ myreadfile ($this->base ."/". $this->fileloc); return; } else if ( eregi("\.mm$",$this->filename) && - (($this->filetype == "application/freemin") || ($this->filetype == "application/octet-stream")) && - (file_exists($tutos[base]."/".$tutos[freemind]))) { + (($this->filetype == "application/freemin") || ($this->filetype == "application/octet-stream")) && + (file_exists($tutos[base]."/".$tutos[freemind]))) { Header("Content-type: text/html"); echo '<html><head><title>'.$this->getFullname().'</title></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">'."\n"; - echo '<APPLET CODE="freemind.main.FreeMindApplet.class" ARCHIVE="'.$tutos[base]."/".$tutos[freemind].'" WIDTH="100%" HEIGHT="100%">'."\n"; - echo '<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">'."\n"; - echo '<PARAM NAME="scriptable" VALUE="false">'."\n"; - echo '<PARAM NAME="modes" VALUE="freemind.modes.browsemode.BrowseMode">'."\n"; - echo '<PARAM NAME="browsemode_initial_map" VALUE="'.dirname(getBaseUrl())."/".$this->getURL().'&format=download&ext=.mm">'."\n"; - echo '<PARAM NAME="initial_mode" VALUE="Browse">'."\n"; - echo '<param NAME="selection_method" VALUE="selection_method_direct">'."\n"; - echo '</applet></body></html>'."\n"; + echo '<applet code="freemind.main.FreeMindApplet.class" archive="'.$tutos[base]."/".$tutos[freemind].'" width="100%" height="100%">'."\n"; + echo ' <param name="type" value="application/x-java-applet;version=1.4" />'."\n"; + echo ' <param name="scriptable" value="false" />'."\n"; + echo ' <param name="modes" value="freemind.modes.browsemode.BrowseMode" />'."\n"; + echo ' <param name="browsemode_initial_map" value="'.dirname(getBaseUrl())."/".$this->getURL().'&format=download&ext=.mm" />'."\n"; + echo ' <param name="initial_mode" value="Browse" />'."\n"; + echo ' <param name="selection_method" value="selection_method_direct" />'."\n"; + echo '</applet></body></html>'."\n"; return; } if ( ($this->filetype == "message/rfc822") ) { @@ -1082,12 +1082,12 @@ function getHelpIndex () { global $lang; - $r = ""; + $r = ""; $r .= "<h3>". makelink("help.php?p=glossary#document",$lang['Files'],$lang['Files']) ."</h3><ul>\n"; $r .= "<li>". makelink("help.php?p=file_new",$lang["NewEntry"]."/". $lang["Modify"],$lang["NewEntry"]."/". $lang["Modify"]) ."</li>\n"; $r .= "<li>". makelink("help.php?p=file_show",$lang["show"],$lang["show"]) ."</li>\n"; $r .= "</ul>\n"; - return $r; + return $r; } } -?> +?> \ No newline at end of file |