dir/mod/submit.php

20 lines
411 B
PHP
Raw Normal View History

2012-05-16 07:31:36 +02:00
<?php
require_once('include/submit.php');
2012-05-16 07:31:36 +02:00
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);
2012-05-16 07:31:36 +02:00
exit;
}