bbs index.php最新ip,index.php

/*

* Copyright (C) xiuno.com

*/

//xhprof_enable();

//$_SERVER['REQUEST_URI'] = '/?user-login.htm';

//$_SERVER['REQUEST_METHOD'] = 'POST';

//$_SERVER['HTTP_X_REQUESTED_WITH'] = 'xmlhttprequest';

//$_COOKIE['bbs_sid'] = 'e1d8c2790b9dd08267e6ea2595c3bc82';

//$postdata = 'email=admin&password=c4ca4238a0b923820dcc509a6f75849b';

//parse_str($postdata, $_POST);

// 0: Production mode; 1: Developer mode; 2: Plugin developement mode;

// 0: 线上模式; 1: 调试模式; 2: 插件开发模式;

!defined('DEBUG') AND define('DEBUG', 0);

define('APP_PATH', dirname(__FILE__).'/'); // __DIR__

!defined('ADMIN_PATH') AND define('ADMIN_PATH', APP_PATH.'admin/');

!defined('XIUNOPHP_PATH') AND define('XIUNOPHP_PATH', APP_PATH.'xiunophp/');

// !ini_get('zlib.output_compression') AND ob_start('ob_gzhandler');

//ob_start('ob_gzhandler');

$conf = (@include APP_PATH.'conf/conf.php') OR exit('');

// 兼容 4.0.3 的配置文件

!isset($conf['user_create_on']) AND $conf['user_create_on'] = 1;

!isset($conf['logo_mobile_url']) AND $conf['logo_mobile_url'] = 'view/img/logo.png';

!isset($conf['logo_pc_url']) AND $conf['logo_pc_url'] = 'view/img/logo.png';

!isset($conf['logo_water_url']) AND $conf['logo_water_url'] = 'view/img/water-small.png';

$conf['version'] = '4.0.4';// 定义版本号!避免手工修改 conf/conf.php

// 转换为绝对路径,防止被包含时出错。

substr($conf['log_path'], 0, 2) == './' AND $conf['log_path'] = APP_PATH.$conf['log_path'];

substr($conf['tmp_path'], 0, 2) == './' AND $conf['tmp_path'] = APP_PATH.$conf['tmp_path'];

substr($conf['upload_path'], 0, 2) == './' AND $conf['upload_path'] = APP_PATH.$conf['upload_path'];

$_SERVER['conf'] = $conf;

if(DEBUG > 1) {

include XIUNOPHP_PATH.'xiunophp.php';

} else {

include XIUNOPHP_PATH.'xiunophp.min.php';

}

// 测试数据库连接 / try to connect database

//db_connect() OR exit($errstr);

include APP_PATH.'model/plugin.func.php';

include _include(APP_PATH.'model.inc.php');

include _include(APP_PATH.'index.inc.php');

//file_put_contents((ini_get('xhprof.output_dir') ? : '/tmp') . '/' . uniqid() . '.xhprof.xhprof', serialize(xhprof_disable()));

?>

一键复制

编辑

Web IDE

原始数据

按行查看

历史

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值