PDA

View Full Version : TS3 Viewer Coding Issues PHP


S3Ponline
10-22-2010, 09:10 PM
I'm trying to add this viewer to the forum block

http://tsstatus.sebastien.me/

<?php
require_once("/var/www/tsstatus/tsstatus.php");
$tsstatus = new TSStatus("xxxxxx.com", 10011, 1);
$tsstatus->imagePath = "/tsstatus/img/";
$tsstatus->showNicknameBox = true;
$tsstatus->showPasswordBox = false;
$tsstatus->decodeUTF8 = false;
$tsstatus->timeout = 2;
echo $tsstatus->render();
?>

So I take out the <?php and the ?>
but I end up getting this error:

Fatal error: Cannot redeclare class TSStatus in /var/www/includes/ts3status.php on line 11

however, I'm not sure what classes it's redeclaring since it shouldn't be?

Thanks

S3Ponline
10-25-2010, 10:14 PM
Nothing?