This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am heavygale on github. | |
* I am heavygale (https://keybase.io/heavygale) on keybase. | |
* I have a public key whose fingerprint is B036 3FD8 3482 2B06 97BC 3CF6 FF44 AF36 EEDD E09C | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// replace everything that's written in uppercase with your own values | |
// USERNAME@DOMAIN.TLD needs to be a user who has administrative privileges | |
function jabber_add_user($username, $password) | |
{ | |
$data = json_encode(array('password' => $password)); | |
curl_setopt_array( | |
$ch = curl_init(), | |
array( | |
CURLOPT_RETURNTRANSFER => true, |