Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin Panel Broke


fansman

Recommended Posts

Posted

Having to rewrite my main configre.php file after I accidentally wrote over it. Finally got all my sts configurations back but I can't access my admin panel. Need some help with connecting. Please take a look if you think you can get me back. Thanks to anyone and everyone.

 

 

http://216.70.115.94/catalog/admin/

 

error:

 

Warning: mysql_connect(): Access denied for user: 'basketkasebiz@localhost' (Using password: YES) in /var/www/html/catalog/admin/includes/functions/database.php on line 19

Unable to connect to database server!

 

 

 

database.php

 

function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') {

global $$link;

 

if (USE_PCONNECT == 'true') {

$$link = mysql_pconnect($server, $username, $password);

} else {

$$link = mysql_connect($server, $username, $password);

}

 

if ($$link) mysql_select_db($database);

 

return $$link;

}

 

 

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'basketkasebiz');

define('DB_SERVER_PASSWORD', '123basket'); // temporary password

define('DB_DATABASE', 'basketkasebiz_com_-_store');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

// STS: ADD: Define Simple Template System files

define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php');

define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php');

define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php');

define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/full/');

//define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.php');

define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php');

define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php');

define('STS_PRODUCT_INFO', DIR_WS_INCLUDES . 'sts_product_info.php');

// STS: EOADD

Posted

Figured it out. It always seems that when I finally decide to post to the forums, I fix my problems...thankfully.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...