SHARE
TWEET

Untitled

a guest Jan 25th, 2018 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. session_start();
  4.  
  5. if (file_exists( '../includes/config.php' )) { require( '../includes/config.php'); }  else { header( 'Location: ../install' );};
  6. if(base64_decode($_SESSION['loggedin']) == 'true') {}
  7. else { header('Location: ../login.php'); }
  8.  
  9.  
  10. // Setup variables for API call
  11.  
  12. $vst_returncode = 'yes';
  13. $password = $_POST['password'];
  14.  
  15. $cookie = $_POST['cookie'];
  16.  
  17. $postvars = array(
  18.   array('user' => $vst_username,'password' => $vst_password,'returncode' => $vst_returncode,'cmd' => 'v-change-user-password','arg1' => $username,'arg2' => $password)
  19.   );
  20.  
  21. $curl0 = curl_init();
  22. $curl1 = curl_init();
  23. $curl2 = curl_init();
  24. $curl3 = curl_init();
  25. $curl4 = curl_init();
  26.  
  27. if(isset($password)){
  28.         curl_setopt($curl0, CURLOPT_URL, $vst_url);
  29.         curl_setopt($curl0, CURLOPT_RETURNTRANSFER,true);
  30.         curl_setopt($curl0, CURLOPT_SSL_VERIFYPEER, false);
  31.         curl_setopt($curl0, CURLOPT_SSL_VERIFYHOST, false);
  32.         curl_setopt($curl0, CURLOPT_POST, true);
  33.         curl_setopt($curl0, CURLOPT_POSTFIELDS, http_build_query($postvars[0]));
  34.         $r1 = curl_exec($curl0);
  35. }
  36. else{$r1 = 'x0';}
  37.  
  38. if(isset($cookie)){
  39.     setcookie("theme", base64_encode($_POST["cookie"] . ".css"), time() + (10 * 365 * 24 * 60 * 60), '/');
  40. }
  41.  
  42. header('Location: ../profile.php?returncode=' . $r1);
  43. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top