\client\html\flash_tpl.html

1. Files compared

# Location File Last Modified
1 R:\AjaXplorer-2.3.9\client\html flash_tpl.html Wed Dec 17 12:57:42 2008 UTC
2 Z:\web\ajaxplorer\client\html flash_tpl.html Thu Jan 29 12:42:41 2009 UTC

2. Comparison detail

1   <?php    1   <?php 
2       $Uploa dMaxSize =  Utils::co nvertBytes (ini_get(' upload_max _filesize' ));   2       $Uploa dMaxSize =  Utils::co nvertBytes (ini_get(' upload_max _filesize' ));
3       $confM axSize = C onfService ::getConf( "UPLOAD_MA X_FILE");   3       $confM axSize = C onfService ::getConf( "UPLOAD_MA X_FILE");
4       if($co nfMaxSize  != 0 &&  $ confMaxSiz e < $Uploa dMaxSize)  $UploadMax Size = $co nfMaxSize;   4       if($co nfMaxSize  != 0 &&  $ confMaxSiz e < $Uploa dMaxSize)  $UploadMax Size = $co nfMaxSize;
5       $confT otalSize =  ConfServi ce::getCon f("UPLOAD_ MAX_TOTAL" );   5       $confT otalSize =  ConfServi ce::getCon f("UPLOAD_ MAX_TOTAL" );
6       $confT otalNumber  = ConfSer vice::getC onf("UPLOA D_MAX_NUMB ER");   6       $confT otalNumber  = ConfSer vice::getC onf("UPLOA D_MAX_NUMB ER");
7          7       
8           $F lashVar =  '&fileType s=*.*&file TypeDescri ption=All% 20files&to talUploadS ize='.$con fTotalSize .'&fileSiz eLimit='.$ UploadMaxS ize.'&maxF ileNumber= '.$confTot alNumber;   8           $F lashVar =  '&fileType s=*.*&file TypeDescri ption=All% 20files&to talUploadS ize='.$con fTotalSize .'&fileSiz eLimit='.$ UploadMaxS ize.'&maxF ileNumber= '.$confTot alNumber;
9   ?>   9   ?>
10   <html>   10   <html>
11   <head>   11   <head>
12           <m eta http-e quiv="Cont ent-Type"  content="t ext/html;  charset=UT F-8">   12           <m eta http-e quiv="Cont ent-Type"  content="t ext/html;  charset=UT F-8">
13   </head>   13   </head>
14   <body bgco lor="fffff f" onload= "setReady( );" style= "padding:  0px; paddi ng-left: 0 px; margin : 0px; bac kground-im age: url(' <?php prin t(CLIENT_R ESOURCES_F OLDER);?>/ images/str ip.png');" >   14   <body bgco lor="fffff f" onload= "setReady( );" style= "padding:  0px; paddi ng-left: 0 px; margin : 0px; bac kground-im age: url(' <?php prin t(CLIENT_R ESOURCES_F OLDER);?>/ images/str ip.png');" >
15   <div style ="border:  0px solid  #ccc; bord er-bottom:  0px; widt h: 422px;  height:470 px; paddin g: 0px 0px ;">   15   <div style ="border:  0px solid  #ccc; bord er-bottom:  0px; widt h: 422px;  height:470 px; paddin g: 0px 0px ;">
16   <script la nguage="ja vascript"  type="text /javascrip t">   16   <script la nguage="ja vascript"  type="text /javascrip t">
17   var jsRead y = false;   17   var jsRead y = false;
18   function i sReady(){   18   function i sReady(){
19           re turn jsRea dy;   19           re turn jsRea dy;
20   }   20   }
21   function s etReady(){   21   function s etReady(){
22           js Ready = tr ue;   22           js Ready = tr ue;
23   }   23   }
24   var messag es =    24   var messag es = 
25   {   25   {
26           Ma xFileSizeL imit:252,    26           Ma xFileSizeL imit:252, 
27           Ma xFileSize: 211,    27           Ma xFileSize: 211, 
28           HT TPError:25 3,    28           HT TPError:25 3, 
29           IO Error:254,     29           IO Error:254,  
30           Se curityErro r:255,   30           Se curityErro r:255,
31           Up loaded:256 ,   31           Up loaded:256 ,
32           Re move:257,   32           Re move:257,
33           Ad d:214,   33           Ad d:214,
34           Cl ear:216,   34           Cl ear:216,
35           Up load:77,   35           Up load:77,
36           Ca ncel:232,   36           Ca ncel:232,
37           To talFile:25 8,   37           To talFile:25 8,
38           Si zeText:259 ,   38           Si zeText:259 ,
39           By te:260,    39           By te:260, 
40           ex istingFile sFound:262   40           ex istingFile sFound:262
41           ov erwrite:26 3,    41           ov erwrite:26 3, 
42           sk ip:264,    42           sk ip:264, 
43           re name:6,    43           re name:6, 
44           Up loadLimits Title:281,     44           Up loadLimits Title:281,  
45           Up loadLimits SizePerFil e:282,    45           Up loadLimits SizePerFil e:282, 
46           Up loadLimits TotalSize: 283,    46           Up loadLimits TotalSize: 283, 
47           Up loadLimits FilesNumbe r:284   47           Up loadLimits FilesNumbe r:284
48   };   48   };
49     49  
50   function t riggerFlas hEvent(){   50   function t riggerFlas hEvent(){
51           if (arguments .length <  1) return;   51           if (arguments .length <  1) return;
52           va r eventTyp e = argume nts[0];   52           va r eventTyp e = argume nts[0];
53           sw itch(event Type){   53           sw itch(event Type){
54                    case  "currentF iles":   54                    case  "currentF iles":
55                             return  parent.aj axplorer.f ilesList.g etFileName s("__AJXP_ SEP__");   55                             return  parent.aj axplorer.f ilesList.g etFileName s("__AJXP_ SEP__");
56                    brea k;   56                    brea k;
57                    case  "currentF older":   57                    case  "currentF older":
58                             
return par ent.ajaxpl orer.files List.getCu rrentRep() ;
  58                              // return par ent.ajaxpl orer.files List.getCu rrentRep() ;
        59                             return  encodeURI Component( parent.aja xplorer.fi lesList.ge tCurrentRe p());
59                    brea k;     60                    brea k;  
60                    case  "uploadCo mplete":   61                    case  "uploadCo mplete":
61                             parent .ajaxplore r.filesLis t.reload() ;   62                             parent .ajaxplore r.filesLis t.reload() ;
62                    brea k;   63                    brea k;
63                    case  "getMessa ge":   64                    case  "getMessa ge":
64                             var me ssageId =  arguments[ 1];   65                             var me ssageId =  arguments[ 1];
65                             if(par ent && par ent.window .MessageHa sh && mess ages){   66                             if(par ent && par ent.window .MessageHa sh && mess ages){
66                                      return p arent.wind ow.Message Hash[messa ges[messag eId]];   67                                      return p arent.wind ow.Message Hash[messa ges[messag eId]];
67                             }   68                             }
68                             return  messageId ;                            69                             return  messageId ;                         
69                    brea k;   70                    brea k;
70                    defa ult:    71                    defa ult: 
71                    brea k;   72                    brea k;
72           }   73           }
73   }   74   }
74     75  
75     76  
76   var url =  '<?php pri nt($_SERVE R['SCRIPT_ NAME']);?> ?get_actio n=upload&a jxp_sessid =<?php ech o session_ id(); ?>';   77   var url =  '<?php pri nt($_SERVE R['SCRIPT_ NAME']);?> ?get_actio n=upload&a jxp_sessid =<?php ech o session_ id(); ?>';
77   /*   78   /*
78   if(parent. ajaxplorer ){   79   if(parent. ajaxplorer ){
79           ur l = url+'& dir='+esca pe(parent. ajaxplorer .filesList .getCurren tRep());   80           ur l = url+'& dir='+esca pe(parent. ajaxplorer .filesList .getCurren tRep());
80   }   81   }
81   */   82   */
82     83  
83   var FlashO bject = "< ?php print (CLIENT_RE SOURCES_FO LDER);?>/f lash/Flash FileUpload .swf";   84   var FlashO bject = "< ?php print (CLIENT_RE SOURCES_FO LDER);?>/f lash/Flash FileUpload .swf";
84   var FlashV arValue =  "<?php ech o $FlashVa r; ?>" + " &uploadPag e=" + esca pe(url);   85   var FlashV arValue =  "<?php ech o $FlashVa r; ?>" + " &uploadPag e=" + esca pe(url);
85     86  
86   document.w rite('<obj ect classi d="clsid:d 27cdb6e-ae 6d-11cf-96 b8-4445535 40000" cod ebase="htt p://fpdown load.macro media.com/ pub/shockw ave/cabs/f lash/swfla sh.cab#ver sion=9,0,0 ,0" width= "422" heig ht="470" i d="fileUpl oad" align ="middle"> \   87   document.w rite('<obj ect classi d="clsid:d 27cdb6e-ae 6d-11cf-96 b8-4445535 40000" cod ebase="htt p://fpdown load.macro media.com/ pub/shockw ave/cabs/f lash/swfla sh.cab#ver sion=9,0,0 ,0" width= "422" heig ht="470" i d="fileUpl oad" align ="middle"> \
87   <param nam e="allowSc riptAccess " value="s ameDomain"  /> \   88   <param nam e="allowSc riptAccess " value="s ameDomain"  /> \
88   <param nam e="movie"  value="'+F lashObject +'" /> \   89   <param nam e="movie"  value="'+F lashObject +'" /> \
89   <param nam e="quality " value="h igh" /> \   90   <param nam e="quality " value="h igh" /> \
90   <param nam e="wmode"  value="tra nsparent">  \   91   <param nam e="wmode"  value="tra nsparent">  \
91   <param nam e="FlashVa rs" value= "' + Flash VarValue + '">\   92   <param nam e="FlashVa rs" value= "' + Flash VarValue + '">\
92   <embed src ="'+FlashO bject+'" \   93   <embed src ="'+FlashO bject+'" \
93   FlashVars= "' + Flash VarValue +  '" \   94   FlashVars= "' + Flash VarValue +  '" \
94   quality="h igh" wmode ="transpar ent" width ="422" hei ght="470"  name="file Upload" al ign="middl e" allowSc riptAccess ="sameDoma in" type=" applicatio n/x-shockw ave-flash" \   95   quality="h igh" wmode ="transpar ent" width ="422" hei ght="470"  name="file Upload" al ign="middl e" allowSc riptAccess ="sameDoma in" type=" applicatio n/x-shockw ave-flash" \
95   pluginspag e="http:// www.macrom edia.com/g o/getflash player" /> \   96   pluginspag e="http:// www.macrom edia.com/g o/getflash player" /> \
96   </object>' );   97   </object>' );
97   </script>   98   </script>
98   </div>   99   </div>
99   </body>   100   </body>
100   </html>   101   </html>