vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Server Info in Admin Control Panel (https://vborg.vbsupport.ru/showthread.php?t=130960)

BadgerDog 04-17-2007 07:57 PM

Installed....

Reloaded AdminCP and logged in...

Run any function and get this...

Fatal error: Call to undefined function rpm_print_stop_back() in /usr/www/apache/htdocs/milsurps/admincp/server_info.php on line 17

Suggestions?

Thanks

Regards,
Badger

Edit: Ignore above... discovered you had to be logged in as SuperAdmin.... :)

I usually avoid that and only login as Admin.... can I change something someplace to be able to use it under the lower capability?

BTW, here's what I get for loading...

16:57:51 up 194 days, 20:26, 0 users, load average: 0.08, 0.03, 0.01

ymy 04-17-2007 09:03 PM

Quote:

Originally Posted by Dream (Post 1214848)


thanks a lot Dream :up:

NeRilkA 04-21-2007 04:17 PM

Thanks Dream :)

I'm testing it for the translation but Uptime is empty and Server Loads said Failed (i didn't translate these lines ;))

And on another forum I got this error with the original file :
Quote:

Fatal error: Call to undefined function rpm_print_stop_back() in /home/www/***/web/forum/admincp/server_info.php on line 17
Oh i just thought it may be because this other forum is on 3.6.4 ?

Dotara 04-21-2007 06:41 PM

Quote:

Originally Posted by TexasDreams (Post 1112727)
FROM (Linux using 'free')
if ($_REQUEST['show'] == 'memoryusage' || empty($_REQUEST['show'])) {
print_form_header('', '');
print_table_header('Memory Usage &nbsp;<span class="normal">exec(free)</span>');
exec('free', $mem);
print_description_row('<pre>'.implode('<br />', $mem).'</pre>');
print_table_footer();

TO (FreeBSD using 'vmstat')
if ($_REQUEST['show'] == 'memoryusage' || empty($_REQUEST['show'])) {
print_form_header('', '');
print_table_header('Memory Usage &nbsp;<span class="normal">exec(vmstat)</span>');
exec('vmstat', $mem);
print_description_row('<pre>'.implode('<br />', $mem).'</pre>');
print_table_footer();

After replacing these codes for freebsd, I'm getting error "parse error: syntax error, unexpected $end in /usr/home/dotara/public_html/admincp/server_info.php 152"

:confused:

I'm using FreeBSD 6.x

Dream 04-21-2007 06:48 PM

Quote:

Originally Posted by NeRilkA (Post 1232717)
Thanks Dream :)

I'm testing it for the translation but Uptime is empty and Server Loads said Failed (i didn't translate these lines ;))

And on another forum I got this error with the original file :


Oh i just thought it may be because this other forum is on 3.6.4 ?

Are you running on unix?

The other problem you have is my bad. You need to run this as a Super Admin or that will happen.

Dream 04-21-2007 06:49 PM

Quote:

Originally Posted by Dotara (Post 1232821)
After replacing these codes for freebsd, I'm getting error "parse error: syntax error, unexpected $end in /usr/home/dotara/public_html/admincp/server_info.php 152"

:confused:

I'm using FreeBSD 6.x

Most likely an error in your editing the file, thats a PHP parse error. Check line 152 of the file.

Dotara 04-21-2007 06:53 PM

Quote:

Originally Posted by Dream (Post 1232826)
Most likely an error in your editing the file, thats a PHP parse error. Check line 152 of the file.

Here is Line 152 ?>
I've only replaced the codes of memory usage, didn't edit anything else.

Dream 04-21-2007 06:54 PM

Attach your modified serverinfo.php

Dotara 04-21-2007 06:56 PM

Attached.

Dream 04-21-2007 06:59 PM

I think you ate a } after

PHP Code:

if ($_REQUEST['show'] == 'memoryusage' || empty($_REQUEST['show'])) {
    
print_form_header('''');
    
print_table_header('Memory Usage &nbsp;<span class="normal">exec(free)</span>');
    
exec('vmstat'$mem);
    
print_description_row('<pre>'.implode('<br />'$mem).'</pre>');
    
print_table_footer(); 



All times are GMT. The time now is 09:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01369 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete