app.net, acebook, pumpio, statusnet, twitter: Support for the new database fields in contact and unique_contacts.

This commit is contained in:
Michael Vogel 2015-01-09 07:07:07 +01:00
parent a4006b5600
commit a8a37ee6fc
6 changed files with 192 additions and 3 deletions

View file

@ -5,6 +5,8 @@
*/
class Diasphp {
private $cookiejar;
function __construct($pod) {
$this->token_regex = '/content="(.*?)" name="csrf-token/';
@ -12,6 +14,11 @@ class Diasphp {
$this->cookiejar = tempnam(sys_get_temp_dir(), 'cookies');
}
function __destruct() {
if (file_exists($this->cookiejar))
unlink($this->cookiejar);
}
function _fetch_token() {
$ch = curl_init();