[MOD] Server Uptime

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

[MOD] Server Uptime

Post by Stoker »

For database I use this:

Code: Select all

'DATABASE_INFO'		=> $db->sql_server_info(),

[MOD] Server Uptime

Post by Stoker »

and to fix your debug use:

Code: Select all

$os = php_uname('s') . ' ' . php_uname('r');

[MOD] Server Uptime

Post by RMcGirr83 »

$link = $db->sql_server_info(); and your php_unames need to be strings php_uname('s')

[edit]damn quickreply showing when there is another page :mad:[/edit]

[MOD] Server Uptime

Post by DoYouSpeakWak »

RMcGirr83 wrote:$link = $db->sql_server_info(); and your php_unames need to be strings php_uname('s')

[edit]damn quickreply showing when there is another page :mad:[/edit]
Yes you made a fix for that i remember.

Thx to both for the fixes. It works perfectly now.
phpbb_server_load_test2.jpg
You do not have the required permissions to view the files attached to this post.

[MOD] Server Uptime

Post by martin123456 »

And for those who have STK installed make sure you have this in your common.php or stk can't load due to the Undefined SERVER_SOFTWARE error.

find:

Code: Select all

?>
add before

Code: Select all

// Server Uptime
$lang = array_merge($lang, array(
   'SERVER_UPTIME'            => 'Server uptime',
   'AVERAGE_LOAD'             => 'Average load',
   'SERVER_SOFTWARE'          =>   'server_software',
   'PHP_VERSION'              =>   'php_version',
   'PHP_OS'                   =>   'os',
));
Chances are you already have the below code

Code: Select all

// Server Uptime
$lang = array_merge($lang, array(
   'SERVER_UPTIME'             => 'Server uptime',
   'AVERAGE_LOAD'               => 'Average load',
));

[MOD] Server Uptime

Post by RMcGirr83 »

Why would STK care if the edits are to the forums index php and html files?

[MOD] Server Uptime

Post by martin123456 »

RMcGirr83 wrote:Why would STK care if the edits are to the forums index php and html files?
I'l reproduce and show you.

[MOD] Server Uptime

Post by Stoker »

martin123456 wrote:I'l reproduce...
Please dont :lol:

[MOD] Server Uptime

Post by RMcGirr83 »

:lol: @ the "no reproducing"

[MOD] Server Uptime

Post by martin123456 »

:| Nubs