Beispiel #1
0
 function install_options()
 {
     if (ECAE_MODE) {
         return array('db_host' => array('type' => 'text', 'vtype' => 'required', 'required' => true, 'title' => app::get('base')->_('数据库主机'), 'value' => ECAE_MYSQL_HOST_M, 'readonly' => ''), 'db_user' => array('type' => 'text', 'vtype' => 'required', 'required' => true, 'title' => app::get('base')->_('数据库用户名'), 'value' => ECAE_MYSQL_USER, 'readonly' => ''), 'db_password' => array('type' => 'password', 'title' => app::get('base')->_('数据库密码'), 'value' => ECAE_MYSQL_PASS, 'readonly' => ''), 'db_name' => array('type' => 'text', 'vtype' => 'required', 'required' => true, 'title' => app::get('base')->_('数据库名'), 'value' => ECAE_MYSQL_DB, 'readonly' => ''), 'db_prefix' => array('type' => 'text', 'title' => app::get('base')->_('数据库表前缀'), 'default' => 'sdb_'), 'default_timezone' => array('type' => 'select', 'options' => base_location::timezone_list(), 'title' => app::get('base')->_('默认时区'), 'default' => '8', 'vtype' => 'required', 'required' => true));
     } else {
         return array('db_host' => array('type' => 'text', 'vtype' => 'required', 'required' => true, 'title' => app::get('base')->_('数据库主机'), 'default' => 'localhost'), 'db_user' => array('type' => 'text', 'vtype' => 'required', 'required' => true, 'title' => app::get('base')->_('数据库用户名'), 'default' => 'root'), 'db_password' => array('type' => 'password', 'title' => app::get('base')->_('数据库密码'), 'default' => ''), 'db_name' => array('type' => 'select', 'vtype' => 'required', 'required' => true, 'title' => app::get('base')->_('数据库名'), 'options_callback' => array('app' => 'base', 'method' => 'dbnames'), 'onfocus' => 'setuptools.getdata(\'base\', \'dbnames\', this);'), 'db_prefix' => array('type' => 'text', 'title' => app::get('base')->_('数据库表前缀'), 'default' => 'sdb_'), 'default_timezone' => array('type' => 'select', 'options' => base_location::timezone_list(), 'title' => app::get('base')->_('默认时区'), 'default' => '8', 'vtype' => 'required', 'required' => true));
     }
 }
Beispiel #2
0
 function install_options()
 {
     return array('database.host' => array('type' => 'text', 'vtype' => 'required', 'required' => true, 'title' => app::get('base')->_('数据库主机'), 'default' => '127.0.0.1'), 'database.username' => array('type' => 'text', 'vtype' => 'required', 'required' => true, 'title' => app::get('base')->_('数据库用户名'), 'default' => 'root'), 'database.password' => array('type' => 'password', 'title' => app::get('base')->_('数据库密码'), 'default' => ''), 'database.database' => array('type' => 'select', 'vtype' => 'required', 'required' => true, 'title' => app::get('base')->_('数据库名'), 'options_callback' => array('app' => 'base', 'method' => 'dbnames'), 'onfocus' => 'setuptools.getdata(\'base\', \'dbnames\', this);'), 'app.timezone' => array('type' => 'select', 'options' => base_location::timezone_list(), 'title' => app::get('base')->_('默认时区'), 'default' => '8', 'vtype' => 'required', 'required' => true), 'app.url' => array('type' => 'text', 'title' => app::get('base')->_('系统URL地址'), 'default' => url::to('/'), 'vtype' => 'required', 'required' => true));
 }
Beispiel #3
0
 function install_options()
 {
     return array('db_host' => array('type' => 'text', 'vtype' => 'required', 'required' => true, 'title' => '数据库主机', 'default' => 'localhost'), 'db_user' => array('type' => 'text', 'vtype' => 'required', 'required' => true, 'title' => '数据库用户名', 'default' => 'root'), 'db_password' => array('type' => 'password', 'title' => '数据库密码', 'default' => ''), 'db_name' => array('type' => 'text', 'vtype' => 'required', 'required' => true, 'title' => '数据库名'), 'db_prefix' => array('type' => 'text', 'title' => '数据库表前缀', 'default' => 'sdb_'), 'default_timezone' => array('type' => 'select', 'options' => base_location::timezone_list(), 'title' => '默认时区', 'default' => '8', 'vtype' => 'required', 'required' => true));
 }