Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 72be098994
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (26 sloc) 0.795 kb
<?php
require_once('helpers.inc');
function vulnscan_list_scans_form($form, &$form_state) {
global $user;
$others = false;
if (user_access('view others scans'))
$others = true;
$scans = list_scans($user, $others);
$markup = '<ul>';
foreach ($scans as $server => $server_scans) {
$markup .= '<li>' . t($server) . '';
$markup .= '<ul>';
foreach ($server_scans as $scan => $location) {
$markup .= '<li><a href="' . $location . '">' . t($scan) . '</a></li>';
}
$markup .= '</ul></li>';
}
$markup .= '</li></ul>';
$form['vulnscan_scans'] = array(
'#type' => 'markup',
'#prefix' => '<div>',
'#markup' => $markup,
'#suffix' => '</div>',
);
return $form;
}
Jump to Line
Something went wrong with that request. Please try again.