WhoisController.php
766 Bytes
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
<?php
namespace app\commands;
use yii;
use yii\console\Controller;
use yii\db\Expression;
use yii\helpers\Console;
use app\components\Collection;
use app\models\Host;
/**
* Парсинг запрещенных ресурсов в РФ.
*/
class WhoisController extends Controller
{
public $file = '';
public function beforeAction($action)
{
if (!parent::beforeAction($action)) {
return false;
}
return true;
}
public function options($actionID)
{
return ['count'];
}
public function optionAliases()
{
return ['c' => 'count'];
}
/**
* Парсинг запрещенных ресурсов в РФ.
*/
public function actionIndex()
{
}
}