Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Php in a panel?


Print Track
Can anyone help me add PHP in a side panel? I tried everything I can think of but I keep receiving this same error: "Parse error: syntax error, unexpected T_DNUMBER in C:\xampp\htdocs\themes\templates\panels.php(75) : eval()'d code on line 4"

2 replies

and how does your code look like? ...
<?php
$server = "127.0.0.1";
$portg = "2000";
$portl = "2000";
$timeout = "5";

if ($server and $port and $timeout) {
$game = @fsockopen("$server", $portg, $errno, $errstr, $timeout);
$login = @fsockopen("$server", $portl, $errno, $errstr, $timeout);
}
if($game) { print'<tr><td>Server Status: </td><td><font color="#FF0000"><strong>Offline</strong></font></td></tr>'; }
else { print'<tr><td>Server Status: </td><td"><font color="#00FF00"><strong>Online</strong></td></tr>'; }
print'</table>';
?>
author SoulEater
forumOfficial Core Support - 6
replies3 posts
viewed5630 times
activeLast updated on 9 years ago

Hot Questions

T
Spam problem
tapaga - 170 posts
S
UPDATED: 6.01.13 ChangeLog
Sheldon - 9 posts
W
Autoresize big images
Wooya - 60 posts
L
User group colors?
lamborgini8 - 27 posts
G
How is this made?
gregersen - 42 posts
B
Hacked site
borisp71 - 43 posts
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.