@@ -0,0 +1,76 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="template/sbnciface/style.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<title><?php echo $this->scope["interfaceName"];?></title>
<script type="text/javascript">
$.fn.pause = function(duration) {
$(this).animate({ dummy: 1 }, duration);
return this;
};
$(document).ready(function () {
$(".success").pause(3000).fadeOut(2000);
});
$(document).ready(function () {
$(".error").pause(3000).fadeOut(2000);
});
function pickLanguage(language) {
document.langselector.lang.value = language;
document.langselector.submit();
return false;
}
</script>
</head>
<body>
<div id="pagebody">
<div id="container">
<div id="langselect">
<form action="" method="post" name="langselector">
<input type="hidden" name="lang" value="" />
<a href="javascript:" onclick="pickLanguage('en');"><img src="img/lang/en.png" alt="en" /></a>
<a href="javascript:" onclick="pickLanguage('sv');"><img src="img/lang/sv.png" alt="sv" /></a>
<a href="javascript:" onclick="pickLanguage('fi');"><img src="img/lang/fi.png" alt="fi" /></a>
</form>
</div>
<div id="header">
<div id="headpic"></div>
</div>
<div class="menu">
<ul>
<li><a href="<?php echo $this->scope["webRoot"];?>" ><?php echo $this->scope["status"];?></a></li>
<li><a href="#"><?php echo $this->scope["user"];?></a>
<ul>
<li><a href="?p=settings"><?php echo $this->scope["settings"];?></a></li>
<li><a href="?p=server"><?php echo $this->scope["server"];?></a></li>
<li><a href="?p=qauth"><?php echo $this->scope["q_settings"];?></a></li>
<li><a href="?p=away"><?php echo $this->scope["away"];?></a></li>
<li><a href="?p=channels"><?php echo $this->scope["channels"];?></a></li>
<li><a href="?p=log"><?php echo $this->scope["log"];?></a></li>
</ul>
</li>
<?php if ((isset($this->scope["sbncAdmin"]) ? $this->scope["sbncAdmin"] : null) == 1) {
?>
<li><a href="#"><?php echo $this->scope["admin"];?></a>
<ul>
<li><a href="?p=users"><?php echo $this->scope["users"];?></a></li>
<li><a href="?p=add"><?php echo $this->scope["add_user"];?></a></li>
<li><a href="?p=ipsettings"><?php echo $this->scope["trusted_ips"];?></a></li>
<li><a href="?p=vhosts"><?php echo $this->scope["vhosts"];?></a></li>
<li><a href="?p=global"><?php echo $this->scope["global_msg"];?></a></li>
</ul>
</li>
<?php
}?>

<li><a href="?logout"><?php echo $this->scope["logout"];?></a></li>
</ul>
</div>
<div id="content"><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,41 @@
<?php
/* template head */
if (class_exists('Dwoo_Plugin_cycle', false)===false)
$this->getLoader()->loadPlugin('cycle');
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}?>

<?php if ((isset($this->scope["logState"]) ? $this->scope["logState"] : null) == 'empty') {
?>
<?php echo $this->scope["logString"];?>

<?php
}
else {
?>
<?php
$_fh0_data = (isset($this->scope["logString"]) ? $this->scope["logString"] : null);
if ($this->isArray($_fh0_data) === true)
{
foreach ($_fh0_data as $this->scope['as']=>$this->scope['row'])
{
/* -- foreach start output */
?>
<div class="<?php echo $this->classCall('cycle', array('default', "one, two", true, true, ',', null, false));?>"><?php echo $this->scope["row"];?></div>
<?php
/* -- foreach end output */
}
}?>

<div class="button"><form action="" method="post"><input type="submit" value="<?php echo $this->scope["submitValue"];?>" name="do" /></form></div>
<?php
}
/* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,58 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="template/sbnciface/style.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<title><?php echo $this->scope["interfaceName"];?></title>
<script type="text/javascript">
$.fn.pause = function(duration) {
$(this).animate({ dummy: 1 }, duration);
return this;
};
$(document).ready(function () {
$(".success").pause(3000).fadeOut(2000);
});
$(document).ready(function () {
$(".error").pause(3000).fadeOut(2000);
});
function pickLanguage(language) {
document.langselector.lang.value = language;
document.langselector.submit();
return false;
}
</script>
</head>
<body onload="document.loginfield.username.focus()">
<div id="loginbody">
<div id="container">
<div id="langselect">
<form action="" method="post" name="langselector">
<input type="hidden" name="lang" value="" />
<a href="javascript:" onclick="pickLanguage('en');"><img src="img/lang/en.png" alt="en" /></a>
<a href="javascript:" onclick="pickLanguage('sv');"><img src="img/lang/sv.png" alt="sv" /></a>
<a href="javascript:" onclick="pickLanguage('fi');"><img src="img/lang/fi.png" alt="fi" /></a>
</form>
</div>
<div id="loginheader">
<div id="loginheadpic"></div>
</div>
<form action="" method="post" name="loginfield">
<table cellpadding="4" align="center">
<tr><td><?php echo $this->scope["usernameText"];?>:</td><td><input type="text" name="username" /></td></tr>
<tr><td><?php echo $this->scope["passwordText"];?>:</td><td><input type="password" name="password" /></td></tr>
<tr><td colspan="2" style="text-align: left;"><input type="checkbox" name="remember" value="1" /> <?php echo $this->scope["rememberMeText"];?></td></tr>
<tr><td colspan="2" style="text-align: right;"><input type="submit" name="do" value="<?php echo $this->scope["submitText"];?>" /></td></tr>
</table>
</form>
<div id="version"><?php echo $this->scope["ifaceVersion"];?></div>
</div>
</div>
</body>
</html><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,49 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <form action="" method="post">
<table id="tbl" align="center" width="400">
<?php if ((isset($this->scope["uptimeValue"]) ? $this->scope["uptimeValue"] : null) == 0) {
?>
<tr><td width="40%"><?php echo $this->scope["uptimeText"];?></td><td width="60%" id="uptime"><?php echo $this->scope["uptimeDisconnected"];?></td></tr>
<?php
}
else {
?>
<tr><td width="40%"><?php echo $this->scope["uptimeText"];?></td><td width="60%" id="uptime"></td></tr>
<?php
}?>

<tr><td width="40%"><?php echo $this->scope["nicknameText"];?></td><td width="60%"><?php echo $this->scope["nicknameValue"];?></td></tr>
<tr><td width="40%"><?php echo $this->scope["awaynickText"];?></td><td width="60%"><?php echo $this->scope["awaynickValue"];?></td></tr>
<tr><td width="40%"><?php echo $this->scope["awaymessageText"];?></td><td width="60%"><?php echo $this->scope["awaymessageValue"];?></td></tr>
<tr><td width="40%"><?php echo $this->scope["realnameText"];?></td><td width="60%"><?php echo $this->scope["realnameValue"];?></td></tr>
<tr><td width="40%"><?php echo $this->scope["serverText"];?></td><td width="60%"><?php echo $this->scope["serverValue"];?></td></tr>
<tr><td width="40%"><?php echo $this->scope["trafficText"];?></td><td width="60%"><?php echo $this->scope["trafficValue"];?></td></tr>
</table>
</form>
<script type="text/javascript">
<?php if ((isset($this->scope["uptimeValue"]) ? $this->scope["uptimeValue"] : null) > 0) {
?>
var UptimeTicks = <?php echo $this->scope["uptimeValue"];?>;
<?php
}
else {
?>
var UptimeTicks = <?php echo $this->scope["uptimeValue"];?>;
<?php
}?>

function UptimeRefresh ()
{
var days = Math.floor(UptimeTicks /60/60/24);
var hours = Math.floor((UptimeTicks - days*60*60*24)/60/60);
var minutes = Math.floor((UptimeTicks - days*60*60*24 - hours*60*60)/60);
var seconds = (UptimeTicks - days*60*60*24 - hours*60*60 - minutes*60);
document.getElementById('uptime').innerHTML = days + ' days ' + hours + ' hours ' + minutes + ' minutes ' + seconds + ' seconds';
UptimeTicks++;
}
UptimeRefresh();
setInterval("UptimeRefresh()", 1000);
</script><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,28 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}?>

<form action="" method="POST">
<table id="tbl" align="center" width="400">
<tr><td width="40%"><?php echo $this->scope["qauthText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["qauthName"];?>" size="33" value="<?php echo $this->scope["qauthValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["qpassText"];?>:</td><td width="60%"><input type="password" name="<?php echo $this->scope["qpassName"];?>" size="33" value="<?php if ((isset($this->scope["qpassValue"]) ? $this->scope["qpassValue"] : null) == 1) {
?>Kl45sD34R<?php
}?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["qmodexText"];?>:</td><td width="60%"><select name="<?php echo $this->scope["qmodexName"];?>" style="width:224px;" ><?php if ((isset($this->scope["qmodexValue"]) ? $this->scope["qmodexValue"] : null) == 1) {
?><option value="1" selected><?php echo $this->scope["qmodexValueYes"];?></option><option value="0"><?php echo $this->scope["qmodexValueNo"];?></option><?php
}
else {
?><option value="1"><?php echo $this->scope["qmodexValueYes"];?></option><option value="0" selected><?php echo $this->scope["qmodexValueNo"];?></option><?php
}?></select></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="<?php echo $this->scope["submitValue"];?>" name="do" /></td></tr>
</table>
</form><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,42 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}?>

<form action="" method="POST">
<table id="tbl" align="center" width="400">
<tr><td width="40%"><?php echo $this->scope["serverText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["serverName"];?>" size="33" value="<?php echo $this->scope["serverValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["portText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["portName"];?>" size="33" value="<?php echo $this->scope["portValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["passwordText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["passwordName"];?>" size="33" value="<?php echo $this->scope["passwordValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["vhostText"];?>:</td><td width="60%"><select name="<?php echo $this->scope["vhostName"];?>" style="width:225px;" ><?php
$_loop0_data = (isset($this->scope["vhostValue"]) ? $this->scope["vhostValue"] : null);
if ($this->isArray($_loop0_data) === true)
{
foreach ($_loop0_data as $tmp_key => $this->scope["-loop-"])
{
$_loop0_scope = $this->setScope(array("-loop-"));
/* -- loop start output */

if ($this->readVarInto(array ( 1 => array ( 0 => '.', ), 2 => array ( 0 => 'vhostInUse', ), 3 => array ( 0 => '', 1 => '', ),), $this->readParentVar(1), true) == (isset($this->scope["0"]) ? $this->scope["0"] : null)) {
?><option value="<?php echo $this->scope["0"];?>" selected><?php echo $this->scope["3"];?></option><?php
}
else {
?><option value="<?php echo $this->scope["0"];?>"><?php echo $this->scope["3"];?></option><?php
}

/* -- loop end output */
$this->setScope($_loop0_scope, true);
}
}
?></select></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="<?php echo $this->scope["submitValue"];?>" name="do" /> <input type="submit" value="<?php echo $this->scope["jumpValue"];?>" name="jump" /></td></tr>
</table>
</form><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,21 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}?>

<form action="" method="post">
<table id="tbl" align="center" width="400">
<tr><td width="40%"><?php echo $this->scope["realnameText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["realnameName"];?>" size="33" value="<?php echo $this->scope["realnameValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["nicknameText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["nicknameName"];?>" size="33" value="<?php echo $this->scope["nicknameValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["passwordText"];?>:</td><td width="60%"><input type="password" name="<?php echo $this->scope["passwordName"];?>" size="33" value="<?php echo $this->scope["passwordValue"];?>" /></td></tr>
<tr><td colspan="2" align="center" ><input type="submit" value="<?php echo $this->scope["submitValue"];?>" name="do" /></td></tr>
</table>
</form><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,7 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ;
echo $this->scope["testString"];
/* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,52 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}?>

<table id="tbl" align="center" width="400">
<tr><td colspan="4" align="center"><b><?php echo $this->scope["adminText"];?></b></td></tr>
<tr><td width="20%"><b><?php echo $this->scope["identText"];?></b></td><td width="20%"><b><?php echo $this->scope["nickText"];?></b></td><td width="35%"><b><?php echo $this->scope["lastseenText"];?></b></td><td width="13%"><b><?php echo $this->scope["actionText"];?></b></td></tr>

<?php
$_fh0_data = (isset($this->scope["adminArray"]) ? $this->scope["adminArray"] : null);
if ($this->isArray($_fh0_data) === true)
{
foreach ($_fh0_data as $this->scope['admin'])
{
/* -- foreach start output */
?><tr><td><?php echo $this->scope["admin"]["ident"];?></td><td class="bold"><?php echo $this->scope["admin"]["nick"];?></td><td><?php echo $this->scope["admin"]["lastseen"];?></td><td style="text-align:center;"><form action="" method="post"><input type="hidden" value="<?php echo $this->scope["admin"]["ident"];?>" name="delident" /><input class="input-image" type="image" src="template/sbnciface/img/icons/delete.png" value="<?php echo $this->scope["deleteText"];?>" name="deluser" /><a href="?p=edit&amp;u=<?php echo $this->scope["admin"]["ident"];?>"> <img src="template/sbnciface/img/icons/pencil.png"></a></form></td></tr>
<?php
/* -- foreach end output */
}
}?>

<tr><td colspan="4" align="center"><b><?php echo $this->scope["numAdmins"];?> Admins</b></td></tr>
</table>
<br />
<table id="tbl" align="center" width="400">
<tr><td colspan="4" align="center"><b><?php echo $this->scope["userText"];?></b></td></tr>
<tr><td width="20%"><b><?php echo $this->scope["identText"];?></b></td><td width="20%"><b><?php echo $this->scope["nickText"];?></b></td><td width="35%"><b><?php echo $this->scope["lastseenText"];?></b></td><td width="13%"><b><?php echo $this->scope["actionText"];?></b></td></tr>

<?php
$_fh1_data = (isset($this->scope["userArray"]) ? $this->scope["userArray"] : null);
if ($this->isArray($_fh1_data) === true)
{
foreach ($_fh1_data as $this->scope['user'])
{
/* -- foreach start output */
?><tr><td><?php echo $this->scope["user"]["ident"];?></td><td class="bold"><?php echo $this->scope["user"]["nick"];?></td><td><?php echo $this->scope["user"]["lastseen"];?></td><td style="text-align:center;"><form action="" method="post"><input type="hidden" value="<?php echo $this->scope["user"]["ident"];?>" name="delident" /><input class="input-image" type="image" src="template/sbnciface/img/icons/delete.png" value="<?php echo $this->scope["deleteText"];?>" name="deluser" /><a href="?p=edit&amp;u=<?php echo $this->scope["admin"]["ident"];?>"> <img src="template/sbnciface/img/icons/pencil.png"></a></form></td></tr>
<?php
/* -- foreach end output */
}
}?>

<tr><td colspan="4" align="center"><b><?php echo $this->scope["numUsers"];?> Users</b></td></tr>
</table><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,26 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}?>

<form action="" method="POST">
<table id="tbl" align="center" width="400">
<tr><td width="40%"><?php echo $this->scope["awaynickText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["awaynickName"];?>" size="33" value="<?php echo $this->scope["awaynickValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["awaymessageText"];?>:</td><td width="60%"><input type="password" name="<?php echo $this->scope["awaymessageName"];?>" size="33" value="<?php echo $this->scope["awaymessageValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["quitasawayText"];?>:</td><td width="60%"><select name="<?php echo $this->scope["quitasawayName"];?>" style="width:225px;" ><?php if ((isset($this->scope["quitasawayValue"]) ? $this->scope["quitasawayValue"] : null) == 1) {
?><option value="1" selected><?php echo $this->scope["quitasawayValueYes"];?></option><option value="0"><?php echo $this->scope["quitasawayValueNo"];?></option><?php
}
else {
?><option value="1"><?php echo $this->scope["quitasawayValueYes"];?></option><option value="0" selected><?php echo $this->scope["quitasawayValueNo"];?></option><?php
}?></select></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="<?php echo $this->scope["submitValue"];?>" name="do" /></td></tr>
</table>
</form><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,42 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["sbncNumChannels"]) ? $this->scope["sbncNumChannels"] : null) == 20) {
?>
<div class="warning">
You have already joined 20 channels
</div>
<?php
}
else {
?>
<form action="" method="POST">
<table id="tbl" align="center" width="400">
<tr><td colspan="2" align="center"><b><?php echo $this->scope["joinchannelText"];?></b></td></tr>
<tr><td width="40%"><?php echo $this->scope["jchannelText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["jchannelName"];?>" size="33" /></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="<?php echo $this->scope["submitJoinValue"];?>" name="join" /></td></tr>
</table>
</form>
<?php
}?>

<br /><br />
<form action="" method="post">
<table id="tbl" align="center" width="400">
<td width="55%"><b><?php echo $this->scope["channelName"];?></b></td><td><b><?php echo $this->scope["modesName"];?></b></td><td width="1%"><b><?php echo $this->scope["actionName"];?></b></td>
<?php
$_fh0_data = (isset($this->scope["sbncChannels"]) ? $this->scope["sbncChannels"] : null);
if ($this->isArray($_fh0_data) === true)
{
foreach ($_fh0_data as $this->scope['channel'])
{
/* -- foreach start output */
?><tr><form action="" method="post"><input type="hidden" name="channel" value="<?php echo $this->scope["channel"]["channel"];?>" /><td><?php echo $this->scope["channel"]["channel"];?></td><td><?php echo $this->scope["channel"]["chanmodes"];?></td><td align="center"><input class="input-image" type="image" src="img/icons/delete.png" value="<?php echo $this->readVarInto(array ( 1 => array ( 0 => '.', ), 2 => array ( 0 => 'submitPartValue', ), 3 => array ( 0 => '', 1 => '', ),), $this->readParentVar(1), false);?>" name="part" /></td></form></tr>
<?php
/* -- foreach end output */
}
}?>

</table>
</form><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,48 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["joinErrorSet"]) ? $this->scope["joinErrorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["joinErrorType"];?>">
<?php echo $this->scope["joinErrorMessage"];?>

</div>
<?php
}?>

<form action="" method="POST">
<table id="tbl" align="center" width="400">
<tr><td colspan="2" align="center"><b><?php echo $this->scope["joinchannelText"];?></b></td></tr>
<tr><td width="40%"><?php echo $this->scope["jchannelText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["jchannelName"];?>" size="33" /></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="<?php echo $this->scope["submitJoinValue"];?>" name="join" /></td></tr>
</table>
</form>
<br /><br />
<?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}?>

<form action="" method="post">
<table id="tbl" align="center" width="400">
<td width="55%"><b><?php echo $this->scope["channelName"];?></b></td><td><b><?php echo $this->scope["modesName"];?></b></td><td width="1%"><b><?php echo $this->scope["actionName"];?></b></td>
<?php
$_fh0_data = (isset($this->scope["sbncChannels"]) ? $this->scope["sbncChannels"] : null);
if ($this->isArray($_fh0_data) === true)
{
foreach ($_fh0_data as $this->scope['channel'])
{
/* -- foreach start output */
?><tr><form action="" method="post"><input type="hidden" name="channel" value="<?php echo $this->scope["channel"]["channel"];?>" /><td><?php echo $this->scope["channel"]["channel"];?></td><td><?php echo $this->scope["channel"]["chanmodes"];?></td><td align="center"><input class="input-image" type="image" src="img/icons/delete.png" value="<?php echo $this->readVarInto(array ( 1 => array ( 0 => '.', ), 2 => array ( 0 => 'submitPart', ), 3 => array ( 0 => '', 1 => '', ),), $this->readParentVar(1), false);?>" name="part" /></td></form></tr>
<?php
/* -- foreach end output */
}
}?>

</table>
</form><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,13 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}
/* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,12 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?>

</div>
<div id="version"><?php echo $this->scope["ifaceVersion"];?></div>
</div>
</div>
</body>
</html><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,81 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<title><?php echo $this->scope["interfaceName"];?></title>
<script>
$.fn.pause = function(duration) {
$(this).animate({ dummy: 1 }, duration);
return this;
};
$(document).ready(function () {
$(".success").pause(3000).fadeOut(2000);
});
$(document).ready(function () {
$(".error").pause(3000).fadeOut(2000);
});
function pickLanguage(language) {
document.langselector.lang.value = language;
document.langselector.submit();
return false;
}
</script>
</head>
<body>
<div id="pagebody">
<div id="container">
<div id="langselect">
<form action="" method="POST" name="langselector">
<input type="hidden" name="lang" value="" />
<a href="javascript:" onclick="pickLanguage('en');"><img src="img/lang/en.png" /></a>
<a href="javascript:" onclick="pickLanguage('de');"><img src="img/lang/de.png" /></a>
<a href="javascript:" onclick="pickLanguage('da');"><img src="img/lang/da.png" /></a>
<a href="javascript:" onclick="pickLanguage('no');"><img src="img/lang/no.png" /></a>
<a href="javascript:" onclick="pickLanguage('sv');"><img src="img/lang/sv.png" /></a>
<a href="javascript:" onclick="pickLanguage('fi');"><img src="img/lang/fi.png" /></a>
<a href="javascript:" onclick="pickLanguage('pl');"><img src="img/lang/pl.png" /></a>
<a href="javascript:" onclick="pickLanguage('lt');"><img src="img/lang/lt.png" /></a>
</form>
</div>
<div id="header">
<div id="headpic"></div>
</div>
<div class="menu">
<ul>
<li><a href="<?php echo $this->scope["webRoot"];?>" ><?php echo $this->scope["status"];?></a></li>
<li><a href="#"><?php echo $this->scope["user"];?></a>
<ul>
<li><a href="?p=settings"><?php echo $this->scope["settings"];?></a></li>
<li><a href="?p=server"><?php echo $this->scope["server"];?></a></li>
<li><a href="?p=qauth"><?php echo $this->scope["q_settings"];?></a></li>
<li><a href="?p=away"><?php echo $this->scope["away"];?></a></li>
<li><a href="?p=channels"><?php echo $this->scope["channels"];?></a></li>
<li><a href="?p=log"><?php echo $this->scope["log"];?></a></li>
</ul>
</li>
<?php if ((isset($this->scope["sbncAdmin"]) ? $this->scope["sbncAdmin"] : null) == 1) {
?>
<li><a href="#"><?php echo $this->scope["admin"];?></a>
<ul>
<li><a href="?p=users"><?php echo $this->scope["users"];?></a></li>
<li><a href="?p=add"><?php echo $this->scope["add_user"];?></a></li>
<li><a href="?p=ipsettings"><?php echo $this->scope["trusted_ips"];?></a></li>
<li><a href="?p=vhosts"><?php echo $this->scope["vhosts"];?></a></li>
<li><a href="?p=global"><?php echo $this->scope["global_msg"];?></a></li>
</ul>
</li>
<?php
}?>

<li><a href="?logout"><?php echo $this->scope["logout"];?></a></li>
</ul>
</div>
<div id="content"><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,64 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<title><?php echo $this->scope["interfaceName"];?></title>
<script>
$.fn.pause = function(duration) {
$(this).animate({ dummy: 1 }, duration);
return this;
};
$(document).ready(function () {
$(".success").pause(3000).fadeOut(2000);
});
$(document).ready(function () {
$(".error").pause(3000).fadeOut(2000);
});
function pickLanguage(language) {
document.langselector.lang.value = language;
document.langselector.submit();
return false;
}
</script>
</head>
<body onLoad="document.loginfield.username.focus()">
<div id="loginbody">
<div id="container">
<div id="langselect">
<form action="" method="POST" name="langselector">
<input type="hidden" name="lang" value="" />
<a href="javascript:" onclick="pickLanguage('en');"><img src="img/lang/en.png" /></a>
<a href="javascript:" onclick="pickLanguage('de');"><img src="img/lang/de.png" /></a>
<a href="javascript:" onclick="pickLanguage('da');"><img src="img/lang/da.png" /></a>
<a href="javascript:" onclick="pickLanguage('no');"><img src="img/lang/no.png" /></a>
<a href="javascript:" onclick="pickLanguage('sv');"><img src="img/lang/sv.png" /></a>
<a href="javascript:" onclick="pickLanguage('fi');"><img src="img/lang/fi.png" /></a>
<a href="javascript:" onclick="pickLanguage('pl');"><img src="img/lang/pl.png" /></a>
<a href="javascript:" onclick="pickLanguage('lt');"><img src="img/lang/lt.png" /></a>
</form>
</div>
<div id="loginheader">
<div id="loginheadpic"></div>
</div>
<form action="" method="post" name="loginfield">
<table cellpadding="4" align="center">
<tr><td><?php echo $this->scope["usernameText"];?>:</td><td><input type="text" name="username" /></td></tr>
<tr><td><?php echo $this->scope["passwordText"];?>:</td><td><input type="password" name="password" /></td></tr>

<tr><td colspan="2" style="text-align: left;"><input type="checkbox" name="remember" value="1" /> <?php echo $this->scope["rememberMeText"];?><td></tr>
<tr><td colspan="2" style="text-align: right;"><input type="submit" name="login" value="<?php echo $this->scope["submitText"];?>" /></td></tr>
</table>
</form>
<div id="version"><?php echo $this->scope["ifaceVersion"];?></div>
</div>
</div>
</body>
</html><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,41 @@
<?php
/* template head */
if (class_exists('Dwoo_Plugin_cycle', false)===false)
$this->getLoader()->loadPlugin('cycle');
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}?>

<?php if ((isset($this->scope["logState"]) ? $this->scope["logState"] : null) == 'empty') {
?>
<?php echo $this->scope["logString"];?>

<?php
}
else {
?>
<?php
$_fh0_data = (isset($this->scope["logString"]) ? $this->scope["logString"] : null);
if ($this->isArray($_fh0_data) === true)
{
foreach ($_fh0_data as $this->scope['as']=>$this->scope['row'])
{
/* -- foreach start output */
?>
<div class="<?php echo $this->classCall('cycle', array('default', "one, two", true, true, ',', null, false));?>"><?php echo $this->scope["row"];?></div>
<?php
/* -- foreach end output */
}
}?>

<div class="button"><form action="" method="post"><input type="submit" value="<?php echo $this->scope["submitValue"];?>" name="do" /></form></div>
<?php
}
/* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,63 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<title><?php echo $this->scope["interfaceName"];?></title>
<script>
$.fn.pause = function(duration) {
$(this).animate({ dummy: 1 }, duration);
return this;
};
$(document).ready(function () {
$(".success").pause(3000).fadeOut(2000);
});
$(document).ready(function () {
$(".error").pause(3000).fadeOut(2000);
});
function pickLanguage(language) {
document.langselector.lang.value = language;
document.langselector.submit();
return false;
}
</script>
</head>
<body onLoad="document.loginfield.username.focus()">
<div id="loginbody">
<div id="container">
<div id="langselect">
<form action="" method="POST" name="langselector">
<input type="hidden" name="lang" value="" />
<a href="javascript:" onclick="pickLanguage('en');"><img src="img/lang/en.png" /></a>
<a href="javascript:" onclick="pickLanguage('de');"><img src="img/lang/de.png" /></a>
<a href="javascript:" onclick="pickLanguage('da');"><img src="img/lang/da.png" /></a>
<a href="javascript:" onclick="pickLanguage('no');"><img src="img/lang/no.png" /></a>
<a href="javascript:" onclick="pickLanguage('sv');"><img src="img/lang/sv.png" /></a>
<a href="javascript:" onclick="pickLanguage('fi');"><img src="img/lang/fi.png" /></a>
<a href="javascript:" onclick="pickLanguage('pl');"><img src="img/lang/pl.png" /></a>
<a href="javascript:" onclick="pickLanguage('lt');"><img src="img/lang/lt.png" /></a>
</form>
</div>
<div id="loginheader">
<div id="loginheadpic"></div>
</div>
<form action="" method="post" name="loginfield">
<table cellpadding="4" align="center">
<tr><td><?php echo $this->scope["usernameText"];?>:</td><td><input type="text" name="username" /></td></tr>
<tr><td><?php echo $this->scope["passwordText"];?>:</td><td><input type="password" name="password" /></td></tr>
<tr><td colspan="2" style="text-align: left;"><input type="checkbox" name="remember" value="1" /> <?php echo $this->scope["rememberMeText"];?><td></tr>
<tr><td colspan="2" style="text-align: right;"><input type="submit" name="do" value="<?php echo $this->scope["submitText"];?>" /></td></tr>
</table>
</form>
<div id="version"><?php echo $this->scope["ifaceVersion"];?></div>
</div>
</div>
</body>
</html><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,49 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <form action="" method="post">
<table id="tbl" align="center" width="400">
<?php if ((isset($this->scope["uptimeValue"]) ? $this->scope["uptimeValue"] : null) == 0) {
?>
<tr><td width="40%"><?php echo $this->scope["uptimeText"];?></td><td width="60%" id="uptime"><?php echo $this->scope["uptimeDisconnected"];?></td></tr>
<?php
}
else {
?>
<tr><td width="40%"><?php echo $this->scope["uptimeText"];?></td><td width="60%" id="uptime"></td></tr>
<?php
}?>

<tr><td width="40%"><?php echo $this->scope["nicknameText"];?></td><td width="60%"><?php echo $this->scope["nicknameValue"];?></td></tr>
<tr><td width="40%"><?php echo $this->scope["awaynickText"];?></td><td width="60%"><?php echo $this->scope["awaynickValue"];?></td></tr>
<tr><td width="40%"><?php echo $this->scope["awaymessageText"];?></td><td width="60%"><?php echo $this->scope["awaymessageValue"];?></td></tr>
<tr><td width="40%"><?php echo $this->scope["realnameText"];?></td><td width="60%"><?php echo $this->scope["realnameValue"];?></td></tr>
<tr><td width="40%"><?php echo $this->scope["serverText"];?></td><td width="60%"><?php echo $this->scope["serverValue"];?></td></tr>
<tr><td width="40%"><?php echo $this->scope["trafficText"];?></td><td width="60%"><?php echo $this->scope["trafficValue"];?></td></tr>
</table>
</form>
<script type="text/javascript">
<?php if ((isset($this->scope["uptimeValue"]) ? $this->scope["uptimeValue"] : null) > 0) {
?>
var UptimeTicks = <?php echo $this->scope["uptimeValue"];?>;
<?php
}
else {
?>
var UptimeTicks = <?php echo $this->scope["uptimeValue"];?>;
<?php
}?>

function UptimeRefresh ()
{
var days = Math.floor(UptimeTicks /60/60/24);
var hours = Math.floor((UptimeTicks - days*60*60*24)/60/60);
var minutes = Math.floor((UptimeTicks - days*60*60*24 - hours*60*60)/60);
var seconds = (UptimeTicks - days*60*60*24 - hours*60*60 - minutes*60);
document.getElementById('uptime').innerHTML = days + ' days ' + hours + ' hours ' + minutes + ' minutes ' + seconds + ' seconds';
UptimeTicks++;
}
UptimeRefresh();
setInterval("UptimeRefresh()", 1000);
</script><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,28 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}?>

<form action="" method="POST">
<table id="tbl" align="center" width="400">
<tr><td width="40%"><?php echo $this->scope["qauthText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["qauthName"];?>" size="33" value="<?php echo $this->scope["qauthValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["qpassText"];?>:</td><td width="60%"><input type="password" name="<?php echo $this->scope["qpassName"];?>" size="33" value="<?php if ((isset($this->scope["qpassValue"]) ? $this->scope["qpassValue"] : null) == 1) {
?>Kl45sD34R<?php
}?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["qmodexText"];?>:</td><td width="60%"><select name="<?php echo $this->scope["qmodexName"];?>" style="width:224px;" ><?php if ((isset($this->scope["qmodexValue"]) ? $this->scope["qmodexValue"] : null) == 1) {
?><option value="1" selected><?php echo $this->scope["qmodexValueYes"];?></option><option value="0"><?php echo $this->scope["qmodexValueNo"];?></option><?php
}
else {
?><option value="1"><?php echo $this->scope["qmodexValueYes"];?></option><option value="0" selected><?php echo $this->scope["qmodexValueNo"];?></option><?php
}?></select></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="<?php echo $this->scope["submitValue"];?>" name="do" /></td></tr>
</table>
</form><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,26 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}?>

<form action="" method="POST">
<table id="tbl" align="center" width="400">
<tr><td width="40%"><?php echo $this->scope["awaynickText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["awaynickName"];?>" size="33" value="<?php echo $this->scope["awaynickValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["awaymessageText"];?>:</td><td width="60%"><input type="password" name="<?php echo $this->scope["awaymessageName"];?>" size="33" value="<?php echo $this->scope["awaymessageValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["quitasawayText"];?>:</td><td width="60%"><select name="<?php echo $this->scope["quitasawayName"];?>" style="width:225px;" ><?php if ((isset($this->scope["quitasawayValue"]) ? $this->scope["quitasawayValue"] : null) == 1) {
?><option value="1" selected><?php echo $this->scope["quitasawayValueYes"];?></option><option value="0"><?php echo $this->scope["quitasawayValueNo"];?></option><?php
}
else {
?><option value="1"><?php echo $this->scope["quitasawayValueYes"];?></option><option value="0" selected><?php echo $this->scope["quitasawayValueNo"];?></option><?php
}?></select></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="<?php echo $this->scope["submitValue"];?>" name="do" /></td></tr>
</table>
</form><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,42 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["sbncNumChannels"]) ? $this->scope["sbncNumChannels"] : null) == 20) {
?>
<div class="warning">
You have already joined 20 channels
</div>
<?php
}
else {
?>
<form action="" method="POST">
<table id="tbl" align="center" width="400">
<tr><td colspan="2" align="center"><b><?php echo $this->scope["joinchannelText"];?></b></td></tr>
<tr><td width="40%"><?php echo $this->scope["jchannelText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["jchannelName"];?>" size="33" /></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="<?php echo $this->scope["submitJoinValue"];?>" name="join" /></td></tr>
</table>
</form>
<?php
}?>

<br /><br />
<form action="" method="post">
<table id="tbl" align="center" width="400">
<td width="55%"><b><?php echo $this->scope["channelName"];?></b></td><td><b><?php echo $this->scope["modesName"];?></b></td><td width="1%"><b><?php echo $this->scope["actionName"];?></b></td>
<?php
$_fh0_data = (isset($this->scope["sbncChannels"]) ? $this->scope["sbncChannels"] : null);
if ($this->isArray($_fh0_data) === true)
{
foreach ($_fh0_data as $this->scope['channel'])
{
/* -- foreach start output */
?><tr><form action="" method="post"><input type="hidden" name="channel" value="<?php echo $this->scope["channel"]["channel"];?>" /><td><?php echo $this->scope["channel"]["channel"];?></td><td><?php echo $this->scope["channel"]["chanmodes"];?></td><td align="center"><input class="input-image" type="image" src="img/icons/delete.png" value="<?php echo $this->readVarInto(array ( 1 => array ( 0 => '.', ), 2 => array ( 0 => 'submitPartValue', ), 3 => array ( 0 => '', 1 => '', ),), $this->readParentVar(1), false);?>" name="part" /></td></form></tr>
<?php
/* -- foreach end output */
}
}?>

