").append(x.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){s.each(n,o||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ut,type:"GET",isLocal:Kt.test(Xt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":sn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?cn(cn(e,x.ajaxSettings),t):cn(x.ajaxSettings,e)},ajaxPrefilter:un(rn),ajaxTransport:un(on),ajax:function(e,t){"object"==typeof e&&(t=e,e=undefined),t=t||{};var n,r,i,o,s,a,u,l,c=x.ajaxSetup({},t),p=c.context||c,f=c.context&&(p.nodeType||p.jquery)?x(p):x.event,h=x.Deferred(),d=x.Callbacks("once memory"),g=c.statusCode||{},m={},y={},v=0,b="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===v){if(!o){o={};while(t=Qt.exec(i))o[t[1].toLowerCase()]=t[2]}t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===v?i:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return v||(e=y[n]=y[n]||e,m[e]=t),this},overrideMimeType:function(e){return v||(c.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>v)for(t in e)g[t]=[g[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||b;return n&&n.abort(t),k(0,t),this}};if(h.promise(T).complete=d.add,T.success=T.done,T.error=T.fail,c.url=((e||c.url||Ut)+"").replace(Gt,"").replace(en,Xt[1]+"//"),c.type=t.method||t.type||c.method||c.type,c.dataTypes=x.trim(c.dataType||"*").toLowerCase().match(w)||[""],null==c.crossDomain&&(a=tn.exec(c.url.toLowerCase()),c.crossDomain=!(!a||a[1]===Xt[1]&&a[2]===Xt[2]&&(a[3]||("http:"===a[1]?"80":"443"))===(Xt[3]||("http:"===Xt[1]?"80":"443")))),c.data&&c.processData&&"string"!=typeof c.data&&(c.data=x.param(c.data,c.traditional)),ln(rn,c,t,T),2===v)return T;u=c.global,u&&0===x.active++&&x.event.trigger("ajaxStart"),c.type=c.type.toUpperCase(),c.hasContent=!Zt.test(c.type),r=c.url,c.hasContent||(c.data&&(r=c.url+=(Vt.test(r)?"&":"?")+c.data,delete c.data),c.cache===!1&&(c.url=Jt.test(r)?r.replace(Jt,"$1_="+Yt++):r+(Vt.test(r)?"&":"?")+"_="+Yt++)),c.ifModified&&(x.lastModified[r]&&T.setRequestHeader("If-Modified-Since",x.lastModified[r]),x.etag[r]&&T.setRequestHeader("If-None-Match",x.etag[r])),(c.data&&c.hasContent&&c.contentType!==!1||t.contentType)&&T.setRequestHeader("Content-Type",c.contentType),T.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+("*"!==c.dataTypes[0]?", "+sn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers)T.setRequestHeader(l,c.headers[l]);if(c.beforeSend&&(c.beforeSend.call(p,T,c)===!1||2===v))return T.abort();b="abort";for(l in{success:1,error:1,complete:1})T[l](c[l]);if(n=ln(on,c,t,T)){T.readyState=1,u&&f.trigger("ajaxSend",[T,c]),c.async&&c.timeout>0&&(s=setTimeout(function(){T.abort("timeout")},c.timeout));try{v=1,n.send(m,k)}catch(C){if(!(2>v))throw C;k(-1,C)}}else k(-1,"No Transport");function k(e,t,o,a){var l,m,y,b,w,C=t;2!==v&&(v=2,s&&clearTimeout(s),n=undefined,i=a||"",T.readyState=e>0?4:0,l=e>=200&&300>e||304===e,o&&(b=pn(c,T,o)),b=fn(c,b,T,l),l?(c.ifModified&&(w=T.getResponseHeader("Last-Modified"),w&&(x.lastModified[r]=w),w=T.getResponseHeader("etag"),w&&(x.etag[r]=w)),204===e||"HEAD"===c.type?C="nocontent":304===e?C="notmodified":(C=b.state,m=b.data,y=b.error,l=!y)):(y=C,(e||!C)&&(C="error",0>e&&(e=0))),T.status=e,T.statusText=(t||C)+"",l?h.resolveWith(p,[m,C,T]):h.rejectWith(p,[T,C,y]),T.statusCode(g),g=undefined,u&&f.trigger(l?"ajaxSuccess":"ajaxError",[T,c,l?m:y]),d.fireWith(p,[T,C]),u&&(f.trigger("ajaxComplete",[T,c]),--x.active||x.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,undefined,t,"script")}}),x.each(["get","post"],function(e,t){x[t]=function(e,n,r,i){return x.isFunction(n)&&(i=i||r,r=n,n=undefined),x.ajax({url:e,type:t,dataType:i,data:n,success:r})}});function pn(e,t,n){var r,i,o,s,a=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),r===undefined&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}return o?(o!==u[0]&&u.unshift(o),n[o]):undefined}function fn(e,t,n,r){var i,o,s,a,u,l={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(s=l[u+" "+o]||l["* "+o],!s)for(i in l)if(a=i.split(" "),a[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){s===!0?s=l[i]:l[i]!==!0&&(o=a[0],c.unshift(a[1]));break}if(s!==!0)if(s&&e["throws"])t=s(t);else try{t=s(t)}catch(p){return{state:"parsererror",error:s?p:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),x.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=x("
pmon_main.html 0000644 0001752 0001753 00000010521 12240320162 012115 0 ustar gwz gwz
PortMon Admin Interface
pmonmaint_cn.php 0000755 0001752 0001753 00000001617 12240357131 012464 0 ustar gwz gwz $_SESSION['portmon_atime']+$_SESSION['portmon_tmout'])
{
$msg="请点击'注销'以重新登录.";
header("Content-type: text/plain; charset=UTF-8");
echo $msg;
return;
}
else
{
$IP= isset($_POST['IP'])? $_POST['IP'] : "";
$port= isset($_POST['port'])? $_POST['port'] : "";
$sday= isset($_POST['sday'])? $_POST['sday'] : "";
$shour= isset($_POST['shour'])? $_POST['shour'] : "";
$sminute= isset($_POST['sminute'])? $_POST['sminute'] : "";
$lday= isset($_POST['lday'])? $_POST['lday'] : "";
$lhour= isset($_POST['lhour'])? $_POST['lhour'] : "";
$lminute= isset($_POST['lminute'])? $_POST['lminute'] : "";
system("IP='$IP' port='$port' sday='$sday' shour=$shour sminute=$sminute lday=$lday lhour=$lhour lminute=$lminute /opt/portmon/bin/pmonmaint_cn");
$_SESSION['portmon_atime']=time();
}
?>
pmon_maintenance_cn.html 0000644 0001752 0001753 00000007604 12074165560 014161 0 ustar gwz gwz
设定服务维护时段
pmon_maintenance_cn.php 0000755 0001752 0001753 00000010257 12240356204 013775 0 ustar gwz gwz $_SESSION['portmon_atime']+$_SESSION['portmon_tmout'])
{
$msg="请点击'注销'以重新登录.";
header("Content-type: text/plain; charset=UTF-8");
echo $msg;
return;
}
?>
设定服务维护时段
pmon_maintenance.html 0000644 0001752 0001753 00000007451 12074165577 013511 0 ustar gwz gwz
Service Maintenance
pmon_maintenance.php 0000755 0001752 0001753 00000010121 12240356714 013311 0 ustar gwz gwz $_SESSION['portmon_atime']+$_SESSION['portmon_tmout'])
{
header("Content-type: text/plain");
echo "Please click 'Logout' to get login window to login first!";
return;
}
?>
Service Maintenance
pmonmaint.php 0000755 0001752 0001753 00000001611 12240357105 011777 0 ustar gwz gwz $_SESSION['portmon_atime']+$_SESSION['portmon_tmout'])
{
header("Content-type: text/plain");
echo "Please click 'Logout' to get login window to login first!";
return;
}
else
{
$IP= isset($_POST['IP'])? $_POST['IP'] : "";
$port= isset($_POST['port'])? $_POST['port'] : "";
$sday= isset($_POST['sday'])? $_POST['sday'] : "";
$shour= isset($_POST['shour'])? $_POST['shour'] : "";
$sminute= isset($_POST['sminute'])? $_POST['sminute'] : "";
$lday= isset($_POST['lday'])? $_POST['lday'] : "";
$lhour= isset($_POST['lhour'])? $_POST['lhour'] : "";
$lminute= isset($_POST['lminute'])? $_POST['lminute'] : "";
system("IP='$IP' port='$port' sday='$sday' shour=$shour sminute=$sminute lday=$lday lhour=$lhour lminute=$lminute /opt/portmon/bin/pmonmaint");
$_SESSION['portmon_atime']=time();
}
?>
pmon_mntdelete_cn.php 0000755 0001752 0001753 00000001620 12240320162 013460 0 ustar gwz gwz $_SESSION['portmon_atime']+$_SESSION['portmon_tmout'])
{
header("Content-type: text/plain; charset=zh_CN.utf8");
exit("请点击'注销'以重新登录.");
}
else
{
if(isset($_POST['IP']))
{
$IP=$_POST['IP'];
if(isset($_POST['port']))
$port=$_POST['port'];
else
$port="UNKNOWN";
$IP_Pure=substr($IP, 0, strlen($IP)-strlen(strchr($IP, '%')));
$dv=substr($IP_Pure, strlen($IP_Pure)-2, 2);
if($port != "NONE" && $port!="UNKNOWN")
$file="/var/portmon/".$dv."/".$IP."=".$port.".downwin";
else
$file="/var/portmon/".$dv."/".$IP.".downwin";
unlink($file);
}
else
{
header("Content-type: text/plain; charset=zh_CN.utf8");
echo "请给出IP地址!!!";
}
$_SESSION['portmon_atime']=time();
}
?>
pmon_mntdelete.php 0000755 0001752 0001753 00000001603 12240320162 013001 0 ustar gwz gwz $_SESSION['portmon_atime']+$_SESSION['portmon_tmout'])
{
header("Content-type: text/plain");
exit("Please click 'Logout' to get login window to login first!");
}
else
{
if(isset($_POST['IP']))
{
$IP=$_POST['IP'];
if(isset($_POST['port']))
$port=$_POST['port'];
else
$port="UNKNOWN";
$IP_Pure=substr($IP, 0, strlen($IP)-strlen(strchr($IP, '%')));
$dv=substr($IP_Pure, strlen($IP_Pure)-2, 2);
if($port != "NONE" && $port!="UNKNOWN")
$file="/var/portmon/".$dv."/".$IP."=".$port.".downwin";
else
$file="/var/portmon/".$dv."/".$IP.".downwin";
unlink($file);
}
else
{
header("Content-type: text/plain");
echo "IP address not given!!!";
}
$_SESSION['portmon_atime']=time();
}
?>
pmon_mntlist_cn.php 0000755 0001752 0001753 00000006742 12240356233 013213 0 ustar gwz gwz $_SESSION['portmon_atime']+$_SESSION['portmon_tmout'])
{
header("Content-type: text/plain");
echo "请点击'注销'以重新登录.";
return;
}
else
{
setlocale(LC_ALL, "zh_CN.utf8");
header("Content-type: text/html; charset=utf8");
printf("%s\n", '
');
printf("%s\n", '');
printf("%s\n", '');
printf("%s\n", '');
printf("
服务维护时段列表 \n");
printf("
\n\n\n");
printf("现在的时间是\n");
$ctime=time();
?>
');
printf("%s\n", '');
printf("%s\n", '');
printf("%s\n", 'IP地址 ');
printf("%s\n", '端口 ');
printf("%s\n", '起始时间 ');
printf("%s\n", '结束时间 ');
printf("%s\n", '动作 ');
printf("%s\n", ' ');
printf("%s\n", ' ');
printf("%s\n", ' ');
$tdp=opendir("/var/portmon");
while( ($tfile=readdir($tdp)) !== false)
{
if(strcmp($tfile, ".")!=0 && strcmp($tfile, "..")!=0)
{
$st=stat("/var/portmon/".$tfile);
if(($st['mode'] & 0170000) != 0040000) // not a dir
continue;
$sdp=opendir("/var/portmon/".$tfile);
while( ($file=readdir($sdp)) !== false)
{
if(($type=strstr($file, ".downwin"))!==false)
{
$fp=fopen("/var/portmon/".$tfile."/".$file, 'r');
$eqsign=strchr($file, '=');
$dotsign=strrchr($file, '.');
if($eqsign!=FALSE)
{
$Server=substr($file, 0, strlen($file)-strlen($eqsign));
$port=substr($file, strlen($file)-strlen($eqsign)+1, strlen($eqsign)-strlen($dotsign)-1);
}
else
{
$port="NONE";
$Server=substr($file, 0, strlen($file)-strlen(strrchr($file, '.')));
}
fscanf($fp, "%d %d", $startt, $stopt);
fclose($fp);
if($ctime < $stopt )
{
?>
\n");
printf("
\n");
printf("\n");
$_SESSION['portmon_atime']=time();
}
?>
pmon_mntlist.php 0000755 0001752 0001753 00000006754 12240356740 012541 0 ustar gwz gwz $_SESSION['portmon_atime']+$_SESSION['portmon_tmout'])
{
header("Content-type: text/plain");
echo "Please click 'Logout' to get login window to login first!";
return;
}
else
{
header("Content-type: text/html; charset=utf8");
printf("%s\n", '
');
printf("%s\n", '');
printf("%s\n", '');
printf("%s\n", '');
printf("
Service Maintenance Window List \n");
printf("
\n\n\n");
printf("Current time\n");
$ctime=time();
?>
');
printf("%s\n", '');
printf("%s\n", '');
printf("%s\n", 'Service IP ');
printf("%s\n", 'Port ');
printf("%s\n", 'Start Time ');
printf("%s\n", 'End Time ');
printf("%s\n", 'Action ');
printf("%s\n", ' ');
printf("%s\n", ' ');
printf("%s\n", ' ');
$tdp=opendir("/var/portmon");
while( ($tfile=readdir($tdp)) != false)
{
if(strcmp($tfile, ".") != 0 && strcmp($tfile, "..") != 0)
{
$st=stat("/var/portmon/".$tfile);
if(($st['mode'] & 0170000) != 0040000) // not a dir
continue;
$sdp=opendir("/var/portmon/".$tfile);
while( ($file=readdir($sdp)) !== false)
{
if(($type=strstr($file, ".downwin"))!==false)
{
$fp=fopen("/var/portmon/".$tfile."/".$file, 'r');
$eqsign=strchr($file, '=');
$dotsign=strrchr($file, '.');
if($eqsign!=FALSE)
{
$Server=substr($file, 0, strlen($file)-strlen($eqsign));
$port=substr($file, strlen($file)-strlen($eqsign)+1,
strlen($eqsign)-strlen($dotsign)-1);
}
else
{
$port="NONE";
$Server=substr($file, 0, strlen($file)-strlen(strrchr($file, '.')));
}
fscanf($fp, "%d %d", $startt, $stopt);
fclose($fp);
if( $ctime < $stopt )
{
?>
\n");
printf("
\n");
printf("\n");
$_SESSION['portmon_atime']=time();
}
?>
pmonmodify_cn.php 0000755 0001752 0001753 00000006201 12704335654 012650 0 ustar gwz gwz $_SESSION['portmon_atime']+$_SESSION['portmon_tmout'])
{
$msg="请点击'注销'以重新登录.";
header("Content-type: text/plain; charset=UTF-8");
exit($msg);
}
else
{
$mname= isset($_POST['mname'])? $_POST['mname'] : "No Name";
/* ---- removed on 2016-04-16 --------
if($mname!="No Name")
{
system('CGI_LANG=eng mname="'.$mname.'" /opt/portmon/bin/pmonremove >/dev/null 2>&1');
}
-------------------------------------*/
$IP= isset($_POST['IP'])? $_POST['IP'] : "";
$port= isset($_POST['port'])? $_POST['port'] : "";
$ndlay= isset($_POST['ndlay'])? $_POST['ndlay'] : "";
$rint= isset($_POST['rint'])? $_POST['rint'] : "";
$alti= isset($_POST['alti'])? $_POST['alti'] : "";
$emails= isset($_POST['emails'])? $_POST['emails'] : "";
echo '
';
echo '
修改监测器 ';
echo '
';
$_SESSION['portmon_atime']=time();
}
?>
pmonmodify.php 0000755 0001752 0001753 00000006173 12704335614 012174 0 ustar gwz gwz $_SESSION['portmon_atime']+$_SESSION['portmon_tmout'])
{
header("Content-type: text/plain");
exit("Please click 'Logout' to get login window to login first!");
}
else
{
$mname= isset($_POST['mname'])? $_POST['mname'] : "No Name";
/* --- removed on 2016-04-16 --------
if($mname!="No Name")
{
system('CGI_LANG=eng mname="'.$mname.'" /opt/portmon/bin/pmonremove >/dev/null 2>&1');
}
------------------------------------*/
$IP= isset($_POST['IP'])? $_POST['IP'] : "";
$port= isset($_POST['port'])? $_POST['port'] : "";
$ndlay= isset($_POST['ndlay'])? $_POST['ndlay'] : "";
$rint= isset($_POST['rint'])? $_POST['rint'] : "";
$alti= isset($_POST['alti'])? $_POST['alti'] : "";
$emails= isset($_POST['emails'])? $_POST['emails'] : "";
echo '
';
echo '
Modify Service Monitor ';
echo '
';
$_SESSION['portmon_atime']=time();
}
?>
pmonremove_cn.php 0000755 0001752 0001753 00000001052 12240320162 012634 0 ustar gwz gwz $_SESSION['portmon_atime']+$_SESSION['portmon_tmout'])
{
$msg="请点击'注销'以重新登录.";
header("Content-type: text/plain; charset=UTF-8");
exit($msg);
}
else
{
$mname=isset($_POST['mname'])? $_POST['mname']:"";
$IP=isset($_POST['IP'])? $_POST['IP']:"";
$port=isset($_POST['port'])? $_POST['port']:"";
system("CGI_LANG=zh mname='$mname' IP='$IP' port='$port' /opt/portmon/bin/pmonremove");
$_SESSION['portmon_atime']=time();
}
?>
pmonremove.php 0000755 0001752 0001753 00000001050 12240320162 012152 0 ustar gwz gwz $_SESSION['portmon_atime']+$_SESSION['portmon_tmout'])
{
header("Content-type: text/plain");
exit("Please click 'Logout' to get login window to login first!");
}
else
{
$mname=isset($_POST['mname'])? $_POST['mname']:"";
$IP=isset($_POST['IP'])? $_POST['IP']:"";
$port=isset($_POST['port'])? $_POST['port']:"";
system("CGI_LANG=eng mname='$mname' IP='$IP' port='$port' /opt/portmon/bin/pmonremove");
$_SESSION['portmon_atime']=time();
}
?>
pmonrestart_cn.php 0000755 0001752 0001753 00000001625 12240320162 013031 0 ustar gwz gwz $_SESSION['portmon_atime']+$_SESSION['portmon_tmout'])
{
header("Content-type: text/plain");
exit("请~B~G'注~T~@'以~G~M~V~Y~U.");
}
$mname= isset($_POST['mname'])? $_POST['mname'] : "";
$IP= isset($_POST['IP'])? $_POST['IP'] : "";
$port= isset($_POST['port'])? $_POST['port'] : "";
$ndlay= isset($_POST['ndlay'])? $_POST['ndlay'] : "";
$rint= isset($_POST['rint'])? $_POST['rint'] : "";
$alti= isset($_POST['alti'])? $_POST['alti'] : "";
$emails= isset($_POST['emails'])? $_POST['emails'] : "";
header("Content-type: text/plain");
system("/opt/portmon/bin/pmonkillmonloop ".$IP."=".$port);
system("mname='$mname' IP='$IP' port='$port' ndlay='$ndlay' rint='$rint' alti='$alti' emails='$emails' /opt/portmon/bin/pmonloop_cn");
$_SESSION['portmon_atime']=time();
?>
pmonrestart.php 0000755 0001752 0001753 00000001641 12240320162 012347 0 ustar gwz gwz $_SESSION['portmon_atime']+$_SESSION['portmon_tmout'])
{
header("Content-type: text/plain");
exit("Please click 'Logout' to get login window to login first!");
}
$mname= isset($_POST['mname'])? $_POST['mname'] : "";
$IP= isset($_POST['IP'])? $_POST['IP'] : "";
$port= isset($_POST['port'])? $_POST['port'] : "";
$ndlay= isset($_POST['ndlay'])? $_POST['ndlay'] : "";
$rint= isset($_POST['rint'])? $_POST['rint'] : "";
$alti= isset($_POST['alti'])? $_POST['alti'] : "";
$emails= isset($_POST['emails'])? $_POST['emails'] : "";
header("Content-type: text/plain");
system("/opt/portmon/bin/pmonkillmonloop ".$IP."=".$port);
system("mname='$mname' IP='$IP' port='$port' ndlay='$ndlay' rint='$rint' alti='$alti' emails='$emails' /opt/portmon/bin/pmonloop");
$_SESSION['portmon_atime']=time();
?>
pmon_rm_cn.html 0000644 0001752 0001753 00000001162 12013025610 012266 0 ustar gwz gwz
删除服务监测器
pmon_rm.html 0000644 0001752 0001753 00000001041 12013025634 011610 0 ustar gwz gwz
Remove Service Monitor
pmonstateshow_cn.php 0000755 0001752 0001753 00000000657 12240356170 013402 0 ustar gwz gwz $_SESSION['portmon_atime']+$_SESSION['portmon_tmout'])
{
$msg="请点击'注销'以重新登录.";
header("Content-type: text/plain; charset=UTF-8");
echo $msg;
return;
}
else
{
header("Content-type: text/html; charset=GB_2312-80");
system("/opt/portmon/bin/pmonstateshow_cn");
$_SESSION['portmon_atime']=time();
}
?>
pmonstateshow.php 0000755 0001752 0001753 00000000652 12240356672 012724 0 ustar gwz gwz $_SESSION['portmon_atime']+$_SESSION['portmon_tmout'])
{
header("Content-type: text/plain");
echo "Please click 'Logout' to get login window to login first!";
return;
}
else
{
header("Content-type: text/html");
system("/opt/portmon/bin/pmonstateshow");
$_SESSION['portmon_atime']=time();
}
?>
pmon.tmout 0000644 0001752 0001753 00000000004 12240320162 011310 0 ustar gwz gwz 300
PortMon.js 0000644 0001752 0001753 00000074432 12240320162 011221 0 ustar gwz gwz /**
* Copyright (c)2005-2009 Matt Kruse (javascripttoolbox.com)
*
* Dual licensed under the MIT and GPL licenses.
* This basically means you can use this code however you want for
* free, but don't claim to have written it yourself!
* Donations always accepted: http://www.JavascriptToolbox.com/donate/
*
* Please do not link to the .js files on javascripttoolbox.com from
* your site. Copy the files locally to your server instead.
*
*/
/**
* Table.js
* Functions for interactive Tables
*
* Copyright (c) 2007 Matt Kruse (javascripttoolbox.com)
* Dual licensed under the MIT and GPL licenses.
*
* @version 0.981
*
* @history 0.981 2007-03-19 Added Sort.numeric_comma, additional date parsing formats
* @history 0.980 2007-03-18 Release new BETA release pending some testing. Todo: Additional docs, examples, plus jQuery plugin.
* @history 0.959 2007-03-05 Added more "auto" functionality, couple bug fixes
* @history 0.958 2007-02-28 Added auto functionality based on class names
* @history 0.957 2007-02-21 Speed increases, more code cleanup, added Auto Sort functionality
* @history 0.956 2007-02-16 Cleaned up the code and added Auto Filter functionality.
* @history 0.950 2006-11-15 First BETA release.
*
* @todo Add more date format parsers
* @todo Add style classes to colgroup tags after sorting/filtering in case the user wants to highlight the whole column
* @todo Correct for colspans in data rows (this may slow it down)
* @todo Fix for IE losing form control values after sort?
*/
/**
* Sort Functions
*/
var Sort = (function(){
var sort = {};
// Default alpha-numeric sort
// --------------------------
sort.alphanumeric = function(a,b) {
return (a==b)?0:(a
0) {
var rows = section.rows;
for (var j=0,L2=rows.length; j0) {
var cells = row.cells;
for (var k=0,L3=cells.length; k1 && cells[cells.length-1].cellIndex>0) {
// Define the new function, overwrite the one we're running now, and then run the new one
(this.getCellIndex = function(td) {
return td.cellIndex;
})(td);
}
// Safari will always go through this slower block every time. Oh well.
for (var i=0,L=cells.length; i=0 && node.options) {
// Sort select elements by the visible text
return node.options[node.selectedIndex].text;
}
return "";
},
'IMG':function(node) {
return node.name || "";
}
};
/**
* Get the text value of a cell. Only use innerText if explicitly told to, because
* otherwise we want to be able to handle sorting on inputs and other types
*/
table.getCellValue = function(td,useInnerText) {
if (useInnerText && def(td.innerText)) {
return td.innerText;
}
if (!td.childNodes) {
return "";
}
var childNodes=td.childNodes;
var ret = "";
for (var i=0,L=childNodes.length; i-1) {
filters={ 'filter':filters.options[filters.selectedIndex].value };
}
// Also allow for a regular input
if (filters.nodeName=="INPUT" && filters.type=="text") {
filters={ 'filter':"/^"+filters.value+"/" };
}
// Force filters to be an array
if (typeof(filters)=="object" && !filters.length) {
filters = [filters];
}
// Convert regular expression strings to RegExp objects and function strings to function objects
for (var i=0,L=filters.length; ipageend) {
hideRow = true;
}
}
}
row.style.display = hideRow?"none":"";
}
}
if (def(page)) {
// Check to see if filtering has put us past the requested page index. If it has,
// then go back to the last page and show it.
if (pagestart>=unfilteredrowcount) {
pagestart = unfilteredrowcount-(unfilteredrowcount%pagesize);
tdata.page = page = pagestart/pagesize;
for (var i=pagestart,L=unfilteredrows.length; i0) {
if (typeof(args.insert)=="function") {
func.insert(cell,colValues);
}
else {
var sel = ''+table.FilterAllLabel+' ';
for (var i=0; i'+colValues[i]+'';
}
sel += ' ';
cell.innerHTML += " "+sel;
}
}
}
});
if (val = classValue(t,table.FilteredRowcountPrefix)) {
tdata.container_filtered_count = document.getElementById(val);
}
if (val = classValue(t,table.RowcountPrefix)) {
tdata.container_all_count = document.getElementById(val);
}
};
/**
* Attach the auto event so it happens on load.
* use jQuery's ready() function if available
*/
if (typeof(jQuery)!="undefined") {
jQuery(table.auto);
}
else if (window.addEventListener) {
window.addEventListener( "load", table.auto, false );
}
else if (window.attachEvent) {
window.attachEvent( "onload", table.auto );
}
return table;
})();
sortable.gif 0000644 0001752 0001753 00000000104 12240320162 011550 0 ustar gwz gwz GIF89a ! ,
/~oiY>R ; sorted_down.gif 0000644 0001752 0001753 00000000115 12240320162 012266 0 ustar gwz gwz GIF89a ! ,
/~HBIRrg* ; sorted_up.gif 0000644 0001752 0001753 00000000115 12240320162 011743 0 ustar gwz gwz GIF89a ! , /~ HBIRrg* ;