1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

fastfind(单玉米97刀),对中文支持还可以,附写license程序

本帖由 inso2005-09-07 发布。版面名称:源码讨论

  1. inso

    inso New Member

    注册:
    2005-09-05
    帖子:
    38
    赞:
    0
    是一个对中文分词支持不错的站内搜索引擎
    下载地址见附件

    license可以到这里写 : http://www.5v6.com/ff.php

    产品介绍: http://www.interspire.com/fastfind/overview.php

    ff.php

    PHP:
    <?php

        define
    ("PRODUCT_ID""FF");

        class 
    FF_LICENSE
        
    {
            var 
    $_users 0;
            var 
    $_domain "";
            var 
    $_expires "";

            function 
    GenerateKey($Users$Domain$Expires)
            {
                
    $arrKey = array();
                
    $arrTmp = array();
                
    $Domain md5($Domain);
                
    $counter 1;
                
    $finalKey "";
                
    $key urlencode(base64_encode("$Users|$Domain|$Expires"));
                
                for(
    $i 0$i strlen($key); $i++)
                {
                    
    $arrTmp[] = substr($key$i1);
                }

                for(
    $i 0$i sizeof($arrTmp); $i++)
                {
                    
    $arrKey[] = $arrTmp[$i];

                    if(
    $counter == 0)
                        
    $arrKey[] = "-";

                    
    $counter++;
                }

                for(
    $i 0$i sizeof($arrKey); $i++)
                    
    $finalKey .= $arrKey[$i];

                
    $finalKey sprintf("%s-%s"PRODUCT_ID$finalKey);
                
    $finalKey eregi_replace("-$"""$finalKey);

                return 
    $finalKey;
            }

            function 
    DecryptKey($Key)
            {
                
    $Key eregi_replace("-"""$Key);
                
    $Key eregi_replace(sprintf("^%s"PRODUCT_ID), ""$Key);
                
    $Key urldecode($Key);
                
    $Key base64_decode($Key);
                
    $arrData explode("|"$Key);
                
    $this->_users $arrData[0];
                
    $this->_domain $arrData[1];
                
    $this->_expires $arrData[2];
            }

            function 
    GetUsers()
            {
                return 
    $this->_users;
            }

            function 
    GetDomain()
            {
                return 
    $this->_domain;
            }

            function 
    GetExpires()
            {
                return 
    $this->_expires;
            }
        }

        
    $objLicense = new FF_LICENSE;

        
    // Example of generating a key
        //$key = $objLicense->GenerateKey(10, "www.interspire.com", "08-01-2004");

        // Example of decrypting a key
        //$objLicense->DecryptKey("FF-MTB8-MzJk-Njk3-MmM4-Y2Ex-MDE5-ZmQz-ZmE5-ZWY1-Zjkx-ZDc3-Y2N8-MDgt-MDEt-MjAw-NA%3-D%3D");
        //echo $objLicense->GetUsers();
        //echo $objLicense->GetDomain();
        //echo $objLicense->GetExpires();

        
    if(@$_POST["do"] == "calc")
        {
            
    $numUsers = @$_POST["numusers"];
            
    $expDate = @$_POST["expdate"];
            
    $ip = @$_POST["ip"];

            
    $key $objLicense->GenerateKey($numUsers$ip$expDate);
            echo 
    $key;
        }
        else
        {
        
    ?>
            <form action="ff.php" method="post">
                <input type="hidden" name="do" value="calc">

                用户数: <input type="textbox" name="numusers" size="5">(你想多少就多少)<br>
                过期日期: <input type="text" name="expdate" size="20"> (MM-DD-YYYY这样的格式08-01-2004)<br>
                主机: <input type="text" name="ip" size="20"> (www.test.com - 不包含http)<br><br>
                <input type="submit" value="生成license">

            </form>
        <?php
        
    }
    ?> 
    Interspire is pleased to introduce FastFind - The most versatile search engine available, complete with accurate search query reporting and charting!

    FastFind is a complete search engine solution for both static and dynamically driven web sites. It allows anyone to quickly and easily integrate a complete search engine into their web site.

    How can you benefit from using FastFind as your search solution?...
    Help your visitors find the information they need quickly
    Increased visitor satisfaction and more transactions on eCommerce sites
    See what your visitors are searching for in real-time
    Get a complete 360° view of your sites information architecture
    View empty search results and take action right away
    The only search solution you need
    Add search to any site in 5 minutes. Simply upload the FastFind files to your web server, run the installer and then the site crawler. Finally, generate the HTML to add a search box to your site.


    100% web-native solution. Everything is handled directly from the web browser. This means no end user downloads, and also makes future updates easy and completely transparent.


    Indexes both local and remote websites. FastFind can crawl and index any web site on the Internet, meaning that you don't have to install FastFind on the same web site that it will be indexing.


    Scalable and adaptive. The FastFind crawling and indexing algorithms have been tested on both static and dynamic web sites containing in excess of 10,000 pages, so as your site grows, you can be assured that FastFind will keep up.


    Advanced filtering options. Choose which file extensions to index, which URL patterns to ignore and also control the depth of the FastFind crawler to make sure only the pages you want to search are indexed.


    Search statistics. View search statistics in 4 different ways: popular search terms, terms with no results, most visited search links and recent search terms.


    For Webmasters

    Empower your web site visitors with the ability to search your entire web site in just seconds. Adding a search engine to your site means no more trawling through endless links to find the information they're after, and because you can schedule FastFind to update your site index automatically, your search results will never be out of date!

    For Web Developers

    You get a versatile, user-friendly search solution to rebrand as your own and sell to your customers as a valuable solution. If you setup automatic indexing, your users will never even need to login to the FastFind control panel, so training time is reduced to zero!
     

    附件文件:

    #1 inso, 2005-09-07
    最后编辑: 2005-09-07
  2. 小叶

    小叶 New Member

    注册:
    2005-09-04
    帖子:
    17,941
    赞:
    33
    生了一个...
    设置过期时间位 2100-09-07

    10000个注册用户..:eek:

    看了半天说明,,大概知道一点点..汗~~
     
  3. lovenoms

    lovenoms New Member

    注册:
    2005-09-05
    帖子:
    37
    赞:
    1
  4. inso

    inso New Member

    注册:
    2005-09-05
    帖子:
    38
    赞:
    0
  5. ninja

    ninja New Member

    注册:
    2005-09-05
    帖子:
    91
    赞:
    0
    这个是做搜索用的吗?
     
  6. csboy

    csboy New Member

    注册:
    2005-09-08
    帖子:
    27
    赞:
    0
    装到第三步下去出问题,
    win 2003 isapi
     
  7. Pizza

    Pizza New Member

    注册:
    2005-09-04
    帖子:
    1,377
    赞:
    6
    这个不错,oe了垃圾站,批量改下,然后把这个做搜索~
     
  8. 阿祖

    阿祖 New Member

    注册:
    2005-09-06
    帖子:
    63
    赞:
    0
    奶奶的,功能粉强呀!!
     
  9. 阿祖

    阿祖 New Member

    注册:
    2005-09-06
    帖子:
    63
    赞:
    0
    要是谁汉化一下就更好了!!
    汉的东东我就要了!!没有汉化俺不敢用!
     
  10. 木鱼

    木鱼 New Member

    注册:
    2005-09-07
    帖子:
    8
    赞:
    0
    早知道有这个,我就不写了,我还写了一个分词+中文全文检索的玩意,我去试试,看看对中文支持如何.
     
  11. root

    root New Member

    注册:
    2005-09-04
    帖子:
    153
    赞:
    0
    这个东东支持下,这是在laogui这里看到的最好的一个东东别的地方没有的