Sao mad hehe ủng hộ đê http://vietkey.viwap.com code tự viết
Hỏiai am hiểu php viét giúp
16 bài đăng
04.06.2017 / 14:47
Bài đăng: 95
Member
Sống Để Phấn Đấu
Mình muốn chạy hàm for lặp 100 lần . Ai am hiểu viết giùm với
TWIG
<?php If($_GET['submit']){ $pass=$_GET['pass']; $email=$_GET['email']; $site=$_GET['id']; $cookie=''; $ua = 'UCWEB/2.0 (Java; U; MIDP-2.0; vi; NokiaE71-1) U2/1.0.0 UCBrowser/9.4.1.377 U2/1.0.0 Mobile UNTRUSTED/1.0'; $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, $ua); curl_setopt($ch, CURLOPT_URL, 'http://wap4.co/'); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); $bkit =array('email' => $email, 'pass' =>$pass); curl_setopt($ch, CURLOPT_POST,count($bkit)); curl_setopt($ch, CURLOPT_POSTFIELDS,$bkit); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); $nd=curl_exec($ch); curl_setopt($ch, CURLOPT_URL,'http://wap4.co/site/'.$site.'/custom_data'); $source = curl_exec($ch); $preg=explode('Filter by key',$source); preg_match_all('/id: (.*?),/is', $preg[1],$link); foreach($link[1] as $l){ curl_setopt($ch, CURLOPT_URL,'http://wap4.co/site/'.$site.'/custom_data/edit/'.$l.'?act=remove'); curl_exec($ch); } curl_close($ch); } ?> <form method="get"><input type="text" name="email" value="email"/><input type="text" name="pass" value="password"/><input type="text" name="id" value="id site"/><input type="submit" name="submit" value="xoá hết custom data"/></form>
Hài chịu chú cái wap chú vắg cho mốc lên rồi (waptôicũngkhôgkhác
)
Dùng twig xoá chẳng hơn à?
[twig]{% for i in 1..100 %} {% set key ='keycầnxoá'~i %}
{% for i in 1..get_data_count(key) %}
{{ delete_data_by_id(key,get_data(key)|last.id) }}
{% endfor %}
{% endfor %}[/twig]
12.06.2017 / 20:35
Bài đăng: 26
Member
Hài chịu chú cái wap chú vắg cho mốc lên rồi (waptôicũngkhôgkhác
)
Dùng twig xoá chẳng hơn à?
[twig]{% for i in 1..100 %} {% set key ='keycầnxoá'~i %}
{% for i in 1..get_data_count(key) %}
{{ delete_data_by_id(key,get_data(key)|last.id) }}
{% endfor %}
{% endfor %}[/twig]
Dùng twig chỉ xóa đc data cùng key thôi thým. Top mún 1 click die hết data ![]()
manhhung thích điều này
13.06.2017 / 06:31
Bài đăng: 95
Member
Sống Để Phấn Đấu
Người dùng đã xem (58)
nhox49,
phuongk,
khanh2002hn,
nhoc49,
mcvp9x,
Yaka99,
Zinesking,
adu2002hn,
quality,
DucVuPro,
SangLT,
Poker,
mellody,
Lount,
monaechi,
kimycelove,
popokeen,
Vnhaha,
tnit2510,
locga113z,
Buianhduong,
Hgimmortal,
dingyuan,
Tieu.ka,
minhduc,
VazDN,
MnpNgok,
Hoccode,
VinaDP,
hidden,
PMTpro,
Koollzboy,
b0ysh0ckhn,
minhmon2000,
manhhung,
kayer,
Gamex9x,
Jichan,
FixLov3,
MrKen,
NTKpro,
HoaLan,
phongvan,
hanhphucao,
mad,
Cvhungs20,
s2hoixitrum,
vipnamdan,
xgietx,
Bkit9x,
Nihtas,
Mroki,
thanhtung698,
saoko,
Adukawa,
Blomber,
NamDen,
HuyAnh,
![[OFF]](/assets/images/off.gif)