Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webprofile-jwg2024
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Siti Aisah
webprofile-jwg2024
Commits
7f60268d
Commit
7f60268d
authored
Aug 05, 2020
by
Aan Choesni Herlingga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update table key and meta tag keys
parent
239fee29
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
83 additions
and
5 deletions
+83
-5
app/Http/Controllers/Webprofile/Backend/UpdateController.php
+10
-4
database/migrations/2020_08_05_104826_update_key_migration.php
+33
-0
resources/views/webprofile/backend/update/result.blade.php
+1
-1
resources/views/webprofile/front/jollyany/archive.blade.php
+9
-0
resources/views/webprofile/front/jollyany/download.blade.php
+9
-0
resources/views/webprofile/front/jollyany/information.blade.php
+7
-0
resources/views/webprofile/front/jollyany/page.blade.php
+7
-0
resources/views/webprofile/front/jollyany/post.blade.php
+7
-0
No files found.
app/Http/Controllers/Webprofile/Backend/UpdateController.php
View file @
7f60268d
...
@@ -20,24 +20,30 @@ class UpdateController extends Controller
...
@@ -20,24 +20,30 @@ class UpdateController extends Controller
$repository
=
env
(
'GIT_REPOSITORY'
,
'lorem'
);
$repository
=
env
(
'GIT_REPOSITORY'
,
'lorem'
);
$command
=
'git pull http://'
.
$username
.
':'
.
$password
.
'@'
.
$repository
.
' master'
;
$command
=
'git pull http://'
.
$username
.
':'
.
$password
.
'@'
.
$repository
.
' master'
;
$data
=
$request
->
tokenkey
;
$data
=
$request
->
tokenkey
;
$line
=
'Token Tidak Valid'
;
$line
=
'Token Tidak Valid'
;
if
(
$data
==
env
(
'TOKEN_KEY'
,
'lorem'
))
{
if
(
$data
==
env
(
'TOKEN_KEY'
,
'lorem'
))
{
$line
=
null
;
$line
s
=
null
;
$result
=
array
();
$result
=
array
();
exec
(
$command
,
$result
);
exec
(
$command
,
$result
);
foreach
(
$result
as
$line
)
{
foreach
(
$result
as
$line
)
{
$line
.
"
\n
"
;
$line
s
=
$lines
.
$line
.
'<br>'
;
}
}
if
(
$line
==
null
)
{
if
(
$line
==
null
)
{
$line
=
'Whoops something when wrong!! Check your username and password'
;
$line
=
'Whoops something when wrong!! Check your username and password'
;
}
}
$command
=
'cd .. && php artisan migrate'
;
exec
(
$command
,
$resultMigrate
);
foreach
(
$resultMigrate
as
$lineMigration
)
{
$lines
=
$lines
.
$lineMigration
.
'<br>'
;
}
}
}
$data
=
[
$data
=
[
'data'
=>
$line
,
'data'
=>
$line
s
,
];
];
return
view
(
'webprofile.backend.update.result'
,
$data
);
return
view
(
'webprofile.backend.update.result'
,
$data
);
...
...
database/migrations/2020_08_05_104826_update_key_migration.php
0 → 100644
View file @
7f60268d
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
UpdateKeyMigration
extends
Migration
{
/**
* Run the migrations.
*/
public
function
up
()
{
Schema
::
table
(
'swp_posts'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'keys'
)
->
nullable
();
});
Schema
::
table
(
'swp_pages'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'keys'
)
->
nullable
();
});
Schema
::
table
(
'swp_informations'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'keys'
)
->
nullable
();
});
}
/**
* Reverse the migrations.
*/
public
function
down
()
{
}
}
resources/views/webprofile/backend/update/result.blade.php
View file @
7f60268d
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
{!! Form::close() !!}
{!! Form::close() !!}
<div style="
padding
-
left
:
10
px
;
padding
-
top
:
15
px
;
">
<div style="
padding
-
left
:
10
px
;
padding
-
top
:
15
px
;
">
{
{
$data
}
}
{
!!
$data
!!
}
</div>
</div>
</div>
</div>
</div>
</div>
...
...
resources/views/webprofile/front/jollyany/archive.blade.php
View file @
7f60268d
@
extends
(
'webprofile.front.jollyany.master'
)
@
extends
(
'webprofile.front.jollyany.master'
)
@
section
(
'meta'
)
<
meta
name
=
"{{ Str::slug(
$setting['web_title']
) }}"
content
=
"custom"
/>
<
meta
name
=
"description"
content
=
"{{
$setting['web_title']
}}"
>
@
if
(
array_key_exists
(
'default_keyword'
,
$setting
))
<
meta
name
=
"keywords"
content
=
"{{
$setting['default_keyword']
}}"
>
@
endif
<
meta
name
=
"author"
content
=
"{{
$setting['web_title']
}}"
>
@
endsection
@
section
(
'content'
)
@
section
(
'content'
)
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
<div class="
container
">
<div class="
container
">
...
...
resources/views/webprofile/front/jollyany/download.blade.php
View file @
7f60268d
@
extends
(
'webprofile.front.jollyany.master'
)
@
extends
(
'webprofile.front.jollyany.master'
)
@
section
(
'meta'
)
<
meta
name
=
"{{ Str::slug(
$setting['web_title']
) }}"
content
=
"custom"
/>
<
meta
name
=
"description"
content
=
"{{
$setting['web_title']
}}"
>
@
if
(
array_key_exists
(
'default_keyword'
,
$setting
))
<
meta
name
=
"keywords"
content
=
"{{
$setting['default_keyword']
}}"
>
@
endif
<
meta
name
=
"author"
content
=
"{{
$setting['web_title']
}}"
>
@
endsection
@
section
(
'content'
)
@
section
(
'content'
)
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
<div class="
container
">
<div class="
container
">
...
...
resources/views/webprofile/front/jollyany/information.blade.php
View file @
7f60268d
@
extends
(
'webprofile.front.jollyany.master'
)
@
extends
(
'webprofile.front.jollyany.master'
)
@
section
(
'meta'
)
<
meta
name
=
"{{ Str::slug(
$data->title
) }}"
content
=
"custom"
/>
<
meta
name
=
"description"
content
=
"{{ {!! strip_tags(substr(html_entity_decode(
$value->content
,ENT_COMPAT,"
UTF
-
8
"),0 , 200)) !!} }}"
>
<
meta
name
=
"keywords"
content
=
"{{
$data->keys
}}"
>
<
meta
name
=
"author"
content
=
"{{
$setting['header_admin']
}}"
>
@
endsection
@
section
(
'content'
)
@
section
(
'content'
)
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
<div class="
container
">
<div class="
container
">
...
...
resources/views/webprofile/front/jollyany/page.blade.php
View file @
7f60268d
@
extends
(
'webprofile.front.jollyany.master'
)
@
extends
(
'webprofile.front.jollyany.master'
)
@
section
(
'meta'
)
<
meta
name
=
"{{ Str::slug(
$data->title
) }}"
content
=
"custom"
/>
<
meta
name
=
"description"
content
=
"{{ {!! strip_tags(substr(html_entity_decode(
$value->content
,ENT_COMPAT,"
UTF
-
8
"),0 , 200)) !!} }}"
>
<
meta
name
=
"keywords"
content
=
"{{
$data->keys
}}"
>
<
meta
name
=
"author"
content
=
"{{
$setting['header_admin']
}}"
>
@
endsection
@
section
(
'content'
)
@
section
(
'content'
)
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
<div class="
container
">
<div class="
container
">
...
...
resources/views/webprofile/front/jollyany/post.blade.php
View file @
7f60268d
@
extends
(
'webprofile.front.jollyany.master'
)
@
extends
(
'webprofile.front.jollyany.master'
)
@
section
(
'meta'
)
<
meta
name
=
"{{ Str::slug(
$data->title
) }}"
content
=
"custom"
/>
<
meta
name
=
"description"
content
=
"{{ {!! strip_tags(substr(html_entity_decode(
$value->content
,ENT_COMPAT,"
UTF
-
8
"),0 , 200)) !!} }}"
>
<
meta
name
=
"keywords"
content
=
"{{
$data->keys
}}"
>
<
meta
name
=
"author"
content
=
"{{
$setting['header_admin']
}}"
>
@
endsection
@
section
(
'content'
)
@
section
(
'content'
)
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
<div class="
container
">
<div class="
container
">
...
...
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