friendica_2021-01/include/notifier.php

45 lines
609 B
PHP
Raw Normal View History

2010-07-07 08:08:38 +02:00
<?php
echo getcwd();
require_once("boot.php");
2010-07-07 08:08:38 +02:00
$a = new App;
2010-07-07 08:08:38 +02:00
@include(".htconfig.php");
require_once("dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data, $install);
2010-07-07 08:08:38 +02:00
unset($db_host, $db_user, $db_pass, $db_data);
require_once("session.php");
require_once("datetime.php");
2010-07-07 08:08:38 +02:00
if(($argc != 2) || (! intval($argv[1])))
exit;
2010-07-07 08:08:38 +02:00
// fetch item
// if not parent, fetch it too
2010-07-07 08:08:38 +02:00
// atomify
// expand list of recipients
// grab the contact records
// foreach recipient
// if no dfrn-id continue
// fetch_url dfrn-notify
// decrypt challenge
// post result
// continue
killme();