| @@ -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&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&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,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']) && !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 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('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('addUser', $lang['addUser']); | ||
| $data->assign('trustedIps', $lang['trustedIps']); | ||
| $data->assign('vhosts', $lang['vhosts']); | ||
| $data->assign('globalMsg', $lang['globalMsg']); | ||
| $data->assign('mainLog', $lang['mainLog']); | ||
|
|
||
| $data->assign('logout', $lang['logout']); | ||
| ?> |
| @@ -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', | ||
| ); | ||
| ?> |
| @@ -3,7 +3,7 @@ | ||
| <type>org.netbeans.modules.php.project</type> | ||
| <configuration> | ||
| <data xmlns="http://www.netbeans.org/ns/php-project/1"> | ||
| <name>sbnciface 1.1</name> | ||
| </data> | ||
| </configuration> | ||
| </project> | ||