Skip to content

Commit

Permalink
ref #497 Use of undefined constant
Browse files Browse the repository at this point in the history
  • Loading branch information
nobuhiko committed Dec 6, 2021
1 parent 261ef5d commit 3956305
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion data/class/SC_Initial.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,32 @@ public function requireInitialConfig()
copy(realpath(dirname(__FILE__)) . '/../../tests/config.php', CONFIG_REALFILE);

require_once CONFIG_REALFILE;
} else if (!GC_Utils_Ex::isInstallFunction()){

// PHP8対応
if (!defined("HTTP_URL")) {
define ('HTTP_URL', '');
define ('HTTPS_URL', '');
define ('ROOT_URLPATH', '');
define ('DOMAIN_NAME', '');
define ('DB_TYPE', '');
define ('DB_USER', '');
define ('DB_PASSWORD', '');
define ('DB_SERVER', '');
define ('DB_NAME', '');
define ('DB_PORT', '');
define ('ADMIN_DIR', '');
define ('ADMIN_FORCE_SSL', "");
define ('ADMIN_ALLOW_HOSTS', '');
define ('AUTH_MAGIC', '');
define ('PASSWORD_HASH_ALGOS', 'sha256');
define ('MAIL_BACKEND', 'mail');
define ('SMTP_HOST', '');
define ('SMTP_PORT', '');
define ('SMTP_USER', '');
define ('SMTP_PASSWORD', '');
}
}

}

/**
Expand Down

0 comments on commit 3956305

Please sign in to comment.