PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Mod Submissions

Reply
 
Thread Tools
Old 12-09-2006, 02:38 AM   #1
CentaurAtlas
Green Mole
 
Join Date: Nov 2006
Location: Florida
Posts: 11
Number of sites locked/being spidered

If you want to add the number of sites that are locked/being spidered to the admin page, open the admin/index.php file and do the following (1.8.8). ;-)

Look for these lines:
while (list($table,$name) = each($phpdig_tables))
{
$result = mysql_fetch_array(mysql_query("SELECT count(*) as num FROM ".PHPDIG_DB_PREFIX."$table"),MYSQL_ASSOC);
print "<tr>\n\t<td class=\"greyFormLight\">\n$name : </td>\n\t<td class=\"greyForm\">\n<b>".$result['num']."</b>".phpdigMsg('entries')."</td>\n</tr>\n";
}
print "</table>\n";

--------------------

Before the print "</table>\n"; line, insert the following:


$SQL = "select locked from phpdig_sites where locked = 1";

$result = mysql_query($SQL);
if (!$result) {
die('Invalid query (how many locked/being crawled): ' . mysql_error());
}

$num_rows = mysql_num_rows($result);
print "<tr><td class=\"greyFormLight\">";
print "Number of sites are locked:";
print "</td> \n";
print "<td class=\"greyForm\">";
print $num_rows;
print "\n";

print "</td>";
print "</tr> \n";
CentaurAtlas is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript menu not being spidered vuurvos Troubleshooting 1 10-05-2005 06:50 AM
Unlock locked sites Dave A How-to Forum 2 12-24-2004 03:36 PM
locked sites, why? Freddie Troubleshooting 5 05-19-2004 07:28 AM
Too many results per site spidered and redirections paullind How-to Forum 1 01-24-2004 09:04 PM
Limit number of spidered pages Not Logged In How-to Forum 5 12-16-2003 03:03 PM


All times are GMT -8. The time now is 01:01 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.