Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if (file_exists( '../includes/config.php' )) { require( '../includes/config.php'); } else { header( 'Location: ../install' );};
- if(base64_decode($_SESSION['loggedin']) == 'true') {}
- else { header('Location: ../login.php'); }
- // Setup variables for API call
- $vst_returncode = 'yes';
- $password = $_POST['password'];
- $cookie = $_POST['cookie'];
- $postvars = array(
- array('user' => $vst_username,'password' => $vst_password,'returncode' => $vst_returncode,'cmd' => 'v-change-user-password','arg1' => $username,'arg2' => $password)
- );
- $curl0 = curl_init();
- $curl1 = curl_init();
- $curl2 = curl_init();
- $curl3 = curl_init();
- $curl4 = curl_init();
- if(isset($password)){
- curl_setopt($curl0, CURLOPT_URL, $vst_url);
- curl_setopt($curl0, CURLOPT_RETURNTRANSFER,true);
- curl_setopt($curl0, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($curl0, CURLOPT_SSL_VERIFYHOST, false);
- curl_setopt($curl0, CURLOPT_POST, true);
- curl_setopt($curl0, CURLOPT_POSTFIELDS, http_build_query($postvars[0]));
- $r1 = curl_exec($curl0);
- }
- else{$r1 = 'x0';}
- if(isset($cookie)){
- setcookie("theme", base64_encode($_POST["cookie"] . ".css"), time() + (10 * 365 * 24 * 60 * 60), '/');
- }
- header('Location: ../profile.php?returncode=' . $r1);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement