Ignore:
Timestamp:
05/25/10 10:41:40 (14 years ago)
Author:
amuller
Message:

Ticket #1086 - Utiliza no filemanager a classe RSA implementada na API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/filemanager/js/jscode/draw_api.js

    r2746 r2848  
    149149 
    150150function initDrawApi(){ 
    151         SecEl = document.getElementById('userKey'); 
    152         crypt = new crypt(SecEl.value); 
    153         SecEl.parentNode.removeChild(SecEl); 
    154  
    155151        loadPreferences(); 
    156152        preferences.files_per_page = (preferences.files_per_page != undefined) ? preferences.files_per_page : 10; 
     
    529525                                } 
    530526                        } 
    531                         var pswd = crypt.encode(password); 
     527                        var pswd = expresso.crypt.encode(password); 
    532528                        cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.vfs_functions.archive&pswd='+base64_encode(pswd.toString())+'&path='+base64_encode(currentPath)+filesUrl,handler.archive); 
    533529                        break; 
     
    581577 
    582578function unarchive(filename){ 
    583         password = crypt.encode(prompt(get_lang('Please, type archive password or leave it empty if it is not encrypted'))); 
     579        password = expresso.crypt.encode(prompt(get_lang('Please, type archive password or leave it empty if it is not encrypted'))); 
    584580        if (password == null) 
    585581                return; 
     
    626622                        if (confirm(get_lang('Do you really want to remove folder: %1?',Dfolder), '')) 
    627623                        { 
    628                                 cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.removedir&path='+base64_encode(crypt.encode(Dfolder)),handler.refreshDir); 
     624                                cExecute_( URL_SERVER + 'index.php?menuaction=filemanager.uifilemanager.removedir&path='+base64_encode(expresso.crypt.encode(Dfolder)),handler.refreshDir); 
    629625                                var lastIndex = Dfolder.lastIndexOf('/'); 
    630626                                currentPath = Dfolder.substr(0,lastIndex); 
Note: See TracChangeset for help on using the changeset viewer.