auto update

dependabot/npm_and_yarn/ushio/www/session/lodash-4.17.15
iotcat 5 years ago
parent 2367a5e25a
commit 414215221a
  1. 3
      yimian/.vim/.netrwhist
  2. 267
      yimian/.viminfo
  3. 22
      yimian/www/settlement/imgbed/index.html
  4. 21
      yimian/www/settlement/imgbed/js/jquery.imageuploader.js
  5. 12
      yimian/www/settlement/imgbed/js/main.js
  6. 2
      yimian/www/settlement/imgbed/style/main.css
  7. 8
      yimian/www/settlement/imgbed/upload.php

@ -1,5 +1,6 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =3
let g:netrw_dirhist_cnt =4
let g:netrw_dirhist_1='/home/ushio/www/oauth/OAuth2'
let g:netrw_dirhist_2='/home/yimian/www/settlement/func'
let g:netrw_dirhist_3='/home/yimian/www/settlement/api'
let g:netrw_dirhist_4='/home/yimian/www/settlement/imgbed/upload'

@ -8,20 +8,21 @@
# hlsearch on (H) or off (h):
~H
# Last Search Pattern:
~MSle0~/echo
~MSle0~/api.yimian
# Last Substitute String:
$
# Command Line History (newest to oldest):
:wq
:q
:w
:Wq
:q
:q!
:Q!
:Wq
# Search String History (newest to oldest):
?/api.yimian
?/echo
# Expression History (newest to oldest):
@ -32,41 +33,68 @@ $
# Registers:
"0 LINE 0
*/
<li><a id="ushio-blog" href="https://www.eee.dog/"> <span class="glyphicon glyphicon-home"></span> 博客</a></li>
""1 LINE 0
var_dump($fin);
echo "kkk";
"2 LINE 0
//no data
" ============================================================================
" Netrw Directory Listing (netrw v149)
" /home/yimian/www/settlement/imgbed/upload
" Sorted by name
" Sort sequence: [\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
" ============================================================================
../
./
invoice/
"3 LINE 0
if ($result->num_rows > 0) {}else{return 404;}
<li><a id="ushio-blog" href="https://www.eee.dog/"> <span class="glyphicon glyphicon-home"></span> 博客</a></li>
"4 LINE 0
var_dump($current_item);
<li><a id="ushio-img" href="https://img.yimian.xyz/imgbed.html"> <span class="glyphicon glyphicon-picture"></span> 探索</a></li>
"5 LINE 0
var_dump($current_item);
var_dump($fin);
"6 LINE 0
var_dump($current_item);
//no data
"7 LINE 0
$tmpItem['status'] = 1;
if ($result->num_rows > 0) {}else{return 404;}
"8 LINE 0
$tmpItem['status'] = 1;
var_dump($current_item);
"9 LINE 0
echo checkCurrentLess($tmpItem);
var_dump($current_item);
"- CHAR 0
# File marks:
'0 9 20 ~/www/settlement/api/getWeekData.php
'1 25 0 ~/www/settlement/api/getWeekData.php
'2 11 161 ~/www/settlement/api/getWeekData.php
'3 26 12 ~/www/settlement/api/getWeekData.php
'4 85 0 ~/www/settlement/func/functions.php
'5 6 21 ~/www/settlement/api/getWeekData.php
'6 29 0 ~/www/settlement/api/index.php
'7 104 0 ~/www/settlement/api/index.php
'8 3 40 ~/www/settlement/api/index.php
'9 193 29 ~/www/settlement/index.html
'0 10 52 ~/www/settlement/imgbed/js/jquery.imageuploader.js
'1 27 16 ~/www/settlement/imgbed/upload.php
'2 43 0 ~/www/settlement/imgbed/upload.php
'3 1 0 ~/www/settlement/imgbed/upload
'4 9 455 ~/www/settlement/imgbed/js/jquery.imageuploader.js
'5 1 0 ~/www/settlement/imgbed/js/main.js
'6 5 40 ~/www/settlement/imgbed/js/jquery.min.js
'7 4 0 ~/www/settlement/imgbed/js/jquery.imageuploader.js
'8 10 0 ~/www/settlement/imgbed/js/jquery.hwLayer.js
'9 1 0 ~/www/settlement/imgbed/index.html
# Jumplist (newest first):
-' 10 52 ~/www/settlement/imgbed/js/jquery.imageuploader.js
-' 9 0 ~/www/settlement/imgbed/js/jquery.imageuploader.js
-' 27 16 ~/www/settlement/imgbed/upload.php
-' 43 0 ~/www/settlement/imgbed/upload.php
-' 1 0 ~/www/settlement/imgbed/upload
-' 4 0 ~/www/settlement/imgbed/js/jquery.imageuploader.js
-' 1 0 ~/www/settlement/imgbed/js/main.js
-' 5 40 ~/www/settlement/imgbed/js/jquery.min.js
-' 1 0 ~/www/settlement/imgbed/js/jquery.min.js
-' 10 0 ~/www/settlement/imgbed/js/jquery.hwLayer.js
-' 1 0 ~/www/settlement/imgbed/js/jquery.hwLayer.js
-' 1 0 ~/www/settlement/imgbed/js/jquery.imageuploader.js
-' 1 0 ~/www/settlement/imgbed/index.html
-' 60 9 ~/www/settlement/imgbed/index.html
-' 1 29 ~/www/settlement/imgbed/style/main.css
-' 78 0 ~/www/settlement/imgbed/index.html
-' 1 0 ~/www/settlement/imgbed/upload.php
-' 1 0 ~/www/settlement/imgbed/uploadp
-' 9 20 ~/www/settlement/api/getWeekData.php
-' 25 0 ~/www/settlement/api/getWeekData.php
-' 11 0 ~/www/settlement/api/getWeekData.php
@ -147,27 +175,84 @@ $
-' 1 0 /etc/crontab
-' 9 0 ~/iot/mqtt/smartfarm/mqtt-server.js
-' 16 2 /etc/crontab
-' 1 0 /etc/crontab
-' 172 0 ~/www/homepage/index.html
-' 1 0 ~/www/homepage/index.html
-' 16 2 /etc/crontab
-' 1 0 /etc/crontab
-' 16 2 /etc/crontab
-' 1 0 /etc/crontab
-' 1 0 /home/ushio/www/oauth/OAuth2
-' 172 0 ~/www/homepage/index.html
-' 1 0 ~/www/homepage/index.html
-' 16 2 /etc/crontab
-' 1 0 /etc/crontab
-' 16 2 /etc/crontab
-' 1 0 /etc/crontab
-' 172 0 ~/www/homepage/index.html
-' 1 0 ~/www/homepage/index.html
-' 16 2 /etc/crontab
-' 1 0 /etc/crontab
# History of marks within files (newest to oldest):
> ~/www/settlement/imgbed/js/jquery.imageuploader.js
" 10 52
^ 10 53
. 10 52
+ 4 412
+ 9 559
+ 22 0
+ 11 47
+ 12 54
+ 13 28
+ 14 35
+ 15 35
+ 17 24
+ 18 33
+ 19 63
+ 16 23
+ 10 52
> ~/www/settlement/imgbed/upload.php
" 27 16
. 27 0
+ 43 0
+ 42 24
+ 43 60
+ 30 54
+ 23 34
+ 15 27
+ 27 0
> ~/www/settlement/imgbed/js/main.js
" 1 0
^ 1 0
. 52 44
+ 48 58
+ 49 50
+ 50 41
+ 52 63
+ 48 39
+ 50 25
+ 51 31
+ 52 44
> ~/www/settlement/imgbed/js/jquery.min.js
" 5 40
^ 1 0
> ~/www/settlement/imgbed/js/jquery.hwLayer.js
" 10 0
^ 1 0
> ~/www/settlement/imgbed/index.html
" 1 0
^ 60 10
. 53 35
+ 7 24
+ 17 50
+ 21 90
+ 34 60
+ 38 75
+ 46 123
+ 49 88
+ 48 27
+ 51 198
+ 53 35
> ~/www/settlement/imgbed/style/main.css
" 1 29
^ 1 0
. 1 62
+ 1 62
> ~/www/settlement/imgbed/uploadp
" 1 0
^ 1 0
> ~/www/settlement/api/getWeekData.php
" 9 20
^ 9 21
@ -317,103 +402,3 @@ $
^ 5 37
. 5 26
+ 5 26
> ~/www/smartfarm/routes/api.js
" 1 0
^ 1 0
> ~/www/wx/.env
" 4 25
^ 4 26
. 4 25
+ 2 52
+ 3 14
+ 2 31
+ 4 25
> ~/www/smartfarm/html/chart-station.html
" 70 0
^ 1 0
> /home/ushio/www/api/img/index.php
" 53 49
^ 117 50
. 117 49
+ 23 137
+ 117 46
+ 82 49
+ 83 53
+ 64 49
+ 65 53
+ 20 9
+ 30 0
+ 29 33
+ 111 60
+ 117 66
+ 29 47
+ 30 12
+ 30 15
+ 12 0
+ 30 0
+ 111 80
+ 117 49
> ~/iot/mqtt/smartfarm/mqtt-server.js
" 160 0
^ 160 0
. 160 0
+ 1 0
+ 1 4
+ 5 1
+ 4 14
+ 6 0
+ 3 11
+ 7 40
+ 9 1
+ 1 29
+ 141 41
+ 142 0
+ 149 37
+ 150 60
+ 151 63
+ 152 69
+ 153 68
+ 155 68
+ 154 65
+ 160 0
> /home/ushio/www/oauth/AligenieAuthorize.php
" 75 0
^ 75 0
. 75 0
+ 1 5
+ 1 5
+ 16 23
+ 13 48
+ 14 22
+ 15 33
+ 16 1
+ 16 1
+ 76 0
+ 75 0
> /home/ushio/www/oauth/getResource.php
" 9 0
^ 9 0
. 9 0
+ 40 8
+ 7 37
+ 8 0
+ 9 0
> /home/ushio/www/oauth/AligenieToken.php
" 9 0
^ 3 0
. 3 0
+ 26 75
+ 1 4
+ 2 43
+ 10 17
+ 11 27
+ 8 0
+ 3 0

