vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   AdminCp & ModCp Access From Anywhere (https://vborg.vbsupport.ru/showthread.php?t=63206)

colicab-d 03-29-2004 10:00 PM

AdminCp & ModCp Access From Anywhere
 
Admincp & Modcp Access from Anywhere On Your Site!

This small addon file will allow you access your Admincp and Modcp anywhere on your site by visting the file.

for example i could rename the file access.php and have it at www.mysite.com/portal/access.php , upon visting this it will redirect me to the vB3 admincp if I were and admin, and the Modcp if I was a mod, if not it,ll spit me out to the the Vbulletin index or any other given url :D

[INSTALL------------]

Edit the config options in the file (note the userids given can be changed but this is for folk who know what there doing)

You must use the absolute path and edit the v.important line in the file

save the file

Just upload an visit and your done.

Boofo 03-30-2004 07:33 PM

What if you want to add more than 1 mod ID? ;)

colicab-d 03-30-2004 07:35 PM

something i,ll look into soon :D for now its just a small and handy wee tool :D but thnx for the critque boofo as i say i,ll ask how this can be done as im no coding genius lol

Owen 03-30-2004 07:55 PM

wouldnt this be a slight security risk?

lasto 03-30-2004 09:35 PM

why not just click the mod or admin links at the bottom of the board

/me dont get it ?

Dark Shogun 03-30-2004 10:31 PM

Maybe it's for non-vb pages?

Dark Shogun

colicab-d 03-31-2004 05:07 AM

well we wanted a central login for our staff and admins so we made this, its no security risk. as at no point does it contain info that could be breached it just redirects to the correct area and if youre not in the usergroup of mod or admin then like i say it will redirect you to the url x it does all this in about 2 seconds of hitting the page sp theres no security risk i can think of. :D

its for non-vb pages but its more intended so as to creat a central login area, for folk who have remove the admin / mod cp links or for people like us who wanted www.site.com/staff as a login, good for the index of a subdomain like staff.site.com :D

Floris 03-31-2004 02:38 PM

Quote:

Originally Posted by colicab-d
well we wanted a central login for our staff and admins so we made this, its no security risk. as at no point does it contain info that could be breached it just redirects to the correct area and if youre not in the usergroup of mod or admin then like i say it will redirect you to the url x it does all this in about 2 seconds of hitting the page sp theres no security risk i can think of. :D

its for non-vb pages but its more intended so as to creat a central login area, for folk who have remove the admin / mod cp links or for people like us who wanted www.site.com/staff as a login, good for the index of a subdomain like staff.site.com :D

uhm

$admin_location = "http://www.mysite.com/admincp"; //Location of admincp.
$mod_location = "http://www.mysite.com/modcp"; //Location of modcp.
$non_staff_location = "http://www.mysite.com/"; //Location to throw out non admins/mods to.

Isn't it better to properly integrate with vbulletin by using the config.php file and since global.php is include you can use the proper variables too. Saves file edits and makes things easier and integrates like it should :P (well , i think so)

I am glad you got my directions and learned from them and got this hack going the way you wanted to :) Good job! You are a quick learner.


All times are GMT. The time now is 01:51 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.02117 seconds
  • Memory Usage 1,727KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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