07 Haziran 2014, 01:09
|
#2 |
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
| Cevap: upload sorunu
Kod: Kodu kopyalamak için üzerine çift tıklayın!
on *:sockopen:ursm: {
bset -t &postdata 1 -----------------------------7dc322f4c0442 $+ $crlf
bset -t &postdata $calc($bvar(&postdata,0) + 1) Content-Disposition: form-data; name="local_files[]"; filename=" $+ $nopath($gettok($mid($sock($sockname).mark,11),1,59)) $+ " $+ $crlf
bset -t &postdata $calc($bvar(&postdata,0) + 1) Content-Type: image/ $+ $gettok(%ds,2,46) $+ $crlf $+ $crlf
bread " $+ $gettok($mid($sock($sockname).mark,10),1,59) $+ " 0 $file($gettok($mid($sock($sockname).mark,10),1,59)).size &file_contents
bcopy &postdata $calc($bvar(&postdata,0) + 1) &file_contents 1 -1
bset -t &postdata $calc($bvar(&postdata,0) + 1) $crlf $+ -----------------------------7dc322f4c0442 $+ $crlf
bset -t &postdata $calc($bvar(&postdata,0) + 1) Content-Disposition: form-data; name="remote_file_url" $+ $crlf $+ $crlf
bset -t &postdata $calc($bvar(&postdata,0) + 1) -----------------------------7dc322f4c0442 $+ $crlf
bset -t &postdata $calc($bvar(&postdata,0) + 1) Content-Disposition: form-data; name="upload_setting_size" $+ $crlf $+ $crlf
bset -t &postdata $calc($bvar(&postdata,0) + 1) -----------------------------7dc322f4c0442 $+ $crlf
bset -t &postdata $calc($bvar(&postdata,0) + 1) Content-Disposition: form-data; name="upload_setting_effect" $+ $crlf $+ $crlf
bset -t &postdata $calc($bvar(&postdata,0) + 1) -----------------------------7dc322f4c0442 $+ $crlf
bset -t &postdata $calc($bvar(&postdata,0) + 1) Content-Disposition: form-data; name="upload_setting_rotate" $+ $crlf $+ $crlf
bset -t &postdata $calc($bvar(&postdata,0) + 1) -----------------------------7dc322f4c0442--
sockwrite -nt $sockname POST /upload.php HTTP/1.1
sockwrite -nt $sockname Host: hizliresim.com
sockwrite -nt $sockname Content-Type: multipart/form-data; boundary=---------------------------7dc322f4c0442
sockwrite -nt $sockname Content-Length: $bvar(&postdata,0) $+ $crlf $+ $crlf
sockwrite -nt $sockname Connection: Keep-Alive
sockwrite $sockname &postdata
}
on *:sockread:ursm: {
var %x
sockread %x
if (<input id=link-direct class=form-control style="font-size: x-small;" isin %x) {
echo -a 7Başarıyla yüklendi $gettok($gettok(%x,3-,34),-2,34)
}
} |
| |