changed git call from https to git readonly
[atutor.git] / mods / wiki / spages / LinkLessPages.php
1 <?php
2
3 /*
4    shows up pages that don't link to anywhere
5 */
6
7 #-- title
8 echo ewiki_make_title($id, $id, 2);
9 echo "\n<p>Pages without links to anywhere else. Often this are unwanted ShallowPages.</p>\n";
10
11 #-- find / analyze db
12 $result = ewiki_db::GETALL(array("refs"));
13 $ll = array();
14 while ($row = $result->get(0, 0x0137, EWIKI_DB_F_TEXT))
15 {
16    $id = $row["id"];
17    $refs = trim($row["refs"]);
18    
19    #-- no links to anywhere else?
20    if ((!$refs) || (strtolower($refs) == strtolower($id))) {
21       $ll[] = $id;
22    }
23 }
24
25 #-- bring up list
26 echo ewiki_list_pages($ll, 0, 0, 0);
27
28 ?>