HippCRM入口 index.php源代码解析
来源:互联网 发布:雅庭世匠真的假的 知乎 编辑:程序博客网 时间:2024/06/07 05:43
* HippoCRM: 程序主入口
* ============================================================================
* 版权所有 (C) 2011-2020 HippoCRM,并保留所有权利。
* 网站地址: http://www.hippocrm.com
* -------------------------------------------------------
* 这是一个开源免费软件!您可以在不用于商业或以赢利为目的的前提下对程序代码进行修改;
* 但绝不允许对程序代码以任何形式任何目的的再发布。
*
*/
ini_set('display_errors', 'On');
define("HIPPO", TRUE);
define("HIPPO_PATH", dirname(__FILE__));
$mtime = explode(' ', microtime());
$starttime = $mtime[1] + $mtime[0];
include_once HIPPO_PATH.'/init.php';
define("LANG", 'zh-CN');
$tpl = new HippoTemplate();
$db = new HippoDB($dbhost, $dbuser, $dbpw, $dbname);
ob_start();
session_start();
$app = isset($_GET['app']) && !empty($_GET['app'])? trim($_GET['app']):'index';
$action = isset($_GET['action']) && !empty($_GET['action'])? trim($_GET['action']):'index';
if(file_exists(HIPPO_APP.'/'.$app.'.php')){
$app_file = HIPPO_APP.'/'.$app.'.php';
}else{
$app_file = HIPPO_APP.'/'.$app.'/'.$action.'.php';
}
if(!file_exists($app_file)){
$msg = "Not Found App File: $app_file";
showerror('Not Found App File', $msg);
exit();
}
// 引入语言包
load_lang();
$tpl->assign('lang', $lang);
include_once $app_file;
$mtime = explode(' ', microtime());
$endtime = $mtime[1] + $mtime[0];
$tpl->assign('starttime', $starttime);
$tpl->assign('endtime', $endtime);
ob_end_flush();
- HippCRM入口 index.php源代码解析
- codeigniter源代码分析之入口文件 index.php
- PHP框架解析之从入口说起index.php
- index.php 入口文件
- CI框架源码解析一之入口文件index.php
- CI框架源码解析一之入口文件index.php
- thinkphp隐藏Index.php入口
- index.php源代码分析
- thinkphp 后台入口隐藏index.php
- Apache重写去除入口文件index.php
- Nginx配置 隐藏入口文件index.php
- thinkphp5.0隐藏index.php入口文件
- tp5无法隐藏index.php入口文件
- Nginx 隐藏入口文件 index.php
- tp5隐藏入口文件index.php
- phpwind源码解析------index.php
- mediawiki源码分析-入口Index.php简要分析
- 隐藏了网站的入口文件INDEX.PHP
- 函数指针用法
- linux设备模型学习笔记——理论篇
- 想学习linux系统技术支持维护的朋友们 弱弱地看看吧
- 触发器知识点!
- <转>Android2.2 API 中文文档系列(6) —— ImageView
- HippCRM入口 index.php源代码解析
- C#解析HTML
- android背景选择器selector用法汇总
- DropDownList ,select 添加默认 选项的几种方法
- 微软笔试题(附答案)
- const修饰符
- 触发器的理解与使用
- 让你的WordPress主题支持自定义菜单
- Edo.applyIf(user, record);是什么方法