mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
app.net, acebook, pumpio, statusnet, twitter: Support for the new database fields in contact and unique_contacts.
This commit is contained in:
parent
a4006b5600
commit
a8a37ee6fc
6 changed files with 192 additions and 3 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue