Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
L
Liman MYS - Çekirdek
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
liman
Liman MYS - Çekirdek
Commits
0188b233
Kaydet (Commit)
0188b233
authored
Haz 28, 2020
tarafından
mertcelen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Market controls improved
Certificate interface improved.
üst
e5eb2303
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
17 deletions
+38
-17
.env.example
.env.example
+2
-1
MarketController.php
app/Http/Controllers/MarketController.php
+20
-0
index.blade.php
resources/views/server/index.blade.php
+2
-3
certificate.blade.php
resources/views/settings/certificate.blade.php
+13
-12
index.blade.php
resources/views/settings/index.blade.php
+1
-1
No files found.
.env.example
Dosyayı görüntüle @
0188b233
...
...
@@ -12,6 +12,6 @@ EXTENSION_DEVELOPER_MODE=false
QUEUE_DRIVER=database
NAV_EXTENSION_HIDE_COUNT=10
BRAND_NAME="Havelsan © 2020"
MARKET_URL=
MARKET_URL=
https://market.mcelen.dev
MARKET_CLIENT_ID=
MARKET_CLIENT_SECRET=
\ No newline at end of file
app/Http/Controllers/MarketController.php
Dosyayı görüntüle @
0188b233
...
...
@@ -23,6 +23,19 @@ class MarketController extends Controller
return
respond
(
"Market Bağlantısı Başarıyla Sağlandı."
);
}
private
function
checkAccess
(
$hostname
,
$port
=
443
)
{
return
is_resource
(
@
fsockopen
(
$hostname
,
$port
,
$errno
,
$errstr
,
intval
(
config
(
'liman.server_connection_timeout'
))
)
);
}
public
function
checkMarketUpdates
()
{
$client
=
self
::
getClient
();
...
...
@@ -77,6 +90,13 @@ class MarketController extends Controller
private
function
getClient
()
{
if
(
!
self
::
checkAccess
(
env
(
"MARKET_URL"
))){
if
(
env
(
"MARKET_URL"
)
==
null
){
abort
(
504
,
"Market bağlantısı ayarlanmamış."
);
}
abort
(
504
,
env
(
"MARKET_URL"
)
.
" adresindeki markete bağlanılamadı!"
);
}
return
new
Client
([
"headers"
=>
[
"Accept"
=>
"application/json"
,
...
...
resources/views/server/index.blade.php
Dosyayı görüntüle @
0188b233
...
...
@@ -172,14 +172,14 @@
<option
value=
"SHA"
>
SHA
</option>
</select><br>
<h4>
{{__("Giriş Parolası")}}
</h4>
<input
id=
"SNMPauthPassword"
name=
"SNMPauthPassword"
type=
"password"
class=
"form-control snmp-input"
placeholder=
"{{__("
Giri
ş
Parolas
ı")}}"
required
disabled
><br>
<input
id=
"SNMPauthPassword"
name=
"SNMPauthPassword"
type=
"password"
class=
"form-control snmp-input"
placeholder=
"{{__("
Giri
ş
Parolas
ı")}}"
disabled
><br>
<h4>
{{__("Gizlilik Protokolü")}}
</h4>
<select
id=
"SNMPprivacyProtocol"
name=
"SNMPprivacyProtocol"
class=
"select2 snmp-input"
disabled
>
<option
value=
"DES"
>
DES
</option>
<option
value=
"AES"
>
AES
</option>
</select><br>
<h4>
{{__("Gizlilik Parolası")}}
</h4>
<input
id=
"SNMPprivacyPassword"
name=
"SNMPprivacyPassword"
type=
"password"
class=
"form-control snmp-input"
placeholder=
"{{__("
Gizlilik
Parolas
ı")}}"
required
disabled
><br>
<input
id=
"SNMPprivacyPassword"
name=
"SNMPprivacyPassword"
type=
"password"
class=
"form-control snmp-input"
placeholder=
"{{__("
Gizlilik
Parolas
ı")}}"
disabled
><br>
</div>
<h4>
{{__("Port")}}
</h4>
<small>
{{__("Eğer bilmiyorsanız varsayılan olarak bırakabilirsiniz.")}}
</small>
...
...
@@ -268,7 +268,6 @@
}
let
helper
;
function
checkKey
(
form
)
{
let
option
=
$
(
"#useKey"
);
if
(
option
.
is
(
':checked'
)
===
false
){
isKeyOK
=
true
;
...
...
resources/views/settings/certificate.blade.php
Dosyayı görüntüle @
0188b233
...
...
@@ -16,18 +16,19 @@
@if(request('server_id'))
<h5>{{server()->name . "
" . __("
sunucusu
talebi
.
")}}</h5>
@endif
<table class="
notDataTable
">
<tr>
<td>
{
{__("Hostname")}
}
</td>
<td><input type="
text
" name="
hostname
" class="
form
-
control
" id="
hostname
" value="
{{
request
(
'hostname'
)}}
"></td>
</tr>
<tr>
<td>
{
{__("Port")}
}
</td>
<td><input type="
number
" name="
port
" class="
form
-
control
" aria-valuemin="
1
" aria-valuemax="
65555
" id="
port
" value="
{{
request
(
'port'
)}}
"></td>
<td><button onclick="
retrieveCertificate
()
" class="
btn
btn
-
success
">
{
{__("Al")}
}
</button></td>
</tr>
</table>
<h3>{{__("
Sertifika
Bilgileri
")}}</h3>
<div class="
row
">
<div class="
col
-
md
-
4
">
<label for="
hostname
">
{
{__("Hostname")}
}
</label>
<input type="
text
" name="
hostname
" class="
form
-
control
" id="
hostname
" value="
{{
request
(
'hostname'
)}}
"></td>
</div>
<div class="
col
-
md
-
4
">
<label for="
port
">
{
{__("Port")}
}
</label>
<input type="
number
" name="
port
" class="
form
-
control
" aria-valuemin="
1
" aria-valuemax="
65555
" id="
port
" value="
{{
request
(
'port'
)}}
">
</div>
<div class="
col
-
md
-
4
" style="
line
-
height
:
95
px
">
<button onclick="
retrieveCertificate
()
" class="
btn
btn
-
success
">
{
{__("Al")}
}
</button>
</div>
</div>
<div class="
row
">
<div class="
col
-
md
-
4
">
<div class="
box
box
-
solid
">
...
...
resources/views/settings/index.blade.php
Dosyayı görüntüle @
0188b233
...
...
@@ -106,7 +106,7 @@
"
menu
" => [
"
Güncelle
" => [
"
target
" => "
updateCertificate
",
"
icon
" => "
context
-
menu
-
icon
-
update
"
"
icon
" => "
fa
-
sync
-
alt
"
],
"
Sil
" => [
"
target
" => "
deleteCertificate
",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment