System Info 3.2.x

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

Solidjeuh
Donator
Donator
Posts: 348
Joined: 13 Dec 2014, 02:40

Re: System Info 3.2.x

Post by Solidjeuh »

dmzx wrote: 14 Jan 2018, 11:53 These are special edits that i made on this forum.
Will check to include in next version.
Not to irritate you or something.. but when will that be? :rolling: :eusa_dance:
Forum voor NL Extensie vertalingen ---> https://www.supportforum.be
----------------------------------------------------------------------------

User avatar

ivailo95
Users
Users
Posts: 918
Joined: 02 Feb 2018, 12:04

Re: System Info 3.2.x

Post by ivailo95 »

system info of my computer or? :whistl: :question: :question:
Image
Image
Feed like a disease
And bring them to their knees
They'll pay for their deceit

User avatar

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

Re: System Info 3.2.x

Post by martin »

system info unless your clever and turned windows in to linux.
Image

User avatar

luca17000
Users
Users
Posts: 41
Joined: 26 Jan 2015, 00:36

Re: System Info 3.2.x

Post by luca17000 »

dmzx wrote: 14 Jan 2018, 11:53 These are special edits that i made on this forum.
Will check to include in next version.
Yeeess :buigen: :buigen: i look forward to that day.

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Re: System Info 3.2.x

Post by dmzx »

luca17000 wrote: 12 Apr 2018, 00:13
dmzx wrote: 14 Jan 2018, 11:53 These are special edits that i made on this forum.
Will check to include in next version.
Yeeess :buigen: :buigen: i look forward to that day.
see viewtopic.php?p=19854#p19854 :wink:

User avatar

luca17000
Users
Users
Posts: 41
Joined: 26 Jan 2015, 00:36

Re: System Info 3.2.x

Post by luca17000 »

:coffee: :coffee: :coffee:

Best regards !!

User avatar

Warnergon
Users
Users
Posts: 5
Joined: 22 Dec 2018, 00:30

System Info 3 2 x

Post by Warnergon »

When you go to the dashboard, click on the "" at the top. You should have an arrow next to "System Info". You should then be able to select individual items under there.

User avatar

Tastenplayer
Users
Users
Posts: 14
Joined: 05 Feb 2017, 21:20

Re: System Info 3.2.x

Post by Tastenplayer »

Today I changed the php version after 7.1.28 because the other version was called out. Now I have an error message at the top of the header.
Board still runs under 3.2.1
system info.png
You do not have the required permissions to view the files attached to this post.
Be the best version of yourself rather than a bad copy of someone else!
Excuse me for my English, but I learned it by talking with people, not in school.

User avatar

i0x
Users
Users
Posts: 5
Joined: 04 Dec 2020, 09:08

Re: System Info 3.2.x

Post by i0x »

As many hosting companies disable shell_exec() on shared hosting or low-cost plans, there's new method of getting server uptime:
Replace your function main() with this

Code: Select all

public function main($event)
	{
        function format_uptime($seconds) {
            $secs = intval($seconds % 60);
            $mins = intval($seconds / 60 % 60);
            $hours = intval($seconds / 3600 % 24);
            $days = intval($seconds / 86400);
            
            if ($days > 0) {
                $uptimeString .= $days;
                $uptimeString .= (($days == 1) ? " day" : " days");
            }
            if ($hours > 0) {
                $uptimeString .= (($days > 0) ? ", " : "") . $hours;
                $uptimeString .= (($hours == 1) ? " hour" : " hours");
            }
            if ($mins > 0) {
                $uptimeString .= (($days > 0 || $hours > 0) ? ", " : "") . $mins;
                $uptimeString .= (($mins == 1) ? " minute" : " minutes");
            }
            if ($secs > 0) {
                $uptimeString .= (($days > 0 || $hours > 0 || $mins > 0) ? ", " : "") . $secs;
                $uptimeString .= (($secs == 1) ? " second" : " seconds");
            }
            return $uptimeString;
        }

        preg_match("(\d{1,2}/\d{1,2}/\d{4}\s+\d{1,2}\:\d{2}\s+\w{2})", $winstats, $matches);

        $uptimeindex = time() - strtotime($matches[0]);

		$daysindex		= floor($uptimeindex/60/60/24);
		$hoursindex		= $uptimeindex/60/60%24;
		$minsindex		= $uptimeindex/60%60;
		$secsindex		= $uptimeindex%60;
		$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,
			'BOARD_VERSION'			=> $this->config['version'],
		));
	}

User avatar

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

Re: System Info 3.2.x

Post by martin »

New version does not use public function main($event) :whistl:

It's not released yet.
Image

User avatar

i0x
Users
Users
Posts: 5
Joined: 04 Dec 2020, 09:08

Re: System Info 3.2.x

Post by i0x »

Oh :lol: :lol:

User avatar

ssl
Donator
Donator
Posts: 137
Joined: 19 Aug 2020, 12:54

Re: System Info 3.2.x

Post by ssl »

Hi
Have you planned a version compatible with phpBB 3.3.x?
phpBB: 3.3.14 | PHP: 8.3
[Some French translation of extensions]

User avatar

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

Re: System Info 3.2.x

Post by martin »

It works on 3.3
Image

User avatar

ssl
Donator
Donator
Posts: 137
Joined: 19 Aug 2020, 12:54

Re: System Info 3.2.x

Post by ssl »

OK, thanks
phpBB: 3.3.14 | PHP: 8.3
[Some French translation of extensions]

Post Reply