x2Fusion

PHP-IRCd Configs.php

Sep 12th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.08 KB | None | 0 0
  1. <?php
  2.  
  3. return array(
  4.  
  5. // (string) Hostname of the server. Must be a valid domain name, doens't
  6. // have to exist though. You might want to have it acutally resolve to
  7. // the server IP. This is used in the onconnect greet, server notices,
  8. // /links, /map, /who, etc.
  9. //
  10. // Examples: zeus.devnode.org
  11. //           card.freenode.net
  12. //           irc.hackthissite.org
  13. //           localhost. (xD)
  14. //
  15.         'hostname'      =>      'localhost.',
  16.        
  17.        
  18. // (string) Name of the network. Should be global accross a network
  19. // (once php-ircd links). Make it short and sweet! Can't have spaces.
  20. //
  21. // Examples: DevNet
  22. //           DevNode
  23. //           Freenode
  24. //           HackThisSite
  25. //           Localhost
  26. //
  27.         'servname'      =>      'LocalNet',
  28.        
  29.        
  30. // (string)
  31. // IP to bind IRC server to
  32. //
  33.         'bindaddr'      =>      '0.0.0.0',
  34.        
  35.        
  36. // (integer) TCP/IP port that will be listened on for incoming clients.
  37. //
  38. // Range: Any TCP/IP port (1-51something)
  39. // Default: 6667 (Standard)
  40. //
  41.         'bindport'      =>      6667,
  42.        
  43.        
  44. // (integer) Maximum packet length, in bytes. 512 is the standard.
  45. //
  46.         'maxlen'        =>      512,
  47.        
  48.        
  49. // (integer) Maximum amount of users that can be connected to the IRCd
  50. // at ay time. When links work, this will only be local client but will
  51. // include server links.
  52. //
  53. // Prefered range: 10-100
  54. // Default: 25
  55. //
  56.         'maxuser'       =>      25,
  57.        
  58.        
  59. // (string) MOTD (Message of the Day). Shown to everyone when they
  60. // connect and/or use the /motd command.
  61. //
  62.         'motd'          =>      "THIS IS THE MESSAGE OF THE DAY!
  63. Welcome to my PHP IRCd test server!
  64. #help is the main channel on here!",
  65.        
  66.        
  67. // ((string,string)[]) O:Lines
  68. // O:Lines define opers. You oper with /oper <username> <password>
  69. // (without the < and >, of course). You may deifne multiple O:Lines.
  70. //
  71. // Definition syntax:
  72. // array('username' => 'password', 'username2', => 'password2')
  73. //
  74.         'opers'         => array('Nick1', 'password')
  75.  
  76. );
Advertisement
Add Comment
Please, Sign In to add comment