#35 James
package中的 install.php 改代码为下面
<?php
define(‘ROOT’, realpath(DIR . ‘/..’) . ‘/’);
require_once ROOT . ‘vendor/autoload.php’;
require_once ROOT . ‘app/includes/product.php’;
function get_ip() {
if(array_key_exists(‘HTTP_X_FORWARDED_FOR’, $_SERVER)) {
if(strpos($_SERVER['HTTP_X_FORWARDED_FOR'], ',')) {
$ips = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
return trim(reset($ips));
} else {
return $_SERVER['HTTP_X_FORWARDED_FOR'];
}
刷新重新安装 还是报
Responded with: error