updated fixed broken links

This commit is contained in:
root 2025-01-23 08:37:14 +01:00
parent f9f17557ce
commit fa3f1e4661

View file

@ -24,6 +24,13 @@ if (($handle = fopen($csvfile, "r")) !== FALSE) {
// if the row is the first one (name url status score) only display (Name Status Score):
// display the contents of a csv row
if ( $c == "1" ){
//add http if its not already done in the URL
if (!preg_match("~^(?:f|ht)tps?://~i", $data[3])) {
$urllink = "http://" . $data[3];
}else{
$urllink = $data[3];
}
if ($oldcatname != $data[1]){
echo "<td><tr></tr><tr></tr><tr></tr></td>"; // skip a row if new category
@ -36,7 +43,8 @@ if (($handle = fopen($csvfile, "r")) !== FALSE) {
echo "<td>" ; // begin the table cell
echo '<a href="'; // begin a href
echo $data[3] . '"> '; // display the link
//echo $data[3] . '"> '; // display the link
echo $urllink . '"> '; // display the link
echo $data[2] . " </a></td><td>"; // display the link title and close the a href and first cell, open the second cell
echo $data[7] . " </td><td>"; // display the status and close the second cell, open the third cell
echo $data[6] . " </td> \n"; // display the score and close the third cell