Home Articles Downloads Discussion Forum Web Links News Categories who are we ??
Navigation
Home
Articles
Downloads
To become member
FAQ
Discussion Forum
Web Links
News Categories
Contact Me
Photo Gallery
Search
Todays Events
TS2-Viewer
 
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
 
Users Online
Guests Online: 593
No Members Online

Registered Members: 360
Unactivated Members: 2540
Newest Member: QPRanger
 
Ventrilo Viewer
[>>99<<]Oldmen
Welcome
  1st
  2nd
  3rd
Guests
ETQW Gaming
COD4 Gaming
>>99<< Privat
AFK Really
St?jer-st?nner-snorker-smasker
AFK Shortly
Zulu Channel
Only foreign language
F1 Channel
dumme hj?rne
Kage kanalen
Diablo3
0 / 35
2007 © [>>99<<]
 
 View Thread
>>99<< Old Men | English Forum | Off Topic
Page 2 of 2 < 1 2
Author RE: Ventrilo Viewer
An_Old_Man
Super Administrator

Posts: 583
Joined: 02.11.05
Posted on 15-07-2008 22:04
Mayby you have changed some files?, go read source file (and add me to MSN smiley):

<b>Notice</b>: Undefined offset: 2 in <b>/var/www/beta/infusions/ventrilo_panel/ventrilo_panel.php</b> on line <b>161</b><br />

I think you have something like this: </b><br_/>
Its not allow, should look like this: </b><br/> <-- one space too much

Now I did make a _ where the space is


Kill the BUG





Edited by An_Old_Man on 15-07-2008 22:10
Author RE: Ventrilo Viewer
ZnaZ
Member

User Avatar

Posts: 8
Location: Enköping / Sweden
Joined: 10.10.07
Posted on 15-07-2008 22:13
My ventrilo_panel
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Ventrilo Viewer Infusion
| Filename: ventrilo_panel.php
| Author: Michal "An_Old_Man" Thomsen
| Author: Peter "Van_Dragen" Nielsen
| web: http://www.99.dk
| web: http://www.vandragen.dk
| email: admin@99.dk
| email: admin@vandragen.dk
|--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/

