// +---------------------------------------------------------------------- // | FrPHP { a friendly PHP Framework } // +---------------------------------------------------------------------- // | Copyright (c) 2018-2099 http://frphp.jizhicms.com All rights reserved. // +---------------------------------------------------------------------- // | Author: 如沐春 <2581047041@qq.com> // +---------------------------------------------------------------------- // | Date:2022/04/11 // +---------------------------------------------------------------------- // 应用目录为当前目录 define('APP_PATH', __DIR__ . '/'); define('ADMIN_MODEL','admins'); define('APP_LANG_REQUREST','l'); $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 4); if (preg_match("/zh-c/i", $lang)||preg_match("/zh/i", $lang)){ define('APP_LANG','zh'); }else{ define('APP_LANG','en'); } // 加载框架文件 require(APP_PATH . 'frphp/fr.php'); // 就这么简单~