php-groups.com | Post Question | Search | About | Groups | Contact | Register | Login


New in This Group

������� ���� �� �. �������
11/23/2007 9:06:57 AM

� ������ ����� ��� �����������
11/4/2007 12:40:29 AM

� ������ ���� �� �������������
7/31/2007 8:50:32 AM

Agregando valor ao seu produto!
3/12/2007 6:53:39 PM

cvs: pearbot /modules bugstats.php
8/21/2006 5:23:39 PM

cvs: pearbot / config.php
2/3/2003 3:50:05 PM

cvs: pearbot / PEARbot.sql
2/3/2003 3:49:08 PM

PEARbot daemon checker
2/2/2003 6:51:27 PM

cvs: pearbot / PEARbot.php
2/2/2003 6:35:04 PM

cvs: pearbot / PEARbot.php config.php
2/2/2003 2:14:33 PM

cvs: pearbot / PEARbot.php config.php Reply

Group: php.pear.bot Subscribe Posted:2/2/2003 2:14:33 PM Replies:0 Views:24 Items(0)
imajes Sun Feb 2 09:14:33 2003 EDT

Modified files:
/pearbot PEARbot.php config.php
Log:
some updates to the header, and beginning of abstraction of config opts.


Index: pearbot/PEARbot.php
diff -u pearbot/PEARbot.php:1.2 pearbot/PEARbot.php:1.3
--- pearbot/PEARbot.php:1.2 Sun Feb 2 08:48:15 2003
+++ pearbot/PEARbot.php Sun Feb 2 09:14:33 2003
@@ -1,19 +1,16 @@
#!/home/meebey/PEARbot/php
<?php
/**
- * $Id: PEARbot.php,v 1.2 2003/02/02 13:48:15 meebey Exp $
- * $Revision: 1.2 $
- * $Author: meebey $
- * $Date: 2003/02/02 13:48:15 $
+ * $Id: PEARbot.php,v 1.3 2003/02/02 14:14:33 imajes Exp $
*
* PEARbot
- * this is the IRC service bot for #pear writtin in PHP
+ * this is an IRC service bot for #pear written in PHP
*
* Copyright (C) 2003:
* Mirco 'MEEBEY' Bauer <meebey@php.net>
* James 'imajes' Cox <james@imajes.info>
*
- * Full GPL License: <http://www.meebey.net/gpl.txt>
+ * Full GPL License: < http://www.gnu.org/licenses/gpl.txt>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -137,8 +134,8 @@
$irc->setUseSockets(true);
$irc->registerActionhandler(SMARTIRC_TYPE_JOIN, '.*', $bot, 'onjoin');
$irc->connect('efnet.skynet.be', 6668);
-$irc->login('PEARbot2', 'PEAR IRC service bot for #pear', 8, 'PEARbot');
+$irc->login($config['nick'], $config['real_name'], 8, $config['alt_nick']);
$irc->join('#pear');
$irc->listen();
$irc->disconnect();
-?>
\ No newline at end of file
+?>
Index: pearbot/config.php
diff -u pearbot/config.php:1.1.1.1 pearbot/config.php:1.2
--- pearbot/config.php:1.1.1.1 Sun Feb 2 08:38:09 2003
+++ pearbot/config.php Sun Feb 2 09:14:33 2003
@@ -1,6 +1,46 @@
<?php
+/**
+ * $Id: config.php,v 1.2 2003/02/02 14:14:33 imajes Exp $
+ *
+ * PEARbot
+ * this is the IRC service bot for #pear writtin in PHP
+ *
+ * Copyright (C) 2003:
+ * Mirco 'MEEBEY' Bauer <meebey@php.net>
+ * James 'imajes' Cox <james@imajes.info>
+ *
+ * Full GPL License: < http://www.gnu.org/licenses/gpl.txt >
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ */
+
+/* database settings */
+
$mysql_server = '10.0.0.5';
$mysql_username = 'pearbot';
$mysql_password = 'x';
$mysql_db = 'pearbot';
-?>
\ No newline at end of file
+
+/* general settings */
+
+$config = array();
+
+$config['real_name'] = 'PEAR IRC service bot for #pear <pearbot@lists.php.net>';
+$config['nick'] = 'PEARbot';
+$config['alt_nick'] = 'PEARbot2';
+
+/*XXX: change the nicks into an array of preferred nicks, and maybe a regex style match of alternative dynamic ones */
+?>


ja...@imajes.info ("James Cox")
2/2/2003 2:14:33 PM





Reply:
| or Email(not shown): Name: | Register | Login

Alert me when someone responds to this posting.











Newest Articles

note 97095 added to soapclient.soapclient
4/1/2010 5:58:19 AM

note 97094 added to function.sqlite-changes
4/1/2010 5:06:46 AM

note 97093 added to function.sqlite-changes
4/1/2010 5:06:21 AM

note 97092 added to ref.xmlrpc
4/1/2010 4:52:18 AM

note 97091 added to function.var-export
4/1/2010 3:32:03 AM