Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Lee Johnstone  >  Anope_php  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: full example usage of anope php class
Class: Anope_php
Display statistics from anope IRC services
Author: By
Last change:
Date: 2009-04-10 08:06
Size: 25,487 bytes
 

Contents

Class file image Download
<?php
/*
Class name: index.php
Class description: full example of anope_php class
Class release date: 11-04-09
Class updated: 
Class site: www.freakcms.com
Class author: lee johnstone
Class contact: info@freakcms.com
Class license: 
http://www.freakcms.com 
http://creativecommons.org/licenses/by-sa/3.0/

--------------------------------------------------------------------------------------------------------------------------

YOU MAY NOT
1. Use this for commercial usage
2. Claim the code as your own
3. Remove any copyrights from its original authors

YOU MAY

1. Upgrade, Update, Adjust, Modify this script, providing you keep all original comments.
2. Redistribute this code under the same license and none other.
3. Modify and use this script on your own site as you wish, providing you keep the copyright markings from original authors.


More information here.
http://www.freakcms.com

--------------------------------------------------------------------------------------------------------------------------

	Examples of usage
	
    include 'class.anope_php.php';
	
	$anope = new Anope_Connect();
	
	echo $anope->html_head; // displays the global header
	echo $anope->html_footer; // displays the global footer

	## obtain single details via id
	
	echo $anope->Get_Details('SQL Table','Match Colum', ID,'SQL Colum');
	
	## Generate list
	
	echo $anope->GenList('type');
	
	## List of Generate List types
	
	users
	channels
	bots
	badwords
	akicks
	chaccess
	memos
	osnews
	nsrequests
	expts
	akills
	sqlines
	sglines
	szlines
	
	## for more information relating to anopes sql tables please take the time to study and learn them or check here 
	http://wiki.anope.org/index.php/Technical_Documents:MySQL:Scheme
	
	WARNING
	
	Below is a full Example using every possible output
	
	WARNING
	
	I strongly advise not to use this coding with out secureing it within a user or administrator page
	as this information can leak vital information relating to users irc accounts and anope irc services core details.
	
	
	
*/

    include 'class.anope_php.php';
	$anope = new Anope_Connect();
	echo $anope->html_head;
	echo '<a href="./"><img src="data/ANOPE_PHP.gif" border="0px"></a>';
	/* display a single users details by id  */	
if($_GET['usr']){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo '<h1 class="title">User '.$anope->Get_Details('anope_ns_alias','na_id', $_GET['usr'],'display').' Details</h1>';
	echo '<ul><li>Display Name: '.$anope->Get_Details('anope_ns_alias','na_id', $_GET['usr'],'display');
	echo '</li><li>Display Nick: '.$anope->Get_Details('anope_ns_alias','na_id', $_GET['usr'],'nick');
	echo '</li><li>Last User Mask: '.$anope->Get_Details('anope_ns_alias','na_id', $_GET['usr'],'last_usermask');
	echo '</li><li>Last Real Name: '.$anope->Get_Details('anope_ns_alias','na_id', $_GET['usr'],'last_realname');
	echo '</li><li>Last Quit msg: '.$anope->Get_Details('anope_ns_alias','na_id', $_GET['usr'],'last_quit');
	echo '</li><li>Last Real Name: '.$anope->Get_Details('anope_ns_core','nc_id', $_GET['usr'],'email');
	echo '</li><li>Current icq: '.$anope->Get_Details('anope_ns_core','nc_id', $_GET['usr'],'icq');
	echo '</li><li>Current url: '.$anope->Get_Details('anope_ns_core','nc_id', $_GET['usr'],'url');
	echo '</li><li>Current flags: '.$anope->Get_Details('anope_ns_core','nc_id', $_GET['usr'],'flags');
	echo '</li><li>Current Language: '.$anope->Get_Details('anope_ns_core','nc_id', $_GET['usr'],'language');
	echo '</li><li>Current Access: '.$anope->Get_Details('anope_ns_core','nc_id', $_GET['usr'],'accesscount');
	echo '</li><li>Current Memos: '.$anope->Get_Details('anope_ns_core','nc_id', $_GET['usr'],'memocount');
	echo '</li><li>Current Owned channels: '.$anope->Get_Details('anope_ns_core','nc_id', $_GET['usr'],'channelcount');
	echo '</li><li>Max Memos allowed: '.$anope->Get_Details('anope_ns_core','nc_id', $_GET['usr'],'memomax');
	echo '</li><li>Max Reg channels allowed: '.$anope->Get_Details('anope_ns_core','nc_id', $_GET['usr'],'channelmax');
	echo '</li><li>Greet msg: '.$anope->Get_Details('anope_ns_core','nc_id', $_GET['usr'],'greet');
	echo '</li><li>User active: '.$anope->Get_Details('anope_ns_core','nc_id', $_GET['usr'],'active');
	echo '</li></ul>';
	/* display a single channels details by id*/	
	}elseif($_GET['chn']){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo '<h1 class="title">Bot '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'name').' Details</h1>';
	echo '<ul><li>Channel Name: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'name');
	echo '</li><li>Channel Founder: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'founder');
	echo '</li><li>Channel Successor: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'successor');
	echo '</li><li>Channel Description: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'descr');
	echo '</li><li>Channel url: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'url');
	echo '</li><li>Channel email: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'email');
	echo '</li><li>Channel time registered: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'time_registered');
	echo '</li><li>Channel time last used: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'last_used');
	echo '</li><li>Channel topic: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'last_topic');
	echo '</li><li>Channel topic setter: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'last_topic_setter');
	echo '</li><li>Channel topic set time: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'last_topic_time');
	echo '</li><li>Channel flags: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'flags');
	echo '</li><li>Channel bans: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'forbidby');
	echo '</li><li>Channel ban reasons: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'forbidreason');
	echo '</li><li>Channel ban type: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'bantype');
	echo '</li><li>Channel access count: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'accesscount');
	echo '</li><li>Channel kick count: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'akickcount');
	echo '</li><li>Channel mlock on: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'mlocko_on');
	echo '</li><li>Channel mlock off: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'mlock_off');
	echo '</li><li>Channel mlock limit: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'mlock_limit');
	echo '</li><li>Channel mlock key: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'mlock_key');
	echo '</li><li>Channel mlock flood: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'mlock_flood');
	echo '</li><li>Channel mlock rdirect: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'mlock_rdirect');
	echo '</li><li>Channel entry messages: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'entry_message');
	echo '</li><li>Channel max memos: ' .$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'memomax');
	echo '</li><li>Channel bot nick: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'botnick');
	echo '</li><li>Channel bot flags: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'botflags');
	echo '</li><li>Channel badword count:'.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'bwcount');
	echo '</li><li>Channel caps min: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'capsmin');
	echo '</li><li>Channel caps percentage: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'capspercent');
	echo '</li><li>Channel flood lines: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'floodlines');
	echo '</li><li>Channel flood secs: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'floodsecs');
	echo '</li><li>Channel repeat times: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'repeattimes');
	echo '</li><li>Channel active: '.$anope->Get_Details('anope_cs_info','ci_id', $_GET['chn'],'active');
	echo '</li></ul>';
	/* display a single bots details by id */	
	}elseif($_GET['bot']){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo '<h1 class="title">Bot '.$anope->Get_Details('anope_bs_core','bs_id', $_GET['bot'],'nick').' Details</h1>';	
	echo '</li><li>Bot Nick Name: '.$anope->Get_Details('anope_bs_core','bs_id', $_GET['bot'],'nick');
	echo '</li><li>Bot User Name: '.$anope->Get_Details('anope_bs_core','bs_id', $_GET['bot'],'user');
	echo '</li><li>Bot Host Mask: '.$anope->Get_Details('anope_bs_core','bs_id', $_GET['bot'],'host');
	echo '</li><li>Bot Real Name: '.$anope->Get_Details('anope_bs_core','bs_id', $_GET['bot'],'rname');
	echo '</li><li>Bot Flags: '.$anope->Get_Details('anope_bs_core','bs_id', $_GET['bot'],'flags');
	echo '</li><li>Bot Channels: '.$anope->Get_Details('anope_bs_core','bs_id', $_GET['bot'],'chancount');
	echo '</li><li>Bot Created: '.$anope->Get_Details('anope_bs_core','bs_id', $_GET['bot'],'created');
	echo '</li><li>Bot Active '.$anope->Get_Details('anope_bs_core','bs_id', $_GET['bot'],'active');
	echo '</li></ul>';
	/* display a single badword action details by id*/	
	}elseif($_GET['badword']){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo '<h1 class="title">badword '.$anope->Get_Details('anope_cs_badwords','cw_id', $_GET['badword'],'cw_id').' Details</h1>';	
	echo '<ul><li>Badword id: '.$anope->Get_Details('anope_cs_badwords','cw_id', $_GET['badword'],'cw_id');
	echo '</li><li>Badword channel: '.$anope->Get_Details('anope_cs_badwords','cw_id', $_GET['badword'],'channel');
	echo '</li><li>Badword word: '.$anope->Get_Details('anope_cs_badwords','cw_id', $_GET['badword'],'word');
	echo '</li><li>Badword type: '.$anope->Get_Details('anope_cs_badwords','cw_id', $_GET['badword'],'type');
	echo '</li><li>Badword active: '.$anope->Get_Details('anope_cs_badwords','cw_id', $_GET['badword'],'active');
	echo '</li></ul>';
	/* display a single akick details by id */	
	}elseif($_GET['akicks']){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo '<h1 class="title">Akick '.$anope->Get_Details('anope_cs_akicks','ck_id', $_GET['akicks'],'dmask').' Details</h1>';	
	echo '<ul><li>Akick id: '.$anope->Get_Details('anope_cs_akicks','ck_id', $_GET['akicks'],'ck_id');
	echo '</li><li>Akick channel: '.$anope->Get_Details('anope_cs_akicks','ck_id', $_GET['akicks'],'channel');
	echo '</li><li>Akick flags: '.$anope->Get_Details('anope_cs_akicks','ck_id', $_GET['akicks'],'flags');
	echo '</li><li>Akick dmask: '.$anope->Get_Details('anope_cs_akicks','ck_id', $_GET['akicks'],'dmask');
	echo '</li><li>Akick reason: '.$anope->Get_Details('anope_cs_akicks','ck_id', $_GET['akicks'],'reason');
	echo '</li><li>Akick creator: '.$anope->Get_Details('anope_cs_akicks','ck_id', $_GET['akicks'],'creator');
	echo '</li><li>Akick addtime: '.$anope->Get_Details('anope_cs_akicks','ck_id', $_GET['akicks'],'addtime');
	echo '</li><li>Akick active: '.$anope->Get_Details('anope_cs_akicks','ck_id', $_GET['akicks'],'active');
	echo '</li></ul>';
	/* display a single channel access by id */	
	}elseif($_GET['chanaccess']){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo '<h1 class="title">chaccess '.$anope->Get_Details('anope_cs_access','ca_id', $_GET['chanaccess'],'display').' Details</h1>';	
	echo '<ul><li>chaccess id: '.$anope->Get_Details('anope_cs_access','ca_id', $_GET['chanaccess'],'ca_id');
	echo '</li><li>chaccess channel: '.$anope->Get_Details('anope_cs_access','ca_id', $_GET['chanaccess'],'channel');	
	echo '</li><li>chaccess level: '.$anope->Get_Details('anope_cs_access','ca_id', $_GET['chanaccess'],'level');	
	echo '</li><li>chaccess display: '.$anope->Get_Details('anope_cs_access','ca_id', $_GET['chanaccess'],'display');	
	echo '</li><li>chaccess last seen: '.$anope->Get_Details('anope_cs_access','ca_id', $_GET['chanaccess'],'last_seen');	
	echo '</li><li>chaccess active: '.$anope->Get_Details('anope_cs_access','ca_id', $_GET['chanaccess'],'active');	
	echo '</li></ul>';
	/* display a single memo by id */	
	}elseif($_GET['memo']){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo '<h1 class="title">Memo '.$anope->Get_Details('anope_ms_info','nm_id', $_GET['memo'],'number').' Details</h1>';	
	echo '<ul><li>Memo id: '.$anope->Get_Details('anope_ms_info','nm_id', $_GET['memo'],'ca_id');
	echo '</li><li>Memo receiver: '.$anope->Get_Details('anope_ms_info','nm_id', $_GET['memo'],'receiver');	
	echo '</li><li>Memo number: '.$anope->Get_Details('anope_ms_info','nm_id', $_GET['memo'],'number');	
	echo '</li><li>Memo flags: '.$anope->Get_Details('anope_ms_info','nm_id', $_GET['memo'],'flags');	
	echo '</li><li>Memo time: '.$anope->Get_Details('anope_ms_info','nm_id', $_GET['memo'],'time');	
	echo '</li><li>Memo sender: '.$anope->Get_Details('anope_ms_info','nm_id', $_GET['memo'],'sender');	
	echo '</li><li>Memo text: '.$anope->Get_Details('anope_ms_info','nm_id', $_GET['memo'],'text');	
	echo '</li><li>Memo server: '.$anope->Get_Details('anope_ms_info','nm_id', $_GET['memo'],'serv');	
	echo '</li><li>Memo active: '.$anope->Get_Details('anope_ms_info','nm_id', $_GET['memo'],'active');	
	echo '</li></ul>';
	/* display a single news by id */	
	}elseif($_GET['news']){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo '<h1 class="title">news '.$anope->Get_Details('anope_os_news','on_id', $_GET['news'],'num').' Details</h1>';	
	echo '<ul><li>news id: '.$anope->Get_Details('anope_os_news','on_id', $_GET['news'],'on_id');
	echo '</li><li>news type: '.$anope->Get_Details('anope_os_news','on_id', $_GET['news'],'type');	
	echo '</li><li>news number: '.$anope->Get_Details('anope_os_news','on_id', $_GET['news'],'num');	
	echo '</li><li>news text: '.$anope->Get_Details('anope_os_news','on_id', $_GET['news'],'ntext');	
	echo '</li><li>news who: '.$anope->Get_Details('anope_os_news','on_id', $_GET['news'],'who');	
	echo '</li><li>news time: '.$anope->Get_Details('anope_os_news','on_id', $_GET['news'],'time');	
	echo '</li><li>news active: '.$anope->Get_Details('anope_os_news','on_id', $_GET['news'],'active');	
	echo '</li></ul>';
	/* display a single request by id*/	
	}elseif($_GET['request']){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo '<h1 class="title">Requests '.$anope->Get_Details('anope_ns_request','nr_id', $_GET['request'],'nick').' nick</h1>';	
	echo '<ul><li>Request id: '.$anope->Get_Details('anope_ns_request','nr_id', $_GET['request'],'on_id');
	echo '</li><li>Request nick: '.$anope->Get_Details('anope_ns_request','nr_id', $_GET['request'],'nick');	
	echo '</li><li>Request password: '.$anope->Get_Details('anope_ns_request','nr_id', $_GET['request'],'password');	
	echo '</li><li>Request passcode: '.$anope->Get_Details('anope_ns_request','nr_id', $_GET['request'],'passcode');	
	echo '</li><li>Request email: '.$anope->Get_Details('anope_ns_request','nr_id', $_GET['request'],'email');	
	echo '</li><li>Request requested: '.$anope->Get_Details('anope_ns_request','nr_id', $_GET['request'],'requested');	
	echo '</li><li>Request active: '.$anope->Get_Details('anope_ns_request','nr_id', $_GET['request'],'active');	
	echo '</li></ul>';
	/* display a single expection by id  */	
	}elseif($_GET['expt']){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo '<h1 class="title">Execption '.$anope->Get_Details('anope_os_exceptions','oe_id', $_GET['expt'],'mask').' mask</h1>';	
	echo '<ul><li>Exception id: '.$anope->Get_Details('anope_os_exceptions','oe_id', $_GET['expt'],'oe_id');
	echo '</li><li>Exception mask: '.$anope->Get_Details('anope_os_exceptions','oe_id', $_GET['expt'],'mask');	
	echo '</li><li>Exception lim: '.$anope->Get_Details('anope_os_exceptions','oe_id', $_GET['expt'],'lim');	
	echo '</li><li>Exception who: '.$anope->Get_Details('anope_os_exceptions','oe_id', $_GET['expt'],'who');	
	echo '</li><li>Exception reason: '.$anope->Get_Details('anope_os_exceptions','oe_id', $_GET['expt'],'reason');	
	echo '</li><li>Exception time: '.$anope->Get_Details('anope_os_exceptions','oe_id', $_GET['expt'],'time');	
	echo '</li><li>Exception expire: '.$anope->Get_Details('anope_os_exceptions','oe_id', $_GET['expt'],'expires');	
	echo '</li><li>Exception active: '.$anope->Get_Details('anope_os_exceptions','oe_id', $_GET['expt'],'active');	
	echo '</li></ul>';
	/* display a single kill by id */	
	}elseif($_GET['akill']){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo '<h1 class="title">akill '.$anope->Get_Details('anope_os_akills','ok_id', $_GET['akill'],'user').' user</h1>';	
	echo '<ul><li>akill id: '.$anope->Get_Details('anope_os_akills','ok_id', $_GET['akill'],'ok_id');
	echo '</li><li>akill user: '.$anope->Get_Details('anope_os_akills','ok_id', $_GET['akill'],'user');	
	echo '</li><li>akill host: '.$anope->Get_Details('anope_os_akills','ok_id', $_GET['akill'],'host');	
	echo '</li><li>akill by: '.$anope->Get_Details('anope_os_akills','ok_id', $_GET['akill'],'xby');	
	echo '</li><li>akill reason: '.$anope->Get_Details('anope_os_akills','ok_id', $_GET['akill'],'reason');	
	echo '</li><li>akill seton: '.$anope->Get_Details('anope_os_akills','ok_id', $_GET['akill'],'seton');	
	echo '</li><li>akill expire: '.$anope->Get_Details('anope_os_akills','ok_id', $_GET['akill'],'expire');	
	echo '</li><li>akill active: '.$anope->Get_Details('anope_os_akills','ok_id', $_GET['akill'],'active');	
	echo '</li></ul>';
	/* display a single sqline by id*/	
	}elseif($_GET['sqline']){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo '<h1 class="title">sqline '.$anope->Get_Details('anope_os_sqlines','og_id', $_GET['sqline'],'mask').' mask</h1>';	
	echo '<ul><li>sqline id: '.$anope->Get_Details('anope_os_sqlines','og_id', $_GET['sqline'],'og_id');
	echo '</li><li>sqline mask: '.$anope->Get_Details('anope_os_sqlines','og_id', $_GET['sqline'],'mask');	
	echo '</li><li>sqline by: '.$anope->Get_Details('anope_os_sqlines','og_id', $_GET['sqline'],'xby');	
	echo '</li><li>sqline reason: '.$anope->Get_Details('anope_os_sqlines','og_id', $_GET['sqline'],'reason');	
	echo '</li><li>sqline seton: '.$anope->Get_Details('anope_os_sqlines','og_id', $_GET['sqline'],'seton');	
	echo '</li><li>sqline expire: '.$anope->Get_Details('anope_os_sqlines','og_id', $_GET['sqline'],'expire');	
	echo '</li><li>sqline active: '.$anope->Get_Details('anope_os_sqlines','og_id', $_GET['sqline'],'active');	
	echo '</li></ul>';
	/* display a single sgline by id*/	
	}elseif($_GET['sgline']){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo '<h1 class="title">sgline '.$anope->Get_Details('anope_os_sglines','og_id', $_GET['sgline'],'mask').' mask</h1>';	
	echo '<ul><li>sgline id: '.$anope->Get_Details('anope_os_sglines','og_id', $_GET['sgline'],'og_id');
	echo '</li><li>sgline mask: '.$anope->Get_Details('anope_os_sglines','og_id', $_GET['sgline'],'mask');	
	echo '</li><li>sgline by: '.$anope->Get_Details('anope_os_sglines','og_id', $_GET['sgline'],'xby');	
	echo '</li><li>sgline reason: '.$anope->Get_Details('anope_os_sglines','og_id', $_GET['sgline'],'reason');	
	echo '</li><li>sgline seton: '.$anope->Get_Details('anope_os_sglines','og_id', $_GET['sgline'],'seton');	
	echo '</li><li>sgline expire: '.$anope->Get_Details('anope_os_sglines','og_id', $_GET['sgline'],'expire');	
	echo '</li><li>sgline active: '.$anope->Get_Details('anope_os_sglines','og_id', $_GET['sgline'],'active');	
	echo '</li></ul>';
	/* display a single szline by id */	
	}elseif($_GET['szline']){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo '<h1 class="title">szline '.$anope->Get_Details('anope_os_szlines','og_id', $_GET['szline'],'mask').' mask</h1>';	
	echo '<ul><li>szline id: '.$anope->Get_Details('anope_os_szlines','og_id', $_GET['szline'],'og_id');
	echo '</li><li>szline mask: '.$anope->Get_Details('anope_os_szlines','og_id', $_GET['szline'],'mask');	
	echo '</li><li>szline by: '.$anope->Get_Details('anope_os_szlines','og_id', $_GET['szline'],'xby');	
	echo '</li><li>szline reason: '.$anope->Get_Details('anope_os_szlines','og_id', $_GET['szline'],'reason');	
	echo '</li><li>szline seton: '.$anope->Get_Details('anope_os_szlines','og_id', $_GET['szline'],'seton');	
	echo '</li><li>szline expire: '.$anope->Get_Details('anope_os_szlines','og_id', $_GET['szline'],'expire');	
	echo '</li><li>szline active: '.$anope->Get_Details('anope_os_szlines','og_id', $_GET['szline'],'active');	
	echo '</li></ul>';
	/**
	*list display commands
	*/
	/* display users list */	
	}elseif(isset($_GET['lusrs'])){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo $anope->GenList('users');
	/* display channels list */	
	}elseif(isset($_GET['lchns'])){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo $anope->GenList('channels');
	/* display bots list */	
	}elseif(isset($_GET['lbots'])){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo $anope->GenList('bots');
	/* display badwords list */	
	}elseif(isset($_GET['lwords'])){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo $anope->GenList('badwords');
	/* display  a kicks list*/	
	}elseif(isset($_GET['akicks'])){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo $anope->GenList('akicks');
	/* display channel access list */	
	}elseif(isset($_GET['chaccess'])){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo $anope->GenList('chaccess');
	/* display memos list */	
	}elseif(isset($_GET['memos'])){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo $anope->GenList('memos');
	/* display osnews list */	
	}elseif(isset($_GET['osnews'])){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo $anope->GenList('osnews');
	/* display nickserv requests */	
	}elseif(isset($_GET['nsrequest'])){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo $anope->GenList('nsrequest');
	/* display operserv exceptions */	
	}elseif(isset($_GET['expts'])){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo $anope->GenList('expts');
	/* display operserv akills */	
	}elseif(isset($_GET['akills'])){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo $anope->GenList('akills');
	/* display operserv sqlines */	
	}elseif(isset($_GET['sqlines'])){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo $anope->GenList('sqlines');
	/* display  operserv sglines*/	
	}elseif(isset($_GET['sglines'])){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo $anope->GenList('sglines');
	/* display operserv szlines */	
	}elseif(isset($_GET['szlines'])){
	echo '<br /><a href="./"> Return Home</a><br />';
	echo $anope->GenList('szlines');
	}else{
	
	/* display core information */	
	
	echo '<ul class="main"><li class="main"><a href="http://www.anope.org/" target="_blank">Anope version: </a>'.$anope->Core('anope_info', 'version'); 
	echo '</li><li class="main">Server install Date: '.$anope->Core('anope_info', 'date');
	echo '</li><li class="main">There is '.$anope->Count_data('anope_ns_core','active').' total users';
	echo '</li><li class="main">There is <a href="index.php?lusrs">'.$anope->Count_data('anope_ns_core','').' active registered users</a>';
	echo '</li><li class="main">There is <a href="index.php?lchns">'.$anope->Count_data('anope_cs_info','').' Registered channels</a>';
	echo '</li><li class="main">There is <a href="index.php?lbots">'.$anope->Count_data('anope_bs_core','').' Registered botservs</a>';
	echo '</li><li class="main">There is <a href="index.php?lwords">'.$anope->Count_data('anope_cs_badwords','').' Chanserv bad words</a>';
	echo '</li><li class="main">There is <a href="index.php?akicks">'.$anope->Count_data('anope_cs_akicks','').' Chanserv a kicks</a>';
	echo '</li><li class="main">There is <a href="index.php?chaccess">'.$anope->Count_data('anope_cs_access','').' Chanserv access levels</a>';
	echo '</li><li class="main">There is <a href="index.php?memos">'.$anope->Count_data('anope_ms_info','').' Memoserv Memos</a>';
	echo '</li><li class="main">There is <a href="index.php?osnews">'.$anope->Count_data('anope_os_news','').' Operserv news</a>';
	echo '</li><li class="main">There is <a href="index.php?nsrequest">'.$anope->Count_data('anope_ns_request','').' Nickserv Requets</a>';
	echo '</li><li class="main">There is <a href="index.php?expts">'.$anope->Count_data('anope_os_exceptions','').' exceptions</a>';
	echo '</li><li class="main">Highest user Count: '.$anope->Core('anope_os_core', 'maxusercnt');
	echo '</li><li class="main">Highest user count time: '.microtime($anope->Core('anope_os_core', 'maxusertime'));
	echo '</li><li class="main">Total <a href="index.php?akills">Akills:</a> '.$anope->Core('anope_os_core', 'akills_count');
	echo '</li><li class="main">Total <a href="index.php?sglines">sglines:</a> '.$anope->Core('anope_os_core', 'sglines_count');
	echo '</li><li class="main">Total <a href="index.php?sqlines">sqlines:</a> '.$anope->Core('anope_os_core', 'sqlines_count');
	echo '</li><li class="main">Total <a href="index.php?szlines">szlines:</a> '.$anope->Core('anope_os_core', 'szlines_count').'</li></ul>';
	}
	echo $anope->html_foot;
	?>