Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Cellophile
PersonaLink
Commits
ceaa1692
Commit
ceaa1692
authored
Sep 11, 2021
by
Cellophile
🎨
Browse files
Update api.php
parent
4f756b61
Changes
1
Hide whitespace changes
Inline
Side-by-side
api/api.php
View file @
ceaa1692
...
...
@@ -34,14 +34,14 @@ if($_SERVER['REQUEST_METHOD'] == 'GET'){
}
//echo json_encode($averifier);
$upersok
=
$averifier
;
$enregistrement
=
creer
(
$upersok
,
$urlbase
,
$srcfichiercsv
);
$enregistrement
=
creer
(
$
urlsite
,
$
upersok
,
$urlbase
,
0
,
0
,
0
,
$srcfichiercsv
);
//echo json_encode($enregistrement);
$urlfinale
=
$urlcourte
.
$upersok
;
//echo json_encode($urlfinale);
http_response_code
(
200
);
echo
json_encode
([
"message"
=>
"l'url a été raccourcie avec succès. Voici la nouvelle url : "
.
$urlfinale
.
"."
]);
echo
json_encode
([
"message"
=>
"l'url a été raccourcie avec succès. Voici la nouvelle url : "
.
$
urlsite
.
$
urlfinale
.
"."
]);
// Privatebin ne lit pas le json, il faut donc lui envoyer les infos en texte, d'où la ligne ci-dessous.
echo
"l'url a été raccourcie avec succès. Voici la nouvelle url : "
.
$urlfinale
;
echo
"l'url a été raccourcie avec succès. Voici la nouvelle url : "
.
$
urlsite
.
$
urlfinale
;
die
();
...
...
Write
Preview
Supports
Markdown
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