index.php
5.99 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<?php
use app\assets\MainAsset;
use app\models\Host;
$this->title = Yii::$app->name.' - Home';
MainAsset::register($this);
/*echo '<pre>';
print_r($statistics);
echo '</pre>';
*/
?>
<h2>Statistics</h2>
<dl class="dl-horizontal">
<dt>Current datatime</dt>
<dd><?php echo date('Y.m.d H:i:s'); ?></dd>
<dt>Datatime of CSV-file </dt>
<dd><?php echo $statistics['csv_date']; ?></dd>
</dl>
<h3>Domain count</h3>
<dl class="dl-horizontal">
<dt>All</dt>
<dd><?php echo $statistics['domain_count']; ?></dd>
<dt>Filtred</dt>
<dd><?php echo $statistics['domain_filtred']; ?></dd>
<dt>Whois checked</dt>
<dd><?php echo $statistics['domain_whois']; ?></dd>
<dt>TIX checked</dt>
<dd><?php echo $statistics['domain_tix']; ?></dd>
</dl>
<?php
$domain_count = [
Host::STATUS_WIS_NONE=>[0,0],
Host::STATUS_WIS_FREE=>[0,0],
Host::STATUS_WIS_BUSY=>[0,0]
];
foreach($statistics['whois_status'] as $st_value)
$domain_count[$st_value['wis_status']][(int)$st_value['status']] = (int)$st_value['cnt'];
unset($st_value);
?>
<h3>WHO IS</h3>
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped">
<tr>
<th width="40%">Status WhoIs checked</th>
<th width="20%">Count of Disabled</th>
<th width="20%">Count of Enabled</th>
<th width="20%">Count of All</th>
</tr>
<tr>
<td>No checked</td>
<td><?php echo $domain_count[Host::STATUS_WIS_NONE][0]; ?></td>
<td><?php echo $domain_count[Host::STATUS_WIS_NONE][1]; ?></td>
<td><?php echo $domain_count[Host::STATUS_WIS_NONE][0]+$domain_count[Host::STATUS_WIS_NONE][1]; ?></td>
</tr>
<tr>
<td>Busy</td>
<td><?php echo $domain_count[Host::STATUS_WIS_BUSY][0]; ?></td>
<td><?php echo $domain_count[Host::STATUS_WIS_BUSY][1]; ?></td>
<td><?php echo $domain_count[Host::STATUS_WIS_BUSY][0]+$domain_count[Host::STATUS_WIS_BUSY][1]; ?></td>
</tr>
<tr>
<td>Free</td>
<td><?php echo $domain_count[Host::STATUS_WIS_FREE][0]; ?></td>
<td><?php echo $domain_count[Host::STATUS_WIS_FREE][1]; ?></td>
<td><?php echo $domain_count[Host::STATUS_WIS_FREE][0]+$domain_count[Host::STATUS_WIS_FREE][1]; ?></td>
</tr>
<tr>
<th class="text-right">Total count</th>
<td><?php echo $domain_count[Host::STATUS_WIS_NONE][0]+$domain_count[Host::STATUS_WIS_BUSY][0]+$domain_count[Host::STATUS_WIS_FREE][0]; ?></td>
<td><?php echo $domain_count[Host::STATUS_WIS_NONE][1]+$domain_count[Host::STATUS_WIS_BUSY][1]+$domain_count[Host::STATUS_WIS_FREE][1]; ?></td>
<td><?php
echo $domain_count[Host::STATUS_WIS_NONE][0]+$domain_count[Host::STATUS_WIS_NONE][1]+
$domain_count[Host::STATUS_WIS_BUSY][0]+$domain_count[Host::STATUS_WIS_BUSY][1]+
$domain_count[Host::STATUS_WIS_FREE][0]+$domain_count[Host::STATUS_WIS_FREE][1];
?></td>
</tr>
</table>
</div>
<?php
$domain_count = [
Host::STATUS_TIX_UNCHECK=>[0,0],
Host::STATUS_TIX_CHECK=>[0,0],
];
foreach($statistics['itx_status'] as $st_value)
$domain_count[$st_value['tix_status']][(int)$st_value['status']] = (int)$st_value['cnt'];
unset($st_value);
?>
<h3>TIX</h3>
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped">
<tr>
<th width="40%">Status TIX checked</th>
<th width="20%">Count of Disabled</th>
<th width="20%">Count of Enabled</th>
<th width="20%">Count of All</th>
</tr>
<tr>
<td>No checked</td>
<td><?php echo $domain_count[Host::STATUS_TIX_UNCHECK][0]; ?></td>
<td><?php echo $domain_count[Host::STATUS_TIX_UNCHECK][1]; ?></td>
<td><?php echo $domain_count[Host::STATUS_TIX_UNCHECK][0]+$domain_count[Host::STATUS_TIX_UNCHECK][1]; ?></td>
</tr>
<tr>
<td>Checked</td>
<td><?php echo $domain_count[Host::STATUS_TIX_CHECK][0]; ?></td>
<td><?php echo $domain_count[Host::STATUS_TIX_CHECK][1]; ?></td>
<td><?php echo $domain_count[Host::STATUS_TIX_CHECK][0]+$domain_count[Host::STATUS_TIX_CHECK][1]; ?></td>
</tr>
<tr>
<th class="text-right">Total count</th>
<td><?php echo $domain_count[Host::STATUS_TIX_UNCHECK][0]+$domain_count[Host::STATUS_TIX_CHECK][0]; ?></td>
<td><?php echo $domain_count[Host::STATUS_TIX_UNCHECK][1]+$domain_count[Host::STATUS_TIX_CHECK][1]; ?></td>
<td><?php
echo $domain_count[Host::STATUS_TIX_UNCHECK][0]+$domain_count[Host::STATUS_TIX_UNCHECK][1]+
$domain_count[Host::STATUS_TIX_CHECK][0]+$domain_count[Host::STATUS_TIX_CHECK][1];
?></td>
</tr>
</table>
</div>
<?php
$domain_count = [
Host::STATUS_TIX_UNCHECK=>[0,0],
Host::STATUS_TIX_CHECK=>[0,0],
];
foreach($statistics['itx_status_pure'] as $st_value)
$domain_count[$st_value['tix_status']][(int)$st_value['status']] = (int)$st_value['cnt'];
unset($st_value);
?>
<h3>TIX pure</h3>
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped">
<tr>
<th width="40%">Status TIX checked</th>
<th width="20%">Count of Disabled</th>
<th width="20%">Count of Enabled</th>
<th width="20%">Count of All</th>
</tr>
<tr>
<td>No checked</td>
<td><?php echo $domain_count[Host::STATUS_TIX_UNCHECK][0]; ?></td>
<td><?php echo $domain_count[Host::STATUS_TIX_UNCHECK][1]; ?></td>
<td><?php echo $domain_count[Host::STATUS_TIX_UNCHECK][0]+$domain_count[Host::STATUS_TIX_UNCHECK][1]; ?></td>
</tr>
<tr>
<td>Checked</td>
<td><?php echo $domain_count[Host::STATUS_TIX_CHECK][0]; ?></td>
<td><?php echo $domain_count[Host::STATUS_TIX_CHECK][1]; ?></td>
<td><?php echo $domain_count[Host::STATUS_TIX_CHECK][0]+$domain_count[Host::STATUS_TIX_CHECK][1]; ?></td>
</tr>
<tr>
<th class="text-right">Total count</th>
<td><?php echo $domain_count[Host::STATUS_TIX_UNCHECK][0]+$domain_count[Host::STATUS_TIX_CHECK][0]; ?></td>
<td><?php echo $domain_count[Host::STATUS_TIX_UNCHECK][1]+$domain_count[Host::STATUS_TIX_CHECK][1]; ?></td>
<td><?php
echo $domain_count[Host::STATUS_TIX_UNCHECK][0]+$domain_count[Host::STATUS_TIX_UNCHECK][1]+
$domain_count[Host::STATUS_TIX_CHECK][0]+$domain_count[Host::STATUS_TIX_CHECK][1];
?></td>
</tr>
</table>
</div>