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)

Dotara 04-21-2007 07:10 PM

Quote:

Originally Posted by Dream (Post 1232833)
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(); 


No! I made the mistake in "free" on line 4 where I should put vmstat. I only placed vmstat once instead of twice. Sorry. Now it's working fine :)

I clicked "Mark as Installed"

BadgerDog 04-21-2007 07:40 PM

Quote:

Originally Posted by BadgerDog (Post 1229953)
Installed....


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

Dream....

Any advice on what to change so I can use this just as an Admin?

Thanks

Regards,
Badger

NeRilkA 04-21-2007 10:29 PM

Quote:

Originally Posted by Dream (Post 1232825)
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.

I suppose its unix because the os is linux ;)

I'm sorry I forgot about the Superadmin when i was testing it on the other forum :erm: :p

Dream 04-22-2007 12:32 AM

Quote:

Originally Posted by BadgerDog (Post 1232855)
Dream....

Any advice on what to change so I can use this just as an Admin?

Thanks

Regards,
Badger

remove this from server_info.php

PHP Code:

// ########################## SUPERADMIN CHECK ############################
if (!in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s'$vbulletin->config['SpecialUsers']['superadministrators'], -1PREG_SPLIT_NO_EMPTY)) ) {
    
rpm_print_stop_back("You don't have permission to access this page.");


Nerilka, I'm sorry but I don't know why uptime isn't working for you. Do you have access to the server? You could try using uptime in the command line and see if your unix system has this command.

NeRilkA 04-22-2007 03:08 PM

It doesn't really matter for the uptime, i don't have access to the server anyway

is it the same problem for Server Loads failed ?

thanks for your time :)

Dream 05-05-2007 09:49 PM

Not sure, sorry. I'm not very familiar with Unix commands, I just borrowed some codes from other places to wrap this up for me.

kelekian 05-06-2007 05:15 AM

server time, uptime, memory usage, free disk space, is coming as blank... :S

someone knows this problem?

jw00dy 05-06-2007 09:08 PM

Are you on a dedicated server? If you are not, then it's very very possible this will not work for you. If you are simply leasing some space from someone then it's more then likely that it won't work. It all depends on how they have you setup.

Dream 05-06-2007 09:12 PM

Also your exec() PHP function could be disabled by your host.

kelekian 05-07-2007 02:19 PM

Quote:

Originally Posted by jw00dy (Post 1242698)
Are you on a dedicated server? If you are not, then it's very very possible this will not work for you. If you are simply leasing some space from someone then it's more then likely that it won't work. It all depends on how they have you setup.

semi-dedicated server...


All times are GMT. The time now is 01:44 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.01146 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_php_printable
  • (5)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