farhan1 Posted April 22, 2013 Share Posted April 22, 2013 Can any one tell me how to remove ssl from my cubecart through code?? Because i am not able to get into the admin panel because of an ssl issue. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 23, 2013 Share Posted April 23, 2013 Please try this. Using a programmer's text editor, create a file with these contents. Upload it to the main folder of your store. Use your web browser to request this file.<?php /* +------------------------ | cc5_fix_ssl.php | ======================= | Switch Off SSL Tool +------------------------ */ define('CC_DS', DIRECTORY_SEPARATOR); define('CC_ROOT_DIR', realpath(dirname(__FILE__))); require(CC_ROOT_DIR.CC_DS.'includes/global.inc.php'); require(CC_ROOT_DIR.CC_DS.'classes'.CC_DS.'db'.CC_DS.'mysql.class.php'); require(CC_ROOT_DIR.CC_DS.'classes'.CC_DS.'config.class.php'); require(CC_ROOT_DIR.CC_DS.'classes'.CC_DS.'cache'.CC_DS.'file.class.php'); // Initialise Database class, and fetch configuration $GLOBALS['db'] = Database::getInstance($glob); // Initialise Config class $GLOBALS['config'] = Config::getInstance(array()); //We will not need this anymore unset($glob); $GLOBALS['config']->set('config','ssl',0,true); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.