⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example5.php

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 PHP
字号:
<?php/** * $Id: example5.php,v 1.2.2.1 2004/12/20 15:54:51 meebey Exp $ * $Revision: 1.2.2.1 $ * $Author: meebey $ * $Date: 2004/12/20 15:54:51 $ * * Copyright (C) 2002-2003 Mirco "MEEBEY" Bauer <mail@meebey.net> <http://www.meebey.net> *  * Full LGPL License: <http://www.meebey.net/lgpl.txt> *  * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */// ---EXAMPLE OF HOW TO USE Net_SmartIRC---// this code shows how a mini php bot could be writteninclude_once('Net/SmartIRC.php');class mybot{    function kick(&$irc, &$data)    {        // we need the nickname parameter        if(isset($data->messageex[1])) {            $nickname = $data->messageex[1];            $channel = $data->channel;            $irc->kick($channel, $nickname);        } else {            $irc->message( $data->type, $data->nick, 'wrong parameter count' );            $irc->message( $data->type, $data->nick, 'usage: !kick $nickname' );        }    }}$bot = &new mybot();$irc = &new Net_SmartIRC();$irc->setDebug(SMARTIRC_DEBUG_ALL);$irc->setUseSockets(TRUE);$irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!kick', $bot, 'kick');$irc->connect('irc.freenet.de', 6667);$irc->login('Net_SmartIRC', 'Net_SmartIRC Client '.SMARTIRC_VERSION.' (example5.php)', 8, 'Net_SmartIRC');$irc->join('#test');$irc->listen();$irc->disconnect();?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -