2012-05-15 22:31:36 -07:00
|
|
|
<?php
|
|
|
|
|
2017-11-01 02:29:31 -04:00
|
|
|
require_once 'include/submit.php';
|
|
|
|
require_once 'include/sync.php';
|
2012-05-15 22:31:36 -07:00
|
|
|
|
2017-11-01 02:29:31 -04:00
|
|
|
use Friendica\Directory\App;
|
|
|
|
|
|
|
|
function submit_content(App &$a)
|
|
|
|
{
|
|
|
|
//Decode the URL.
|
2014-07-01 03:27:56 +02:00
|
|
|
$url = hex2bin(notags(trim($_GET['url'])));
|
2017-11-01 02:29:31 -04:00
|
|
|
|
|
|
|
//Currently we simply push RAW URL's to our targets.
|
|
|
|
sync_push($url);
|
|
|
|
|
|
|
|
//Run the submit sequence.
|
2014-07-10 23:43:25 +02:00
|
|
|
run_submit($url);
|
2012-05-15 22:31:36 -07:00
|
|
|
|
2017-11-01 02:29:31 -04:00
|
|
|
exit;
|
|
|
|
}
|