Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
  #1  
Old 06-17-2014, 03:26 AM
BowlingTracker BowlingTracker is offline
 
Join Date: May 2014
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default custom admincp and modcp url's

When upgrading to vb5, it asked me what I wanted as my admincp and modcp urls. i put adm1n and m0dcp. (note the 1 and 0 instead of i and o).

Somehow it's not working correctly.

In core/includes/config.php they are defined as adm1ncp and m0dcp.

The folders in forums/core are named "admincp" and "modcp". The url's "forum/admincp" and "forums/modcp" work, but "forums/adm1ncp" and "forums/m0dcp" doesn't. They give "Invalid Page URL".

The admincp and modcp links in the bottom footer work. They don't have the 0 and 1 in the links. The admincp link at the top left (site editor) points to adm1ncp and does not work.

If I rename the folders in core to adm1ncp and m0dcp, then I can't get to them at all.

I'm unsure how to resolve this to make it work with the custom urls..

Thanks.
Reply With Quote
  #2  
Old 06-17-2014, 03:33 AM
BowlingTracker BowlingTracker is offline
 
Join Date: May 2014
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also, in the database table "routenew" there are two routes for admincp (identical except for routeid) and 1 for modcp. The actions are "admincp" and "modcp" respectively.
Reply With Quote
  #3  
Old 06-17-2014, 06:07 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There isn't an overly good reason to rename folders, you're better off password protecting, or or IP restricting their access.
Reply With Quote
  #4  
Old 06-17-2014, 11:33 AM
BowlingTracker BowlingTracker is offline
 
Join Date: May 2014
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wasn't sure if the folders were supposed to be named differently due to choosing custom urls for those folders.

I guess i can install a test instance specifying the custom url's and see how it all gets configured.

those are good ideas too.
Reply With Quote
  #5  
Old 06-18-2014, 05:51 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Of course you would have to rename the folders accordingly if you set the software to use custom names.

What Zachery means is more general: It does not make a lot of sense to use that option at all. There is not much security through obscurity, especially if you just replace i by 1 and o by 0, which has to be the oldest "encryption" trick there is.

You're much better off doing what he proposed: Create a .htaccess-file and protect your admincp folder with an additional password, and if you have a static IP, you can set it up so you don't even have to enter that password if you're working from your own computer. Protecting modcp in this way is not that important - there's not much harm that can be done from there.
Reply With Quote
Благодарность от:
tbworld
  #6  
Old 06-18-2014, 09:37 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was one of those things, that we did, and it wasn't a bad thing. But in today's world renaming the folders is just kind of silly.

--------------- Added [DATE]1403126478[/DATE] at [TIME]1403126478[/TIME] ---------------

I'm guessing this will get merged, either way, make sure (for vB5) that you protect both the AdminCP, and core/AdminCP folders.
Reply With Quote
Благодарность от:
tbworld
  #7  
Old 06-18-2014, 11:54 PM
BowlingTracker BowlingTracker is offline
 
Join Date: May 2014
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Makes sense.. I'll do that.. everything is working fine now with the normal admincp/modcp folder names.... except, the link in the sitebuilder (upper left corner) points to adm1ncp instead of admincp and I can't figure out where it's coming from. I can't find any referecne to adm1ncp in the files or database.

I already changed the core/includes/config.php to set them correctly there.

--------------- Added [DATE]1403139833[/DATE] at [TIME]1403139833[/TIME] ---------------

nevermind.. i found it.. config.php in the forum root.. lol

--------------- Added [DATE]1403141728[/DATE] at [TIME]1403141728[/TIME] ---------------

got the .htaccess password working right too.. both admincp and core/admincp are protected.

Thanks guys!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04433 seconds
  • Memory Usage 2,219KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (2)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete