hdvparts Posted October 29, 2016 Share Posted October 29, 2016 Hi averyone, thanks for read this message, I upgrade to de new version and after that, I can not acces to the Login.php page, the web works but it is un accesible , can you help me in that, I check the admin.php but I do not know how can solve this. please see bellow <?php /** * CubeCart v6 * ======================================== * CubeCart is a registered trade mark of CubeCart Limited * Copyright CubeCart Limited 2015. All rights reserved. * UK Private Limited Company No. 5323904 * ======================================== * Web: http://www.cubecart.com * Email: [email protected] * License: GPL-3.0 https://www.gnu.org/licenses/quick-guide-gplv3.html */ ## Don't let anything be cached header('Cache-Control: no-store, no-cache, must-revalidate'); header('Cache-Control: pre-check=0, post-check=0, max-age=0'); header("Expires: -1"); header("Pragma: no-cache"); header('X-Frame-Options: SAMEORIGIN'); // Do NOT allow iframes ## Include the ini file (required) require 'ini.inc.php'; define('CC_IN_ADMIN', true); ## Include core functions require 'includes/functions.inc.php'; ## Include admin presession controller include CC_ROOT_DIR.CC_DS.'controllers'.CC_DS.'controller.admin.pre_session.inc.php'; $feed_access_key = $GLOBALS['config']->get('config','feed_access_key'); $feed_access_key = (!$feed_access_key) ? '' : $feed_access_key; if (Admin::getInstance()->is() || (isset($_GET['_g']) && $_GET['_g']=='products' && $_GET['node']=='export' && !empty($_GET['format']) && $_GET['access']==$feed_access_key && !empty($feed_access_key))) { if (version_compare(PHP_VERSION, '5.4') >= 0) { error_reporting(E_ALL ^ (E_NOTICE | E_DEPRECATED | E_USER_DEPRECATED)); } else { $GLOBALS['main']->setACPWarning("WARNING: PHP ".PHP_VERSION." detected. Please upgrade to PHP 5.4 or above."); } include CC_ROOT_DIR.CC_DS.'controllers'.CC_DS.'controller.admin.session.true.inc.php'; } else { include CC_ROOT_DIR.CC_DS.'controllers'.CC_DS.'controller.admin.session.false.inc.php'; $GLOBALS['smarty']->display('templates/'.$global_template_file['session_false']); exit; } // Render the completed page if (!isset($suppress_output) || !$suppress_output) { $GLOBALS['gui']->displayCommon(); $GLOBALS['smarty']->display('templates/'.$global_template_file['session_true']); Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted October 30, 2016 Share Posted October 30, 2016 Did you bookmark the renamed admin page url? 6.1.0 renames admin to a random name. I'm not sure but take a look in your global.inc.php file to see if your new url is there. Please read the upgrade notes in red in the CC announcement of 6.1.0. Quote Link to comment Share on other sites More sharing options...
hdvparts Posted October 30, 2016 Author Share Posted October 30, 2016 Dear Dirty Butter, thanks for help. I updated but not bookmark the new name after that, I rename admin.php name because I saw that it was changed sorry. now, I follow your advices en go toglobal.inc.php it says: <?php $glob['adminFile'] = 'xxx'i; $glob['adminFolder'] = 'yyy'; $glob['cache'] = 'file'; $glob['dbdatabase'] = 'zzz'; $glob['dbhost'] = 'localhost'; $glob['dbpassword'] = 'aaaa'; $glob['dbprefix'] = ''; $glob['dbusername'] = 'bbb'; $glob['installed'] = '1'; ?> what I need to replace now? sorry I´m Beringer in php. regards Ernesto Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted October 30, 2016 Share Posted October 30, 2016 You can change xxx and yyy to whatever you want, as long as the naming in the includes file matches exactly the naming of your admin folder and admin file. You've displayed your password and other very private naming publicly, so it would be best if you could change the database info IF you understand how to do that. Your login url will be your store_url/whatever you changed xxx to. 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.