2012-05-16 07:31:36 +02:00
|
|
|
<?php
|
|
|
|
|
2014-07-01 03:27:56 +02:00
|
|
|
require_once('include/submit.php');
|
2012-05-16 07:31:36 +02:00
|
|
|
|
|
|
|
function submit_content(&$a) {
|
|
|
|
|
2014-07-11 19:30:02 +02:00
|
|
|
//Decode the URL.
|
2014-07-01 03:27:56 +02:00
|
|
|
$url = hex2bin(notags(trim($_GET['url'])));
|
2014-07-11 19:30:02 +02:00
|
|
|
|
|
|
|
//Currently we simply push RAW URL's to our targets.
|
|
|
|
//If we support it that is.
|
|
|
|
if($a->config['syncing']['enable_pushing']){
|
|
|
|
q("INSERT INTO `sync-queue` (`url`) VALUES ('%s')", dbesc($url));
|
|
|
|
}
|
|
|
|
|
|
|
|
//Run the submit sequence.
|
2014-07-10 23:43:25 +02:00
|
|
|
run_submit($url);
|
2012-05-16 07:31:36 +02:00
|
|
|
exit;
|
|
|
|
|
|
|
|
}
|