This website works better with JavaScript.
Help
Sign In
tentakelfabrik
/
mcp
Watch
1
Star
0
Fork
0
Code
Issues
8
Pull Requests
0
Releases
4
Wiki
Activity
Browse Source
adding
#45
master
Björn
4 years ago
parent
e1f1ec3d8c
commit
624983950e
2 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-3
app/Factories/NginxVhostFactory.php
+2
-0
app/Helpers/NginxVhostHelper.php
+ 1
- 3
app/Factories/NginxVhostFactory.php
View File
@ -137,9 +137,7 @@ class NginxVhostFactory
->
addLineBreak
(
'-'
);
if
(
$vhost
[
'ssl'
]
===
true
)
{
var_dump
(
$vhost
);
die
();
if
(
$vhost
[
'ssl_certificate_exists'
])
{
$builder
->
addStaticItem
(
'expired_at: '
.
$vhost
[
'ssl_certificate_expired_at'
]);
}
else
{
+ 2
- 0
app/Helpers/NginxVhostHelper.php
View File
@ -83,6 +83,8 @@ class NginxVhostHelper
if
(
count
(
$matches
)
>=
2
)
{
$result
[
'ssl'
]
=
true
;
var_dump
(
$matches
);
die
();
if
(
file_exists
(
$matches
[
0
])
&&
file_exists
(
$matches
[
1
]))
{
$result
[
'ssl_certificate_exists'
]
=
true
;
}
Write
Preview
Loading…
Cancel
Save