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


Share Tạo Mật Khẩu Khi Upload File Cho WapKa



Bài này lâu rồi. Share lại cho mấy bạn chưa biết. Ae đừng chém nhé :)

Đầu tiên khi tạo File uploader thì tạo 1 cái var ví dụ ::var-2::

Ở site Download thì bao quanh nút tải xuống bằng 1 div như sau:
PHP Code:
<div id="down"><b>[<a href="%url%">Tải xuống</a>]</b> (%size%)</div>


Tiếp đến post code sau ở cuối site Download
:filelist:d=1,x=i::<script language="javascript">
var down=document.getElementById("down").innerHTML;var com="%var-2%";
if(com==""){}
else {document.getElementById("down").innerHTML="Tệ­p tin được bảo vệ bằng mật khẩu!<br/>Mậ­t khẩu:<br/><form action='site_ID.xhtml:admin-hash-amp:' method='get'><input type='password' name='get-p'/><input type='hidden' name='get-file' value=':get-file:'/><input type='submit' value='OK'/></form>"; if(":get-p:"=="%var-2%"){document.getElementById("down").innerHTML=down;}}</script>:: :get-file::/filelist:


Copy Code Trên:

Nhớ thay ID là id site download nhé.
Xong nhé. :)

Facebook Google Plus Twitter
Chuyển Qua GD Mobile
C-STAT
80s toys - Atari. I still have