Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pixel Humain
api
Commits
21ee172b
Commit
21ee172b
authored
Oct 05, 2021
by
Nicolas Nambinintsoa
Browse files
Merge remote-tracking branch 'origin/master'
parents
58023dc7
80e7bd6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
controllers/NewsController.php
View file @
21ee172b
...
...
@@ -24,6 +24,14 @@ class NewsController extends ApiController {
)*/
);
}
public
function
actionGetPageContent
(){
if
(
isset
(
$_POST
[
'url'
])){
echo
file_get_contents
(
$_POST
[
'url'
]);;
}
else
{
echo
""
;
}
}
}
?>
\ No newline at end of file
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