1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- //$stime=microtime(true); //获取程序开始执行的时间
- //
- define('IN_ZHASK',true);
- include 'define.php';
- include SITE_PATH.'/protected/config/tables.conf.php';
- include SITE_PATH.'/protected/config/common.conf.php';
- include SITE_PATH.'/protected/config/permissions.conf.php';
- include SITE_PATH.'/protected/config/routes.conf.php';
- include SITE_PATH.'/protected/config/db.conf.php';
- require_once(SITE_PATH.'/protected/class/global.func.php');
- require_once(SITE_PATH.'/protected/logic/BaseLogic.php');
- #Just include this for production mode
- //include $config['BASE_PATH'].'deployment/deploy.php';
- include $config['BASE_PATH'].'Doo.php';
- include $config['BASE_PATH'].'app/DooConfig.php';
- # Uncomment for auto loading the framework classes.
- //spl_autoload_register('Doo::autoload');
- Doo::conf()->set($config);
- # remove this if you wish to see the normal PHP error view.
- //include $config['BASE_PATH'].'diagnostic/debug.php';
- # database usage
- //Doo::useDbReplicate(); #for db replication master-slave usage
- //Doo::db()->setMap($dbmap);
- //Doo::db()->setDb($dbconfig, $config['APP_MODE']);
- //Doo::db()->sql_tracking = true; #for debugging/profiling purpose
- Doo::app()->route = $route;
- Doo::db()->setDb($dbconfig,'dev');
- # Uncomment for DB profiling
- //Doo::logger()->beginDbProfile('doowebsite');
- Doo::app()->run();die;
- //
- //
- // $etime=microtime(true);//获取程序执行结束的时间
- // $total=$etime-$stime; //计算差值
- //
- // $str_total = var_export($total, TRUE);
- //
- // if(substr_count($str_total,"E")){ die;
- // $float_total = floatval(substr($str_total,5));
- // $total = $float_total/100000;
- //
- // }
- //
- // echo $total;
- //
- //Doo::logger()->endDbProfile('doowebsite');
- //Doo::logger()->rotateFile(20);
- //Doo::logger()->writeDbProfiles();
- ?>
|