最新消息
最新消息

所屬分類 文章標題
教務處
2011-08-30
危害通識及化學品安全資訊電子報第10期 (教務處 / 1646)
DEAR ALL:   &nbs...
教務處
2011-08-30
100學年度第一學期行事曆 (05301 / 11193)
輔導室
2011-08-30
【100年度高中影片及書籍賞析學生網路心得比賽】 (輔導室 / 1654)
壹、活動名稱:100年...
學務處
2011-08-29
住宿生返宿通知 (學務處 / 4502)
本校住宿生請於8/31(...
學務處
2011-08-28
100-1學期返宿時間更正 (05301 / 3212)
原定29日返宿,因南...
學務處
2011-08-28
100學年度第一學期-學生 宿舍住宿須知 (05301 / 12653)
圖書館
2011-08-25
100學年度全國高級中等學校小論文寫作比賽實施計畫 (05301 / 2338)
100學年度全國高級中...
不分類
2011-08-24
啟英高中教職員工考核辦法 (05301 / 3141)
教職員工考績辦法 ...
不分類
2011-08-24
100年啟英新生暑期先修作業 (05301 / 3511)
100年啟英新生暑期先...
不分類
2011-08-24
100年度高級中等進修學校學生學籍管理研討會(北區)線上報名系統 (05301 / 1914)
 100年度高級中等...
不分類
2011-08-24
1000824(日校)新生始業輔導各國中校車路線暨時刻表 (05301 / 5500)
1000824(日校)新生始業...


























Powered by 啟英高中 © 32068 桃園市中壢區中園路447號 TEL:03-4523036 FAX:03-4611845 網站聯絡人:資訊組05201@cyvs.tyc.edu.tw
prefix("visit_user_page").""); $numrows = mysql_num_rows($res); if (($numrows + 1) >= $httprefmax) { mysql_query("delete FROM ".$xoopsDB->prefix("visit_user_page")." WHERE enregis = 'termine'"); mysql_query("delete FROM ".$xoopsDB->prefix("visit_user")." WHERE ip = 'termine'"); } if ($xoopsUser) { $lognom = $xoopsUser->uname(); $addip = getenv("REMOTE_ADDR"); $langue = getenv("HTTP_ACCEPT_LANGUAGE"); $nav = getenv("HTTP_USER_AGENT"); $page = getenv("REQUEST_URI"); // $page = ereg_replace("/modules/", "/", $page); if (!$page) { $page = "index.php"; } $result = mysql_query("SELECT visitname, temps, tempsf FROM ".$xoopsDB->prefix("visit_user")." WHERE visitname='$lognom' AND ip='$addip'"); while ($resultat = mysql_fetch_array($result)) { $visitname = $resultat[visitname]; $tem = $resultat[temps]; $temf = $resultat[tempsf]; } $tempe = time(); # si le visiteur revient apres + 1 heure avec la meme ip if ($visitname && (($tempe - $tem) > 3600)) { $addips = "termine"; mysql_query("UPDATE ".$xoopsDB->prefix("visit_user")." SET ip='$addips' WHERE visitname='$lognom' AND ip='$addip'"); mysql_query("UPDATE ".$xoopsDB->prefix("visit_user_page")." SET enregis='$addips' WHERE nom='$lognom' AND enregis='$addip'"); $nvisit = 1; $tempes = $tempe + 1; mysql_query("INSERT INTO ".$xoopsDB->prefix("visit_user")." VALUES ('','$lognom','$nvisit','$addip','$tempe','$tempes')"); mysql_query("INSERT INTO ".$xoopsDB->prefix("visit_user_page")." VALUES ('', '$lognom', '$page', '$nav', '$langue', '$addip')"); } if ($visitname && (($tempe - $tem) < 3600)) { mysql_query("UPDATE ".$xoopsDB->prefix("visit_user")." SET nvisit=nvisit+1, tempsf='$tempe' WHERE visitname='$lognom' AND ip='$addip'"); mysql_query("INSERT INTO ".$xoopsDB->prefix("visit_user_page")." VALUES ('', '$lognom', '$page', '$nav', '$langue', '$addip')"); } # si le visiteur n'existe pas dans la base if (!$visitname) { $nvisit = 1; $tempes = $tempe + 1; mysql_query("INSERT INTO ".$xoopsDB->prefix("visit_user")." VALUES ('','$lognom','$nvisit','$addip','$tempe','$tempes')"); mysql_query("INSERT INTO ".$xoopsDB->prefix("visit_user_page")." VALUES ('', '$lognom', '$page', '$nav', '$langue', '$addip')"); } } ?>