vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Protect Admin CP... (https://vborg.vbsupport.ru/showthread.php?t=40225)

Chris M 06-24-2002 09:22 AM

Protect Admin CP...
 
Ok...

I asked before, how do I protect the Admin CP from unauthorised Users?

I know about Cpanel Passwords, but I want to code the script to allow only userid=1 and userid=3 to be able to access it...

I tried several variations, but none work :

PHP Code:

if ($bbuserinfo[userid]!=1) OR ($bbuserinfo[userid]!=3) {
  
show_nopermission();
  exit;


PHP Code:

if ($bbuserinfo[userid]!=1) {
  
show_nopermission();
  exit;
}

if (
$bbuserinfo[userid]!=3) {
  
show_nopermission();
  exit;


What is the code that will only allow access to Userid=1 and Userid=3???

Satan

Chris M 06-24-2002 10:33 AM

Anyone?

Satan

Admin 06-24-2002 11:49 AM

Don't bump your post after an hour.

Chris M 06-24-2002 04:17 PM

Ok Sorry...

But does anyone know?

Satan

Admin 06-24-2002 04:23 PM

Why are you doing it after I told you not to?

Broekie 06-24-2002 04:36 PM

Uhm, there's more than one hour between your post and his reply on that post FireFly :)

But uhm, hellsatan: did you try to place the code in admin/global.php, let's say, above
PHP Code:

require("./sessions.php"); 


Chris M 06-24-2002 06:22 PM

No...

I never did...

Thanks...

I'll give it a try:)

Satan

Chris M 06-24-2002 06:36 PM

Error :

Quote:

Parse error: parse error in /home2/thelyceu/public_html/forum/admin/global.php on line 160

Fatal error: Call to undefined function: adminlog() in /home2/thelyceu/public_html/forum/admin/index.php on line 7
Satan

Broekie 06-24-2002 07:26 PM

well, seems like it doesn't work ;)

I'm off to bed now, I'll let you know when I come up with an idea...

Chris M 06-24-2002 07:31 PM

Thanks...:)

Enjoy your sleep!

Satan


All times are GMT. The time now is 11:38 PM.

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.01486 seconds
  • Memory Usage 1,734KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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