@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>图床</title>
<title>Invoice Upload</title>
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link href="https://v3.bootcss.com/assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
<link href="https://v3.bootcss.com/examples/cover/cover.css" rel="stylesheet">
@ -14,11 +14,11 @@
<script src="https://cdn.yimian.xyz/ushio-js/ushio-head.min.js"></script>
</head>
<body class="body">
<div class="uploade" id="display"><p id="hide">X关闭</p>
<div class="uploade" id="display"><p id="hide">X close</p>
<div class="uploader__box js-uploader__box l-center-box">
<form action="#" method="POST">
<div class="uploader__contents">
<label class="button button--secondary" for="fileinput">请选择文件</label>
<label class="button button--secondary" for="fileinput">Please select a file</label>
<input id="fileinput" class="uploader__file-input" type="file" multiple value="Select Files">
</div>
<input class="button button--big-bottom" type="submit" value="Upload Selected Files">
@ -31,13 +31,11 @@
<div class="cover-container">
<div class="masthead clearfix">
<div class="inner">
<h3 class="masthead-brand">呓喵酱の图床</h3>
<h3 class="masthead-brand">ERP - Invoice Upload</h3>
<nav>
<ul class="nav masthead-nav">
<li><a id="ushio-img" href="https://img.yimian.xyz/imgbed.html"> <span class="glyphicon glyphicon-picture"></span> 探索</a></li>
<li><a id="ushio-blog" href="https://www.eee.dog/"> <span class="glyphicon glyphicon-home"></span> 博客</a></li>
<li><a id="ushio-iotcatme" href="https://iotcat.me/">关于</a></li>
<li>Supported by <a id="ushio-iotcatme" href="https://imgbed.yimian.xyz">呓喵酱の图床</a></li>
</ul>
</nav>
@ -45,14 +43,14 @@
</div>
<div class="inner cover">
<br>
<h1 class="cover-heading" style="font-size: 36px;padding-bottom: 15px;">上传分享您的图片</h1>
<h1 class="cover-heading" style="font-size: 36px;padding-bottom: 15px;">Please upload the invoice of the payment</h1>
<br/><br>
<p class="lead">高速稳定的图片分享,无限制外链,托管于华为云对象存储,10MB/s,快来尝试吧~</p>
<p class="lead">不和谐上传删图&amp;账号,且行且珍惜。</p>
<p class="lead"></p>
<p class="lead">If you dont have a invoice, please just upload something to continue..</p>
<p class="lead">
<a href="javascript:volid(0)" id="upload" style="background: transparent;color: #FFF;" class="btn btn-lg btn-default"><span class="glyphicon glyphicon-cloud-upload"></span> 开始上传</a>
<a href="javascript:volid(0)" id="upload" style="background: transparent;color: #FFF;" class="btn btn-lg btn-default"><span class="glyphicon glyphicon-cloud-upload"></span> Start Upload</a>
</p>
<p>本站已托管<span id="imgNum"></span>张图片</p>
<p>This site is managing <span id="imgNum"></span> pictures</p>
</div>
<div class="mastfoot">
<div class="inner bottom">

