示例#1
0
|       @Modified Date  :
|       @Modified By    :
|    
**/
@session_cache_limiter(false);
@session_start();
ini_set("include_path", ini_get("include_path") . PATH_SEPARATOR . dirname(__FILE__) . DIRECTORY_SEPARATOR . 'com.php.utils.libs' . PATH_SEPARATOR . '.');
//misc
include_once 'status.codes.php';
include_once 'const.php';
include_once 'cfg.php';
//api
include_once 'class-ldap-api.php';
include_once 'class-ldap-groups-api.php';
//libs
include_once 'com.utils.init.php';
//framework
include_once 'Slim/Slim.php';
//-----
//@misc
//-----
if (1) {
    //init dbs here
    global $gSqlDb, $DBOPTS;
    $gSqlDb = new mySqlDbh2($DBOPTS);
    $gSqlDb->dbh();
    $sql = "SET character_set_results = 'utf8', character_set_client = 'utf8', character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8'";
    $gSqlDb->query($sql, "ERROR : {$sql}");
}
//logger-formatting
$gLoggerConf = array('append' => true, 'mode' => 0666, 'timeFormat' => '[%Y%m%d %H:%M:%S]');