mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 20:26:58 +00:00
updated fixed broken links
This commit is contained in:
parent
f9f17557ce
commit
fa3f1e4661
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue