Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function indexAction(){
- $login = $_GET['login'];
- $password = $_GET['password'];
- $binding = $_GET['binding'];
- if($binding == null){return print_r('error1440');}
- if($login == null){return print_r('error1440');}
- if($password == null){return print_r('error1440');}
- $customHeaders = array(
- 'XF-Api-Key: O-LGlgBZn5K4h3cPZNcmuLN1NkM5gTaC'
- );
- $ch = curl_init('http://vacban.wtf/index.php/api/auth?login='.$login.'&password='.$password.'');
- curl_setopt($ch, CURLOPT_HTTPHEADER, $customHeaders);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $json = curl_exec($ch);
- curl_close($ch);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement