Added a simple submit-forwarding feature through the syncing cronjob.

This commit is contained in:
Beanow 2014-07-11 19:30:02 +02:00
commit 0026b08a33
3 changed files with 163 additions and 0 deletions

View file

@ -4,7 +4,16 @@ require_once('include/submit.php');
function submit_content(&$a) {
//Decode the URL.
$url = hex2bin(notags(trim($_GET['url'])));
//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.
run_submit($url);
exit;