3.2.x Extensions Database 3.2 / 3.3System Info 3.2.x

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
User avatar

Topic Author
dmzx Online
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 10 Firefox

System Info 3.2.x

Post by dmzx »

Extension Name: System Info 3.2.x
Author: dmzx

Extension Description:

phpBB 3.2 extension that will add System Info to your board index.
System, Board version, Server Uptime and Average load.



Screenshot:
Image

Demo:
Dmzx-web.net

Extension Download:
Download-link
System Info 3.2.x v1.0.0
Installation:
  1. Download the latest release.
  2. Unzip the downloaded release, and change the name of the folder to `systeminfo`.
  3. In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
  4. Copy the `systeminfo` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at
    (your forum root)/ext/dmzx/systeminfo/composer.json
  5. Navigate in the ACP to `Customise -> Manage extensions`
  6. Look for `System Info` under the Disabled Extensions list, and click its `Enable` link.

User avatar

zardos
Users
Users
Posts: 175
Joined: 26 Feb 2016, 23:20
    Windows 7 Firefox

Re: System Info 3.2.x

Post by zardos »

Thank you very much for all these extension and 3.2 great work :tumbsyes: :beers:

one problem with this extension when i install it.

Fatal error: Call to undefined function dmzx\systeminfo\event\sys_getloadavg() in C:\Program Files\Ampps\www\ext\dmzx\systeminfo\event\listener.php on line 49

Hope this helps, all other ext for 3.2 work fine.

Thanks zardos
Image

User avatar

Topic Author
dmzx Online
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 10 Firefox

Re: System Info 3.2.x

Post by dmzx »

zardos wrote: 01 Mar 2016, 20:05 Thank you very much for all these extension and 3.2 great work :tumbsyes: :beers:

one problem with this extension when i install it.

Fatal error: Call to undefined function dmzx\systeminfo\event\sys_getloadavg() in C:\Program Files\Ampps\www\ext\dmzx\systeminfo\event\listener.php on line 49

Hope this helps, all other ext for 3.2 work fine.

Thanks zardos
Is your server linux or windows?

User avatar

talonos
Users
Users
Posts: 68
Joined: 15 Nov 2015, 21:47
    Windows 7 Firefox

Re: System Info 3.2.x

Post by talonos »

Code: Select all

C:\Program Files\Ampps\www\ext\dmzx\systeminfo\event\listener.php on line 49
i think it might be Macintosh 128K lol
Board3 mods/extensions available/created by Talonos @ http://pretereo-stormrage.co.uk

User avatar

Topic Author
dmzx Online
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 10 Firefox

Re: System Info 3.2.x

Post by dmzx »

talonos wrote: 01 Mar 2016, 20:12

Code: Select all

C:\Program Files\Ampps\www\ext\dmzx\systeminfo\event\listener.php on line 49
i think it might be Macintosh 128K lol
Yes local lol :lol:

User avatar

zardos
Users
Users
Posts: 175
Joined: 26 Feb 2016, 23:20
    Windows 7 Firefox

Re: System Info 3.2.x

Post by zardos »

Hi m8, i use Ammps 3.4 local its linux.

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Windows 10 Chrome

Re: System Info 3.2.x

Post by martin »

This will fix your issue

Code: Select all

//$load			= sys_getloadavg();
	$os				= php_uname('s') . ' ' . php_uname('r');

		$this->template->assign_vars(array(
	'UPTIME_DAYS'			=> $daysindex,
	'UPTIME_HOURS'		 => $hoursindex,
	'UPTIME_MINS'			=> $minsindex,
	'UPTIME_SECS'			=> $secsindex,
	//'AVG_LOAD0'			=> $load[0],
	//'AVG_LOAD1'			=> $load[1],
       //'AVG_LOAD2'			=> $load[2],
	'PHP_OS'				=> $os,
Load works on MOST linux distros

windows no mac prob not most linux yes if dubug line 49 shows comment out like above.
Image

User avatar

zardos
Users
Users
Posts: 175
Joined: 26 Feb 2016, 23:20
    Windows 7 Firefox

Re: System Info 3.2.x

Post by zardos »

Thanks Martin, new it would be Ammps :lol:

User avatar

Jaantje
Users
Users
Posts: 356
Joined: 02 Nov 2014, 21:25
    Windows 10 Chrome

Re: System Info 3.2.x

Post by Jaantje »

dmzx Thanx U very Much :tumbsyes:

Image

System Info 3.2.x - Dutch translation.zip
Grreeetttttzzzzz, Jaantje

User avatar

Scanialady
Users
Users
Posts: 310
Joined: 06 Apr 2015, 18:04
    Windows 10 Chrome

Re: System Info 3.2.x

Post by Scanialady »

This information is presented for everyone? Really? Seems to be the easiest way to help hackers with destroying the server... :lol:
Or are there permissions for groups?
-
If you want to get German translations for extensions: ask me.

User avatar

Topic Author
dmzx Online
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 10 Firefox

Re: System Info 3.2.x

Post by dmzx »

Scanialady wrote: 05 Mar 2016, 10:58 This information is presented for everyone? Really? Seems to be the easiest way to help hackers with destroying the server... :lol:
Or are there permissions for groups?
Its now only added <!-- IF not S_IS_BOT and S_USER_LOGGED_IN --> but you can hide if needed with extra statement.

User avatar

Anders
Users
Users
Posts: 80
Joined: 15 Sep 2015, 08:15
    Windows 10 Chrome

Re: System Info 3.2.x

Post by Anders »

Martins fix did make it show but now i get this it dont count and thats same as welcome on index

Code: Select all

System: Windows NT 6.2 • Board version: 3.2.0-b2
Server Uptime: 0 days, 0 hours, 0 minutes and 0 seconds • Average load: • •

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: System Info 3.2.x

Post by martin »

Only works on linux systems.

User avatar

all4phone
Donator
Donator
Posts: 75
Joined: 29 May 2016, 13:33
    Windows 7 Firefox

Re: System Info 3.2.x

Post by all4phone »

Just downloaded and checked on fresh phpbb 3.2.0-RC1 version (localhost)
This error occurred:

Code: Select all

Fatal error: Call to undefined function dmzx\systeminfo\event\sys_getloadavg() in C:\xampp\htdocs\phpBB32\ext\dmzx\systeminfo\event\listener.php on line 49
49 line of listener.php

Code: Select all

		$load			= sys_getloadavg();

User avatar

Topic Author
dmzx Online
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 10 Firefox

Re: System Info 3.2.x

Post by dmzx »

martin wrote: 22 Apr 2016, 13:00 Only works on linux systems.

Post Reply Previous topicNext topic