Hi.
This is a summary of the additions we have made (me and alivin70)
1)search.php
If someone search using a form, this form
has a static site id <input type="hidden" name="site" value="2">.
2 =>
www.phpdig.org.
But if you delete
www.phpdig.org from the admin area, you have to
update the site's value (in our example 2).
In the form you can put <input type="hidden" name="site" value="phpdig.org">
and phpdigGetSiteidFromUrl() gets the correct site id.
2) url.php -
When a user click on a result, url.php logs:
a - the position of the clicked result,
b - the url (redundant),
c - the query,
d - date.
Very useful for statistics.
3) admin/index.php
When you start the spider, you have to select a limit > 0 because with
some site the option 0 doesn't start the spider.
4) admin/limit_upd.php
Cron management via web. It manages max number of pages per site as well; useful
when you don't want to index all the pages of a web site (a my God...this site
has thousands of pages).
5) admin/robot_functions.php
Erased a bug when you want to index pdfs. We have added a lot of logging at the end.
Among others, you have the statistics of clicks made by users...
6) admin/spider.php
When you start the spider you can tell it the max number of pages to index.
How long does it take to index a huge web site? Using the admin area you can
see which indexing has been interrupted, and which one has been completed.
7) includes/config.php
You can configure:
a - sponsored links: show it; don't show.
b - cron
8) libs/function_phpdig_form.php
Added form elements.
9) libs/phpdig_functions.php
Added phpdigGetSiteidFromUrl()
10) libs/search_functions.php
- The big HTML page at the end is in a separate file to save
parsing time.
- Sponsored links
- ....
11) libs/time.php
a function for logging the lasting of various events
12) templates/phpdig2.html
template modification
13) sql/init.sql
others tables.
14) libs/google.php
If you a user search something in a given web site and
there are no results... Google help us pleaz :-)
All our adjuncts should be fully explained... but if you are curious you can understand them thru the diffs I sent you. Additional explanations will coming soon...
Bye bye.
JyGius