Location: PHPKode > scripts > php ireport > phpireport v1.0 alpha revision 25/phpireport/send.php
<?
include "include/config.php";
include "include/functions.php";

$reports_count = '1';

$queue = get_send_queue($reports_count);
//print_r($queue);
for ($i = 0; $i <= count($queue)-1; $i++) {
$queue_id = $queue[$i]['id'];
$queue_network_id = $queue[$i]['network_id'];
$queue_report_id = $queue[$i]['report_id'];
$queue_time = $queue[$i]['time'];
$queue_state = $queue[$i]['state'];

$report_info = get_report_by_id($queue_report_id);
$report_id = $report_info['id'];
$report_time = $report_info['time'];
$report_message = $report_info['message'];
$report_reporter_id = $report_info['reporter_id'];
$report_name = $report_info['name'];

    //echo $queue[$i]['network_id'];
	$network_info = get_network_info($queue_network_id);
	$network_id = $network_info['id'];
	$network_key = $network_info['secret_key'];
	$network_url = $network_info['url'];
	
	$receive_url = $network_url."receive.php?key=".$network_key."&time=".$report_time."&message=".$report_message."&name=".$report_name;
	//$receive_url = urlencode($receive_url);
	//echo $receive_url;
	
	$response = get_web_page($receive_url);
	//print_r($response);
	echo $response['content'];
}

?>
Return current item: php ireport