vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   AdmincCP Help (https://vborg.vbsupport.ru/showthread.php?t=76707)

atrljoe 02-20-2005 09:09 PM

AdmincCP Help
 
I have several extra hacks installed such as the Arcade, CMPS, Uttstore, etc. Now I was wondering how do I hide these from other admins, I only want the power to modify these, but its not in the Admin Permissions section?

I tried using this code but it doesnt display anything for any user any idea? The Userid of the other admin I want to not see these is 2, this is my Warning system Im trying to hide you see how ive tried to put it in what did I do wrong?

Code:

$printhr = true ;
if ($bbuserinfo['2'] == '')
    {
    } else {
        construct_nav_option ( 'Control Warnings', 'admin_warn.php?act=view', '<br />' ) ;
        construct_nav_option ( 'Warning Logs', 'admin_warn.php?act=viewlogs', '<br />' ) ;
        construct_nav_option ( 'Unban Banned Users', 'admin_warn.php?act=run_unban', '<br

/>' ) ;
        construct_nav_group ( 'Warning Options', '<hr />' ) ;

}


Adrian Schneider 02-20-2005 09:26 PM

Error is in the IF statement.
Try something along these lines.
PHP Code:

if ($bbuserinfo[userid] == OR $bbuserinfo[userid] == otherID)
{
code}
else{ } 

Or if you want to hide it from 2
PHP Code:

if ($bbuserinfo[userid] != 2)
{ }
else{ 
CODE 


atrljoe 02-20-2005 10:13 PM

How would I do it if I wanted to do more then two users?

Viktor Kraft 02-20-2005 11:41 PM

Oh, you only have to add
PHP Code:

OR $bbuserinfo[userid] == otherID 

until is done.

Like:
PHP Code:

if ($bbuserinfo[userid] == OR $bbuserinfo[userid] == otherID OR $bbuserinfo[userid] == otherID OR OR $bbuserinfo[userid] == otherID)
{
code}
else{ } 

Remeber: Even if you do this. They will still able to use these scripts if they type manually the URL in the toolbar. If you don't want this, that will need more hacking.

atrljoe 02-21-2005 12:18 AM

No they arent experts with it, and they dont have FTP access so they wont ever know the script is there thanks for your help!


All times are GMT. The time now is 10:03 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.01512 seconds
  • Memory Usage 1,725KB
  • 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_code_printable
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete