Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Update default DB name and revert to runtime constants
Browse files Browse the repository at this point in the history
  • Loading branch information
ecartz committed Feb 27, 2021
1 parent d064f8c commit fb47514
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
28 changes: 14 additions & 14 deletions admin/includes/configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,31 @@
// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
const HTTP_SERVER = ''; // eg, http://localhost or - https://localhost should not be NULL for production servers
const COOKIE_OPTIONS = [
define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for production servers
define('COOKIE_OPTIONS', [
'lifetime' => 0,
'domain' => '',
'path' => '',
'samesite' => 'Lax',
];
]);

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesn't suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
const DIR_WS_ADMIN = '/admin/';
const DIR_FS_ADMIN = DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN;
const DIR_FS_BACKUP = DIR_FS_ADMIN . 'backups/';
define('DIR_WS_ADMIN', '/admin/');
define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

// leave blank or omit to use MySQL sessions
const DIR_FS_SESSION = '';
define('DIR_FS_SESSION', '');

const HTTP_CATALOG_SERVER = '';
const DIR_WS_CATALOG = '/catalog/';
const DIR_FS_CATALOG = DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG;
define('HTTP_CATALOG_SERVER', '');
define('DIR_WS_CATALOG', '/catalog/');
define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

// set default timezone if none exists (PHP 5.3 throws an E_WARNING)
date_default_timezone_set(date_default_timezone_get());

// define our database connection
const DB_SERVER = '';
const DB_SERVER_USERNAME = 'mysql';
const DB_SERVER_PASSWORD = '';
const DB_DATABASE = 'osCommerce';
define('DB_SERVER', '');
define('DB_SERVER_USERNAME', 'mysql');
define('DB_SERVER_PASSWORD', '');
define('DB_DATABASE', 'Phoenix');
18 changes: 9 additions & 9 deletions includes/configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@
// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
const HTTP_SERVER = ''; // eg, http://localhost - should not be empty for productive servers
const COOKIE_OPTIONS = [
define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers
define('COOKIE_OPTIONS', [
'lifetime' => 0,
'domain' => '',
'path' => '',
'samesite' => 'Lax',
];
const DIR_WS_CATALOG = '';
]);
define('DIR_WS_CATALOG', '');

define('DIR_FS_CATALOG', dirname($_SERVER['SCRIPT_FILENAME']) . '/');

// leave blank or omit to use MySQL sessions
const DIR_FS_SESSION = '';
define('DIR_FS_SESSION', '');

// set default timezone if none exists (PHP 5.3 throws an E_WARNING)
date_default_timezone_set(date_default_timezone_get());
Expand All @@ -42,10 +42,10 @@
// please remove the data below before sharing

// define our database connection
const DB_SERVER = ''; // eg, localhost - should not be empty for productive servers
const DB_SERVER_USERNAME = '';
const DB_SERVER_PASSWORD = '';
const DB_DATABASE = 'osCommerce';
define('DB_SERVER', ''); // eg, localhost - should not be empty for production servers
define('DB_SERVER_USERNAME', '');
define('DB_SERVER_PASSWORD', '');
define('DB_DATABASE', 'Phoenix');

if (DB_SERVER == '' && is_dir('install')) {
header('Location: install/index.php');
Expand Down

0 comments on commit fb47514

Please sign in to comment.