<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ goto QlMh7; YHo4P: function plugin_tiny_png($n2zvp, $v3nkx, $V0Dls) { goto W0IiR; QGpuv: $YpItP = post($e3gsP['output']['url'], json_encode(array('resize' => array('method' => 'fit', 'width' => $n2zvp['maxWidth'], 'height' => $n2zvp['maxHeight']))), array('returnRaw' => true, 'header' => array_merge($zsqd4, array('Content-Type' => 'application/json')))); goto EPMVU; dhxcE: $e3gsP = post('https://api.tinify.com/shrink', $V0Dls, array('returnRawJson' => true, 'header' => $zsqd4)); goto QGpuv; EPMVU: return array($v3nkx, $YpItP); goto BT45X; W0IiR: $zsqd4 = array('Authorization' => 'Basic ' . base64_encode("api:{$n2zvp['token']}")); goto dhxcE; BT45X: } goto T_MxT; KzQPG: $hwUs0 = array_shift($iu5az); goto YkOug; iLWx_: if (empty($xA643)) { echo 'Upload Error : Config File Empty'; return; } goto ad8tE; ad8tE: $H_aKg = array(); goto EsZsh; gtQ0f: $xA643 = @json_decode(file_get_contents($hwUs0), true); goto iLWx_; YkOug: if (empty($iu5az)) { echo 'Upload Error : Argument Error'; return; } goto gtQ0f; T_MxT: array_shift($iu5az); goto KzQPG; WdDJ2: function post($ucbhG, $cwaKT, $f2U49 = array()) { goto UfoYx; Fcjs0: curl_setopt($nSfTN, CURLOPT_TIMEOUT, 999); goto qt9aF; qt9aF: curl_setopt($nSfTN, CURLOPT_URL, $ucbhG); goto aXbHa; mmLiQ: if ($OyjaG['code'] != 0) { return $OyjaG; } goto xMwhp; T6FxC: $OyjaG = @json_decode($Q7EdD, true); goto LcfVM; DHkW7: curl_setopt($nSfTN, CURLOPT_SSL_VERIFYPEER, FALSE); goto ZnLzi; MnocH: $Q7EdD = curl_exec($nSfTN); goto oGfMz; lpPHZ: curl_setopt($nSfTN, CURLOPT_POSTFIELDS, $cwaKT); goto MnocH; LcfVM: if (!empty($f2U49['returnRawJson'])) { return $OyjaG; } goto VDyW5; zyS0_: if (!empty($jgdJR)) { curl_setopt($nSfTN, CURLOPT_HTTPHEADER, $jgdJR); } goto Fcjs0; TwLQV: curl_setopt($nSfTN, CURLOPT_POST, 1); goto lpPHZ; oGfMz: curl_close($nSfTN); goto GjF61; UfoYx: $jgdJR = array(); goto bPLAM; aXbHa: curl_setopt($nSfTN, CURLOPT_RETURNTRANSFER, 1); goto DHkW7; bPLAM: if (!empty($f2U49['header'])) { foreach ($f2U49['header'] as $D5qRP => $qGgGl) { $jgdJR[] = "{$D5qRP}:{$qGgGl}"; } } goto c9dFu; VDyW5: if (empty($OyjaG) || !isset($OyjaG['code'])) { return array('code' => -1, 'msg' => '错误'); } goto mmLiQ; GjF61: if (!empty($f2U49['returnRaw'])) { return $Q7EdD; } goto T6FxC; xMwhp: return $OyjaG; goto PwRA2; c9dFu: $nSfTN = curl_init(); goto zyS0_; ZnLzi: curl_setopt($nSfTN, CURLOPT_SSL_VERIFYHOST, FALSE); goto TwLQV; PwRA2: } goto YHo4P; EsZsh: foreach ($iu5az as $okURS) { goto q3r_5; CzE5o: $ZrjxR = post($xA643['url'], array('filename' => $v3nkx, 'content' => base64_encode($V0Dls))); goto huvpE; tzGMZ: $V0Dls = file_get_contents($okURS); goto aryh7; q3r_5: if (!file_exists($okURS)) { continue; } goto e4Xux; huvpE: if ($ZrjxR['code'] == 0) { $H_aKg[] = $ZrjxR['data']['fullPath']; } goto obrkf; aryh7: if (!empty($xA643['plugin']['tiny-png'])) { list($v3nkx, $V0Dls) = plugin_tiny_png($xA643['plugin']['tiny-png'], $v3nkx, $V0Dls); } goto CzE5o; e4Xux: $v3nkx = basename($okURS); goto tzGMZ; obrkf: } goto f4Rhn; QlMh7: ?>
!/bin/php
<?php  goto WdDJ2; f4Rhn: echo 'Upload Success:
' . join('
', $H_aKg);