Show URLs from assets/logins

This commit is contained in:
Marcus Hill
2022-02-07 19:56:12 +00:00
parent 94faa6934a
commit 7934422749

View File

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