Version 3: Server Information Script (Outdated)

Server Information Script downloads, mappics, news and discussions.

Moderator: Clan Members

Postby Kleintje on 17 Sep 2005, 16:49

Tim wrote:Ja ik weet het, irritant die dingen!
Maar het is me meer moeite ze er uit
te halen dan ze gewoon te negeren... ;)

:bye: Tim



Of je zorgt er voor dat Windows ze niet meer aanmaakt!!

Open de verkenenr
Extra
Mapopties
Tabblad Weergave
Vinkje zetten bij Miniatuurweergaven niet in cache plaatsen.

Dan via de verkenner zoeken op Thumbs.db en die allemaal wissen.
Kleintje
 
Posts: 12
Joined: 22 Aug 2005, 22:51


Postby Tim on 17 Sep 2005, 18:05

Hmm, I'm not familiar with PHPNuke boards, so I wouldn't know how to
properly add the script into such a board... My guess is you can assign
a filename to a block content, but you'd habe to look into the PHPNuke
addon department on how to do this...
Maybe one day I'll find some time to look into it myself, but for now I
have neighter the time nor the resources to try and make this work with
PHPNuke boards... Here are their forums: http://www.nukecops.com/

Greets, Tim

@ Kleintje: Kijk ik even naar... Tnx!
User avatar
Tim
 
Posts: 877
Joined: 29 Apr 2005, 12:36
Location: Nijmegen

Postby Pyotr on 17 Sep 2005, 22:46

i found a little bug that made my php not output anything after the server info blocks; this is only the case with the non-mysql version.

In class_query.php the CloseDatabase() function should be changed to this:

Code: Select all
function CloseDatabase(&$connection) {
    return DB_CONNECTION_MADE && mysql_close($connection);
}


Maybe it would be wise to replace all '@' function calls with proper exception / error handling. IMO there is nothing wrong with seeing errors in your page when something _is_ really wrong.
User avatar
Pyotr
 
Posts: 974
Joined: 29 Apr 2005, 14:22
Location: Enschede

Postby metzger on 26 Sep 2005, 20:42

Hi today i Download your script your script looks:
Image
Its in boxes!!!
Mine looks:
Image
Without boxes

Can you say me how I make your style???


MfG Martin
metzger
 

Postby Tim on 26 Sep 2005, 21:07

Just build up tables around every occurance of "show::Blocks('194.171.252.73');".
For instance:
echo "<table width='100%' border>";
echo "<tr>";
echo "<td>"; show::Block("194.171.252.93:27015"); echo "</td>";
echo "<td>"; show::Block("194.171.252.93:27025"); echo "</td>";
echo "<td>"; show::Block("194.171.252.93:27035"); echo "</td>";
echo "<td>"; show::Block("194.171.252.93:27045"); echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>"; show::Block("194.171.252.93:27055"); echo "</td>";
echo "<td>"; show::Block("194.171.252.93:27065"); echo "</td>";
echo "<td>"; show::Block("130.89.170.81:27015"); echo "</td>";
echo "<td>"; show::Block("130.89.170.81:27025"); echo "</td>";
echo "</tr>";
echo "</table>";
echo "<table width='100%'><tr><hr></tr></table>";
echo "<table width='100%' border>";
echo "<tr>";
echo "<td>"; show::Plate("194.171.252.93:27015"); echo "</td>";
echo "<td>"; show::Plate("194.171.252.93:27025"); echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>"; show::Plate("194.171.252.93:27035"); echo "</td>";
echo "<td>"; show::Plate("194.171.252.93:27045"); echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>"; show::Plate("194.171.252.93:27055"); echo "</td>";
echo "<td>"; show::Plate("194.171.252.93:27065"); echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>"; show::Plate("130.89.170.81:27015"); echo "</td>";
echo "<td>"; show::Plate("130.89.170.81:27025"); echo "</td>";
echo "</tr>";
echo "</table>";


:bye: Tim
User avatar
Tim
 
Posts: 877
Joined: 29 Apr 2005, 12:36
Location: Nijmegen

Postby metzger on 27 Sep 2005, 15:55

thank you!!!! ;)
But I have an another question:
Is there a FloodProtection in your script, because I change the map and the
page shows die old one... :(
metzger
 

Postby Tim on 27 Sep 2005, 16:11

That's only when you enable the MySQL support...
So yes, in that way you can call it a flood-protection.
Disabling MySQL by not setting the MySQL connect
information (db_user, db_name etc) disabled this
feature.

:bye: Tim
User avatar
Tim
 
Posts: 877
Joined: 29 Apr 2005, 12:36
Location: Nijmegen

Postby NyBo on 04 Oct 2005, 04:52

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/virtual/clan-nua.dk/public_html/si2/inc/class_socket.php on line 24


After I installed SI on my webhotel i get this error every time i go to the si2.php page and since i have no idea what this means i hope that there is someone here that can explain it to me.

regards

NyBo
NyBo
 

Postby Tim on 04 Oct 2005, 09:27

I've been getting the same waring...
All it basicly does is warn you that the function used is no longer
seen as the 'correct' way to program in PHP. It's a reminder that
it is probably best to switch to the new style of programming, as
they no longer guarantee that this function will remain supported...

In short: It might pose a problem in newer versions of PHP, but it
might also not change anything really... Nothing to worry about for
now, just don't update your PHP just yet... ;)

:bye: Tim
User avatar
Tim
 
Posts: 877
Joined: 29 Apr 2005, 12:36
Location: Nijmegen

Postby NyBo on 04 Oct 2005, 11:14

Thanks for the explaining Tim :)

Is there anyway to remove it, without rewritting it all?
It might not do any harm, but it ain't looking good either.`

Regards

NyBo
NyBo
 

Postby Tim on 04 Oct 2005, 12:15

You can try placing an "@" before every occurance of "fsockopen()" to
suppress this warning, although this probably isn't the best way to handle
the problem...
For the next version I'll look into a more permanent fix for this warning,
hopefully making it forwardcompatible with any upcoming PHP versions...

:bye: Tim
User avatar
Tim
 
Posts: 877
Joined: 29 Apr 2005, 12:36
Location: Nijmegen

Postby NyBo on 04 Oct 2005, 13:27

Thanks again for your answer Tim :) but there are only one refference to fsockopen and there were already an @ infront of it, so i'm sorry to say that i haven't advanced any further at this moment.
Could the problem be caused as a result of my webhotel using PHP5??

regards
NyBo
NyBo
 

Postby Tim on 04 Oct 2005, 13:49

That's well possible... So far I've only used this script with PHP < 5...
Once I find the time I'll look into making it work with PHP 5, but for
now I'm a little preoccupied with college and getting an internship...

:bye: Tim
User avatar
Tim
 
Posts: 877
Joined: 29 Apr 2005, 12:36
Location: Nijmegen

Postby NyBo on 04 Oct 2005, 14:19

Another question then.

Is there any way for me to force it not to show these warnings on the webpage?
It works fine, I'm just annoyed by these warnings :?
NyBo
 

PreviousNext

Return to Server Information Script


Who is online

Users browsing this forum: No registered users and 1 guest

cron