PHP Classes

File: configs.php

Recommend this page to a friend!
  Classes of Nick Daniels   PHP IRC Server   configs.php   Download  
File: configs.php
Role: Configuration script
Content type: text/plain
Description: Configuration File
Class: PHP IRC Server
Implement an IRC chat server in pure PHP
Author: By
Last change: Def
Date: 8 years ago
Size: 2,127 bytes
 

Contents

Class file image Download
<?php
 
return array(
 
// (string) Hostname of the server. Must be a valid domain name, doens't
// have to exist though. You might want to have it acutally resolve to
// the server IP. This is used in the onconnect greet, server notices,
// /links, /map, /who, etc.
//
// Examples: zeus.devnode.org
// card.freenode.net
// irc.hackthissite.org
// localhost. (xD)
//
       
'hostname' => 'localhost.',
      
      
// (string) Name of the network. Should be global accross a network
// (once php-ircd links). Make it short and sweet! Can't have spaces.
//
// Examples: DevNet
// DevNode
// Freenode
// HackThisSite
// Localhost
//
       
'servname' => 'LocalNet',
      
      
// (string)
// IP to bind IRC server to
//
       
'bindaddr' => '0.0.0.0',
      
      
// (integer) TCP/IP port that will be listened on for incoming clients.
//
// Range: Any TCP/IP port (1-51something)
// Default: 6667 (Standard)
//
       
'bindport' => 6667,
      
      
// (integer) Maximum packet length, in bytes. 512 is the standard.
//
       
'maxlen' => 512,
      
      
// (integer) Maximum amount of users that can be connected to the IRCd
// at ay time. When links work, this will only be local client but will
// include server links.
//
// Prefered range: 10-100
// Default: 25
//
       
'maxuser' => 25,
      
      
// (string) MOTD (Message of the Day). Shown to everyone when they
// connect and/or use the /motd command.
//
       
'motd' => "THIS IS THE MESSAGE OF THE DAY!
Welcome to my PHP IRCd test server!
#help is the main channel on here!"
,
      
      
// ((string,string)[]) O:Lines
// O:Lines define opers. You oper with /oper <username> <password>
// (without the < and >, of course). You may deifne multiple O:Lines.
//
// Definition syntax:
// array('username' => 'password', 'username2', => 'password2')
//
       
'opers' => array('Nick1', 'password')
 
);