Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <html>
  2. <body>
  3. <?php
  4.  
  5. //Example Rest Method in Post Change Actions URL
  6. //https://server.example.com/gam.php?user=@User:ID@&pass=@User:Password@
  7.  
  8.  
  9. $user = $_POST['user'];
  10. $pass = $_POST['pass'];
  11. $gam = "/path/to_gam_folder"
  12.  
  13. if (!empty($pass)) {
  14.     shell_exec($gam . "/gam update user" . $user  . "password" $pass);
  15.     echo "Return Status: 1";
  16. } else {
  17.     echo "Return Status: 0";
  18. }
  19.  
  20. ?>
  21. </body>
  22. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement