Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "http://127.0.0.1:31001/player/eventalert");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $ha = htmlentities($_POST['alerte']);
- $ha = preg_replace("/\r\n|\r|\n/",'<br/>',$ha);
- $userid = $user->get('id');
- $message = "test";
- $header = "";
- $canfollow = "true";
- curl_setopt($ch, CURLOPT_HTTPHEADER, ['authToken: f2dV965CL1fm0qgaXXrAT34yhvshcI8u','senderId:' . $userid, 'message: ' . $message, 'header: '.$header, 'canFollow: '.$canfollow ]);
- $server_output = curl_exec($ch);
- curl_close ($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement