Not to irritate you or something.. but when will that be?dmzx wrote: 14 Jan 2018, 11:53 These are special edits that i made on this forum.
Will check to include in next version.
3.2.x Extensions Database 3.2 / 3.3 ⇒ System Info 3.2.x
-
Solidjeuh
- Donator

- Posts: 348
- Joined: 13 Dec 2014, 02:40
Re: System Info 3.2.x
Forum voor NL Extensie vertalingen ---> https://www.supportforum.be
----------------------------------------------------------------------------
----------------------------------------------------------------------------
-
ivailo95
- Users

- Posts: 918
- Joined: 02 Feb 2018, 12:04
Re: System Info 3.2.x
System info of my computer or?




Feed like a disease
And bring them to their knees
They'll pay for their deceit
And bring them to their knees
They'll pay for their deceit
-
luca17000
- Users

- Posts: 41
- Joined: 26 Jan 2015, 00:36
Re: System Info 3.2.x
Yeeessdmzx wrote: 14 Jan 2018, 11:53 These are special edits that i made on this forum.
Will check to include in next version.
-
dmzx
- Founder

- Posts: 6466
- Joined: 13 Jan 2014, 21:45
-
Warnergon
- Users

- Posts: 5
- Joined: 22 Dec 2018, 00:30
System Info 3 2 x
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.
-
Tastenplayer
- Users

- Posts: 14
- Joined: 05 Feb 2017, 21:20
Re: System Info 3.2.x
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
Board still runs under 3.2.1
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
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.
Excuse me for my English, but I learned it by talking with people, not in school.
-
i0x
- Users

- Posts: 5
- Joined: 04 Dec 2020, 09:08
Re: System Info 3.2.x
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
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'],
));
}
-
martin
- Admin

- Posts: 5105
- Joined: 06 Apr 2014, 16:12
Re: System Info 3.2.x
New version does not use public function main($event)
It's not released yet.
It's not released yet.
-
ssl
- Donator

- Posts: 137
- Joined: 19 Aug 2020, 12:54
Re: System Info 3.2.x
Hi
Have you planned a version compatible with phpBB 3.3.x?
Have you planned a version compatible with phpBB 3.3.x?
