Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Alto
/
rkn
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit d8a8ed2c
authored
2021-06-02 16:57:11 +0300
by
san58
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
получение данных whois через pr-cy
1 parent
b036aba8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
1 deletions
commands/WhoisController.php
config/params.php
commands/WhoisController.php
0 → 100644
View file @
d8a8ed2
<?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
()
{
}
}
\ No newline at end of file
\ No newline at end of file
config/params.php
View file @
d8a8ed2
...
@@ -6,6 +6,7 @@ return [
...
@@ -6,6 +6,7 @@ return [
'senderName'
=>
'Example.com mailer'
,
'senderName'
=>
'Example.com mailer'
,
'csv_url'
=>
'https://raw.githubusercontent.com/zapret-info/z-i/master/dump-00.csv'
,
'csv_url'
=>
'https://raw.githubusercontent.com/zapret-info/z-i/master/dump-00.csv'
,
'registrators_urls'
=>
[
'registrators_urls'
=>
[
'https://2ip.ua/ru/services/information-service/domain-information'
//'https://2ip.ua/ru/services/information-service/domain-information'
'https://www.cy-pr.com/tools/masswhois/'
]
]
];
];
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment