예제 #1
0
    }
    if ($screenshotQuery->RecordCount() == 1) {
        $screenshot = true;
    }
}
// disconnect database
$db->Close();
$content = initializeTemplate();
if (!$reportQuery->fields) {
    $content->assign('error', 'No Report Found');
    displayPage($content, 'report', 'report.tpl', 'Mozilla Reporter - Error');
    exit;
}
// We need this for continuity params in particular
$query = new query();
$query_input = $query->processQueryInputs();
$title = "Report for " . $reportQuery->fields['host_hostname'] . " - " . $reportQuery->fields['report_id'];
$content->assign('report_id', $reportQuery->fields['report_id']);
$content->assign('report_url', $reportQuery->fields['report_url']);
//$host_continuity_params = $query->continuityParams(array('report_id', 'report_product', 'report_file_date', 'product_family', 'page'));
$content->assign('host_continuity_params', $host_continuity_params);
$content->assign('host_url', $config['base_url'] . '/app/query/?host_hostname=' . $reportQuery->fields['host_hostname'] . '&' . $host_continuity_params . 'submit_query=Query');
$content->assign('host_hostname', $reportQuery->fields['host_hostname']);
$content->assign('report_problem_type', resolveProblemTypes($reportQuery->fields['report_problem_type']));
$content->assign('report_behind_login', resolveBehindLogin($reportQuery->fields['report_behind_login']));
$content->assign('report_product', $reportQuery->fields['report_product']);
$content->assign('report_gecko', $reportQuery->fields['report_gecko']);
$content->assign('report_useragent', $reportQuery->fields['report_useragent']);
$content->assign('report_buildconfig', $reportQuery->fields['report_buildconfig']);
$content->assign('report_platform', $reportQuery->fields['report_platform']);
$content->assign('report_oscpu', $reportQuery->fields['report_oscpu']);