Update purenice.php
parent
bfb816fa63
commit
526eacf936
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
<!-- theme purenice designed & coded by wendale v1.1 Responsive fixed on May 1st-->
|
<!-- theme purenice designed & coded by wendale v1.1 Responsive fixed on May 1st-->
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="<?php echo $constStr['language']; ?>">
|
<html lang="<?php echo $constStr['language']; ?>">
|
||||||
|
@ -104,7 +105,7 @@
|
||||||
<li class="operate"><ion-icon name="construct"></ion-icon><?php echo getconstStr('Operate'); ?><ul>
|
<li class="operate"><ion-icon name="construct"></ion-icon><?php echo getconstStr('Operate'); ?><ul>
|
||||||
<?php if (isset($files['folder'])) { ?>
|
<?php if (isset($files['folder'])) { ?>
|
||||||
<li><a onclick="showdiv(event,'create','');"><ion-icon name="add-circle"></ion-icon><?php echo getconstStr('Create'); ?></a></li>
|
<li><a onclick="showdiv(event,'create','');"><ion-icon name="add-circle"></ion-icon><?php echo getconstStr('Create'); ?></a></li>
|
||||||
<li><a onclick="showdiv(event,'encrypt','');"><ion-icon name="lock"></ion-icon><?php echo getconstStr('encrypt'); ?></a></li>
|
<li><a onclick="showdiv(event,'encrypt','');"><ion-icon name="lock"></ion-icon><?php echo getconstStr('Encrypt'); ?></a></li>
|
||||||
<li><a href="?RefreshCache"><ion-icon name="refresh"></ion-icon><?php echo getconstStr('RefreshCache'); ?></a></li>
|
<li><a href="?RefreshCache"><ion-icon name="refresh"></ion-icon><?php echo getconstStr('RefreshCache'); ?></a></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<li><a href="<?php echo isset($_GET['preview'])?'?preview&':'?';?>setup"><ion-icon name="settings"></ion-icon><?php echo getconstStr('Setup'); ?></a></li>
|
<li><a href="<?php echo isset($_GET['preview'])?'?preview&':'?';?>setup"><ion-icon name="settings"></ion-icon><?php echo getconstStr('Setup'); ?></a></li>
|
||||||
|
@ -271,7 +272,7 @@
|
||||||
<?php if ($_SERVER['admin']) { ?>
|
<?php if ($_SERVER['admin']) { ?>
|
||||||
<li class="operate"><ion-icon name="construct"></ion-icon><a><?php echo getconstStr('Operate'); ?></a>
|
<li class="operate"><ion-icon name="construct"></ion-icon><a><?php echo getconstStr('Operate'); ?></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a onclick="showdiv(event,'encrypt',<?php echo $filenum;?>);"><ion-icon name="lock"></ion-icon><?php echo getconstStr('encrypt'); ?></a></li>
|
<li><a onclick="showdiv(event,'encrypt',<?php echo $filenum;?>);"><ion-icon name="lock"></ion-icon><?php echo getconstStr('Encrypt'); ?></a></li>
|
||||||
<li><a onclick="showdiv(event, 'rename',<?php echo $filenum;?>);"><ion-icon name="create"></ion-icon><?php echo getconstStr('Rename'); ?></a></li>
|
<li><a onclick="showdiv(event, 'rename',<?php echo $filenum;?>);"><ion-icon name="create"></ion-icon><?php echo getconstStr('Rename'); ?></a></li>
|
||||||
<li><a onclick="showdiv(event, 'move',<?php echo $filenum;?>);"><ion-icon name="move"></ion-icon><?php echo getconstStr('Move'); ?></a></li>
|
<li><a onclick="showdiv(event, 'move',<?php echo $filenum;?>);"><ion-icon name="move"></ion-icon><?php echo getconstStr('Move'); ?></a></li>
|
||||||
<li><a onclick="showdiv(event, 'copy',<?php echo $filenum;?>);"><ion-icon name="copy"></ion-icon><?php echo getconstStr('Copy'); ?></a></li>
|
<li><a onclick="showdiv(event, 'copy',<?php echo $filenum;?>);"><ion-icon name="copy"></ion-icon><?php echo getconstStr('Copy'); ?></a></li>
|
||||||
|
@ -459,7 +460,7 @@
|
||||||
<input id="encrypt_sid" name="encrypt_sid" type="hidden" value="">
|
<input id="encrypt_sid" name="encrypt_sid" type="hidden" value="">
|
||||||
<input id="encrypt_hidden" name="encrypt_folder" type="hidden" value="">
|
<input id="encrypt_hidden" name="encrypt_folder" type="hidden" value="">
|
||||||
<input id="encrypt_input" name="encrypt_newpass" type="text" value="" placeholder="<?php echo getconstStr('InputPasswordUWant'); ?>">
|
<input id="encrypt_input" name="encrypt_newpass" type="text" value="" placeholder="<?php echo getconstStr('InputPasswordUWant'); ?>">
|
||||||
<?php if (getConfig('passfile')!='') {?><input name="operate_action" type="submit" value="<?php echo getconstStr('encrypt'); ?>"><?php } else { ?><br><label><?php echo getconstStr('SetpassfileBfEncrypt'); ?></label><?php } ?>
|
<?php if (getConfig('passfile')!='') {?><input name="operate_action" type="submit" value="<?php echo getconstStr('Encrypt'); ?>"><?php } else { ?><br><label><?php echo getconstStr('SetpassfileBfEncrypt'); ?></label><?php } ?>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -880,7 +881,7 @@
|
||||||
tr1.setAttribute('data-to',1);
|
tr1.setAttribute('data-to',1);
|
||||||
var td1=document.createElement('td');
|
var td1=document.createElement('td');
|
||||||
tr1.appendChild(td1);
|
tr1.appendChild(td1);
|
||||||
td1.setAttribute('class','uplist');
|
td1.setAttribute('style','width:30%');
|
||||||
td1.setAttribute('id','upfile_td1_'+timea+'_'+i);
|
td1.setAttribute('id','upfile_td1_'+timea+'_'+i);
|
||||||
td1.innerHTML=file.name+'<br>'+size_format(file.size);
|
td1.innerHTML=file.name+'<br>'+size_format(file.size);
|
||||||
var td2=document.createElement('td');
|
var td2=document.createElement('td');
|
||||||
|
@ -893,7 +894,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var xhr1 = new XMLHttpRequest();
|
var xhr1 = new XMLHttpRequest();
|
||||||
xhr1.open("GET", '?action=upbigfile&upbigfilename='+ encodeURIComponent(file.name) +'&filesize='+ file.size +'&lastModified='+ file.lastModified);
|
xhr1.open("GET", '?action=upbigfile&upbigfilename='+ encodeURIComponent((file.webkitRelativePath||file.name)) +'&filesize='+ file.size +'&lastModified='+ file.lastModified);
|
||||||
xhr1.setRequestHeader('x-requested-with','XMLHttpRequest');
|
xhr1.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||||
xhr1.send(null);
|
xhr1.send(null);
|
||||||
xhr1.onload = function(e){
|
xhr1.onload = function(e){
|
||||||
|
@ -1004,7 +1005,7 @@
|
||||||
if (response['size']>0) {
|
if (response['size']>0) {
|
||||||
// contain size, upload finish. 有size说明是最终返回,上传结束
|
// contain size, upload finish. 有size说明是最终返回,上传结束
|
||||||
var xhr3 = new XMLHttpRequest();
|
var xhr3 = new XMLHttpRequest();
|
||||||
xhr3.open("GET", '?action=del_upload_cache&filename=.'+file.lastModified+ '_' +file.size+ '_' +encodeURIComponent(file.name)+'.tmp');
|
xhr3.open("GET", '?action=del_upload_cache&filelastModified='+file.lastModified+'&filesize='+file.size+'&filename='+encodeURIComponent((file.webkitRelativePath||file.name)));
|
||||||
xhr3.setRequestHeader('x-requested-with','XMLHttpRequest');
|
xhr3.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||||
xhr3.send(null);
|
xhr3.send(null);
|
||||||
xhr3.onload = function(e){
|
xhr3.onload = function(e){
|
||||||
|
@ -1013,7 +1014,7 @@
|
||||||
<?php if (!$_SERVER['admin']) { ?>
|
<?php if (!$_SERVER['admin']) { ?>
|
||||||
var filemd5 = spark.end();
|
var filemd5 = spark.end();
|
||||||
var xhr4 = new XMLHttpRequest();
|
var xhr4 = new XMLHttpRequest();
|
||||||
xhr4.open("GET", '?action=uploaded_rename&filename='+encodeURIComponent(file.name)+'&filemd5='+filemd5);
|
xhr4.open("GET", '?action=uploaded_rename&filename='+encodeURIComponent((file.webkitRelativePath||file.name))+'&filemd5='+filemd5);
|
||||||
xhr4.setRequestHeader('x-requested-with','XMLHttpRequest');
|
xhr4.setRequestHeader('x-requested-with','XMLHttpRequest');
|
||||||
xhr4.send(null);
|
xhr4.send(null);
|
||||||
xhr4.onload = function(e){
|
xhr4.onload = function(e){
|
||||||
|
|
Loading…
Reference in New Issue