Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. if ($_REQUEST) {
  2. http_response_code(200);
  3. $decode_json = json_decode($_REQUEST[0], true);
  4. $array = $decode_json["payload"];
  5.  
  6. $data = implode($_REQUEST);
  7. file_put_contents('tempfolder/log', $data);
  8.  
  9.  
  10. $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']);
  11. print_r($pagina);
  12.  
  13. } else {
  14. http_response_code(404);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement