Skip to content

Commit

Permalink
Merge pull request #499 from nobuhiko/i497
Browse files Browse the repository at this point in the history
ref #497 PHP8の修正
  • Loading branch information
chihiro-adachi authored Jan 12, 2022
2 parents 261ef5d + 3956305 commit 87d0ffc
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 87d0ffc

Please sign in to comment.