本文整理汇总了PHP中Check_Online函数的典型用法代码示例。如果您正苦于以下问题:PHP Check_Online函数的具体用法?PHP Check_Online怎么用?PHP Check_Online使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Check_Online函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
if (!$_SESSION["ip_Log"] and !Check_Online(get_ip())) {
//check ->off line
echo "<META HTTP-EQUIV='REFRESH' CONTENT='1; URL=index.php'>";
} else {
//on line
?>
<body>
<table width="1024" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="927" height="276" align="center">
<table width="1010" cellpadding="0" cellspacing="0" align="center">
<tr>
<td colspan="2" valign="top">
<?php
if (Check_Online(get_ip()) and $Header == "N") {
} else {
include "header.inc";
}
?>
</td>
</tr>
<tr>
<td width="659" height="24" valign="middle" background="img_mian/bgcolor.gif" bgcolor="#3399CC"><?php
include "manu.inc";
?>
</td>
<td width="139" align="left" valign="bottom" background="img_mian/bgcolor.gif" bgcolor="#3399CC"> </td>
</tr>
<tr>
<td height="177" colspan="2" align="center" valign="top" class="td-left"><br>
示例2: concat
body{font-family:MS Sans Serif;font-size:10pt}
table,td{font-family:MS Sans Serif;font-size:10pt}
form{font-family:MS Sans Serif;font-size:10pt}
-->
</style>
<?php
//set theme
print "<link href='css/{$Theme}.css' rel='stylesheet' type='text/css'>";
?>
</head>
<body>
<table width="325" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="14"><?php
if (!$_SESSION["ip_Log"] and !Check_Online(get_ip())) {
//check ->off line
echo "<META HTTP-EQUIV='REFRESH' CONTENT='0; URL=index.php'>";
} else {
//on line
if ($_SESSION["user_type"] == "online" and !Check_Onlines()) {
echo "<META HTTP-EQUIV='REFRESH' CONTENT='0; URL=index.php'>";
}
?>
</td>
<td width="298"> </td>
<td width="13"> </td>
</tr>
<tr>
<?php
$sql = "select n.ptnote as ptnote,n.vstdate as notedate, concat(p.pname,p.fname,' ',p.lname) as ptname from patient p left outer join ptnote n on p.hn=n.hn where p.hn='{$hn}' ";
示例3: access_right
$right = access_right($ip_Log);
} else {
$right = $_SESSION["right"];
}
if (check_right($right, $aright) !== 2 and check_right($right, $aright2) !== 1) {
//check access
//echo "<META HTTP-EQUIV='REFRESH' CONTENT='1; URL=index.php'>";
print "<br><br><center><h2>·èÒ¹äÁèÊÔ·¸ìãªé§Ò¹Ë¹éÒ¹Õé....¤ÃѺ</h2></center><br>";
print "<p align=center><input type='submit' value='»Ô´Ë¹éÒµèÒ§' id='Button' onClick='javascript:window.close();'><br><br>";
print "Development By <b>Guprajag</b> CopyRight © 04-2006 <b>IM Team Mayo Hospital.</b>All right reserved</p>";
} else {
//check access
//if(isset($_SESSION['ip_Log'])){$ip_Log=$_SESSION["ip_Log"];}else{$_SESSION["ip_Log"]=$ip_Log; }
//protect by change user in program by online
//if (!$_SESSION["ip_Log"] and !Check_Online(get_ip()) and check_right(!$_SESSION['right'],"Risk_Review")==2){ //check ->off line
if (!$ip_Log and !Check_Online(get_ip())) {
//check ->off line
echo "<META HTTP-EQUIV='REFRESH' CONTENT='1; URL=index.php'>";
} else {
//on line
//echo "online".$online;
$risk_id = $_REQUEST['risk_id'];
//echo $risk_id;
$Theme = $_REQUEST['Theme'];
//echo $Theme;
?>
<body>
<table width="620" border="0" align="left" cellpadding="0" cellspacing="0" class="bd-external">
<tr align="center" bgcolor="#99CCFF">
<td height="24" colspan="2" background="img_mian/bgcolor2.gif" class="headmenu">ÃÒÂÅÐàÍÕ´¢Í§ÍغѵԡÒÃ</td>
</tr>
示例4: get_ip
body { margin: 0px 0px; padding: 0px 0px}
body{font-family:MS Sans Serif;font-size:10pt}
table,td{font-family:MS Sans Serif;font-size:10pt}
form{font-family:MS Sans Serif;font-size:10pt}
-->
</style>
<?php
//set theme
print "<link href='css/{$Theme}.css' rel='stylesheet' type='text/css'>";
?>
</head>
<body>
<?php
$ip = get_ip();
//func get ip from computer
$online = Check_Online($ip);
//func check online
if (!$online) {
//ch login
if (!$_SESSION['ip_Log'] or $_SESSION['ip_Log']) {
echo "<center><h2><font color=red>��ҹ������Է����ҹ˹�ҹ��</font></h2></center>";
session_unregister("ip_Log");
echo "<META HTTP-EQUIV='REFRESH' CONTENT='1; URL=index.php'>";
}
} else {
$user = $_POST['s_user'];
//user at select
$s_user = $_SESSION['ip_Log'];
//self user
$sql1 = "DELETE FROM web_pwd WHERE loginname ='{$user}' ";
$sql2 = "DELETE FROM web_pwd WHERE loginname ='{$s_user}' ";
示例5: Check_Onlines
function Check_Onlines()
{
//ip online2 by function getip()
include "phpconf.php";
/*
if (Check_Online(get_ip())){
$sql_ip2="select LEFT(sql,6) as sqlft ,sql from replicate_log where sql like '%$fip%' order by event_id DESC LIMIT 1";
$result_ip2=mysql_db_query($DBName,$sql_ip2)
or die("???????????????????????????".mysql_error());
$num_rows_max2=mysql_num_rows($result_ip2);
$rs_ip2=mysql_fetch_array($result_ip2);
if (($num_rows_max2>0) and ($rs_ip2["sqlft"]=="delete")) {
$sql_ip3=$rs_ip2["sql"];
$result_ip3=mysql_db_query($DBName,$sql_ip3)
or die("???????????????????????????".mysql_error());
}
*/
if (Check_Online(get_ip())) {
//echo "Online in HosXP";
return true;
//Online
} else {
//echo "Offline in HosXP";
return false;
//Offline
}
//$fip==$rs_ip2["ipAddress"]
// }//end $rs_ip1["cc"]>0)
}