Banner robo47.net

Unreal-IRC-Server - phpDenora installieren (Teil 11)

Gliederung:

phpDenora 3.2

phpDenora

phpDenora ist für die Ausgabe der von Denora gesammelten Statistiken auf einer Homepage nötig.

cd /src/
cp -R phpdenora/ /srv/lighttpd/htdocs/
chown -R irc-lighttpd:irc-lighttpd /srv/lighttpd
su irc-lighttpd
cd /srv/lighttpd/htdocs/phpdenora/
mv example.cfg.php phpdenora.cfg.php

jetzt wird die Config editiert:
<?php
// $Id: example.cfg.php 162 2006-02-03 01:29:05Z Hal9000 $

/** ensure this file is being included by a parent file */
defined( '_VALID_PARENT' ) or die( 'Direct Access to this location is not allowed.' );

/* ================================.
REQUIRED CONFIGURATION SETTINGS |
================================´
These settings are required for phpDenora to work
*/

/* IRC Network Information
----------------------- */

# The name of your Network
$pd_netname = "robo47.net";

# The URL of the Homepage of your Network
$pd_neturl = "http://irc.robo47.net/";

/* MySQL Configuration
------------------- */

# Username of the MySQL Database
$np_db_user = "root";

# Database Password
$np_db_pass = "xxx";

# Database name
$np_db_name = "denora";

/* Server Configuration
-------------------- */

# Available server types: asuka, bahamut, beware, charybdis, dreamforge, fqircd,
# hybrid, hyperion, inspircd, ircu, ircdreams, liquidircd, musircd, nefarious,
# neoircd, ngircd, plexus, ptlink, quakeircd, rageircd, ratbox, shadowircd,
# solidircd, sorcery, ultimate2, ultimate3, unreal31, unreal32, viagra
$denora_server_type = "unreal32";

# This is the name of the Denora server
$denora_server_name = "stats.robo47.net";

# Set this to an existing server name on the network (NOT a round robin!)
$denora_default_server = "stats.robo47.net";

# Comment or delete the following line to get phpdenora working...
#die("You should really read the configuration file carefully!");


/* ================================.
OPTIONAL CONFIGURATION SETTINGS |
================================´
These settings are not required and their defaults
should be fine, but you can change them as you wish
*/

/* Appearance
---------- */

# Default theme
# Available Themes: alternative, classic, classic_xp, modern
# Must match the name of the corresponding theme directory
$pd_style = "modern";

# Default language
# Available Languages: en (English), de (German), es (Spanish),
# fr (French), it (Italian), nl (Dutch), ro (Romanian)
# This will NOT override the automatic browser language detection
$pd_lang = "de";

/* Behavior
-------- */

# Set the default ordering column for user/channel stat tables.
# Available options: letters, words, line, actions, smileys, kicks, modes, topics
$pd_statsort = "line";

# Set the default stats type for user/channel stat tables.
# Available options: 0: Total, 1: Today, 2: This Week, 3: This Month
$pd_stattype = "3";

/* Server Configuration
-------------------- */

# Hide ulined servers
$denora_noshow_ulined = true;

# Servers you don't want phpDenora to show
# Separate with commas without spaces, example: "hub.mynet.tld,hub2.mynet.tld"
$denora_noshow_servers = "";

# Hides private and secret channels (+p/+s).
$pd_hidesecret = true;

# Channels you don't want phpDenora to show
# Separate with commas, without spaces
$denora_noshow_chans = "#opers,#services";

/* General Configuration
--------------------- */

# Sets the limit for table listed outputs
$pd_rlimit = 20;

# Sets the limit for TOP channels/users outputs on the front page
$pd_fptop = 5;

# Minimum amount of characters needed (excluding wildcards) to make a search query
$pd_minchars = 3;

# Enables online status and country lookups in user listings. This will require an additional
# query for each user, set this to false if you want to keep sql load low
$pd_statuslookup = true;

# Enables country statistics. Set to false if your ircds don't resolve hostnames.
$pd_entldstats = true;

# Enables client version statistics. Set to false if your Denora does not version your clients.
$pd_enverstats = true;

# Enables network statistics graphs.
$pd_ennetgraphs = true;

# Enable the mirc icon in the channel list
$pd_mirc = false;

# The URL for the mirc icon, including trailing slash
$pd_mirc_url = "irc://irc.mynet.tld:6667/";

# Enable the web chat icon in the channel list
$pd_webchat = false;

# The URL for the web chat icon
$pd_webchat_url = "http://webchat.mynet.tld/?chan=";

# Enable the remote api interface, which enables to easilly embed data in web sites
$pd_enremote = true;

/* Debug Options
------------- */

# 0: system default, 1: off, 2: php warnings, sql errors (used for development)
$pd_debug = 1;

# Set to true to show script execution time and number of sql queries
$pd_exec = true;

# Show links to xhtml and css validators
$pd_valid = false;

/* MySQL Configuration
------------------- */

# Hostname for your MySQL server
$np_db_host = "localhost";

# TCP port the mysql server is listening on
$np_db_port = "3306";

# Enable persistent sql connection
$np_db_connect = 1;

/* SQL TABLES
---------- */

# You should leave these settings as they are, unless you specified different tables in the denora config.
$denora_user_db = "user"; # Name of the Users table
$denora_chan_db = "chan"; # Name of the Channel table
$denora_chanbans_db = "chanbans"; # Name of the Channel Bans table
$denora_chanexcept_db = "chanexcept"; # Name of the Channel Exceptions table
$denora_chaninvite_db = "chaninvites"; # Name of the Channel Invites table
$denora_gline_db = "glines"; # Name of the Glines table
$denora_sqline_db = "sqline"; # Name of the SQLine table (required for Bahamut based ircd)
$denora_maxvalues = "maxvalues"; # Name of the Maxvalues table
$denora_server_db = "server"; # Name of the Servers table
$denora_ison_db = "ison"; # Name of the ISON table
$denora_tld_db = "tld"; # Name of the TLD table
$denora_cstats_db = "cstats"; # Name of the Chan Stats Channel table (cstats)
$denora_ustats_db = "ustats"; # Name of the Chan Stats User table (ustats)
$denora_current_db = "current"; # Name of the current stats table
$denora_serverstats = "serverstats"; # Name of the server hourly stats table
$denora_channelstats = "channelstats"; # Name of the channel hourly stats table
$denora_userstats = "stats"; # Name of the user hourly stats table
$denora_aliases_db = "aliases"; # Name of the aliases table

?>


so jetzt mal mit dem browser auf http://irc.robo47.net:10000/phpdenora/ gehen und schauen ob er grünes Licht gibt, wenn ja: mv welcome.dist.php welcome.php
rm setup.php
exit
Jetzt sollte man unter: http://irc.robo47.net:10000/phpdenora/ ein paar schöne Statistiken besitzen, um jedoch alle Features zu besitzen, muss man sich dann noch ein wenig mit dem Bot von Denora befassen, doch dazu mehr im nächsten Teil.

Nach oben Weiter zur Befehlseinweisung (Teil 12)

Hoch Pfeil nach Oben