if (!defined("IN_FUSION"smiley) { die("Access Denied"smiley; }

require_once INFUSIONS."ventrilo_panel/infusion_db.php";

// Check if locale file is available matching the current locale setting.
if (file_exists(INFUSIONS."ventrilo_panel/locale/".$settings['locale'].".php"smiley) {
// Load the locale file matching the current site locale setting.
include INFUSIONS."ventrilo_panel/locale/".$settings['locale'].".php";
} else {
// Load the infusion's default locale file.
include INFUSIONS."ventrilo_panel/locale/English.php";
}

//-- Open Sidepanel
openside($locale['VNT300']);

// var $serverdata();
$data = dbarray(dbquery("SELECT * FROM ".DB_VENTRILO_TABLE." WHERE ventrilo_id='1'"smiley);
$server_ip = $data['server_ip'];
$query_port = $data['query_port'];
$info_lev = "#key#";
$feedok = $data['feed_on']; // If = 1, then feed is active
$feed_url = $data['feed_ip']; // feed url or ip and path
$kompat = $data['compatible']; // default 0, hvis 1 er ventrilo bagud kompatibel skal i admin og infusion

//til test for fejlmelding hvis intet er defineret
if (( $data['server_ip'] ) and ($data['query_port']) > NULL ) {

require_once("vent.inc.php"smiley;


If ($feedok=="1"smiley {

// ******* Start Feed section **************
ob_start(); // get content of page
readfile("http://".$feed_url."/ventrilo_feed.php"smiley;
$imdata = ob_get_contents();
ob_end_clean();
$vdata = explode($info_lev, $imdata);
// ******* End Feed section ***********
} else
{
// ******** Start Normal Info section ********
$vent = new Vent;
$vent->setTimeout( 300000 ); // 300 ms timeout

if ( $vent->makeRequest( 2, $server_ip,$query_port )) {
$vdata = explode("\x0a", $vent->getResponse());
}
// ******** End Normal Info section ********
}

$baseDir = INFUSIONS."ventrilo_panel/";


//////////////////////////////////////////////////////////////////////////////

$patt = array ( '/%E5/', '/%F8/', '/%E6/', '/%C6/', '/%D8/', '/%C5/', '/%2C/', '/%A4/', '/%25/', '/%3D/', '/%FC/', '/%DC/', '/%A3/', '/%BD/', '/%A7/', '/%80/'smiley; // ********** tabel skal i sql
$replpatt = array ( 'å','ø','æ', 'Æ', 'Ø', 'Å', ' ~', '¤', '%', '', 'ü', 'Ü', '£', '½', '§', '€'smiley; // ******************************** tabel skal i sql

$i = 0;
while ($i < count($vdata)) {
$vdata[$i] = preg_replace($patt, $replpatt, $vdata[$i]);
// echo $vdata[$i].'<br>';
$i++;
}


/////////////////////////////////////////////////////////////////////////////




function GetUsers($cid,$clientdata,$clientnum,$level,$data)
{
$oo = 0;
$baseDir = INFUSIONS."ventrilo_panel/";
while ($oo <= $clientnum) {
if ($cid == $clientdata[$oo]['CID']) {
echo "<img src=\"".$baseDir."images/b.gif\"width=\"".(12*$level)."\" height=\"1\" align=\"left\" border=\"0\" alt=\"\">";
echo "<img src=\"".$baseDir."images/user.gif\"width=\"12\" height=\"12\" align=\"left\" border=\"0\" alt=\"".$clientdata[$oo]['PING']."\">".$clientdata[$oo]['NAME'].' ';

if ( $data['info_admin'] ) {
if ($clientdata[$oo]['ADMIN']=="1"smiley {
$clientdata[$oo]['ADMIN']="\"A\""; // Ændrer ADMIN=1 til A
// }
echo $clientdata[$oo]['ADMIN'].' ';
// echo "Admin:".$clientdata[$oo]['ADMIN'].' ';
}
}
// echo "Ping:".$clientdata[$oo]['PING'].' ';
// echo "Admin:".$clientdata[$oo]['ADMIN'].' ';
// echo "Phan:".$clientdata[$oo]['PHAN'].' ';
// echo "Comm:".$clientdata[$oo]['COMM'].' ';
echo '<br>';
} //End if
$oo++;
} // End while
} // End function

function getSubChannel($channeldata,$pid,$channelcount,$level,$clientdata,$clientnum,$data)
{
$baseDir = INFUSIONS."ventrilo_panel/";
$c =0;
$level++;
while ($c <= $channelcount) { // løb alle kanaler igennem
//echo $pid." ".$channelcount.'<br>';
if ( $channeldata[$c]['PID'] == $pid ) { // check om kanal er en sub kanal
echo "<img src=\"".$baseDir."images/b.gif\"width=\"".(12*$level)."\" height=\"1\" align=\"left\" border=\"0\" alt=\"\">";
if ($channeldata[$c]['PROT']=="1"smiley {
echo "<img src=\"".$baseDir."images/channel_pw.png\"width=\"12\" height=\"12\" align=\"left\" border=\"0\" alt=\"\">";
} else {
echo "<img src=\"".$baseDir."images/channel.png\"width=\"12\" height=\"12\" align=\"left\" border=\"0\" alt=\"\">";
}
echo " ";
echo $channeldata[$c]['NAME'].'<br>';
echo GetUsers($channeldata[$c]['CID'],$clientdata,$clientnum,$level,$data);
echo getSubChannel($channeldata,$channeldata[$c]['CID'],$channelcount,$level,$clientdata,$clientnum,$data);
} // End if
$c++;
} // End while
return ($result);
} // End function



$o = 0;
while ($o <= count($vdata)) {
$oo = 0;
$ddata = explode(":", $vdata[$o]);
while ($oo <= count($ddata)) {
if ($ddata[$oo] == "CHANNELCOUNT"smiley {
$vdata['CHANNELCOUNT'] = $ddata[$oo+1];
$channelcount = $ddata[$oo+1];
$channum = $o+2;
}
if ($ddata[$oo] == "CLIENTCOUNT"smiley {
$vdata['CLIENTCOUNT'] = $ddata[$oo+1];
$clientnum = $o+2;
}
$oo++;
}
$o++;
}


// $serverdata = array();
$o = 0;
while ($o <= $channum-1) {
$ddata = explode(":", $vdata[$o]);
$serverdata[$ddata[0]]=$ddata[1];
$o++;
}
// end $serverdata


$o = $channum;
$tael = 0;
while ($o <= $clientnum-3) {

$oo = 0;
while ($oo <= 0) {
$tdata = explode(":", $vdata[$o]);

if (count($tdata) > 2 ) {
$ooo=2;
while ( count($tdata)> $ooo ) {
$tdata[1]=$tdata[1]."\x3a".$tdata[$ooo]; // add missing :
$ooo++;

}
}

$ooo = 0;
while ($ooo <= count($channelprop)) {
$channelprop = explode(",", $tdata[1]);
$channelraw[$tael]=$channelprop[$ooo];
$ooo++;
if ($channelraw[$tael] <> ''smiley $tael++;
}
$oo++;
}
$o++;
}
/////////////////////////////////////////////////////////////////

$o = 0;
$oo = 1;
while ($o <= count($channelraw)) {
$channeltmp = explode("=", $channelraw[$o]);
$channeltmp[0] = trim($channeltmp[0]);
$channeldata[$oo][$channeltmp[0]] = $channeltmp[1];
if ( $kompat == "1" ) { if ($channeltmp[0] == 'NAME'smiley $oo++;
} else {
if ($channeltmp[0] == 'COMM'smiley $oo++;
}
$o++;
}

////////////////////////////////////////////////////////////////////
// definition of default-channel
$channeldata[0]['CID'] = "0";
$channeldata[0]['PID'] = "0";
$channeldata[0]['PROT'] = "0";
$channeldata[0]['NAME'] = $serverdata['NAME'];
$channeldata[0]['COMM'] = "";


$o = $clientnum; // <- starter ved
$tael = 0;
while ($o <= $clientnum+$vdata['CLIENTCOUNT']) {

$oo = 0;
while ($oo <= 0) {

$tdata = explode(":", $vdata[$o]);

if (count($tdata) > 2 ) {
$oooo=2;
while ( count($tdata)> $oooo ) {
$tdata[1]=$tdata[1]."\x3a".$tdata[$oooo]; // adding missing :
$oooo++;

}
}

$ooo = 0;
while ($ooo <= count($clientprop)) {
$clientprop = explode(",", $tdata[1]);
$clientraw[$tael]=$clientprop[$ooo];
$ooo++;
if ($clientraw[$tael] <> ''smiley $tael++;
}
$oo++;
}
$o++;
}

/////////////////////////////////////////////////////////////


$o = 0;
$oo = 1;
while ($o <= count($clientraw)) {
$clienttmp = explode("=", $clientraw[$o]);
$clienttmp[0] = trim($clienttmp[0]);
$clientdata[$oo][$clienttmp[0]] = $clienttmp[1];
if ( $kompat == "1" ) { if ($clienttmp[0] == 'NAME'smiley $oo++;
} else {
if ($clienttmp[0] == 'COMM'smiley $oo++;
}
$o++;
}

//////////////////////////////////////////////////////////////
if ( count($serverdata) > 3 ){
$o = 0;
$oo = 1;
while ($o <= $serverdata['CHANNELCOUNT']) { // løb alle kanaler igennem
if ( $channeldata[$o]['PID'] == "0" ) { // check om kanal er en sub kanal
if ( $channeldata[$o]['CID'] == "0" ) { // check om kanal er en sub kanal
// Debug echo $subchannel[$oo]." ".$oo." ServerNavn: $channeldata[$o]['NAME']." (PID: ".$channeldata[$o]['PID'].", CID: ".$channeldata[$o]['CID']." )".'<br>';
echo "<img src=\"".$baseDir."images/main.gif\"width=\"12\" height=\"12\" align=\"left\" border=\"0\" alt=\"\">".$channeldata[$o]['NAME'].'<br>';
echo GetUsers($channeldata[$o]['CID'],$clientdata,$clientnum,0,$data);
} else {
if ($channeldata[$o]['PROT']=="1"smiley {
echo "<img src=\"".$baseDir."images/channel_pw.png\"width=\"12\" height=\"12\" align=\"left\" border=\"0\" alt=\"\">";
} else {
echo "<img src=\"".$baseDir."images/channel.png\"width=\"12\" height=\"12\" align=\"left\" border=\"0\" alt=\"\">";
}
// Debug: echo "KanalNavn: ".$channeldata[$o]['NAME']." (PID: ".$channeldata[$o]['PID'].", CID: ".$channeldata[$o]['CID']." )".'<br>';
echo $channeldata[$o]['NAME'].'<br>';
echo GetUsers($channeldata[$o]['CID'],$clientdata,$clientnum,0,$data);

// Kald af funktion getSubChannel($channeldata,KanalID,Kanalantal,Level);
echo getSubChannel($channeldata,$channeldata[$o]['CID'],$serverdata['CHANNELCOUNT'],0,$clientdata,$clientnum,$data);
// debug echo '<br>';
}
}
$o++;
}

echo "<img src=\"".$baseDir."images/userson.gif\"width=\"13\" height=\"13\" align=\"left\" border=\"0\" alt=\"\">";
echo ($vdata['CLIENTCOUNT']);
echo " /";
echo ($serverdata['MAXCLIENTS']);
// Do NOT change our copyright
echo "<br>2007 © <a href=\"mailto:admin@99.dk\">[>>99<<]</a>";
}
if ( count($serverdata) < 3 ) {
echo "<b>".$locale['VNT401'] . $query_port."</b>";
echo "<br>2007 © <a href=\"mailto:admin@99.dk\">[>>99<<]</a>";
}

//til test for fejlmelding hvis intet er defineret
} else {
echo $locale['VNT400'];
echo "<br>2007 © <a href=\"mailto:admin@99.dk\">[>>99<<]</a>";
}
//--- Close Sidepanel
closeside();

?>



Bättre Parkinsons än Alzheimers, spiller hellre ut groggen än inte komma ihåg vart den stog
743504 guran.t@home.se znaz.mine.nu
Author RE: Ventrilo Viewer
An_Old_Man
Super Administrator

Posts: 583
Joined: 02.11.05
Posted on 15-07-2008 23:53
Now I have been studying php.net:

Notice: Undefined offset: 3

this means a variable has been left unused

http://dk.php.net/manual/en/function.unset.php

<?php
function foo()
{
static $bar;
$bar++;
echo "Before unset: $bar, ";
unset($bar);
$bar = 23;
echo "after unset: $bar\n";
}

foo();
foo();
foo();
?>

If I have to unset every variable when its used, this will be a huge job.
Disable Notice reporting, usually set in the hidden file .htaccess

The notices are not errors, just notices ...

Could be a setting in the following text:

error_reporting(E_ALL);
ini_set('display_errors', true);
ini_set('html_errors', false);

Oldman


Kill the BUG




Author RE: Ventrilo Viewer
An_Old_Man
Super Administrator

Posts: 583
Joined: 02.11.05
Posted on 17-07-2008 18:10
The old ventrilo viewer had the same bug ... :

(Notice: Undefined offset: 2 in )

Still those notices are made when webserver is running a complex function (printing to screen), this might result in total rewrite of the ventrilo viewer, if they must be removed. We will consider doing so.

Oldman


Kill the BUG





Edited by An_Old_Man on 17-07-2008 18:11
Author RE: Ventrilo Viewer
ZnaZ
Member

User Avatar

Posts: 8
Location: Enköping / Sweden
Joined: 10.10.07
Posted on 19-07-2008 11:57
Thank you for all the help young_man smiley you are a rock
Attach Swedish local file
<?php
//--- Ventrilo admin
$locale['VNT100'] = "Ventrilo viewer inställningar";
$locale['VNT101'] = "Ventrilo Namn:";
$locale['VNT102'] = "Server IP:";
$locale['VNT103'] = "Port nr:";
$locale['VNT104'] = "Lösen:";
$locale['VNT105'] = "Info ping:";
$locale['VNT106'] = "Visa om Admin";
$locale['VNT107'] = "Info tid:";
$locale['VNT108'] = "Visa eventuella kommentar:";
$locale['VNT109'] = "Spara inställning";
$locale['VNT110'] = "Feed på / Av:";
$locale['VNT111'] = "www eller ip till feed";
$locale['VNT112'] = "Modtager feed från: <b>";
$locale['VNT113'] = "Ingen feed";
$locale['VNT114'] = "Kompatibel mode (om inga kanaler visas)";

//--- Ventrilo page
$locale['VNT200'] = "Ventrilo Viewer";
$locale['VNT201'] = "Namn:";
$locale['VNT202'] = "Os:";
$locale['VNT203'] = "Version:";
$locale['VNT204'] = "Behöver lösenord:";
$locale['VNT205'] = "ljud codec:";
$locale['VNT206'] = "Ljud format:";
$locale['VNT207'] = "Upptid: H:M:S";
$locale['VNT208'] = "Max användare:";
$locale['VNT209'] = "Anslut till server";
$locale['VNT210'] = "Server info";
$locale['VNT211'] = "Nej";
$locale['VNT212'] = "Ja";



//--- Ventrilo panel
$locale['VNT300'] = "Ventrilo Viewer";
$locale['VNT301'] = "Ventrilo Viewer";

//--- Ventrilo errors
$locale['VNT400'] = "Ingen Server vald / gå till admin panel->infusions->ventrilo, and define one.";
$locale['VNT401'] = "Inte ansluten till en server, har ditt webhotel stöd fsockopen-UDP på port ";
?>





Bättre Parkinsons än Alzheimers, spiller hellre ut groggen än inte komma ihåg vart den stog
743504 guran.t@home.se znaz.mine.nu
Author RE: Ventrilo Viewer
An_Old_Man
Super Administrator

Posts: 583
Joined: 02.11.05
Posted on 19-07-2008 12:25
Thank you my friend smiley, will be added very soon

Oldman


Kill the BUG




Author RE: Ventrilo Viewer
An_Old_Man
Super Administrator

Posts: 583
Joined: 02.11.05
Posted on 23-07-2008 22:06
Swedish locale file added to download section as a single file smiley

Thx ZnaZ...


Kill the BUG




Author RE: Ventrilo Viewer
Nuts
Member

Posts: 9
Location: Sandviken,Sweden
Joined: 04.11.07
Posted on 28-07-2008 09:04
I got this error with the new Ventrilo View for Fusion 7

Hmm i was going to paste in the error from my admin panel but your website doesent allow copy/pase right?
I will try to PM the error code for you instead.

Hmm no luck there .. mabey i can get you over xfire then smiley
Edited by Nuts on 28-07-2008 09:05
http://www.dominion.se
Author RE: Ventrilo Viewer
Weedman
Administrator

Posts: 181
Location: København
Joined: 07.11.05
Posted on 28-07-2008 17:01
You can copy like this.. First Mark it up like you used to than push CTRL+C (Than you got a copy) Than push CTRL+V (Shortcut to paste smiley )
Hope it helped you ..
Greets Carsten




[center]
Author RE: Ventrilo Viewer
An_Old_Man
Super Administrator

Posts: 583
Joined: 02.11.05
Posted on 29-07-2008 13:06
Nuts, I need to known which language you have choosen for your PHPFusion installation?


Kill the BUG




Author RE: Ventrilo Viewer
Nuts
Member

Posts: 9
Location: Sandviken,Sweden
Joined: 04.11.07
Posted on 01-08-2008 00:36
Thanks for the new file you posted in the mail.
Now it works just fine smiley
You got a PM on my site aswell...

/Nuts
http://www.dominion.se
Page 2 of 2 < 1 2
Jump to Forum:
Ur
 
Event Calendar
July 2026
S M T W T F S
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
 
Commercial

 
Game Servers
>>99<< ETL BOT
>>99<< ETPUB
 
Shoutbox
You must login to post a message.

An_Old_Man
06/07/2024 08:09
Light-Speed server vil have dobbelt betaling for ventrilo server, jeg vil kun betale en gang... Jeg arbejder på en anden løsning...

An_Old_Man
20/06/2024 19:28
Nyt server navn: vent33.light-speed.com i stedet for typefrag.com Alt øvrigt er det samme, user og password

An_Old_Man
05/11/2020 20:28
Man skal opdatere til Ventrilo 3.10, for at connecte til ventrilo server, typefrag har opdateret serven.

An_Old_Man
14/04/2019 20:30
SÃ¥ brug de sidste 4....

An_Old_Man
14/04/2019 20:27
Prøv igen

Shoutbox Archive
 
[>>99<<] © 2005