</table>
</form><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,13 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}
/* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,12 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?>

</div>
<div id="version"><?php echo $this->scope["ifaceVersion"];?></div>
</div>
</div>
</body>
</html><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,81 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<title><?php echo $this->scope["interfaceName"];?></title>
<script>
$.fn.pause = function(duration) {
$(this).animate({ dummy: 1 }, duration);
return this;
};
$(document).ready(function () {
$(".success").pause(3000).fadeOut(2000);
});
$(document).ready(function () {
$(".error").pause(3000).fadeOut(2000);
});
function pickLanguage(language) {
document.langselector.lang.value = language;
document.langselector.submit();
return false;
}
</script>
</head>
<body>
<div id="pagebody">
<div id="container">
<div id="langselect">
<form action="" method="POST" name="langselector">
<input type="hidden" name="lang" value="" />
<a href="javascript:" onclick="pickLanguage('en');"><img src="img/lang/en.png" /></a>
<a href="javascript:" onclick="pickLanguage('de');"><img src="img/lang/de.png" /></a>
<a href="javascript:" onclick="pickLanguage('da');"><img src="img/lang/da.png" /></a>
<a href="javascript:" onclick="pickLanguage('no');"><img src="img/lang/no.png" /></a>
<a href="javascript:" onclick="pickLanguage('sv');"><img src="img/lang/sv.png" /></a>
<a href="javascript:" onclick="pickLanguage('fi');"><img src="img/lang/fi.png" /></a>
<a href="javascript:" onclick="pickLanguage('pl');"><img src="img/lang/pl.png" /></a>
<a href="javascript:" onclick="pickLanguage('lt');"><img src="img/lang/lt.png" /></a>
</form>
</div>
<div id="header">
<div id="headpic"></div>
</div>
<div class="menu">
<ul>
<li><a href="<?php echo $this->scope["webRoot"];?>" ><?php echo $this->scope["status"];?></a></li>
<li><a href="#"><?php echo $this->scope["user"];?></a>
<ul>
<li><a href="?p=settings"><?php echo $this->scope["settings"];?></a></li>
<li><a href="?p=server"><?php echo $this->scope["server"];?></a></li>
<li><a href="?p=qauth"><?php echo $this->scope["q_settings"];?></a></li>
<li><a href="?p=away"><?php echo $this->scope["away"];?></a></li>
<li><a href="?p=channels"><?php echo $this->scope["channels"];?></a></li>
<li><a href="?p=log"><?php echo $this->scope["log"];?></a></li>
</ul>
</li>
<?php if ((isset($this->scope["sbncAdmin"]) ? $this->scope["sbncAdmin"] : null) == 1) {
?>
<li><a href="#"><?php echo $this->scope["admin"];?></a>
<ul>
<li><a href="?p=users"><?php echo $this->scope["users"];?></a></li>
<li><a href="?p=add"><?php echo $this->scope["add_user"];?></a></li>
<li><a href="?p=ipsettings"><?php echo $this->scope["trusted_ips"];?></a></li>
<li><a href="?p=vhosts"><?php echo $this->scope["vhosts"];?></a></li>
<li><a href="?p=global"><?php echo $this->scope["global_msg"];?></a></li>
</ul>
</li>
<?php
}?>

<li><a href="?logout"><?php echo $this->scope["logout"];?></a></li>
</ul>
</div>
<div id="content"><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,41 @@
<?php
/* template head */
if (class_exists('Dwoo_Plugin_cycle', false)===false)
$this->getLoader()->loadPlugin('cycle');
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}?>

<?php if ((isset($this->scope["logState"]) ? $this->scope["logState"] : null) == 'empty') {
?>
<?php echo $this->scope["logString"];?>

<?php
}
else {
?>
<?php
$_fh0_data = (isset($this->scope["logString"]) ? $this->scope["logString"] : null);
if ($this->isArray($_fh0_data) === true)
{
foreach ($_fh0_data as $this->scope['as']=>$this->scope['row'])
{
/* -- foreach start output */
?>
<div class="<?php echo $this->classCall('cycle', array('default', "one, two", true, true, ',', null, false));?>"><?php echo $this->scope["row"];?></div>
<?php
/* -- foreach end output */
}
}?>

<div class="button"><form action="" method="post"><input type="submit" value="<?php echo $this->scope["submitValue"];?>" name="do" /></form></div>
<?php
}
/* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,63 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<title><?php echo $this->scope["interfaceName"];?></title>
<script>
$.fn.pause = function(duration) {
$(this).animate({ dummy: 1 }, duration);
return this;
};
$(document).ready(function () {
$(".success").pause(3000).fadeOut(2000);
});
$(document).ready(function () {
$(".error").pause(3000).fadeOut(2000);
});
function pickLanguage(language) {
document.langselector.lang.value = language;
document.langselector.submit();
return false;
}
</script>
</head>
<body onLoad="document.loginfield.username.focus()">
<div id="loginbody">
<div id="container">
<div id="langselect">
<form action="" method="POST" name="langselector">
<input type="hidden" name="lang" value="" />
<a href="javascript:" onclick="pickLanguage('en');"><img src="img/lang/en.png" /></a>
<a href="javascript:" onclick="pickLanguage('de');"><img src="img/lang/de.png" /></a>
<a href="javascript:" onclick="pickLanguage('da');"><img src="img/lang/da.png" /></a>
<a href="javascript:" onclick="pickLanguage('no');"><img src="img/lang/no.png" /></a>
<a href="javascript:" onclick="pickLanguage('sv');"><img src="img/lang/sv.png" /></a>
<a href="javascript:" onclick="pickLanguage('fi');"><img src="img/lang/fi.png" /></a>
<a href="javascript:" onclick="pickLanguage('pl');"><img src="img/lang/pl.png" /></a>
<a href="javascript:" onclick="pickLanguage('lt');"><img src="img/lang/lt.png" /></a>
</form>
</div>
<div id="loginheader">
<div id="loginheadpic"></div>
</div>
<form action="" method="post" name="loginfield">
<table cellpadding="4" align="center">
<tr><td><?php echo $this->scope["usernameText"];?>:</td><td><input type="text" name="username" /></td></tr>
<tr><td><?php echo $this->scope["passwordText"];?>:</td><td><input type="password" name="password" /></td></tr>
<tr><td colspan="2" style="text-align: left;"><input type="checkbox" name="remember" value="1" /> <?php echo $this->scope["rememberMeText"];?><td></tr>
<tr><td colspan="2" style="text-align: right;"><input type="submit" name="do" value="<?php echo $this->scope["submitText"];?>" /></td></tr>
</table>
</form>
<div id="version"><?php echo $this->scope["ifaceVersion"];?></div>
</div>
</div>
</body>
</html><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,49 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <form action="" method="post">
<table id="tbl" align="center" width="400">
<?php if ((isset($this->scope["uptimeValue"]) ? $this->scope["uptimeValue"] : null) == 0) {
?>
<tr><td width="40%"><?php echo $this->scope["uptimeText"];?></td><td width="60%" id="uptime"><?php echo $this->scope["uptimeDisconnected"];?></td></tr>
<?php
}
else {
?>
<tr><td width="40%"><?php echo $this->scope["uptimeText"];?></td><td width="60%" id="uptime"></td></tr>
<?php
}?>

<tr><td width="40%"><?php echo $this->scope["nicknameText"];?></td><td width="60%"><?php echo $this->scope["nicknameValue"];?></td></tr>
<tr><td width="40%"><?php echo $this->scope["awaynickText"];?></td><td width="60%"><?php echo $this->scope["awaynickValue"];?></td></tr>
<tr><td width="40%"><?php echo $this->scope["awaymessageText"];?></td><td width="60%"><?php echo $this->scope["awaymessageValue"];?></td></tr>
<tr><td width="40%"><?php echo $this->scope["realnameText"];?></td><td width="60%"><?php echo $this->scope["realnameValue"];?></td></tr>
<tr><td width="40%"><?php echo $this->scope["serverText"];?></td><td width="60%"><?php echo $this->scope["serverValue"];?></td></tr>
<tr><td width="40%"><?php echo $this->scope["trafficText"];?></td><td width="60%"><?php echo $this->scope["trafficValue"];?></td></tr>
</table>
</form>
<script type="text/javascript">
<?php if ((isset($this->scope["uptimeValue"]) ? $this->scope["uptimeValue"] : null) > 0) {
?>
var UptimeTicks = <?php echo $this->scope["uptimeValue"];?>;
<?php
}
else {
?>
var UptimeTicks = <?php echo $this->scope["uptimeValue"];?>;
<?php
}?>

function UptimeRefresh ()
{
var days = Math.floor(UptimeTicks /60/60/24);
var hours = Math.floor((UptimeTicks - days*60*60*24)/60/60);
var minutes = Math.floor((UptimeTicks - days*60*60*24 - hours*60*60)/60);
var seconds = (UptimeTicks - days*60*60*24 - hours*60*60 - minutes*60);
document.getElementById('uptime').innerHTML = days + ' days ' + hours + ' hours ' + minutes + ' minutes ' + seconds + ' seconds';
UptimeTicks++;
}
UptimeRefresh();
setInterval("UptimeRefresh()", 1000);
</script><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,28 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}?>

<form action="" method="POST">
<table id="tbl" align="center" width="400">
<tr><td width="40%"><?php echo $this->scope["qauthText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["qauthName"];?>" size="33" value="<?php echo $this->scope["qauthValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["qpassText"];?>:</td><td width="60%"><input type="password" name="<?php echo $this->scope["qpassName"];?>" size="33" value="<?php if ((isset($this->scope["qpassValue"]) ? $this->scope["qpassValue"] : null) == 1) {
?>Kl45sD34R<?php
}?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["qmodexText"];?>:</td><td width="60%"><select name="<?php echo $this->scope["qmodexName"];?>" style="width:224px;" ><?php if ((isset($this->scope["qmodexValue"]) ? $this->scope["qmodexValue"] : null) == 1) {
?><option value="1" selected><?php echo $this->scope["qmodexValueYes"];?></option><option value="0"><?php echo $this->scope["qmodexValueNo"];?></option><?php
}
else {
?><option value="1"><?php echo $this->scope["qmodexValueYes"];?></option><option value="0" selected><?php echo $this->scope["qmodexValueNo"];?></option><?php
}?></select></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="<?php echo $this->scope["submitValue"];?>" name="do" /></td></tr>
</table>
</form><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,42 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}?>

<form action="" method="POST">
<table id="tbl" align="center" width="400">
<tr><td width="40%"><?php echo $this->scope["serverText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["serverName"];?>" size="33" value="<?php echo $this->scope["serverValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["portText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["portName"];?>" size="33" value="<?php echo $this->scope["portValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["passwordText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["passwordName"];?>" size="33" value="<?php echo $this->scope["passwordValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["vhostText"];?>:</td><td width="60%"><select name="<?php echo $this->scope["vhostName"];?>" style="width:225px;" ><?php
$_loop0_data = (isset($this->scope["vhostValue"]) ? $this->scope["vhostValue"] : null);
if ($this->isArray($_loop0_data) === true)
{
foreach ($_loop0_data as $tmp_key => $this->scope["-loop-"])
{
$_loop0_scope = $this->setScope(array("-loop-"));
/* -- loop start output */

if ($this->readVarInto(array ( 1 => array ( 0 => '.', ), 2 => array ( 0 => 'vhostInUse', ), 3 => array ( 0 => '', 1 => '', ),), $this->readParentVar(1), true) == (isset($this->scope["0"]) ? $this->scope["0"] : null)) {
?><option value="<?php echo $this->scope["0"];?>" selected><?php echo $this->scope["3"];?></option><?php
}
else {
?><option value="<?php echo $this->scope["0"];?>"><?php echo $this->scope["3"];?></option><?php
}

/* -- loop end output */
$this->setScope($_loop0_scope, true);
}
}
?></select></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="<?php echo $this->scope["submitValue"];?>" name="do" /> <input type="submit" value="<?php echo $this->scope["jumpValue"];?>" name="jump" /></td></tr>
</table>
</form><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,21 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}?>

<form action="" method="post">
<table id="tbl" align="center" width="400">
<tr><td width="40%"><?php echo $this->scope["realnameText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["realnameName"];?>" size="33" value="<?php echo $this->scope["realnameValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["nicknameText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["nicknameName"];?>" size="33" value="<?php echo $this->scope["nicknameValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["passwordText"];?>:</td><td width="60%"><input type="password" name="<?php echo $this->scope["passwordName"];?>" size="33" value="<?php echo $this->scope["passwordValue"];?>" /></td></tr>
<tr><td colspan="2" align="center" ><input type="submit" value="<?php echo $this->scope["submitValue"];?>" name="do" /></td></tr>
</table>
</form><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,42 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}?>

<form action="" method="POST">
<table id="tbl" align="center" width="400">
<tr><td width="40%"><?php echo $this->scope["serverText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["serverName"];?>" size="33" value="<?php echo $this->scope["serverValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["portText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["portName"];?>" size="33" value="<?php echo $this->scope["portValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["passwordText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["passwordName"];?>" size="33" value="<?php echo $this->scope["passwordValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["vhostText"];?>:</td><td width="60%"><select name="<?php echo $this->scope["vhostName"];?>" style="width:225px;" ><?php
$_loop0_data = (isset($this->scope["vhostValue"]) ? $this->scope["vhostValue"] : null);
if ($this->isArray($_loop0_data) === true)
{
foreach ($_loop0_data as $tmp_key => $this->scope["-loop-"])
{
$_loop0_scope = $this->setScope(array("-loop-"));
/* -- loop start output */

if ($this->readVarInto(array ( 1 => array ( 0 => '.', ), 2 => array ( 0 => 'vhostInUse', ), 3 => array ( 0 => '', 1 => '', ),), $this->readParentVar(1), true) == (isset($this->scope["0"]) ? $this->scope["0"] : null)) {
?><option value="<?php echo $this->scope["0"];?>" selected><?php echo $this->scope["3"];?></option><?php
}
else {
?><option value="<?php echo $this->scope["0"];?>"><?php echo $this->scope["3"];?></option><?php
}

/* -- loop end output */
$this->setScope($_loop0_scope, true);
}
}
?></select></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="<?php echo $this->scope["submitValue"];?>" name="do" /> <input type="submit" value="<?php echo $this->scope["jumpValue"];?>" name="jump" /></td></tr>
</table>
</form><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -0,0 +1,21 @@
<?php
/* template head */
/* end template head */ ob_start(); /* template body */ ?> <?php if ((isset($this->scope["errorSet"]) ? $this->scope["errorSet"] : null) == 1) {
?>
<div class="<?php echo $this->scope["errorType"];?>">
<?php echo $this->scope["errorMessage"];?>

</div>
<?php
}?>

<form action="" method="post">
<table id="tbl" align="center" width="400">
<tr><td width="40%"><?php echo $this->scope["realnameText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["realnameName"];?>" size="33" value="<?php echo $this->scope["realnameValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["nicknameText"];?>:</td><td width="60%"><input type="text" name="<?php echo $this->scope["nicknameName"];?>" size="33" value="<?php echo $this->scope["nicknameValue"];?>" /></td></tr>
<tr><td width="40%"><?php echo $this->scope["passwordText"];?>:</td><td width="60%"><input type="password" name="<?php echo $this->scope["passwordName"];?>" size="33" value="<?php echo $this->scope["passwordValue"];?>" /></td></tr>
<tr><td colspan="2" align="center" ><input type="submit" value="<?php echo $this->scope["submitValue"];?>" name="do" /></td></tr>
</table>
</form><?php /* end template body */
return $this->buffer . ob_get_clean();
?>
@@ -1,4 +1,24 @@
<?php
/*
* $Id$
*
* Copyright (C) 2010 Conny Sjöblom <biohzn@mustis.org>
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*/
?>
<?php

function byte_format($byte, $pre = 1, $abbr = true, $array = false, $bit = false) {
/* Check All Arguments */
@@ -59,33 +79,26 @@ function byte_format($byte, $pre = 1, $abbr = true, $array = false, $bit = false
//Generate Random password
function generatePassword($length) {

// start with a blank password
$password = "";

// define possible characters
$possible = "0123456789abcdfghjklmnopqrstvwxyzABCDEFGHIJKLMNOPQRSTUVXYZ";

// set up a counter
$i = 0;

// add random characters to $password until $length is reached
while ($i < $length) {

// pick a random character from the possible ones
$char = substr($possible, mt_rand(0, strlen($possible) - 1), 1);

// we don't want this character if it's already in the password
if (!strstr($password, $char)) {

$password .= $char;
$i++;
}
}

// done!
return $password;
}

function userOnlineCheck($ident){
function userOnlineCheck($ident) {

global $sbnc;

@@ -98,4 +111,12 @@ function userOnlineCheck($ident){
}
}

function is_ip($address) {
$packed = inet_pton ($address);
if (FALSE == $packed || FALSE === inet_ntop ($packed)) {
return FALSE;
}
return TRUE;
}

?>
@@ -1,7 +1,8 @@
<?php
/*******************************************************************************

/* * *****************************************************************************
* shroudBNC - an object-oriented framework for IRC *
* Copyright (C) 2005 Gunnar Beutner *
* Copyright (C) 2005-2007,2010 Gunnar Beutner *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
@@ -16,9 +17,10 @@
* 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. *
*******************************************************************************/
* ***************************************************************************** */

class itype_exception {

var $code;
var $message;

@@ -40,6 +42,7 @@ function GetMessage() {
function GetRawMessage() {
return $this->code . ' ' . $this->message;
}

}

function itype_fromphp($value) {
@@ -54,7 +57,9 @@ function itype_fromphp($value) {
$ret .= '}';
} else {
$value = str_replace(
array("\r", "\n", "\\", "{", "}", "[", "]", "(", ")"), array("\\\r", "\\n", "\\\\", "\\{", "\\}", "\\[", "\\]", "\\(", "\\)"), $value);
array("\r", "\n", "\\", "{", "}", "[", "]", "(", ")"),
array("\\\r", "\\n", "\\\\", "\\{", "\\}", "\\[", "\\]", "\\(", "\\)"),
$value);

$ret = "({$value})";
}
@@ -224,8 +229,8 @@ function itype_flat($value) {
return $value[1];
} else {
return str_replace(
array("\r", "\n", "\\{", "\\}", "\\[", "\\]", "\\(", "\\)", "\\\\"),
array("\\r", "\\n", "{", "}", "[", "]", "(", ")", "\\",),
array("\r", "\n", "\\{", "\\}", "\\[", "\\]", "\\(", "\\)", "\\\\"),
array("\\r", "\\n", "{", "}", "[", "]", "(", ")", "\\",),
$value[1]);
}
}
@@ -2,7 +2,7 @@

/* * *****************************************************************************
* shroudBNC - an object-oriented framework for IRC *
* Copyright (C) 2005 Gunnar Beutner *
* Copyright (C) 2005-2007,2010 Gunnar Beutner *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
@@ -44,7 +44,7 @@ function SBNC($host, $port, $user, $pass) {
}

if (strstr($line, "[RPC_BLOCK]") != FALSE) {
die('Runtime error occured in the RPC system: This IP address is blocked.');
//die('Runtime error occured in the RPC system: This IP address is blocked.');
}
}
}
@@ -68,8 +68,7 @@ function CallAs($user, $command, $parameters = array()) {
$line = fgets($this->socket, 128000);

if ($line === false) {
#die('Transport layer error occured in the RPC system: fgets() failed.');
$result = 'Transport layer error occured in the RPC system: fgets() failed.';
//die('Transport layer error occured in the RPC system: fgets() failed.');
}


@@ -78,8 +77,7 @@ function CallAs($user, $command, $parameters = array()) {
$parsedResponse = itype_parse($line);

if ($parsedResponse[0] == 'empty') {
#die('IType parsing error occured in RPC system when parsing the string "' . $line . '"');
$response = $line;
//die('IType parsing error occured in RPC system when parsing the string "' . $line . '"');
}

$response = itype_flat($parsedResponse);
@@ -88,8 +86,7 @@ function CallAs($user, $command, $parameters = array()) {
$code = GetCode($response);

if ($code != 'RPC_ERROR') {
#die('Runtime error occured in the RPC system: [' . $code . '] ' . GetResult($response));
$response = $code;
//die('Runtime error occured in the RPC system: [' . $code . '] ' . GetResult($response));
}
}

@@ -153,4 +150,4 @@ function GetResult($result) {
}
}

?>
?>
@@ -1,31 +1,73 @@
<?php
/*
* $Id$
*
* Copyright (C) 2010 Conny Sjöblom <biohzn@mustis.org>
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*/
?>
<?php

//sBNC Checks
if (isset($_SESSION['username'])){
$data->assign('sbncAdmin', $sbnc->Call('getvalue', array('admin')));
if (isset($_SESSION['username']) && !isset($_SESSION['isAdmin'])) {

$admin = $sbnc->Call('getvalue', array('admin'));
$vadmin = $sbnc->Call('isvadmin', array($_SESSION['username']));

if ($admin == '0' && $vadmin == '1') {
$vgroup = $sbnc->Call('getmygroup');
} else {
$vadmin = '0';
$vgroup = 'none';
}
}

//Static Interface Settings
$data->assign('interfaceName', 'sBNC Interface 1.0');
$data->assign('ifaceVersion', 'Version 1.0 \'Revolution\'');
$data->assign('webRoot', $webRoot);
//Static Interface Vars
$data->assign('ifaceName', 'sBNC Interface 1.1');
$data->assign('ifaceVersion', 'Version 1.1');
$data->assign('ifaceCodename', 'Bertha');
$data->assign('ifaceRoot', $interfaceRoot);

//Admin & Vadmin Vars
$data->assign('sbncAdmin', $admin);
$data->assign('sbncVAdmin', $vadmin);
$data->assign('sbncVGroup', $vgroup);

//User Menu
$data->assign('status', $lang['status']);
$data->assign('user', $lang['user']);
$data->assign('settings', $lang['settings']);
$data->assign('server', $lang['server']);
$data->assign('q_settings', $lang['q_settings']);
$data->assign('authSettings', $lang['authSettings']);
$data->assign('away', $lang['away']);
$data->assign('channels', $lang['channels']);
$data->assign('log', $lang['log']);

//Vadmin Menu
$data->assign('vAdmin', $lang['vAdmin']);
$data->assign('users', $lang['users']);
$data->assign('addUser', $lang['addUser']);

//Admin Menu
$data->assign('admin', $lang['admin']);
$data->assign('users', $lang['users']);
$data->assign('add_user', $lang['add_user']);
$data->assign('trusted_ips', $lang['trusted_ips']);
$data->assign('addUser', $lang['addUser']);
$data->assign('trustedIps', $lang['trustedIps']);
$data->assign('vhosts', $lang['vhosts']);
$data->assign('global_msg', $lang['global_msg']);
$data->assign('globalMsg', $lang['globalMsg']);
$data->assign('mainLog', $lang['mainLog']);

$data->assign('logout', $lang['logout']);
?>
137 index.php
@@ -1,23 +1,29 @@
<?php
/*
* $Id$
*
* Copyright (C) 2010 Conny Sjöblom <biohzn@mustis.org>
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*/
?>
<?php

session_start();

//Main includes
include 'settings.php';
include 'inc/functions.php';
include 'inc/sbnc.php';

//Load Dwoo
include 'dwoo/dwooAutoload.php';
error_reporting(E_ALL);

if (isset($_GET['logout'])) {
if (isset($_COOKIE['username'])) {
setcookie("username", "", time() - 3600);
setcookie("password", "", time() - 3600);
}
session_destroy();
header('Location:' . $webRoot);
}
//Start the session
session_start();

//Language selector
if (isset($_POST['lang'])) {
@@ -27,77 +33,80 @@

//Check for language
if (isset($includeLang)) {
include 'inc/lang/' . $includeLang . '.php';
include 'lang/' . $includeLang . '.php';
} elseif (!isset($_COOKIE['includeLang'])) {
if (!file_exists('inc/lang/' . substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) . '.php')) {
if (!file_exists('lang/' . substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) . '.php')) {
$includeLang = $defaultLang;
} else {
$includeLang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
}
include 'inc/lang/' . $includeLang . '.php';
include 'lang/' . $includeLang . '.php';
setcookie("includeLang", "$includeLang", $expire);
} else {
include 'inc/lang/' . $_COOKIE['includeLang'] . '.php';
include 'lang/' . $_COOKIE['includeLang'] . '.php';
}

//New page
$dwoo = new Dwoo();
//Main includes
include 'settings.php';
include 'inc/functions.php';
include 'inc/sbnc.php';

if (!isset($_COOKIE['username']) && !isset($_SESSION['username'])) {
include 'pages/login.php';
} else {
if (!isset($_SESSION['username']) && isset($_COOKIE['username'])) {
$_SESSION['username'] = $_COOKIE['username'];
$_SESSION['password'] = $_COOKIE['password'];
$_SESSION['bncserver'] = $_COOKIE['bncserver'];
}
if (isset($_GET['logout'])) {
session_destroy();
header('Location:' . $interfaceRoot);
}

$username = $_SESSION['username'];
$password = $_SESSION['password'];
//Load Dwoo
include 'dwoo/dwooAutoload.php';

$sbncServer = $bncServers['0']['1'];
$sbncPort = $bncServers['0']['2'];
//New page & dataset
$dwoo = new Dwoo();
$data = new Dwoo_Data();

$sbnc = new SBNC("$sbncServer", "$sbncPort", "$username", "$password");
//Check for user session
if (!isset($_SESSION['username'])) {

if (!isset($_GET["p"])) {
$page = "main";
} else {
$page = $_GET["p"];
}
if (!file_exists("pages/" . $page . ".php")) {
$isset = '1';
$type = 'staticerror';
$message = 'Page \'' . $_GET['p'] . '\' not found! Please check the URL';
$page = "error";
}
//Include static values
include 'inc/static.php';
//Include login page
include 'pages/login.php';

$content = '';
} else {

//Select template
$tpl = new Dwoo_Template_File('template/'.$templateDir.'/header.tpl');
$data = new Dwoo_Data();
//Make the sBNC connection
/*
$username = ;
$password = ;
//Include static values
include 'inc/static.php';
$sbncServer = ;
$sbncPort = ;
*/

$sbnc = new SBNC($bncServers['0']['ip'], $bncServers['0']['port'], $_SESSION['username'], $_SESSION['password']);

//Get the page
$content .= $dwoo->get($tpl, $data);
//Check for page
if (!isset($_GET['p'])) {
$page = 'status';
} else {
$page = $_GET['p'];
}

include 'pages/'.$page.'.php';
if (!file_exists('pages/' . $page . '.php')) {

//Select template
$tpl = new Dwoo_Template_File('template/'.$templateDir.'/footer.tpl');
$data = new Dwoo_Data();
//Page not found, include error page.
$errorIsset = '1';
$errorType = 'staticerror';
$errorMessage = sprintf($lang['pageNotFound'], $_GET['p']);
$page = "error";
}

//Include static values
include 'inc/static.php';

//Get the page
$content .= $dwoo->get($tpl, $data);
//Finally include the page.
include 'pages/' . $page . '.php';

echo $content;
$sbnc->Destroy();

}

?>
?>
@@ -0,0 +1,136 @@
<?php
/*
* $Id$
*
* Copyright (C) 2010 Conny Sjöblom <biohzn@mustis.org>
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*/
?>
<?php
/*
* English language file.
*/
?>
<?php
$lang = array(

'pageNotFound' => 'Page \'%s\' not found, please check the url.',
'noAccessToPage' => 'You do not have access to this page',

'username' => 'Username',
'password' => 'Password',
'server' => 'Server',
'login' => 'Log in',
'wrongUserPass' => 'Wrong username or password.',

'status' => 'Status',
'user' => 'User',
'settings' => 'Settings',
'server' => 'Server',
'authSettings' => 'Auth settings',
'away' => 'Away',
'channels' => 'Channels',
'log' => 'Log',

'vAdmin' => 'Vadmin',

'admin' => 'Administrator',
'users' => 'Users',
'addUser' => 'Add user',
'trustedIps' => 'Trusted ips',
'vhosts' => 'Vhosts',
'globalMsg' => 'Global Message',
'mainLog' => 'Mainlog',

'logout' => 'Logout',

'nickname' => 'Nickname',
'uptime' => 'Uptime',
'disconnected' => 'Disconnected',
'awaynick' => 'Away nick',
'awaymessage' => 'Away message',
'realname' => 'Realname',
'traffic' => 'Traffic',
'sysnotices' => 'System notices',

'saveChanges' => 'Save changes',

'port' => 'Port',
'vhost' => 'Vhost',
'jump' => 'Jump',

'authName' => 'Auth name',
'authPass' => 'Auth password',
'useAuth' => 'Auto-auth',
'yes' => 'Yes',
'no' => 'No',
'on' => 'On',
'off' => 'Off',

'quitAsAway' => 'Use quit as away',

'joinChannel' => 'Join channel',
'channel' => 'Channel',
'join' => 'Join',
'part' => 'Part',
'modes' => 'Modes',
'action' => 'Actions',

'logEmpty' => 'Log empty',
'emptyLog' => 'Empty log',

'ident' => 'Ident',
'now' => 'Now',
'never' => 'Never',
'lastSeen' => 'Last seen',
'administrators' => 'Administrators',

'ifPasswordEmpty' => 'NOTE. If password field is left empty, a random password is generated.',
'addUser' => 'Add user',

'ip' => 'Ip',

'message' => 'Message',
'send' => 'Send',

'userLimit' => 'User limit',
'host' => 'Host',

'changingOptions' => 'Changing options for <b>%s</b>',
'access' => 'Access',
'realname' => 'Realname',
'serverPassword' => 'Server password',

//Messages

'userAdded' => 'User %s added, with the password: %s',
'settingsSaved' => 'Settings saved',
'reconnecting' => 'Reconnecting bouncer...',
'successfullyJoined' => 'Successfully joined channel %s',
'successfullyParted' => 'Successfully parted channel %s',
'logErased' => 'Log successfully erased',
'reallyDelete' => 'Do you really want to delete the user?',
'userDeleted' => 'User %s successfully deleted',
'messageSent' => 'Message successfully sent',
'trustIpAdded' => 'Trusted IP added',
'trustIpDeleted' => 'Trusted IP removed',
'trustIpAlreadyAdded' => 'Trusted IP already added',
'trustIpNotValid' => 'The IP you entered is not valid',
'vhostAdded' => 'New vhost successfully added',
'vhostRemoved' => 'Vhost successfully removed',
'limitNotNumerical' => 'Entered limit is not numerical',
'invalidUser' => 'User \'%s\' is not valid',
);
?>
BIN +495 Bytes lang/img/da.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN +545 Bytes lang/img/de.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN +599 Bytes lang/img/en.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN +489 Bytes lang/img/fi.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN +758 Bytes lang/img/lt.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN +3.67 KB lang/img/no.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN +569 Bytes lang/img/pk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN +374 Bytes lang/img/pl.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN +542 Bytes lang/img/sv.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -3,7 +3,7 @@
<type>org.netbeans.modules.php.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/php-project/1">
<name>sbnciface3</name>
<name>sbnciface 1.1</name>
</data>
</configuration>
</project>