Example #1
0
<?php

require_once EMBASE_PATH_EYOU_TOOLMAIL_CONF . 'conf_global.php';
print_r(em_config::get('auth_lock'));
Example #2
0
 protected function getConnection()
 {
     if ($this->__debug) {
         echo __METHOD__ . "\n";
     }
     if (!isset(self::$__is_init)) {
         $app = new Yaf_Application(PATH_RHEA_ETC . "application.ini", 'rhea');
         $app->bootstrap();
         self::$__is_init = true;
     }
     if (!self::$__conn) {
         require_once PATH_RHEA_LIB . 'em_db.class.php';
         $db = em_db::singleton();
         $pdo = $db->get_connection();
         self::$__conn = $this->createDefaultDBConnection($pdo, em_config::get('db_name'));
     }
     return self::$__conn;
 }