forked from BackCheck/backcheck.io.verify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcase_report.php
More file actions
56 lines (47 loc) · 1.54 KB
/
case_report.php
File metadata and controls
56 lines (47 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
include('include/config.php');
$mystring = $_SERVER['HTTP_REFERER'];
$findme = 'google';
$pos = strpos($mystring, $findme);
// The !== operator can also be used. Using != would not work as expected
// because the position of 'a' is 0. The statement (0 != false) evaluates
// to false.
if ($pos !== false) {
@header("location:https://backcheckgroup.com/");
die;
}
if(is_numeric($_REQUEST['id']) && is_numeric($_REQUEST['plogid'])){
$case = $_REQUEST['plogid'];
$ascase = $_REQUEST['id'];
$access=true;
}else $access=false;
if($access){
$db = new DB();
$varData = $db->select("ver_data","*","v_id=$case");
if($ascase!=0){
$asWhere = "v_id=$case AND as_id=$ascase AND as_status='Close'";
}else{
$asWhere = "v_id=$case AND as_status='Close' AND as_isdlt=0";
}
$asDatas = $db->select("ver_checks","*",$asWhere);
if((mysql_num_rows($varData)>0) && (mysql_num_rows($asDatas)>0)){
$varData = mysql_fetch_array($varData);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>View Report</title>
<link rel="stylesheet" type="text/css" href="css/reportcss.css">
</head>
<body>
<?php include("include_pages/case_report_inc.php"); ?>
</body>
</html>
<?php }
}else{ ?>
<div class="norc">
<h1 style="margin-top:10%" align="center">No Record Found</h1>
</div>
<?php } ?>