OC.dialogs.info(t('encryption','Please go to your owncloud client and change your encryption password to complete the conversion'),t('encryption','switched to client side encryption'));
}
}elseif(server){
if(prevmode=='client'){
OC.dialogs.form([{text:'login password',name:'newpasswd',type:'password'},{text:'Encryption password used on the client',name:'oldpasswd',type:'password'}],t('encryption','Please enter your passwords'),function(data){
<inputtype="radio"name="encryption_mode"value="client"style="width:20px;"<?phpif($_['encryption_mode']=='client')echo"checked='checked'"?>/> Client side encryption (most secure but makes it impossible to access your data from the web interface)<br/>
<inputtype="radio"name="encryption_mode"value="server"style="width:20px;"<?phpif($_['encryption_mode']=='server')echo"checked='checked'"?>/> Server side encryption (allows you to access your files from the web interface and the desktop client)<br/>
<inputtype="radio"name="encryption_mode"value="none"style="width:20px;"<?phpif($_['encryption_mode']=='none')echo"checked='checked'"?>/> None (no encryption at all)<br/>
<inputtype="radio"name="encryption_mode"value="client"id='client_encryption'style="width:20px;"<?phpif($_['encryption_mode']=='client')echo"checked='checked'"?>/> Client side encryption (most secure but makes it impossible to access your data from the web interface)<br/>
<inputtype="radio"name="encryption_mode"value="server"id='server_encryption'style="width:20px;"<?phpif($_['encryption_mode']=='server')echo"checked='checked'"?>/> Server side encryption (allows you to access your files from the web interface and the desktop client)<br/>
<inputtype="radio"name="encryption_mode"value="none"id='none_encryption'style="width:20px;"<?phpif($_['encryption_mode']=='none')echo"checked='checked'"?>/> None (no encryption at all)<br/>