Show URLs from assets/logins

This commit is contained in:
Marcus Hill 2022-02-07 19:56:12 +00:00
parent 94faa6934a
commit 7934422749
1 changed files with 29 additions and 26 deletions

View File

@ -210,32 +210,35 @@
?>
<!-- URLs -->
<!-- --><?php
// if($sql_logins OR $sql_urls){ ?>
<!-- <h5><i class="nav-icon fas fa-link"></i> URLs</h5>-->
<!-- <ul>-->
<!-- --><?php
// // Reset the $sql_assets pointer to the start
// mysqli_data_seek($sql_assets, 0);
//
// // Showing URLs linked to logins
// while($row = mysqli_fetch_array($sql_assets)){
// if(!empty($row['login_uri'])){
// echo "<li><a href=\"$row[login_uri]\">$row[login_uri]</a></li>";
// }
// }
//
// // Showing explicitly linked URLs
// while($row = mysqli_fetch_array($sql_urls)){
// if(!empty($row['service_uri'])){
// echo "<li><a href=\"$row[service_uri]\">$row[service_uri]</a></li>";
// }
// }
// ?>
<!-- </ul>-->
<!-- --><?php
// }
// ?>
<?php
if($sql_logins OR $sql_assets){ ?>
<h5><i class="nav-icon fas fa-link"></i> URLs</h5>
<ul>
<?php
// Reset the $sql_logins pointer to the start
mysqli_data_seek($sql_logins, 0);
// Showing URLs linked to logins
while($row = mysqli_fetch_array($sql_logins)){
if(!empty($row['login_uri'])){
echo "<li><a href=\"https://$row[login_uri]\">$row[login_uri]</a></li>";
}
}
// Reset the $sql_assets pointer to the start
mysqli_data_seek($sql_assets, 0);
// Show URLs linked to assets, that also have logins
while($row = mysqli_fetch_array($sql_assets)){
if(!empty($row['login_uri'])){
echo "<li><a href=\"https://$row[login_uri]\">$row[login_uri]</a></li>";
}
}
?>
</ul>
<?php
}
?>
<!-- <h5><i class="nav-icon fas fa-lock"></i> Certificates</h5>-->
<!-- <ul>-->