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 9cf9b8b0
authored
2021-06-10 15:29:25 +0300
by
san58
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Поправил вычисление даты CSV
1 parent
1de28f6a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
controllers/SiteController.php
controllers/SiteController.php
View file @
9cf9b8b
...
@@ -68,6 +68,7 @@ class SiteController extends Controller
...
@@ -68,6 +68,7 @@ class SiteController extends Controller
//var_dump(Yii::$app->user->isGuest);
//var_dump(Yii::$app->user->isGuest);
//var_dump(Yii::$app->user->identity);
//var_dump(Yii::$app->user->identity);
$statistics
=
[
'csv_date'
=>
''
,
'whois_status'
=>
[],
'itx_status'
=>
[],
'domain_count'
=>
0
,
'domain_filtred'
=>
0
,
'domain_whois'
=>
0
,
'domain_tix'
=>
0
];
$statistics
=
[
'csv_date'
=>
''
,
'whois_status'
=>
[],
'itx_status'
=>
[],
'domain_count'
=>
0
,
'domain_filtred'
=>
0
,
'domain_whois'
=>
0
,
'domain_tix'
=>
0
];
$statistics
[
'whois_status'
]
=
(
new
yii\db\Query
())
$statistics
[
'whois_status'
]
=
(
new
yii\db\Query
())
->
select
([
'COUNT(*) AS cnt'
,
'wis_status'
,
'status'
])
->
select
([
'COUNT(*) AS cnt'
,
'wis_status'
,
'status'
])
->
from
(
'{{%host}}'
)
->
from
(
'{{%host}}'
)
...
@@ -91,7 +92,7 @@ class SiteController extends Controller
...
@@ -91,7 +92,7 @@ class SiteController extends Controller
->
groupBy
([
'tix_status'
,
'status'
])
->
groupBy
([
'tix_status'
,
'status'
])
->
all
();
->
all
();
$csv
=
Host
::
find
()
->
select
([
'csv_date'
])
->
orderBy
(
'csv_date
A
SC'
)
->
one
();
$csv
=
Host
::
find
()
->
select
([
'csv_date'
])
->
orderBy
(
'csv_date
DE
SC'
)
->
one
();
if
(
$csv
)
if
(
$csv
)
$statistics
[
'csv_date'
]
=
$csv
[
'csv_date'
];
$statistics
[
'csv_date'
]
=
$csv
[
'csv_date'
];
...
...
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