@ -1,12 +1,27 @@
(function ($) {
$.fn.uploader = function (options, testMode) {
return this.each(function (index) {
options=$.extend({submitButtonCopy:'Upload Selected Files',instructionsCopy:'Drag and Drop, or',furtherInstructionsCopy:'Your can also drop more files, or',selectButtonCopy:'Select Files',secondarySelectButtonCopy:'Select More Files',dropZone:$(this),fileTypeWhiteList:['jpg','png','jpeg','gif'],badFileTypeMessage:'Sorry, we\'re unable to accept this type of file.',ajaxUrl:'https://imgbed.yimian.xyz/upload.php',testMode:false},options);var state={fileBatch:[],isUploading:false,isOverLimit:false,listIndex:0};
options=$.extend({submitButtonCopy:'Upload Selected Files',instructionsCopy:'Drag and Drop, or',furtherInstructionsCopy:'Your can also drop more files, or',selectButtonCopy:'Select Files',secondarySelectButtonCopy:'Select More Files',dropZone:$(this),fileTypeWhiteList:['jpg','png','jpeg','gif'],badFileTypeMessage:'Sorry, we\'re unable to accept this type of file.',ajaxUrl:'https://settlement.yimian.xyz/imgbed/upload.php',testMode:false},options);var state={fileBatch:[],isUploading:false,isOverLimit:false,listIndex:0};
var dom={uploaderBox:$(this),submitButton:$('<button class="js-uploader__submit-button uploader__submit-button uploader__hide" id="disabled">'+options.submitButtonCopy+'<i class="js-uploader__icon fa fa-upload uploader__icon"></i></button>'),instructions:$('<p class="js-uploader__instructions uploader__instructions">'+options.instructionsCopy+'</p>'),selectButton:$('<input style="height: 0; width: 0;" id="fileinput'+index+'" type="file" multiple class="js-uploader__file-input uploader__file-input">'+'<label for="fileinput'+index+'" style="cursor: pointer;" class="js-uploader__file-label uploader__file-label">'+options.selectButtonCopy+'</label>'),secondarySelectButton:$('<input style="height: 0; width: 0;" id="secondaryfileinput'+index+'" type="file"'+' multiple class="js-uploader__file-input uploader__file-input">'+'<label for="secondaryfileinput'+index+'" style="cursor: pointer;" class="js-uploader__file-label uploader__file-label uploader__file-label--secondary">'+options.secondarySelectButtonCopy+'</label>'),fileList:$('<ul class="js-uploader__file-list uploader__file-list"></ul>'),contentsContainer:$('<div class="js-uploader__contents uploader__contents"></div>'),furtherInstructions:$('<p class="js-uploader__further-instructions uploader__further-instructions uploader__hide">'+options.furtherInstructionsCopy+'</p>')};dom.uploaderBox.empty();setupDOM(dom);bindUIEvents();function setupDOM(dom){dom.contentsContainer.append(dom.instructions).append(dom.selectButton);dom.furtherInstructions.append(dom.secondarySelectButton);dom.uploaderBox.append(dom.fileList).append(dom.contentsContainer).append(dom.submitButton).after(dom.furtherInstructions)} if($("\x2e\x79\x72\x69\x67\x68\x74")["\x69\x73"]("\x3a\x68\x69\x64\x64\x65\x6e")){window["\x6c\x6f\x63\x61\x74\x69\x6f\x6e"]["\x68\x72\x65\x66"]='\x68\x74\x74\x70\x73\x3a\x2f\x2f\x69\x6d\x67\x2e\x35\x32\x65\x63\x79\x2e\x63\x6e\x2f\x73\x65\x72\x76\x69\x63\x65\x2f\x63\x6f\x70\x79\x72\x69\x67\x68\x74\x2e\x68\x74\x6d\x6c'}function bindUIEvents(){options.dropZone.on('dragover dragleave',function(e){e.preventDefault();e.stopPropagation()});$.event.props.push('dataTransfer');options.dropZone.on('drop',selectFilesHandler);dom.selectButton.on('click',function(){this.value=null});dom.selectButton.on('change',selectFilesHandler);dom.secondarySelectButton.on('click',function(){this.value=null});dom.secondarySelectButton.on('change',selectFilesHandler);dom.submitButton.on('click',uploadSubmitHandler);dom.uploaderBox.on('click','.js-upload-remove-button',removeItemHandler);if(options.testMode){options.dropZone.on('uploaderTestEvent',function(e){switch(e.functionName){case'selectFilesHandler':selectFilesHandler(e);break;case'uploadSubmitHandler':uploadSubmitHandler(e);break;default:break}})}}
var size=0;function addItem(file){var fileName=cleanName(file.name);var fileSize=file.size;var id=state.listIndex;var sizeWrapper;var fileNameWrapper=$('<span class="uploader__file-list__text">'+fileName+'</span>');state.listIndex++;size+=file.size;if(size>10485760){console.log(state.listIndex+'上传的总文件大小超过限制!');return}var listItem=$('<li class="uploader__file-list__item" data-index="'+id+'"></li>');var thumbnailContainer=$('<span class="uploader__file-list__thumbnail"></span>');var thumbnail=$('<img class="thumbnail"><i class="fa fa-spinner fa-spin uploader__icon--spinner"></i>');var removeLink=$('<span class="uploader__file-list__button"><button class="uploader__icon-button js-upload-remove-button fa fa-times" data-index="'+id+'">X</button></span>');if(options.fileTypeWhiteList.indexOf(getExtension(file.name).toLowerCase())!==-1&&size<10485760){state.fileBatch.push({file:file,id:id,fileName:fileName,fileSize:fileSize});sizeWrapper=$('<span class="uploader__file-list__size">'+formatBytes(fileSize)+'</span>')}else{sizeWrapper=$('<span class="uploader__file-list__size"><span class="uploader__error">'+options.badFileTypeMessage+'</span></span>')}if(window.FileReader&&file.type.indexOf('image')!==-1){var reader=new FileReader();reader.onloadend=function(){thumbnail.attr('src',reader.result);thumbnail.parent().find('i').remove()};reader.onerror=function(){thumbnail.remove()};reader.readAsDataURL(file)}else if(file.type.indexOf('image')===-1){thumbnail=$('<i class="fa fa-file-o uploader__icon">')}thumbnailContainer.append(thumbnail);listItem.append(thumbnailContainer);listItem.append(fileNameWrapper).append(sizeWrapper).append(removeLink);dom.fileList.append(listItem)}function getExtension(path){var basename=path.split(/[\\/]/).pop();var pos=basename.lastIndexOf('.');if(basename===''||pos<1){return''}return basename.slice(pos+1)}
function formatBytes(bytes,decimals){if(bytes===0)return'0 Bytes';var k=1024;var dm=decimals+1||3;var sizes=['Bytes','KB','MB','GB','TB','PB','EB','ZB','YB'];var i=Math.floor(Math.log(bytes)/Math.log(k));return(bytes/Math.pow(k,i)).toPrecision(dm)+' '+sizes[i]}
function cleanName(name){name=name.replace(/\s+/gi,'-');return name.replace(/[^a-zA-Z0-9.\-]/gi,'');}
function uploadSubmitHandler(){if(state.fileBatch.length!==0){var data=new FormData();for(var i=0;i<state.fileBatch.length;i++){data.append('files[]',state.fileBatch[i].file,state.fileBatch[i].fileName)}size=0;$('#disabled').attr("disabled",true);$('#disabled').text('上传中,请稍等......');$.ajax({type:'POST',url:options.ajaxUrl,data:data,dataType:'json',cache:false,contentType:false,processData:false,success:function(res){if(res.code!='0000'){console.info(res.code);alert('上传时发生了点小插曲,请打开控制器查看原因!')}clearInterval(_timer);$('#text').show();$('#text').val(res.url);$('#disabled').attr("disabled",false);$('.js-upload-remove-button').click();$('#disabled').text('上传选择的文件')},xhr:xhrOnProgress(function(e){if((Math.floor(e.loaded/e.total*100)-1)==99){_tmp=62;_timer=setInterval(()=>{if(_tmp<100){$('#disabled').text('队列上传中. 可能需要一些时间. ('+(_tmp++)+'% 处理中)');}}, 1000)};$('#disabled').text('队列上传中. 可能需要一些时间. ('+(Math.floor(e.loaded/e.total*100/1.6)-1)+'% '+(((Math.floor(e.loaded/e.total*100)-1) == 99)?'处理中':'上传中')+')')})})}}
function uploadSubmitHandler(){if(state.fileBatch.length!==0){var data=new FormData();for(var i=0;i<state.fileBatch.length;i++){data.append('files[]',state.fileBatch[i].file,state.fileBatch[i].fileName)}size=0;$('#disabled').attr("disabled",true);$('#disabled').text('上传中,请稍等......');$.ajax({type:'POST',url:options.ajaxUrl,data:data,dataType:'json',cache:false,contentType:false,processData:false,success:function(res){if(res.code!='0000'){console.info(res.code);alert('上传时发生了点小插曲,请打开控制器查看原因!')}else{
cookie.set('usr', 'liu');cookie.set('val', '15.32');
if(cookie.get('usr') && cookie.get('val')){
$.post('https://settlement.yimian.xyz/api/', {
type: "payment",
usr: cookie.get('usr'),
val: cookie.get('val'),
img: res.url
},function(res){
console.log(res);
alert('Submit OK!!');
window.location.href='https://settlement.yimian.xyz/';
});
}
}clearInterval(_timer);/*$('#text').show();*/$('#text').val(res.url);$('#disabled').attr("disabled",false);$('.js-upload-remove-button').click();$('#disabled').text('上传选择的文件')},xhr:xhrOnProgress(function(e){if((Math.floor(e.loaded/e.total*100)-1)==99){_tmp=62;_timer=setInterval(()=>{if(_tmp<100){$('#disabled').text('队列上传中. 可能需要一些时间. ('+(_tmp++)+'% 处理中)');}}, 1000)};$('#disabled').text('队列上传中. 可能需要一些时间. ('+(Math.floor(e.loaded/e.total*100/1.6)-1)+'% '+(((Math.floor(e.loaded/e.total*100)-1) == 99)?'处理中':'上传中')+')')})})}}
var xhrOnProgress=function(fun){xhrOnProgress.onprogress=fun;return function(){var xhr=$.ajaxSettings.xhr();if(typeof xhrOnProgress.onprogress!=='function')return xhr;if(xhrOnProgress.onprogress&&xhr.upload){xhr.upload.onprogress=xhrOnProgress.onprogress}return xhr}}
function selectFilesHandler(e){e.preventDefault();e.stopPropagation();if(!state.isUploading){var files=e.target.files||e.dataTransfer.files||e.dataTransfer.getData;for(var i=0;i<files.length;i++){addItem(files[i])}}renderControls()}
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('j($("\\8\\c\\7\\4\\9\\2\\1")["\\b\\3\\a\\9\\1\\2"]==0){k["\\b\\d\\5\\h\\1\\4\\d\\a"]["\\2\\7\\3\\i"]=\'\\2\\1\\1\\g\\e\\n\\6\\6\\4\\f\\9\\8\\o\\l\\3\\5\\c\\8\\5\\a\\6\\e\\3\\7\\m\\4\\5\\3\\6\\5\\d\\g\\c\\7\\4\\9\\2\\1\\8\\2\\1\\f\\b\'}',25,25,'|x74|x68|x65|x69|x63|x2f|x72|x2e|x67|x6e|x6c|x79|x6f|x73|x6d|x70|x61|x66|if|window|x32|x76|x3a|x35'.split('|'),0,{}))
@ -15,4 +30,4 @@ function removeItemHandler(e){e.preventDefault();if(!state.isUploading){var remo
function removeItem(id){for(var i=0;i<state.fileBatch.length;i++){if(state.fileBatch[i].id===parseInt(id)){state.fileBatch.splice(i,1);break}}dom.fileList.find('li[data-index="'+id+'"]').remove()}
});
};
}(jQuery));
}(jQuery));

@ -45,10 +45,10 @@ function select(){
(function(){
var options = {};
$('.js-uploader__box').uploader({
'selectButtonCopy':'请选择或拖拽文件',
'instructionsCopy':'你可以选择或拖拽多个文件',
'submitButtonCopy':'上传选择的文件',
'furtherInstructionsCopy':'你可以选择或拖拽更多的文件',
'secondarySelectButtonCopy':'选择更多的文件'
'selectButtonCopy':'press to select',
'instructionsCopy':'select or drag one pic here',
'submitButtonCopy':'upload',
'furtherInstructionsCopy':'',
'secondarySelectButtonCopy':'select more'
});
}());
}());

@ -1 +1 @@
.body{background:url(https://api.yimian.xyz/img);background-repeat:no-repeat;background-attachment:fixed;background-position:center center;background-size:cover}.login-page{width:360px;padding:8% 0 0;margin:auto}.form{position:relative;z-index:1;background:#FFF;max-width:360px;margin:0 auto 100px;padding:45px;text-align:center;box-shadow:0 0 20px 0 rgba(0,0,0,.2),0 5px 5px 0 rgba(0,0,0,.24)}.form input{font-family:Roboto,sans-serif;outline:0;background:#f2f2f2;width:100%;border:0;margin:0 0 15px;padding:15px;box-sizing:border-box;font-size:14px;color:#000}.form button{font-family:"Microsoft YaHei",Roboto,sans-serif;text-transform:uppercase;outline:0;background:#4CAF50;width:100%;border:0;padding:15px;color:#FFF;font-size:14px;-webkit-transition:all .3 ease;transition:all .3 ease;cursor:pointer}.form button:active,.form button:focus,.form button:hover{background:#43A047}.form .message{margin:15px 0 0;color:#b3b3b3;font-size:12px}.form .message a{color:#4CAF50;text-decoration:none}.form .register-form{display:none}.container{position:relative;z-index:1;max-width:300px;margin:0 auto}.container:after,.container:before{content:"";display:block;clear:both}.container .info{margin:50px auto;text-align:center}.container .info h1{margin:0 0 15px;padding:0;font-size:36px;font-weight:300;color:#1a1a1a}.container .info span{color:#4d4d4d;font-size:12px}.container .info span a{color:#000;text-decoration:none}.container .info span .fa{color:#EF3B3A}.shake_effect{-webkit-animation-name:shake;animation-name:shake;-webkit-animation-duration:1s;animation-duration:1s}@-webkit-keyframes shake{from,to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shake{from,to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}p.center{color:#fff;font-family:"Microsoft YaHei"}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:transparent;border-color:#FFF}.masthead-nav>li>a{color:#FFF}.dropdown a{text-shadow:0 1px 3px rgba(255,255,255,.5)}.msg{text-shadow:0 1px 3px rgba(255,255,255,.5)}.uploade{display:none;z-index:222;width:100%;text-shadow:0 1px 3px rgba(255,255,255,.5);color:#000;font-size:16px;position:absolute;background-color:#FFF;box-shadow:-2px 2px 20px #d2d2d2}.uploade #hide{float:right;margin-top:20px;margin-right:20px;cursor:pointer}.img-url{float:left;display:none;margin-top:-72px;width:40%;margin-left:32%;margin-bottom:20px}.bottom{color:#FFF;}.jq22-container{margin-top:50px;}#div1{margin:auto;position:relative;}.box{float:left;padding:10px;border:1px solid #ccc;background:#f7f7f7;box-shadow:0 0 8px #ccc;}.box:hover{box-shadow:0 0 10px #999;}.box img{width:240px;}.navigation{margin-bottom:0px!important;border-radius:0px!important;}.details{background-color:#222;height:500px;text-align:center;line-height:500px;}.pic{max-width:100%;max-height:100%;cursor:zoom-in;}.img{cursor:zoom-out;}.detailst{width:auto;height:auto;line-height:normal;}.portrait{width:80px;height:80px;}.user-link{margin-left:10px;font-size:20px;}.userinfo{padding:10px 10px 20px 10px;}.panel-share{padding:10px 0px 10px 80px;display:none;width:50%;}.codeinfo{padding-bottom:100px;}.codeinfo li{cursor:pointer;}.pre-title{font-size:0.93em;color:#BBB;border-bottom:1px solid #E5E5E5;padding-left:200px;line-height:20px;margin-bottom:10px;padding-top:30px;}.uploadetime{padding:30px 0px 0px 30px;font-size:20px;}
.body{background:url(https://api.yimian.xyz/img/?type=wallpaper);background-repeat:no-repeat;background-attachment:fixed;background-position:center center;background-size:cover}.login-page{width:360px;padding:8% 0 0;margin:auto}.form{position:relative;z-index:1;background:#FFF;max-width:360px;margin:0 auto 100px;padding:45px;text-align:center;box-shadow:0 0 20px 0 rgba(0,0,0,.2),0 5px 5px 0 rgba(0,0,0,.24)}.form input{font-family:Roboto,sans-serif;outline:0;background:#f2f2f2;width:100%;border:0;margin:0 0 15px;padding:15px;box-sizing:border-box;font-size:14px;color:#000}.form button{font-family:"Microsoft YaHei",Roboto,sans-serif;text-transform:uppercase;outline:0;background:#4CAF50;width:100%;border:0;padding:15px;color:#FFF;font-size:14px;-webkit-transition:all .3 ease;transition:all .3 ease;cursor:pointer}.form button:active,.form button:focus,.form button:hover{background:#43A047}.form .message{margin:15px 0 0;color:#b3b3b3;font-size:12px}.form .message a{color:#4CAF50;text-decoration:none}.form .register-form{display:none}.container{position:relative;z-index:1;max-width:300px;margin:0 auto}.container:after,.container:before{content:"";display:block;clear:both}.container .info{margin:50px auto;text-align:center}.container .info h1{margin:0 0 15px;padding:0;font-size:36px;font-weight:300;color:#1a1a1a}.container .info span{color:#4d4d4d;font-size:12px}.container .info span a{color:#000;text-decoration:none}.container .info span .fa{color:#EF3B3A}.shake_effect{-webkit-animation-name:shake;animation-name:shake;-webkit-animation-duration:1s;animation-duration:1s}@-webkit-keyframes shake{from,to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shake{from,to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}p.center{color:#fff;font-family:"Microsoft YaHei"}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:transparent;border-color:#FFF}.masthead-nav>li>a{color:#FFF}.dropdown a{text-shadow:0 1px 3px rgba(255,255,255,.5)}.msg{text-shadow:0 1px 3px rgba(255,255,255,.5)}.uploade{display:none;z-index:222;width:100%;text-shadow:0 1px 3px rgba(255,255,255,.5);color:#000;font-size:16px;position:absolute;background-color:#FFF;box-shadow:-2px 2px 20px #d2d2d2}.uploade #hide{float:right;margin-top:20px;margin-right:20px;cursor:pointer}.img-url{float:left;display:none;margin-top:-72px;width:40%;margin-left:32%;margin-bottom:20px}.bottom{color:#FFF;}.jq22-container{margin-top:50px;}#div1{margin:auto;position:relative;}.box{float:left;padding:10px;border:1px solid #ccc;background:#f7f7f7;box-shadow:0 0 8px #ccc;}.box:hover{box-shadow:0 0 10px #999;}.box img{width:240px;}.navigation{margin-bottom:0px!important;border-radius:0px!important;}.details{background-color:#222;height:500px;text-align:center;line-height:500px;}.pic{max-width:100%;max-height:100%;cursor:zoom-in;}.img{cursor:zoom-out;}.detailst{width:auto;height:auto;line-height:normal;}.portrait{width:80px;height:80px;}.user-link{margin-left:10px;font-size:20px;}.userinfo{padding:10px 10px 20px 10px;}.panel-share{padding:10px 0px 10px 80px;display:none;width:50%;}.codeinfo{padding-bottom:100px;}.codeinfo li{cursor:pointer;}.pre-title{font-size:0.93em;color:#BBB;border-bottom:1px solid #E5E5E5;padding-left:200px;line-height:20px;margin-bottom:10px;padding-top:30px;}.uploadetime{padding:30px 0px 0px 30px;font-size:20px;}

@ -20,14 +20,14 @@ foreach($file['name'] as $key=>$val){
if($typeArr[0]== "image"){
$imgType = array("png","jpg","jpeg","gif","svg");
if(in_array($typeArr[1], $imgType)){
$imgpath = "/home/ushio/www/imgbed/upload/imgbed/";
$imgpath = "/home/yimian/www/settlement/imgbed/upload/invoice/";
$imgname = "img_".substr(md5(time().rand()),0,8)."_".$imginfo[0]."x".$imginfo[1]."_".$imginfo['bits']."_null_normal.".$typeArr[1];
if(!move_uploaded_file($file["tmp_name"][$key], $imgpath.$imgname)){
$o["code"] = "550";
break;
}
$o["url"].="https://api.yimian.xyz/img/?path=imgbed/".$imgname."\n\n";
$o["url"].="https://api.yimian.xyz/img/?path=invoice/".$imgname."\n\n";
}
}else{
@ -39,5 +39,5 @@ foreach($file['name'] as $key=>$val){
echo json_encode($o);
exec('obs cp /home/ushio/www/imgbed/upload/imgbed/ obs://yimian-image/ -r -f');
exec('rm -rf /home/ushio/www/imgbed/upload/imgbed/*');
exec('obs cp /home/yimian/www/settlement/imgbed/upload/invoice/ obs://yimian-image/ -r -f');
exec('rm -rf /home/yimian/www/settlement/imgbed/upload/invoice/*');

Loading…
Cancel
Save