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
ab399330
Kaydet (Commit)
ab399330
authored
Şub 01, 2019
tarafından
mertcelen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Server names now unique.
Server add now discovers installed extensions.
üst
dcc4f95c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
AddController.php
app/Http/Controllers/Server/AddController.php
+22
-1
liman.js
public/js/liman.js
+1
-0
console.php
routes/console.php
+1
-1
No files found.
app/Http/Controllers/Server/AddController.php
Dosyayı görüntüle @
ab399330
...
...
@@ -9,9 +9,21 @@ use Auth;
class
AddController
extends
Controller
{
/**
* @var \App\Server
*/
public
$server
;
public
function
main
(){
public
function
main
()
{
// Check if name is already in use.
if
(
Server
::
where
([
'user_id'
=>
auth
()
->
id
(),
"name"
=>
request
(
'name'
)
])
->
exists
()){
return
respond
(
"Bu sunucu ismiyle bir sunucunuz zaten var."
,
201
);
}
// Create object with parameters.
$this
->
server
=
new
Server
(
request
()
->
all
());
...
...
@@ -77,6 +89,15 @@ class AddController extends Controller
return
respond
(
"SSH Hatası"
,
401
);
}
foreach
(
extensions
()
as
$extension
){
if
(
$this
->
server
->
isRunning
(
$extension
->
service
)
==
"active
\n
"
){
$extensions_array
=
$this
->
server
->
extensions
;
$extensions_array
[
$extension
->
_id
]
=
[];
$this
->
server
->
extensions
=
$extensions_array
;
$this
->
server
->
save
();
}
};
return
$this
->
grantPermissions
();
}
...
...
public/js/liman.js
Dosyayı görüntüle @
ab399330
...
...
@@ -125,6 +125,7 @@ function dismissNotification(id) {
checkNotifications
();
});
}
let
inputs
=
[];
let
modalData
=
[];
...
...
routes/console.php
Dosyayı görüntüle @
ab399330
...
...
@@ -51,7 +51,7 @@ Artisan::command('import',function(){
});
Artisan
::
command
(
'export'
,
function
(){
$model
=
\App\Extension
::
where
(
'_id'
,
'5c4
56c958f2fa510fa60da82
'
)
->
first
();
$model
=
\App\Extension
::
where
(
'_id'
,
'5c4
884c68f2fa558e309f045
'
)
->
first
();
$path
=
resource_path
(
'views'
.
DIRECTORY_SEPARATOR
.
'extensions'
.
DIRECTORY_SEPARATOR
.
strtolower
(
$model
->
name
));
$zip
=
new
ZipArchive
();
$zip
->
open
(
'/liman/export/deneme.lmne'
,
ZipArchive
::
CREATE
|
ZipArchive
::
OVERWRITE
);
...
...
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