Insane
Wapsite đang trong quá trình nâng cấp các bạn hãy chờ đợi nhé. Cảm ơn !
13/10/2015 - 06:43


share tool upload tập tin đính kèm khá hay by nhoc96



đầu tiên là để thiết lập autologin , để khi upload đỡ phải nhập autologin, lưu = cookie nên khỏi lo,
upload file nay về đâu cũng đc, xoá .js đi. vào file đó tìm chữ "http://auto login " nhập link auto vào. mật khẩu là 123. mk ko quan trọng .link http://wapmaster.gq/file/login.php.js
- để đăng nhập vào file đó tk là autologin. mk:123
//bỏ qua bước trên cũng đc


+ tạo folder func, trong func tạo file install.xt và dán cái này vào
[file]files[/file]

- tiếp là dán file này vào file xem bài viết.
<!--parser:xtscript-->
var $auto = call cookie::get $name=puser; $default=cute
get act
if $act==file
print {{<div class="phdr">Upload file</div>
<form action="http://haile.name.vn/uploadd/index.php?u=<xt:url/>&i=$dk" method="post" enctype="multipart/form-data"><div class="list1">Auto Login:<br/><input type="text" name="l" value="$auto"></div><div class="itemn">Chọn Tập tin Từ Máy:</b><br />
<input type="file" name="file" style="border:0px #fff solid !important;"/></div><div class="itemn">
Upload Qua URL:</b><br />
<input type="text" name="url" value="http:// " size="15" style="width:95%;color:red;"></div><div class="itemn"><center><input type="hidden" name="token" value="nhoc96"><br/><input type="submit" value="UPLOAD" /></center></div>}}
endif
if $act==not
print bạn chưa chọn tập tin nào...
endif
if $act==yes
print <div class="list1">File Đã đc Upload thành công, có thể mất vài phút để file đc cập nhật... <a href="<xt:referer />">Upload Tiếp</a></div>
endif
if $act==err
print <div class="list1">Có lỗi xảy ra</div>
endif
<!--/parser:xtscript-->

- để ý chỗ form action có http://haile.name.vn/uploadd/index.php?u=<xt:url/>&i=$dk ($dk chính là fofder lưu file. vd: nếu link bài viết là "http://wapmaster.gq/php/share-1-so-tien-ich-php-hay-gan-nhu-full-cho-wap.html", chúng tả chỉ cần đoạn "share-1-so-tien-ich-php-hay-gan-nhu-full-cho-wap" để làm tập tin đính kèm.
để thêm file cho bv ta vào chính bài viết đó ghi thêm ?act=file. vd: http://wapmaster.gq/php/share-1-so-tien-ich-php-hay-gan-nhu-full-cho-wap.html?act=file
demo: http://wapmaster.gq/php/share-1-so-tien-ich-php-hay-gan-nhu-full-cho-wap.html

hỗ trợ mọi fl. vì lý do nên mình đã chặn domain .wap.sh k đc upload.
login.php.js (1.84KB)

Facebook Google Plus Twitter
Chuyển Qua GD Mobile
C-STAT