Added a simple submit-forwarding feature through the syncing cronjob.
This commit is contained in:
parent
5c477f9b7f
commit
0026b08a33
3 changed files with 163 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue