mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 07:00:30 +00:00

Also add a page to add and deactivate vendors. Fixes: https://github.com/hughsie/fwupd/issues/25
61 lines
1.4 KiB
PHP
61 lines
1.4 KiB
PHP
<!DOCTYPE html>
|
|
<!-- Copyright (C) 2015 Richard Hughes <richard@hughsie.com>
|
|
Licensed under the GNU General Public License Version 2 -->
|
|
<html>
|
|
<head>
|
|
<title>Linux Vendor Firmware Service</title>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
|
|
<link rel="stylesheet" href="style.css" type="text/css" media="screen"/>
|
|
<link rel="shortcut icon" href="favicon.ico"/>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<?php
|
|
if ($_GET["result"] == True)
|
|
echo '<h1>Result: Success</h1>';
|
|
else
|
|
echo '<h1>Result: Failed</h1>';
|
|
?>
|
|
|
|
<table class="history">
|
|
<tr>
|
|
<th>Test</th>
|
|
<th>Result</th>
|
|
</tr>
|
|
|
|
|
|
<?php
|
|
|
|
function lvfs_result($get_id, $title, $error_msg) {
|
|
echo '<tr><td>' . $title . '</td><td>';
|
|
if ($_GET[$get_id] == 'False')
|
|
echo '☐ ' . $error_msg;
|
|
else
|
|
echo '☑ Passed';
|
|
echo '</td></tr>';
|
|
}
|
|
|
|
lvfs_result('authkey', 'Auth Key', 'Did not match any registered vendors');
|
|
lvfs_result('sizecheck', 'Size Check', 'File was too small or large');
|
|
lvfs_result('filetype', 'File Type', 'Not a valid <code>cab</code> file');
|
|
lvfs_result('metadata', 'Metadata', 'The firmware file had no valid metadata');
|
|
lvfs_result('exists', 'Version Check', 'The firmware file already exists');
|
|
|
|
?>
|
|
|
|
</table>
|
|
|
|
<p>
|
|
<a href="vendors.html">Go back to the submission page</a>.
|
|
</p>
|
|
|
|
<p class="footer">
|
|
Copyright <a href="mailto:richard@hughsie.com">Richard Hughes 2015</a>
|
|
</p>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|