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
3b1bea1d
Commit
3b1bea1d
authored
Feb 23, 2023
by
Triyah Fatmawati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Span Allow
parent
a5750856
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
54 deletions
+54
-54
app/Http/Controllers/Webprofile/Backend/AgendaController.php
+18
-18
app/Http/Controllers/Webprofile/Backend/InformationController.php
+18
-18
app/Http/Controllers/Webprofile/Backend/PostController.php
+18
-18
No files found.
app/Http/Controllers/Webprofile/Backend/AgendaController.php
View file @
3b1bea1d
...
...
@@ -78,7 +78,7 @@ class AgendaController extends Controller
*/
public
function
store
(
Request
$request
)
{
$request
[
'content'
]
=
strip_tags
(
$request
->
content
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]);
$request
[
'content'
]
=
strip_tags
(
$request
->
content
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]);
$request
[
'title'
]
=
strip_tags
(
$request
->
title
);
$request
->
validate
([
'title'
=>
'required'
,
...
...
@@ -121,7 +121,7 @@ class AgendaController extends Controller
$data
[
'content'
]
=
'kosong'
;
}
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]));
$dataEn
[
'agenda_id'
]
=
$agenda
->
id
;
$dataEn
[
'title'
]
=
$title
;
...
...
@@ -139,7 +139,7 @@ class AgendaController extends Controller
$data
[
'content'
]
=
'kosong'
;
}
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]));
$dataDe
[
'agenda_id'
]
=
$agenda
->
id
;
$dataDe
[
'title'
]
=
$title
;
...
...
@@ -157,7 +157,7 @@ class AgendaController extends Controller
$data
[
'content'
]
=
'kosong'
;
}
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]));
$dataSa
[
'agenda_id'
]
=
$agenda
->
id
;
$dataSa
[
'title'
]
=
$title
;
...
...
@@ -175,7 +175,7 @@ class AgendaController extends Controller
$data
[
'content'
]
=
'kosong'
;
}
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]));
$dataZh
[
'agenda_id'
]
=
$agenda
->
id
;
$dataZh
[
'title'
]
=
$title
;
...
...
@@ -245,11 +245,11 @@ class AgendaController extends Controller
*/
public
function
update
(
Request
$request
,
$id
)
{
$request
[
'content'
]
=
strip_tags
(
$request
->
content
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]);
$request
[
'content_en'
]
=
strip_tags
(
$request
->
content_en
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]);
$request
[
'content_de'
]
=
strip_tags
(
$request
->
content_de
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]);
$request
[
'content_sa'
]
=
strip_tags
(
$request
->
content_sa
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]);
$request
[
'content_zh'
]
=
strip_tags
(
$request
->
content_zh
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]);
$request
[
'content'
]
=
strip_tags
(
$request
->
content
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]);
$request
[
'content_en'
]
=
strip_tags
(
$request
->
content_en
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]);
$request
[
'content_de'
]
=
strip_tags
(
$request
->
content_de
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]);
$request
[
'content_sa'
]
=
strip_tags
(
$request
->
content_sa
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]);
$request
[
'content_zh'
]
=
strip_tags
(
$request
->
content_zh
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]);
$request
[
'title'
]
=
strip_tags
(
$request
->
title
);
$request
[
'title_en'
]
=
strip_tags
(
$request
->
title_en
);
$request
[
'title_de'
]
=
strip_tags
(
$request
->
title_de
);
...
...
@@ -302,7 +302,7 @@ class AgendaController extends Controller
{
if
(
$manual
==
1
)
{
$dataEn
[
'title'
]
=
strip_tags
(
$data
[
'title_en'
]);
$dataEn
[
'content'
]
=
strip_tags
(
$data
[
'content_en'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]);
$dataEn
[
'content'
]
=
strip_tags
(
$data
[
'content_en'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]);
}
else
{
if
(
$data
[
'content'
]
==
null
)
{
...
...
@@ -311,7 +311,7 @@ class AgendaController extends Controller
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'title'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]));
$dataEn
[
'title'
]
=
$title
;
$dataEn
[
'content'
]
=
$content
;
...
...
@@ -324,7 +324,7 @@ class AgendaController extends Controller
{
if
(
$manual
==
1
)
{
$dataDe
[
'title'
]
=
strip_tags
(
$data
[
'title_de'
]);
$dataDe
[
'content'
]
=
strip_tags
(
$data
[
'content_de'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]);
$dataDe
[
'content'
]
=
strip_tags
(
$data
[
'content_de'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]);
}
else
{
...
...
@@ -334,7 +334,7 @@ class AgendaController extends Controller
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'title'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]));
$dataDe
[
'title'
]
=
$title
;
$dataDe
[
'content'
]
=
$content
;
...
...
@@ -346,7 +346,7 @@ class AgendaController extends Controller
{
if
(
$manual
==
1
)
{
$dataSa
[
'title'
]
=
strip_tags
(
$data
[
'title_sa'
]);
$dataSa
[
'content'
]
=
strip_tags
(
$data
[
'content_sa'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]);
$dataSa
[
'content'
]
=
strip_tags
(
$data
[
'content_sa'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]);
}
else
{
...
...
@@ -356,7 +356,7 @@ class AgendaController extends Controller
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'title'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]));
$dataSa
[
'title'
]
=
$title
;
$dataSa
[
'content'
]
=
$content
;
...
...
@@ -369,7 +369,7 @@ class AgendaController extends Controller
{
if
(
$manual
==
1
)
{
$dataZh
[
'title'
]
=
strip_tags
(
$data
[
'title_zh'
]);
$dataZh
[
'content'
]
=
strip_tags
(
$data
[
'content_zh'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]);
$dataZh
[
'content'
]
=
strip_tags
(
$data
[
'content_zh'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]);
}
else
{
...
...
@@ -379,7 +379,7 @@ class AgendaController extends Controller
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'title'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]));
$dataZh
[
'title'
]
=
$title
;
$dataZh
[
'content'
]
=
$content
;
...
...
app/Http/Controllers/Webprofile/Backend/InformationController.php
View file @
3b1bea1d
...
...
@@ -79,7 +79,7 @@ class InformationController extends Controller
*/
public
function
store
(
Request
$request
)
{
$request
[
'content'
]
=
strip_tags
(
$request
->
content
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]);
$request
[
'content'
]
=
strip_tags
(
$request
->
content
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]);
$request
[
'title'
]
=
strip_tags
(
$request
->
title
);
$request
->
validate
([
'title'
=>
'required'
,
...
...
@@ -122,7 +122,7 @@ class InformationController extends Controller
$data
[
'content'
]
=
'kosong'
;
}
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]));
$dataEn
[
'information_id'
]
=
$information
->
id
;
$dataEn
[
'title'
]
=
$title
;
...
...
@@ -140,7 +140,7 @@ class InformationController extends Controller
$data
[
'content'
]
=
'kosong'
;
}
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]));
$dataDe
[
'information_id'
]
=
$information
->
id
;
$dataDe
[
'title'
]
=
$title
;
...
...
@@ -158,7 +158,7 @@ class InformationController extends Controller
$data
[
'content'
]
=
'kosong'
;
}
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]));
$dataSa
[
'information_id'
]
=
$information
->
id
;
$dataSa
[
'title'
]
=
$title
;
...
...
@@ -176,7 +176,7 @@ class InformationController extends Controller
$data
[
'content'
]
=
'kosong'
;
}
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]));
$dataZh
[
'information_id'
]
=
$information
->
id
;
$dataZh
[
'title'
]
=
$title
;
...
...
@@ -244,11 +244,11 @@ class InformationController extends Controller
*/
public
function
update
(
Request
$request
,
$id
)
{
$request
[
'content'
]
=
strip_tags
(
$request
->
content
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
]);
$request
[
'content_en'
]
=
strip_tags
(
$request
->
content_en
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
]);
$request
[
'content_de'
]
=
strip_tags
(
$request
->
content_de
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
]);
$request
[
'content_sa'
]
=
strip_tags
(
$request
->
content_sa
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
]);
$request
[
'content_zh'
]
=
strip_tags
(
$request
->
content_zh
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
]);
$request
[
'content'
]
=
strip_tags
(
$request
->
content
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'span'
]);
$request
[
'content_en'
]
=
strip_tags
(
$request
->
content_en
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'span'
]);
$request
[
'content_de'
]
=
strip_tags
(
$request
->
content_de
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'span'
]);
$request
[
'content_sa'
]
=
strip_tags
(
$request
->
content_sa
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'span'
]);
$request
[
'content_zh'
]
=
strip_tags
(
$request
->
content_zh
,
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'span'
]);
$request
[
'title'
]
=
strip_tags
(
$request
->
title
);
$request
[
'title_en'
]
=
strip_tags
(
$request
->
title_en
);
$request
[
'title_de'
]
=
strip_tags
(
$request
->
title_de
);
...
...
@@ -301,7 +301,7 @@ class InformationController extends Controller
{
if
(
$manual
==
1
)
{
$dataEn
[
'title'
]
=
strip_tags
(
$data
[
'title_en'
]);
$dataEn
[
'content'
]
=
strip_tags
(
$data
[
'content_en'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]);
$dataEn
[
'content'
]
=
strip_tags
(
$data
[
'content_en'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]);
}
else
{
if
(
$data
[
'content'
]
==
null
)
{
...
...
@@ -310,7 +310,7 @@ class InformationController extends Controller
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'title'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]));
$dataEn
[
'title'
]
=
$title
;
$dataEn
[
'content'
]
=
$content
;
...
...
@@ -323,7 +323,7 @@ class InformationController extends Controller
{
if
(
$manual
==
1
)
{
$dataDe
[
'title'
]
=
strip_tags
(
$data
[
'title_de'
]);
$dataDe
[
'content'
]
=
strip_tags
(
$data
[
'content_de'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]);
$dataDe
[
'content'
]
=
strip_tags
(
$data
[
'content_de'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]);
}
else
{
if
(
$data
[
'content'
]
==
null
)
{
...
...
@@ -332,7 +332,7 @@ class InformationController extends Controller
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'title'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]));
$dataDe
[
'title'
]
=
$title
;
$dataDe
[
'content'
]
=
$content
;
...
...
@@ -344,7 +344,7 @@ class InformationController extends Controller
{
if
(
$manual
==
1
)
{
$dataSa
[
'title'
]
=
strip_tags
(
$data
[
'title_sa'
]);
$dataSa
[
'content'
]
=
strip_tags
(
$data
[
'content_sa'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]);
$dataSa
[
'content'
]
=
strip_tags
(
$data
[
'content_sa'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]);
}
else
{
...
...
@@ -354,7 +354,7 @@ class InformationController extends Controller
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'title'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]));
$dataSa
[
'title'
]
=
$title
;
$dataSa
[
'content'
]
=
$content
;
...
...
@@ -367,7 +367,7 @@ class InformationController extends Controller
{
if
(
$manual
==
1
)
{
$dataZh
[
'title'
]
=
strip_tags
(
$data
[
'title_zh'
]);
$dataZh
[
'content'
]
=
strip_tags
(
$data
[
'content_zh'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]);
$dataZh
[
'content'
]
=
strip_tags
(
$data
[
'content_zh'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]);
}
else
{
...
...
@@ -377,7 +377,7 @@ class InformationController extends Controller
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'title'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
]));
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'span'
]));
$dataZh
[
'title'
]
=
$title
;
$dataZh
[
'content'
]
=
$content
;
...
...
app/Http/Controllers/Webprofile/Backend/PostController.php
View file @
3b1bea1d
This diff is collapsed.
Click to expand it.
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