PDA

View Full Version : Server Status



Surreal
December 12th, 2010, 00:41
Server Status 1.0

Description: Welcome to my new project 'Server Status'. I have been working on this for a couple of days now starting with nothing except for a theme.
Safety has been my main concern about this project as there are plenty of connections to the database but I think there is nothing to worry about now.

Beta Testing/Demo: Click Here (Only the registered members can see the link.)

Features (V1.2):
Red: Haven't started
Orange: Have started but not yet finished
Green: Started and completed


Online/Offline
Add new servers
Edit servers
View servers
Index - view all servers
Uptime percentage
Updates every x minutes via cron jobbing
No errors
Automatically deletes servers below 10% (I may change this)


Download (V1.3): Click Here (Only the registered members can see the link.)
How to install:
I have made it super easy so even the complete noob can upload and install this status script.
Extract the download and upload the folder serverstatus to where ever on your website.
Next run the status.sql through your database to create the table 'status'.
Open the file inc/open.php and edit the connection details in there to match yours.
Now you have to run the script 'updateservers.php' every x minutes for the servers percentage and status to be updated. This is for you to learn however if enough people request I may make a little tutorial on how to run cron job.
Happy, happy, joy, joy!
NOTE: You must cron job 'serverstatus/updateservers.php' otherwise the servers won't update!
You must also ask your webhost to open ports 43594 and 55555 and any others you wish to use!

What you can expect in future updates:

Admin CP
View offline servers
Feedback (maybe)
Random server
Code clean-up
Database timer instead of cron job.
Amount of servers awaiting activation. Servers online. Servers offline


Please support this project by visiting RuneLegend (Only the registered members can see the link.)
Please post any ideas/errors in this thread. :cool:

_1Greg1_
December 12th, 2010, 02:03
I get this when it's set up

Warning: session_start() [function.session-start (Only the registered members can see the link.)]: Cannot send session cookie - headers already sent by (output started at /home/forums33/public_html/list/register.php:8) in /home/forums33/public_html/list/register.php on line 69

Warning: session_start() [function.session-start (Only the registered members can see the link.)]: Cannot send session cache limiter - headers already sent (output started at /home/forums33/public_html/list/register.php:8) in /home/forums33/public_html/list/register.php on line 69

Edit:I'm looking, and this happens on all the pages and checklogin.php has a even worse error...
How Can I Fix It???

Surreal
December 12th, 2010, 02:27
I just checked through my script and can not see any errors.
Did you edit the script? Also what version of PHP are you running.
Edit: When do you get this message?

_1Greg1_
December 12th, 2010, 02:29
On all the pages, whenever you load it.

PHP v 5.2.13

Surreal
December 12th, 2010, 02:34
Strange... I don't see whats happening to this. Did you edit the script at all?

_1Greg1_
December 12th, 2010, 02:39
Not a bit...

Surreal
December 12th, 2010, 02:41
Alright, someone else has this problem so I'm looking into and should have it resolved soon.
Edit: Errors should be fixed now

_1Greg1_
December 12th, 2010, 04:40
Thanks for the really fast fix :)

Also, do you mind if I use the template of that to make a home for my site?

Edit: found another glitch... when you log into a server...
Warning: Cannot modify header information - headers already sent by (output started at /home/forums33/public_html/list/inc/open.php:4) in /home/forums33/public_html/list/checklogin.php on line 30

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively in Unknown on line 0

Surreal
December 12th, 2010, 05:09
No problem.
Go for it. You can use the theme just keep the copyright please.
I will fix those errors later

Anthony`
December 12th, 2010, 05:52
Usually those header errors arise when your not sending headers or checking for cookies at the very beginning of each script.

Surreal
December 12th, 2010, 06:09
@Anthony - yes I fixed all those that was the last problem :D
@gggccc - should be fixed, re-download. Sorry

Surreal
December 13th, 2010, 09:32
Update: I have been working on a new release and in the mean time I discovered an error (silly me).
The download has been updated.
P.S: The error was that servers on "Sponsored Servers" would get deleted.
Sorry for any inconvenience.

_1Greg1_
December 13th, 2010, 22:29
checklogin.php:

Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at /home/forums33/public_html/list/inc/open.php:4) in /home/forums33/public_html/list/checklogin.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home/forums33/public_html/list/inc/open.php:4) in /home/forums33/public_html/list/checklogin.php on line 26

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively in Unknown on line 0

Surreal
December 14th, 2010, 00:58
checklogin.php:

Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at /home/forums33/public_html/list/inc/open.php:4) in /home/forums33/public_html/list/checklogin.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home/forums33/public_html/list/inc/open.php:4) in /home/forums33/public_html/list/checklogin.php on line 26

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively in Unknown on line 0

I really can't see your error on either my localhost or on a different web host.
Are you receiving this error when you are logging on?

Faab234
December 14th, 2010, 14:46
I really can't see your error on either my localhost or on a different web host.
Are you receiving this error when you are logging on?

Maybe you turned the warnings off.