Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <?php
- //Example Rest Method in Post Change Actions URL
- //https://server.example.com/gam.php?user=@User:ID@&pass=@User:Password@
- $user = $_POST['user'];
- $pass = $_POST['pass'];
- $gam = "/path/to_gam_folder"
- if (!empty($pass)) {
- shell_exec($gam . "/gam update user" . $user . "password" $pass);
- echo "Return Status: 1";
- } else {
- echo "Return Status: 0";
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement