Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set('display_errors',1);
- error_reporting(E_ALL);
- $host="localhost";
- $user="lidertvru_bot";
- $pass="romich0305";
- $db_name="lidertvru_bot";
- $link=mysql_connect($host,$user,$pass);
- mysql_select_db($db_name,$link);
- $query = mysql_query ("SELECT id
- FROM livekharkov ");
- while ($xl= mysql_fetch_array ($query)):
- //Токен сообщества
- $token = '7d8aad285478e800ed4a094161cc4f96f8be92e3403f725c9db281da7ab48ee12fa6d864d45c390be90ef';
- $request_params = array(
- 'message' => $_POST['letter'],
- 'user_id' => $myrow_query['id'],
- 'access_token' => $token,
- 'v' => '5.0'
- );
- $get_params = http_build_query($request_params);
- file_get_contents('https://api.vk.com/method/messages.send?'. $get_params);
- echo file_get_contents('https://api.vk.com/method/messages.send?'. $get_params);
- endwhile;
- header('Location: http://skotch.ml/bot/delivery/success.php');
- exit;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement