-
Notifications
You must be signed in to change notification settings - Fork 57
/
loadohsce.php
34 lines (34 loc) · 1.29 KB
/
loadohsce.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/*
OHSCE_V0.2.0.2_B
高可靠性的PHP通信框架。
HTTP://WWW.OHSCE.ORG
@作者:林友哲 393562235@QQ.COM
作者保留全部权利,请依照授权协议使用。
该文件禁止改名!否则可能会无法运行!
*/
error_reporting(E_ALL);
if(!defined('IN_OHSCE')){
define('IN_OHSCE', TRUE);
}
if(file_exists(dirname(__FILE__).'/config/oibc_sce_config.php')){
defined('OHSCE_ROOTDIR') or define('OHSCE_ROOTDIR',dirname(__FILE__));
}elseif(file_exists(dirname(__FILE__).'/Ohsce/config/oibc_sce_config.php')){
defined('OHSCE_ROOTDIR') or define('OHSCE_ROOTDIR',dirname(__FILE__).'/Ohsce/');
}elseif(file_exists(dirname(__FILE__).'/OHSCE/config/oibc_sce_config.php')){
defined('OHSCE_ROOTDIR') or define('OHSCE_ROOTDIR',dirname(__FILE__).'/OHSCE/');
}else{
exit('Can not find Ohsce or OHSCE!');
sleep(30);
}
define('OIBC_VERSON','0.2.0_beta');
include(OHSCE_ROOTDIR.'/config/oibc_sce_config.php');
include(OHSCE_ROOTDIR.'/config/oibc_drive_config.php');
include(OHSCE_ROOTDIR.'/lib/bts_little.php');
include(OHSCE_ROOTDIR.'/lib/oibc_sce_fuc.php');
include(OHSCE_ROOTDIR.'/lib/oibc_sce_eng.php');
include(OHSCE_ROOTDIR.'/lib/ohsce_Channel.php');
include(OHSCE_ROOTDIR.'/config/oibc_ext_load.php');
define('OHSCE_OS',Ohsce_getos($oibc_sce_os));
$ohsce_eng_socket_client_wait=0;
$ohsce_eng_serial_wait=3000;