Permalink
Browse files

Add TODO task. Add crawl_tag to export.php. Make link of last crawled…

… url in stats.php
  • Loading branch information...
1 parent 66925e2 commit 2cac027885f0ed2beeca2280aeb597d760690b20 Greg Elin committed Jun 4, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −0 TODO.txt
  2. +1 −1 export.php
  3. +2 −3 stats.php
View
@@ -1,3 +1,4 @@
# TO DO
+- Review/improve handling of confirmed in/out domains and also silly links like ?font=large
- Check that all queries for urls includes the crawl_tag
View
@@ -22,7 +22,7 @@
/**
* SQL query to generate our results
*/
-$pages = mysql_query("SELECT url, title, clicks, http_code, size, type, modified, (SELECT count(*) FROM links WHERE `to` = urls.ID) as incoming, (SELECT count(*) FROM links WHERE `to` = urls.ID) as outgoing from urls");
+$pages = mysql_query("SELECT url, title, clicks, http_code, crawl_tag, size, type, modified, (SELECT count(*) FROM links WHERE `to` = urls.ID) as incoming, (SELECT count(*) FROM links WHERE `to` = urls.ID) as outgoing from urls");
/**
* Count the number of pages in our dataset
View
@@ -208,16 +208,15 @@
</div>
<div class='clear'> </div>
-<div style='text-align:center;'>
+<div style='text-align:center;margin-bottom:20px;'>
<div><b>Current Domains: </b><?php echo $domains; ?></div>
<div><b>Current Crawl Tag: </b><?php echo $crawl_tag; ?></div>
<?php
$sql = 'SELECT title, url FROM urls WHERE crawled = "1" AND crawl_tag = "'.$crawl_tag.'" ORDER BY ID DESC LIMIT 1';
$last = mysql_row_array(mysql_query($sql));
?>
- <div><b>Last Page Crawled: </b><?php echo $last['title']; ?> (<?php echo $last['url'];?>) </div>
-
+ <div><b>Last Page Crawled: </b><?php echo $last['title']; ?> (<?php echo "<a href='{$last['url']}' target='_new'>{$last['url']}</a>";?>) </div>
</div>
</body>

0 comments on commit 2cac027

Please sign in to comment.