Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($_REQUEST) {
- http_response_code(200);
- $decode_json = json_decode($_REQUEST[0], true);
- $array = $decode_json["payload"];
- $data = implode($_REQUEST);
- file_put_contents('tempfolder/log', $data);
- $pagina = postPagina($array['title'], $array['slug'], $array['live'], $array['seo_title'], $array['go_live_at'] == "None" ? "" : $array['go_live_at'], $array['expire_at'] == "None" ? "" : $array['expire_at']);
- print_r($pagina);
- } else {
- http_response_code(404);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement