Update view_log.php
This commit is contained in:
@@ -141,20 +141,18 @@ if($perms[2]!=="1"){
|
|||||||
$logtext=$row["logtext"];
|
$logtext=$row["logtext"];
|
||||||
$machine_id=$row["machine_id"];
|
$machine_id=$row["machine_id"];
|
||||||
$show=true;
|
$show=true;
|
||||||
|
//evaluate filter, decide if entry should be shown or not
|
||||||
if(isset($_GET["loglevel"]) && $_GET["loglevel"]!==""){
|
if(isset($_GET["loglevel"]) && $_GET["loglevel"]!==""){
|
||||||
if(stripos($loglevel,$_GET["loglevel"])==false){
|
if(stripos($loglevel,$_GET["loglevel"])===false){
|
||||||
$show=false;
|
$show=false;
|
||||||
echo("1");
|
|
||||||
}
|
}
|
||||||
}if(isset($_GET["logtext"]) && $_GET["logtext"]!==""){
|
}if(isset($_GET["logtext"]) && $_GET["logtext"]!==""){
|
||||||
if(!stripos($logtext,$_GET["logtext"])){
|
if(!stripos($logtext,$_GET["logtext"])){
|
||||||
$show=false;
|
$show=false;
|
||||||
echo("2");
|
|
||||||
}
|
}
|
||||||
}if(isset($_GET["machine_id"]) && $_GET["machine_id"]!==""){
|
}if(isset($_GET["machine_id"]) && $_GET["machine_id"]!==""){
|
||||||
if(!stripos($machine_id,$_GET["machine_id"])){
|
if(!stripos($machine_id,$_GET["machine_id"])){
|
||||||
$show=false;
|
$show=false;
|
||||||
echo("3");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($show==true){
|
if($show==true){
|
||||||
|
|||||||
Reference in New Issue
Block a user