Công ty Cổ phần Phát triển Giáo dục IECC
Công ty Cổ phần Phát triển Giáo dục IECC
0) $ignore = true; // delete free ips if ($ignore == false) { $sql = "delete from counter_ips where unix_timestamp(NOW())-unix_timestamp(visit) > $counter_expire"; mysql_query($sql); } // check for entry if ($ignore == false) { $sql = "select * from counter_ips where ip = '$counter_ip' and session = '".session_id()."'"; $res = mysql_query($sql); if (mysql_num_rows($res) == 0) { // insert $sql = "INSERT INTO counter_ips (ip, visit, session) VALUES ('$counter_ip', NOW(), '".session_id()."')"; mysql_query($sql); } else { $ignore = true; $sql = "update counter_ips set visit = NOW() where ip = '$counter_ip' and session = '".session_id()."'"; mysql_query($sql); } } // online? $sql = "select * from counter_ips"; $res = mysql_query($sql); $online = mysql_num_rows($res); // add counter if ($ignore == false) { // yesterday if ($day_id == (date("z")-1)) { $yesterday_value = $day_value; $yesterday_id = (date("z")-1); } else { if ($yesterday_id != (date("z")-1)) { $yesterday_value = 0; $yesterday_id = date("z")-1; } } // day if ($day_id == date("z")) { $day_value++; } else { $day_value = 1; $day_id = date("z"); } // week if ($week_id == date("W")) { $week_value++; } else { $week_value = 1; $week_id = date("W"); } // month if ($month_id == date("n")) { $month_value++; } else { $month_value = 1; $month_id = date("n"); } // year if ($year_id == date("Y")) { $year_value++; } else { $year_value = 1; $year_id = date("Y"); } // all $all_value++; // neuer record? if ($day_value > $record_value) { $record_value = $day_value; $record_date = date("Y-m-d H:i:s"); } // speichern und aufräumen $sql = "update counter_values set day_id = '$day_id', day_value = '$day_value', yesterday_id = '$yesterday_id', yesterday_value = '$yesterday_value', week_id = '$week_id', week_value = '$week_value', month_id = '$month_id', month_value = '$month_value', year_id = '$year_id', year_value = '$year_value', all_value = '$all_value', record_date = '$record_date', record_value = '$record_value' where id = 1"; mysql_query($sql); } ?> Untitled Document Notice: Undefined variable: online in /var/www/iecc.vn2/blocks/block-Thong_ke_truy_cap.php on line 223 Notice: Undefined variable: day_value in /var/www/iecc.vn2/blocks/block-Thong_ke_truy_cap.php on line 224 Notice: Undefined variable: yesterday_value in /var/www/iecc.vn2/blocks/block-Thong_ke_truy_cap.php on line 225 Notice: Undefined variable: all_value in /var/www/iecc.vn2/blocks/block-Thong_ke_truy_cap.php on line 227
Thống kê truy cập
Số người online :  
Hôm nay :  
Hôm qua :  
Lượt truy cập :
ټ̳(www.6666e.com) (www.6666e.net) ʹ(www.0a0a0a.com) ʹ(www.4y4y4y.com) Ʋʹ(www.feicai321.com) ˽(www.777gm.com) (www.luotian.in/daiyun/) 人SEO(www.raoyu.net) è(www.fmgzs.com) ȫѶ(www.44555.cc) ħ˽(www.ntmkcy.com) ͨ˽(www.777gm.com) ˽(www.7000sf.com) ͨ˽(www.laiwt.com) 1.76Ŵ(www.176fg.com) ֮˽(www.scrsfy.com) Ͼ(decaffeinatedduckobject.tumblr.com) 88(www.88yule.com.cn) (www.mingshengguoji.cn) Űټ(www.6666e.com) 99s(www.99s.net.cn) Ѫ(www.rexuechuanqi.net.cn) ˽(www.chuanqisifufabuwang.com.cn) ʢ(www.fangshengda.com.cn) 65535(www.65535.net.cn) ̬(www.biantaichuanqi.com.cn) ̬(www.biantaichuanqi.cn) ʢ(www.fangshengda.cn) 1.76Ʒ(www.176jingpinchuanqi.com.cn) Ӣۺϻ(www.yingxiongheji.com.cn) 1.76Ŵ(www.176fuguchuanqi.com.cn) ˽(www.chuanqisifu.net.cn) ͨ˽(www.wangtongchuanqisifu.com.cn) Ӣۺϻ(www.yingxiongheji.net.cn) ˽(www.haosifu.net.cn) 1.76Ŵ(www.176fuguchuanqi.net.cn) 1.76Ʒ(www.176jingpinchuanqi.net.cn) ͨ˽(www.wangtongchuanqisifu.net.cn) ˽(www.zhaosifu.net.cn) 1.76Ʒ(www.176jingpinchuanqi.cn) Ӣۺϻ(www.yingxiongheji.cn) 30ok(www.30ok.net.cn) Ŷij(www.jnzhongzhi.com) Űټ(www.lbqbaby.com) ŶIJ(www.lhshome.com) Ų(www.lianzhifengjing.com) Ͼij(www.ljslpt.com) ŶIJվ(www.loveholygarden.com) Ųվ(www.manbubali.com) ϶IJ(www.nanguoyun.com) Ŷ(www.qianweiqw.com) (www.shitoushanzhuang.com) Űټ(www.lane12345.icoc.cc) ߲(www.shzysj.com) (www.sscanhuang.com) (www.speedtimelogistics.com) վ(www.ssxbzz.com) (www.tzryzs.com) ټ淨(www.xchguarantee.com) ټּ(www.xinpro.com) ټֹ(www.xinyinjixie.com) ϰټ(www.xrenjx.com) ټϷ(www.xytscape.com) ˰ټ(www.xzliangdian.com) ټ̳(www.ychjbx.com) Ͼֳ(www.yhsedu.com) ֳ(www.yinxiangjidian.com) 888(www.cnwuliubang.com) (www.koojuu.com) ij(www.weihaoguangke.com) Ͼ(www.wftymy.com) Ͼij(www.wispmo.com) Ͼ(www.wzmqfg.com) ˶ij(www.zgaqbw.com) ַ(www.yilukj.com) Ͼ(www.szximeids.com) (www.jspzqzj.com) ˹(www.juanzuche.com)
Đối tác thương mại
ucmas Qt
ucmasvn
Tieng Anh
Tellmemore
English Plaza
RobotHQ
robo giáo dục
TLIM