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
<?php | |
class Superfeedr { | |
protected $callback = 'http://mydomain/callback.php'; | |
private $authentication = 'myuser:mypassword'; | |
public $password = 'myrandompassphrase'; | |
function action($mode = 'subscribe', $url, $secret = null) { | |
// if you are going to use HMAC checks in a per-feed basic, use $secret (otherwise it will use the password, which will work great, unless you change it, as it will start rejecting every pushed entry) | |
$secret = ($secret?$secret:$this->password); | |
$post = ''; |
NewerOlder