|
42 | 42 | switch ($vscanner) { |
43 | 43 | case 'antivir': |
44 | 44 | $scanner[$vscanner]['name'] = 'AntiVir'; |
45 | | - $scanner[$vscanner]['regexp'] = "/ALERT: \[(?P<virus>\S+) \S+\]/"; |
| 45 | + $scanner[$vscanner]['regexp'] = '/ALERT: \[(?P<virus>\S+) \S+\]/'; |
46 | 46 | break; |
47 | 47 | case 'avast': |
48 | 48 | case 'avastd': |
|
51 | 51 | break; |
52 | 52 | case 'avg': |
53 | 53 | $scanner[$vscanner]['name'] = 'AVG'; |
54 | | - $scanner[$vscanner]['regexp'] = "/Found virus (?P<virus>\S+) in file (?P<file>\S+)/"; |
| 54 | + $scanner[$vscanner]['regexp'] = '/Found virus (?P<virus>\S+) in file (?P<file>\S+)/'; |
55 | 55 | break; |
56 | 56 | case 'bitdefender': |
57 | 57 | $scanner[$vscanner]['name'] = 'BitDefender'; |
58 | | - $scanner[$vscanner]['regexp'] = "/(?P<file>.+) Found virus (?P<virus>\S+)/"; |
| 58 | + $scanner[$vscanner]['regexp'] = '/(?P<file>.+) Found virus (?P<virus>\S+)/'; |
59 | 59 | break; |
60 | 60 | case 'clamav': |
61 | 61 | $scanner[$vscanner]['name'] = 'ClamAV'; |
62 | | - $scanner[$vscanner]['regexp'] = "/(?P<file>.+) contains (?P<virus>\S+)/"; |
| 62 | + $scanner[$vscanner]['regexp'] = '/(?P<file>.+) contains (?P<virus>\S+)/'; |
63 | 63 | break; |
64 | 64 | case 'clamd': |
65 | 65 | $scanner[$vscanner]['name'] = 'ClamD'; |
66 | | - $scanner[$vscanner]['regexp'] = "/(?P<file>.+) was infected: (?P<virus>\S+)/"; |
| 66 | + $scanner[$vscanner]['regexp'] = '/(?P<file>.+) was infected: (?P<virus>\S+)/'; |
67 | 67 | break; |
68 | 68 | case 'clamavmodule': |
69 | 69 | $scanner[$vscanner]['name'] = 'Clam AV Module'; |
70 | | - $scanner[$vscanner]['regexp'] = "/(?P<file>.+) was infected: (?P<virus>\S+)/"; |
| 70 | + $scanner[$vscanner]['regexp'] = '/(?P<file>.+) was infected: (?P<virus>\S+)/'; |
71 | 71 | break; |
72 | 72 | case 'esets': |
73 | 73 | case 'esetsefs': |
|
76 | 76 | break; |
77 | 77 | case 'etrust': |
78 | 78 | $scanner[$vscanner]['name'] = 'E-Trust'; |
79 | | - $scanner[$vscanner]['regexp'] = "/(?P<file>\S+) is infected by virus: (?P<virus>\S+)/"; |
| 79 | + $scanner[$vscanner]['regexp'] = '/(?P<file>\S+) is infected by virus: (?P<virus>\S+)/'; |
80 | 80 | break; |
81 | 81 | case 'f-prot': |
82 | 82 | case 'f-prot-6': |
83 | 83 | case 'f-protd-6': |
84 | 84 | $scanner[$vscanner]['name'] = 'F-Prot'; |
85 | | - $scanner[$vscanner]['regexp'] = "/(?P<file>.+) Infection: (?P<virus>\S+)/"; |
| 85 | + $scanner[$vscanner]['regexp'] = '/(?P<file>.+) Infection: (?P<virus>\S+)/'; |
86 | 86 | break; |
87 | 87 | case 'f-secure': |
88 | 88 | case 'f-secure-12': |
89 | 89 | $scanner[$vscanner]['name'] = 'F-Secure'; |
90 | | - $scanner[$vscanner]['regexp'] = "/(?P<file>.+) Infected: (?P<virus>\S+)/"; |
| 90 | + $scanner[$vscanner]['regexp'] = '/(?P<file>.+) Infected: (?P<virus>\S+)/'; |
91 | 91 | break; |
92 | 92 | case 'kaspersky-4.5': |
93 | 93 | case 'kaspersky': |
94 | 94 | case 'kse': |
95 | 95 | $scanner[$vscanner]['name'] = 'Kaspersky'; |
96 | | - $scanner[$vscanner]['regexp'] = "/(?P<file>.+) INFECTED (?P<virus>\S+)/"; |
| 96 | + $scanner[$vscanner]['regexp'] = '/(?P<file>.+) INFECTED (?P<virus>\S+)/'; |
97 | 97 | break; |
98 | 98 | case 'mcafee': |
99 | 99 | case 'mcafee6': |
100 | 100 | $scanner[$vscanner]['name'] = 'McAfee'; |
101 | | - $scanner[$vscanner]['regexp'] = "/(?P<file>.+) Found the (?P<virus>\S+) (trojan|virus) !!!/"; |
| 101 | + $scanner[$vscanner]['regexp'] = '/(?P<file>.+) Found the (?P<virus>\S+) (trojan|virus) !!!/'; |
102 | 102 | break; |
103 | 103 | case 'norman': |
104 | 104 | $scanner[$vscanner]['name'] = 'Norman'; |
105 | | - $scanner[$vscanner]['regexp'] = "/Found virus (?P<virus>\S+) in file (?P<file>\S+)/"; |
| 105 | + $scanner[$vscanner]['regexp'] = '/Found virus (?P<virus>\S+) in file (?P<file>\S+)/'; |
106 | 106 | break; |
107 | 107 | case 'nod32-1.99': |
108 | 108 | $scanner[$vscanner]['name'] = 'NOD32'; |
109 | | - $scanner[$vscanner]['regexp'] = "/Found virus (?P<virus>\S+) in (?P<file>\S+)/"; |
| 109 | + $scanner[$vscanner]['regexp'] = '/Found virus (?P<virus>\S+) in (?P<file>\S+)/'; |
110 | 110 | break; |
111 | 111 | case 'sophos': |
112 | 112 | $scanner[$vscanner]['name'] = 'Sophos'; |
113 | | - $scanner[$vscanner]['regexp'] = "/>>> Virus \'(?P<virus>\S+)\' found in (?P<file>\S+)/"; |
| 113 | + $scanner[$vscanner]['regexp'] = '/>>> Virus \\\'(?P<virus>\S+)\\\' found in (?P<file>\S+)/'; |
114 | 114 | break; |
115 | 115 | case 'sophossavi': |
116 | 116 | $scanner[$vscanner]['name'] = 'Sophos SAVI'; |
117 | | - $scanner[$vscanner]['regexp'] = "/(?P<file>\S+) was infected by (?P<virus>\S+)/"; |
| 117 | + $scanner[$vscanner]['regexp'] = '/(?P<file>\S+) was infected by (?P<virus>\S+)/'; |
118 | 118 | break; |
119 | 119 | case 'trend': |
120 | 120 | $scanner[$vscanner]['name'] = 'Trend'; |
121 | | - $scanner[$vscanner]['regexp'] = "/Found virus (?P<virus>\S+) in file (?P<file>\S+)/"; |
| 121 | + $scanner[$vscanner]['regexp'] = '/Found virus (?P<virus>\S+) in file (?P<file>\S+)/'; |
122 | 122 | break; |
123 | 123 | } |
124 | 124 | } |
|
138 | 138 | date ASC, time ASC'; |
139 | 139 |
|
140 | 140 | $result = dbquery($sql); |
141 | | -if (!$result->num_rows > 0) { |
| 141 | +if (!($result->num_rows > 0)) { |
142 | 142 | exit(__('diemysql99') . "\n"); |
143 | 143 | } |
144 | 144 |
|
|
0 commit comments