Back to vBulletin 4.x Add-ons

JD - Use SSL in Admincp only
Mod Version: 1.00, by Jorandh

vB Version: 4.2.2 Rating: (1 vote - 5.00 average) Installs: 6
Released: 12 Mar 2015 Last Update: Never Downloads: 0
Not Supported Code Changes  

This is a step-by-step guide on how to enable SSL within the Admincp ONLY, so you can use http:// troughout the whole board, but enable https:// usage when you're in the admincp.

Find in /includes/functions.php:
PHP Code:
$url normalize_path($url); 
Add after (on a new line!):
PHP Code:
$url = (strpos($url'/admincp') === true str_replace('http://''https://'$url) : $url); 


Find in/includes/adminfunctions.php:
PHP Code:
var AJAXBASEURL = \"" VB_URL_BASE_PATH "../\"; 
Replace with:
PHP Code:
var AJAXBASEURL = \"" str_replace('http://''https://'VB_URL_BASE_PATH) . "../\"; 


Find in /admincp/index.php:
PHP Code:
$versionhost REQ_PROTOCOL '://version.vbulletin.com'
Replace with:
PHP Code:
$versionhost '//version.vbulletin.com'


Find in /admincp/index.php:
PHP Code:
<form action="http://www.ph' . 'p.net 
Replace with:
PHP Code:
<form action="https://www.ph' . 'p.net 


Find in /admincp/index.php:
PHP Code:
<form action="http://www.mysql.com/ 
Replace with:
PHP Code:
<form action="https://www.mysql.com/ 


That's all, I hope you'll enjoy this little tweak as much as I do myself.

Download

No files for download.

Similar Mods

Administrative and Maintenance Tools AdminCP Firewall ~ Protect your AdminCP! vBulletin 4.x Add-ons
Administrative and Maintenance Tools SCANU's Live Admincp Search - jQuery filtering search box on admincp! vBulletin 4.x Add-ons

vblts.ru supports vBulletin®, 2022-2024