Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    Creare plugin bot per mybb

    Ieri ho creato il mio primo plkugin per myb e oggi mi sto avventurando nell'impresa di creare un plugin che inserisca automaticamenti altri bot alla board, ho stilato un codicetto ma non va, spero qualcuno mi aiuti a farlo funzionare.
    codice:
    <?php
    /**
     * MyBB 1.4
     * Copyright © 2006 MyBB Group, All Rights Reserved
     *
     * Website: http://www.mybboard.net
     * License: http://www.mybboard.net/eula.html
     *
     * $Id: hello.php 2932 2007-03-10 05:48:55Z chris $
     */
    
    if(!defined("IN_MYBB"))
    {
        die("Non si può utilizzare questo file direttamente.
    
    assicurati che IN_MYBB sia definita.");
    }
    //---------------------------------//
    //Informazioni Relative al plug in //
    //---------------------------------//
    function Bots_info()
    {
        return array(
            "name"        => "Bots",
            "description" => "Plugin che inserisce automaticamente dei bots",
            "website"     => "http://internetclick.helloweb.eu",
            "author"      => "Giangy94",
            "authorsite"  => "http://internetclick.helloweb.eu",
            "version"     => "1.0",
        );
        $plugins->add_hook("online_user","Aggiungi_Bots");
    
    
    }
    function Bots_activate()
    {
      global $db
    }
    function Bots_deactivate()
    {
    }
    function Aggiungi_Bots($bot)
    {
    
    CREATE TABLE IF NOT EXISTS `mybb_spiders` (
      `sid` int(10) unsigned NOT NULL auto_increment,
      `name` varchar(100) NOT NULL default '',
      `theme` int(10) unsigned NOT NULL default '0',
      `language` varchar(20) NOT NULL default '',
      `usergroup` int(10) unsigned NOT NULL default '0',
      `useragent` varchar(200) NOT NULL default '',
      `lastvisit` bigint(30) NOT NULL default '0',
      PRIMARY KEY  (`sid`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;
    INSERT INTO `mybb_spiders` (`sid`, `name`, `theme`, `language`, `usergroup`, `useragent`, `lastvisit`) VALUES
    (11, 'Google Adsense [Bot]', 0, '', 0, 'Mediapartners-Google', 0),
    (12, 'Google Desktop', 0, '', 0, 'Google Desktop', 0),
    (13, 'Google Feedfetcher', 0, '', 0, 'Feedfetcher-Google', 0),
    (14, 'Gigabot [Bot]', 0, '', 0, 'Gigabot/', 0),
    (15, 'Heise IT-Markt [Crawler]', 0, '', 0, 'heise-IT-Markt-Crawler', 0),
    (16, 'Heritrix [Crawler]', 0, '', 0, 'heritrix/1.', 0),
    (17, 'IBM Research [Bot]', 0, '', 0, 'ibm.com/cs/crawler', 0),
    (18, 'ICCrawler - ICjobs', 0, '', 0, 'ICCrawler - ICjobs', 0),
    (19, 'ichiro [Crawler]', 0, '', 0, 'ichiro/2', 0),
    (20, 'Majestic-12 [Bot]', 0, '', 0, 'MJ12bot/', 0),
    (21, 'Metager [Bot]', 0, '', 0, 'MetagerBot/', 0),
    (22, 'MSN NewsBlogs', 0, '', 0, 'msnbot-NewsBlogs/', 0),
    (23, 'MSN [Bot]', 0, '', 0, 'msnbot/', 0),
    (24, 'MSNbot Media', 0, '', 0, 'msnbot-media/', 0),
    (25, 'NG-Search [Bot]', 0, '', 0, 'NG-Search/', 0),
    (26, 'Nutch [Bot]', 0, '', 0, 'http://lucene.apache.org/nutch/', 0),
    (27, 'Nutch/CVS [Bot]', 0, '', 0, 'NutchCVS/', 0),
    (28, 'OmniExplorer [Bot]', 0, '', 0, 'OmniExplorer_Bot/', 0),
    (29, 'Online link [Validator]', 0, '', 0, 'online link validator', 0),
    (30, 'psbot [Picsearch]', 0, '', 0, 'psbot/0', 0),
    (31, 'Seekport [Bot]', 0, '', 0, 'Seekbot/', 0),
    (32, 'Sensis [Crawler]', 0, '', 0, 'Sensis Web Crawler', 0),
    (33, 'SEO Crawler', 0, '', 0, 'SEO search Crawler/', 0),
    (34, 'Seoma [Crawler]', 0, '', 0, 'Seoma [SEO Crawler]', 0),
    (35, 'SEOSearch [Crawler]', 0, '', 0, 'SEOsearch/', 0),
    (36, 'Snappy [Bot]', 0, '', 0, 'Snappy/1.1 ( http://www.urltrends.com/ )', 0),
    (37, 'Steeler [Crawler]', 0, '', 0, 'http://www.tkl.iis.u-tokyo.ac.jp/~crawler/', 0),
    (38, 'Synoo [Bot]', 0, '', 0, 'SynooBot/', 0),
    (39, 'Telekom [Bot]', 0, '', 0, 'crawleradmin.t-info@telekom.de', 0),
    (40, 'TurnitinBot [Bot]', 0, '', 0, 'TurnitinBot/', 0),
    (41, 'Voyager [Bot]', 0, '', 0, 'voyager/1.0', 0),
    (42, 'W3 [Sitesearch]', 0, '', 0, 'W3 SiteSearch Crawler', 0),
    (43, 'W3C [Linkcheck]', 0, '', 0, 'W3C-checklink/', 0),
    (44, 'W3C [Validator]', 0, '', 0, 'W3C_*Validator', 0),
    (45, 'WiseNut [Bot]', 0, '', 0, 'http://www.WISEnutbot.com', 0),
    (46, 'YaCy [Bot]', 0, '', 0, 'yacybot', 0),
    (47, 'Yahoo MMCrawler [Bot]', 0, '', 0, 'Yahoo-MMCrawler/', 0),
    (48, 'Yahoo Slurp [Bot]', 0, '', 0, 'Yahoo! DE Slurp', 0),
    (49, 'Francis [Bot]', 0, '', 0, 'http://www.neomo.de/', 0),
    (50, 'YahooSeeker [Bot]', 0, '', 0, 'YahooSeeker/', 0),
    (51, 'AdsBot [Google]', 0, '', 0, 'AdsBot-Google', 0),
    (52, 'Baidu [Spider]', 0, '', 0, 'Baiduspider+(', 0),
    (53, 'Exabot [Bot]', 0, '', 0, 'Exabot/', 0),
    (54, 'FAST Enterprise [Crawler]', 0, '', 0, 'FAST Enterprise Crawler', 0),
    (55, 'FAST WebCrawler [Crawler]', 0, '', 0, 'FAST-WebCrawler/', 0);
    ?>

  2. #2
    Upppppppppppp

  3. #3
    UPPPPPPPPPPPPPPPP

  4. #4
    uppppppppppppppppp

  5. #5
    uppppppppppppppppppppppppp

  6. #6
    Se specifichi cosa non va è piu facile aiutarti.. tra l'altro manca una parentesi graffa alla fine della funzione Aggiungi_bots()..

    Che errore ti da?
    Questa volta, più che un voto.. è favoreggiamento.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.